apzl_leasing/WebContent/DealerDeposit/DMarginChargeInfo_Temp.jsp

119 lines
5.0 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 DistributorNo = CurPage.getParameter("DistributorNo");
String sTempletNo = "DMarginChargeInfo_Temp";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("DISTRIBUTOR_ID", DistributorNo);
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";//Ö»¶Áģʽ
doTemp.setColInnerBtEvent("LOCAL_ACCOUNT,ACCOUNT_INFO", "");
}
String acc_number = Sqlca.getString("select acc_number from OWN_ACCOUNT limit 0,1");
String acc_bank = Sqlca.getString("select acc_bank from OWN_ACCOUNT limit 0,1");
String acc = Sqlca.getString("select acc_number from DISTRIBUTOR_ACCOUNT where distributor_id="+"'"+DistributorNo+"'"+" limit 0,1");
String acco = Sqlca.getString("select account from DISTRIBUTOR_ACCOUNT where distributor_id="+"'"+DistributorNo+"'"+" limit 0,1");
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
dwTemp.getDataObject().setVisible("CAUTION_MONEY", true);
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","±£´æ","±£´æËùÓÐÐÞ¸Ä","save(0)","","","",""},
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
window.onload=function(){
var laccount = getItemValue(0,0,'LOCAL_ACCOUNT');
if(!laccount){
setItemValue(0,0,"LOCAL_ACCOUNT",'<%=acc_number%>');
setItemValue(0,0,"LOCAL_BANK",'<%=acc_bank%>');
setItemValue(0,0,"ACCOUNT_INFO",'<%=acc%>');
setItemValue(0,0,"ACCOUNT",'<%=acco%>');
}
}
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(){
parent.selectItem(1);
}
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"%>