apzl_leasing/WebContent/DealerDeposit/DMarginChargeInfo_Temp.jsp

103 lines
4.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-05-27
Content: 示例详情页面
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");
String sPrevUrl = CurPage.getParameter("id");
String rightType = CurPage.getParameter("rightType");
String rightTypeS = CurPage.getParameter("distributor_id");
String sTempletNo = "DMarginChargeInfo_Temp";//--模板号--
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 di.id=O.flow_key and flow_unid=:flowunid")
.setParameter("flowunid",sFlowUnid).getResultList(false);
if(nolist.size()>0){
disno=nolist.get(0).getAttribute("distributor_no").getString();
}
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if("ReadOnly".equals(rightType)){
dwTemp.ReadOnly = "1";//只读模式
}
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
dwTemp.getDataObject().setVisible("CAUTION_MONEY", true);
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save(0)","","","",""},
{"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","经销商保证金");
var payer=getItemValue(0, 0, "PAYER");
if(payer==null||payer==""||payer=="undefined"){
setItemValue(0,0,"PAYER","<%=CurPage.getParameter("ProjectName")%>");
}
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+"&ProjectName=<%=CurPage.getParameter("ProjectName")%>","_self","");
}
function selectaccount(){
// var disno = getItemValue(0, 0, "disno");
// alert(id);
AsDialog.OpenSelector("SelectAccountS","distributorid,"+"<%=disno%>","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
setItemValue(0,getRow(),"ACCOUNT_INFO",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"ACCOUNT",sReturn[1]);
setItemValue(0,getRow(),"DISTRIBUTOR_ACCOUNT_TEMP",sReturn[2]);
},"请选择名称");
}
function selectensure(){
AsDialog.OpenSelector("Depositcollection","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
setItemValue(0,getRow(),"LOCAL_ACCOUNT",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"LOCAL_BANK",sReturn[1]);
},"请选择名称");
}
function initRow()
{
//如果没有找到对应记录,则新增一条,并可以设置字段默认值
if (getRowCount(0)==0)
{
setItemValue(0,0,"InputUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
setItemValue(0,0,"UpdateUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>");
}
}
</script>
<script language=javascript>
initRow(); //页面装载时对DW当前记录进行初始化
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>