经销商审批,保证金收取

This commit is contained in:
amarsoft 2018-07-01 17:35:02 +08:00
parent fa4fd833d9
commit a5f6f97c32
6 changed files with 20 additions and 21 deletions

View File

@ -6,29 +6,24 @@
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");
String sPrevUrl = CurPage.getParameter("ID");
//String ProjectName = CurPage.getParameter("ProjectName");
/* if(sPrevUrl == null) sPrevUrl = "/DealerDeposit/DMarginChargeInfo_TempList.jsp"; */
BizObject flow=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT","flow_unid=:flowunid").setParameter("flowunid", sFlowUnid).getSingleResult(false);
// String DISTRIBUTOR_NO=flow.getAttribute("Flow_Key").getString();
String sPrevUrl = CurPage.getParameter("id");
String sTempletNo = "DMarginChargeInfo_Temp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
/* doTemp.setColTips("", "²âÊÔ"); */
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save()","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,0,"MONEY_TYPE","保证金收款");
<%-- setItemValue(0,0,"DISTRIBUTOR_ID","<%=DISTRIBUTOR_NO%>"); --%>
var payer=getItemValue(0, 0, "PAYER");
if(payer==null||payer==""||payer=="undefined"){
setItemValue(0,0,"PAYER","<%=CurPage.getParameter("ProjectName")%>");
}
setItemValue(0,0,"InputUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
@ -38,10 +33,11 @@
function save(){
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号
setItemValue(0,getRow(),"DISTRIBUTOR_ID","<%=sPrevUrl%>");//³õʼ»¯Á÷³Ì±àºÅ
as_save("myiframe0","returnList()");
}
function returnList(){
AsControl.OpenView("/DealerDeposit/DMarginChargeInfo_TempList.jsp", "FlowUnid="+sFlowUnid,"_self","");
AsControl.OpenView("/DealerDeposit/DMarginChargeInfo_TempList.jsp", "FlowUnid="+sFlowUnid+"&ProjectName=<%=CurPage.getParameter("ProjectName")%>","_self","");
}
function selectaccount(){
AsDialog.OpenSelector("SelectAccountS","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){

View File

@ -7,6 +7,7 @@
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");
String ProjectName = CurPage.getParameter("ProjectName");
String id = CurPage.getParameter("ProjectId");
ASObjectModel doTemp = new ASObjectModel("DMarginChargeInfo_TempList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
@ -25,7 +26,7 @@
function newRecord(){
var sUrl = "/DealerDeposit/DMarginChargeInfo_Temp.jsp";
var param = '<%=ProjectName%>';
AsControl.OpenView(sUrl,'FlowUnid='+'<%=sFlowUnid %>'+'&ProjectName='+param,'_self','');
AsControl.OpenView(sUrl,"id=<%=id%>&FlowUnid=<%=sFlowUnid %>&ProjectName="+param,'_self','');
}
function viewAndEdit(){
var sUrl = "/DealerDeposit/DMarginChargeInfo_Temp.jsp";
@ -34,7 +35,7 @@
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
AsControl.OpenView(sUrl,"ID="+sPara+"&FlowUnid=<%=sFlowUnid %>",'_self','');
}
</script>

View File

@ -110,7 +110,8 @@ function teamingStop(){
}
function detail(){
var id = getItemValue(0,getRow(0),'ID');
var distributor_id = getItemValue(0,getRow(0),'DISTRIBUTOR_no');
var distributor_id = getItemValue(0,getRow(0),'DISTRIBUTOR_NO');
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条数据!");
return ;

View File

@ -7,6 +7,7 @@
*/
String id = CurPage.getParameter("id");
String ids = CurPage.getParameter("distracted_id");
String disid = CurPage.getParameter("distributor_id");
if(id == null) id = "";
String opration = CurPage.getParameter("opration");
if(opration == null) opration = "";
@ -31,7 +32,7 @@
|| "distributor_status06".equals(distributor_status)){
dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
}
dwTemp.genHTMLObjectWindow(id);
dwTemp.genHTMLObjectWindow(disid);
String sButtons[][] = null;
if("distributor_status02".equals(distributor_status)
|| "distributor_status03".equals(distributor_status)

View File

@ -36,7 +36,7 @@
var sparam="id=<%=id%>&opration=<%=opration%>&readonly=<%=readonly%>";
var sparam1="distributor_id="+"<%=distributor_id%>&opration=<%=opration%>&readonly=<%=readonly%>";
menuObject["经销商基本信息"]={"url":"/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorInfo.jsp","param":sparam};
menuObject["经销商基本信息"]={"url":"/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorInfo.jsp","param":sparam1};
menuObject["经销商账户信息"]={"url":"/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorAccountList.jsp","param":sparam1};
var sCurItemID = getCurTVItem().id;

View File

@ -30,12 +30,12 @@ public class LBProjectIntoTempToFormalCarBusiness extends BaseBussiness {
String currentdate = DateAssistant.getToday();//插入审批结束时间流程
otherProperty.put("end_date", currentdate);
String status = null;
String result = Sqlca.getString("select fo.phasechoice from flow_task ft,flow_opinion fo where ft.relativeobjectno=fo.serialno and fo.phasechoice = 'disagree' and ft.relativeobjectno IS NOT NULL and ft.objectno='"+this.getAttribute("FlowUnid").toString()+"'");
if("disagree".equals(result)){
status = "101";
}else {
//String result = Sqlca.getString("select fo.phasechoice from flow_task ft,flow_opinion fo where ft.relativeobjectno=fo.serialno and fo.phasechoice = 'disagree' and ft.relativeobjectno IS NOT NULL and ft.objectno='"+this.getAttribute("FlowUnid").toString()+"'");
//if("disagree".equals(result)){
//status = "101";
//}else {
status = "13";
}
//}
otherProperty.put("project_status", status);
service.copyOrLoadProjectInfo(Sqlca, fromCondtion, toCondtion,otherProperty, ServiceOperatorEnum.TempToFormal);
String sMessage="true";