经销商退回账户信息值带出

This commit is contained in:
liuz 2018-06-29 14:14:55 +08:00
parent 60d0a8bbc2
commit 95421aa960
2 changed files with 12 additions and 11 deletions

View File

@ -11,11 +11,12 @@
if(staskNo==null){staskNo="";}
BizObject bos = JBOFactory
.getBizObjectManager("jbo.sys.FLOW_TASK")
.createQuery("SELECT O.phasename,O.flowname,fb.proj_name FROM O ,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fb WHERE O.objectno=fb.flow_unid AND O.SERIALNO=:taskNo ")
.createQuery("SELECT O.phasename,O.flowno,O.flowname,fb.proj_name FROM O ,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fb WHERE O.objectno=fb.flow_unid AND O.SERIALNO=:taskNo ")
.setParameter("taskNo",staskNo).getSingleResult(false);
String sObjectTitle = "";
if("".equals(bos.getAttribute("proj_name").toString())){
if("".equals(bos.getAttribute("proj_name").toString())
||"DistributorApprovalFlow".equals(bos.getAttribute("flowno").toString())){
sObjectTitle = bos.getAttribute("flowname").toString()+"¡¾"+bos.getAttribute("phasename").toString()+"¡¿";
}else{
sObjectTitle = bos.getAttribute("flowname").toString()+"¡¾"+bos.getAttribute("phasename").toString()+"¡¿-"+bos.getAttribute("proj_name").toString();

View File

@ -1,4 +1,5 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2017-10-11
@ -10,29 +11,28 @@
String ishistory=CurPage.getParameter("IsHistory");
String RightType=CurPage.getParameter("RightType");
String disno="";
List<BizObject> nolist=JBOFactory.getBizObjectManager("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT").createQuery("select di.distributor_no from O ,jbo.app.tenwa.customer.DISTRIBUTOR_INFO di where flow_unid=:flowunid")
.setParameter("flowunid",sFlowUnid).getResultList(false);
if(nolist.size()>0){
disno=nolist.get(0).getAttribute("distributor_no").getString();
}
if(sFlowUnid == null) sFlowUnid="";
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
if(sTempletNo == null) sTempletNo = "LDistributorAccountList";
if("DealerDepositReturnApply".equals(sFlowName)){
sTempletNo = "LDistributorAccountListS";
}
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow(sFlowUnid);
dwTemp.genHTMLObjectWindow(disno);
String sButtons[][] =null;
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
if("DealerDepositReturnApply".equals(sFlowName)||"DealerDepositChargeApply".equals(sFlowName)){
sButtons=new String[][] {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},