diff --git a/WebContent/DealerDeposit/DMarginChargeInfo_Temp.jsp b/WebContent/DealerDeposit/DMarginChargeInfo_Temp.jsp index 75a922d97..83ce2051c 100644 --- a/WebContent/DealerDeposit/DMarginChargeInfo_Temp.jsp +++ b/WebContent/DealerDeposit/DMarginChargeInfo_Temp.jsp @@ -11,9 +11,10 @@ String rightType = CurPage.getParameter("rightType"); String rightTypeS = CurPage.getParameter("distributor_id"); - + String DistributorNo = CurPage.getParameter("DistributorNo"); String sTempletNo = "DMarginChargeInfo_Temp";//--模板号-- - + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + doTemp.setDefaultValue("DISTRIBUTOR_ID", DistributorNo); String disno=""; List 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 di.id=O.flow_key and flow_unid=:flowunid") .setParameter("flowunid",sFlowUnid).getResultList(false); @@ -21,7 +22,7 @@ disno=nolist.get(0).getAttribute("distributor_no").getString(); } - ASObjectModel doTemp = new ASObjectModel(sTempletNo); + //ASObjectModel doTemp = new ASObjectModel(sTempletNo); ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform @@ -53,7 +54,9 @@ function save(){ var sFlowUnid = "<%=sFlowUnid%>"; setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号 + setItemValue(0,getRow(),"DISTRIBUTOR_ID","<%=sPrevUrl%>");//初始化流程编号 + as_save("myiframe0","returnList()"); } function returnList(){ diff --git a/WebContent/DealerDeposit/DMarginChargeInfo_TempList.jsp b/WebContent/DealerDeposit/DMarginChargeInfo_TempList.jsp index dcf49965a..48442ff7d 100644 --- a/WebContent/DealerDeposit/DMarginChargeInfo_TempList.jsp +++ b/WebContent/DealerDeposit/DMarginChargeInfo_TempList.jsp @@ -8,6 +8,9 @@ String sFlowUnid = CurPage.getParameter("FlowUnid"); String ProjectName = CurPage.getParameter("ProjectName"); String id = CurPage.getParameter("ProjectId"); + + String DistributorNo = CurPage.getParameter("DistributorNo"); + String types = CurPage.getParameter("PhaseNo"); ASObjectModel doTemp = new ASObjectModel("DMarginChargeInfo_TempList"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); @@ -34,7 +37,10 @@ function newRecord(){ var sUrl = "/DealerDeposit/DMarginChargeInfo_Temp.jsp"; var param = '<%=ProjectName%>'; - AsControl.OpenView(sUrl,"id=<%=id%>&FlowUnid=<%=sFlowUnid %>&ProjectName="+param,'_self',''); + <%-- AsControl.OpenView(sUrl,"id=<%=id%>&FlowUnid=<%=sFlowUnid %>&ProjectName="+param,'_self',''); --%> + + var DistributorNo='DistributorNo=<%=DistributorNo%>'; + AsControl.OpenView(sUrl,"id=<%=id%>&FlowUnid=<%=sFlowUnid %>&ProjectName="+param+"&"+DistributorNo,'_self',''); }