1.经销商保证金退回页面显示null
This commit is contained in:
parent
2265029245
commit
fdac03f63f
@ -1,131 +1,131 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-05-28
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");
|
||||
String phaseNo = CurPage.getParameter("PhaseNo");
|
||||
String sPrevUrl = CurPage.getParameter("ID");
|
||||
String ProjectName = CurPage.getParameter("ProjectName");
|
||||
String DistributorNo = CurPage.getParameter("DistributorNo");
|
||||
String RightType = CurPage.getParameter("RightType");
|
||||
|
||||
String sTempletNo = "DDepositReturn_TempInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
|
||||
doTemp.setDefaultValue("DISTRIBUTOR_ID", DistributorNo);
|
||||
doTemp.setHtmlEvent("CAUTION_MONEY", "onchange", "selectBalance");
|
||||
if("ReadOnly".equals(RightType)){
|
||||
doTemp.setColInnerBtEvent("REFUND_NUMBER,LOCAL_ACCOUNT", "");
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
/* if(!"0010".equals(phaseNo)){
|
||||
doTemp.setColInnerBtEvent("SUBJECTNAME", "");//去掉选择对话框
|
||||
} */
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
String acc_number = Sqlca.getString("SELECT LOCAL_ACCOUNT FROM D_DEPOSITCHARGE_INFO WHERE distributor_id='"+DistributorNo+"'");
|
||||
String acc_bank = Sqlca.getString("SELECT LOCAL_BANK FROM D_DEPOSITCHARGE_INFO WHERE distributor_id='"+DistributorNo+"';");
|
||||
String acc = Sqlca.getString("select acc_number from DISTRIBUTOR_ACCOUNT where distributor_id='"+DistributorNo+"' limit 0,1");
|
||||
|
||||
String subjectid = Sqlca.getString("SELECT cl.itemno AS subjectid FROM OWN_ACCOUNT oa LEFT JOIN CODE_LIBRARY CL ON CL.CODENO='ManySubject' AND CL.ITEMNAME=oa.acc_name WHERE oa.ACC_NUMBER='"+acc_number+"' limit 0,1");
|
||||
String subjectname = Sqlca.getString("SELECT cl.itemname AS subjectname FROM OWN_ACCOUNT oa LEFT JOIN CODE_LIBRARY CL ON CL.CODENO='ManySubject' AND CL.ITEMNAME=oa.acc_name WHERE oa.ACC_NUMBER='"+acc_number+"' limit 0,1");
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","save()","","","",""}
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
if("ReadOnly"!='<%=RightType%>'){
|
||||
var LOCAL_ACCOUNT=getItemValue(0,0,"LOCAL_ACCOUNT");
|
||||
var LOCAL_BANK=getItemValue(0,0,"LOCAL_BANK");
|
||||
var SUBJECTID=getItemValue(0,0,"SUBJECTID");
|
||||
var SUBJECTNAME=getItemValue(0,0,"SUBJECTNAME");
|
||||
if(typeof(LOCAL_ACCOUNT) == "undefined" || LOCAL_ACCOUNT.length == 0 ){
|
||||
setItemValue(0,0,"LOCAL_ACCOUNT",'<%=acc_number%>');
|
||||
}
|
||||
if(typeof(LOCAL_BANK) == "undefined" || LOCAL_BANK.length == 0 ){
|
||||
setItemValue(0,0,"LOCAL_BANK",'<%=acc_bank%>');
|
||||
}
|
||||
if(typeof(SUBJECTID) == "undefined" || SUBJECTID.length == 0 ){
|
||||
setItemValue(0,0,"SUBJECTID",'<%=subjectid%>');
|
||||
}
|
||||
if(typeof(SUBJECTNAME) == "undefined" || SUBJECTNAME.length == 0 ){
|
||||
setItemValue(0,0,"SUBJECTNAME",'<%=subjectname%>');
|
||||
}
|
||||
setItemValue(0,0,"refund_number",'<%=acc%>');
|
||||
setItemValue(0,0,"REFUND_PERSON","<%=ProjectName%>");
|
||||
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()%>");
|
||||
setItemValue(0,getRow(),'FlowUnid',"<%=sFlowUnid%>");
|
||||
}
|
||||
}
|
||||
function save(){
|
||||
as_save("myiframe0");
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/DealerDeposit/DDepositReturn_TempList.jsp", "FlowUnid="+sFlowUnid,"_self","");
|
||||
}
|
||||
|
||||
// 获取主体信息
|
||||
function selectManySubject(){
|
||||
AsDialog.OpenSelector("selectManySubject","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
setItemValue(0,0,"SUBJECTID",sReturn[0]);
|
||||
setItemValue(0,0,"SUBJECTNAME",sReturn[1]);
|
||||
},"请选择主体",'');
|
||||
}
|
||||
|
||||
|
||||
function selectBalance(){
|
||||
var money = getItemValue(0,0,"CAUTION_MONEY");
|
||||
var sReturn=AsControl.RunJavaMethodTrans("com.tenwa.flow.action.comm.SelectBalance","runs","distributor_no=<%=DistributorNo%>,caution_money="+money);
|
||||
sReturn = sReturn.split("@");
|
||||
if("SUCCESS"==sReturn[0]){
|
||||
setItemValue(0,0,"ACCOUNT_BALANCE",sReturn[1]);
|
||||
setErrorTips('ACCOUNT_BALANCE','');
|
||||
}else{
|
||||
setErrorTips('ACCOUNT_BALANCE',sReturn[1]);
|
||||
setItemValue(0,0,'CAUTION_MONEY','');
|
||||
}
|
||||
}
|
||||
|
||||
function selectaccount(){
|
||||
AsDialog.OpenSelector("SelectReturn","distributorid,"+"<%=DistributorNo%>","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
|
||||
setItemValue(0,getRow(),"refund_number",sReturn[0]);//向页面的框中添加数据
|
||||
setItemValue(0,getRow(),"ACCOUNT",sReturn[1]);
|
||||
},"请选择名称");
|
||||
}
|
||||
|
||||
|
||||
function selectensureS(){
|
||||
//AsDialog.OpenSelector("DepositcollectionS","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
AsDialog.OpenSelector("Depositcollection","","dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
|
||||
setItemValue(0,getRow(),"LOCAL_ACCOUNT",sReturn[0]);//向页面的框中添加数据
|
||||
setItemValue(0,getRow(),"LOCAL_BANK",sReturn[1]);
|
||||
setItemValue(0,getRow(),"SUBJECTID",sReturn[2]);
|
||||
setItemValue(0,getRow(),"SUBJECTNAME",sReturn[3]);
|
||||
},"请选择名称");
|
||||
}
|
||||
</script>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-05-28
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");
|
||||
String phaseNo = CurPage.getParameter("PhaseNo");
|
||||
String sPrevUrl = CurPage.getParameter("ID");
|
||||
String ProjectName = CurPage.getParameter("ProjectName");
|
||||
String DistributorNo = CurPage.getParameter("DistributorNo");
|
||||
String RightType = CurPage.getParameter("RightType");
|
||||
|
||||
String sTempletNo = "DDepositReturn_TempInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
|
||||
doTemp.setDefaultValue("DISTRIBUTOR_ID", DistributorNo);
|
||||
doTemp.setHtmlEvent("CAUTION_MONEY", "onchange", "selectBalance");
|
||||
if("ReadOnly".equals(RightType)){
|
||||
doTemp.setColInnerBtEvent("REFUND_NUMBER,LOCAL_ACCOUNT", "");
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
/* if(!"0010".equals(phaseNo)){
|
||||
doTemp.setColInnerBtEvent("SUBJECTNAME", "");//去掉选择对话框
|
||||
} */
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
String acc_number = Sqlca.getString("SELECT LOCAL_ACCOUNT FROM D_DEPOSITCHARGE_INFO WHERE distributor_id='"+DistributorNo+"' and LOCAL_ACCOUNT is not null");
|
||||
String acc_bank = Sqlca.getString("SELECT LOCAL_BANK FROM D_DEPOSITCHARGE_INFO WHERE distributor_id='"+DistributorNo+"' and LOCAL_ACCOUNT is not null;");
|
||||
String acc = Sqlca.getString("select acc_number from DISTRIBUTOR_ACCOUNT where distributor_id='"+DistributorNo+"' limit 0,1");
|
||||
|
||||
String subjectid = Sqlca.getString("SELECT cl.itemno AS subjectid FROM OWN_ACCOUNT oa LEFT JOIN CODE_LIBRARY CL ON CL.CODENO='ManySubject' AND CL.ITEMNAME=oa.acc_name WHERE oa.ACC_NUMBER='"+acc_number+"' limit 0,1");
|
||||
String subjectname = Sqlca.getString("SELECT cl.itemname AS subjectname FROM OWN_ACCOUNT oa LEFT JOIN CODE_LIBRARY CL ON CL.CODENO='ManySubject' AND CL.ITEMNAME=oa.acc_name WHERE oa.ACC_NUMBER='"+acc_number+"' limit 0,1");
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","save()","","","",""}
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
if("ReadOnly"!='<%=RightType%>'){
|
||||
var LOCAL_ACCOUNT=getItemValue(0,0,"LOCAL_ACCOUNT");
|
||||
var LOCAL_BANK=getItemValue(0,0,"LOCAL_BANK");
|
||||
var SUBJECTID=getItemValue(0,0,"SUBJECTID");
|
||||
var SUBJECTNAME=getItemValue(0,0,"SUBJECTNAME");
|
||||
if(typeof(LOCAL_ACCOUNT) == "undefined" || LOCAL_ACCOUNT.length == 0 ){
|
||||
setItemValue(0,0,"LOCAL_ACCOUNT",'<%=acc_number%>');
|
||||
}
|
||||
if(typeof(LOCAL_BANK) == "undefined" || LOCAL_BANK.length == 0 ){
|
||||
setItemValue(0,0,"LOCAL_BANK",'<%=acc_bank%>');
|
||||
}
|
||||
if(typeof(SUBJECTID) == "undefined" || SUBJECTID.length == 0 ){
|
||||
setItemValue(0,0,"SUBJECTID",'<%=subjectid%>');
|
||||
}
|
||||
if(typeof(SUBJECTNAME) == "undefined" || SUBJECTNAME.length == 0 ){
|
||||
setItemValue(0,0,"SUBJECTNAME",'<%=subjectname%>');
|
||||
}
|
||||
setItemValue(0,0,"refund_number",'<%=acc%>');
|
||||
setItemValue(0,0,"REFUND_PERSON","<%=ProjectName%>");
|
||||
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()%>");
|
||||
setItemValue(0,getRow(),'FlowUnid',"<%=sFlowUnid%>");
|
||||
}
|
||||
}
|
||||
function save(){
|
||||
as_save("myiframe0");
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/DealerDeposit/DDepositReturn_TempList.jsp", "FlowUnid="+sFlowUnid,"_self","");
|
||||
}
|
||||
|
||||
// 获取主体信息
|
||||
function selectManySubject(){
|
||||
AsDialog.OpenSelector("selectManySubject","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
setItemValue(0,0,"SUBJECTID",sReturn[0]);
|
||||
setItemValue(0,0,"SUBJECTNAME",sReturn[1]);
|
||||
},"请选择主体",'');
|
||||
}
|
||||
|
||||
|
||||
function selectBalance(){
|
||||
var money = getItemValue(0,0,"CAUTION_MONEY");
|
||||
var sReturn=AsControl.RunJavaMethodTrans("com.tenwa.flow.action.comm.SelectBalance","runs","distributor_no=<%=DistributorNo%>,caution_money="+money);
|
||||
sReturn = sReturn.split("@");
|
||||
if("SUCCESS"==sReturn[0]){
|
||||
setItemValue(0,0,"ACCOUNT_BALANCE",sReturn[1]);
|
||||
setErrorTips('ACCOUNT_BALANCE','');
|
||||
}else{
|
||||
setErrorTips('ACCOUNT_BALANCE',sReturn[1]);
|
||||
setItemValue(0,0,'CAUTION_MONEY','');
|
||||
}
|
||||
}
|
||||
|
||||
function selectaccount(){
|
||||
AsDialog.OpenSelector("SelectReturn","distributorid,"+"<%=DistributorNo%>","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
|
||||
setItemValue(0,getRow(),"refund_number",sReturn[0]);//向页面的框中添加数据
|
||||
setItemValue(0,getRow(),"ACCOUNT",sReturn[1]);
|
||||
},"请选择名称");
|
||||
}
|
||||
|
||||
|
||||
function selectensureS(){
|
||||
//AsDialog.OpenSelector("DepositcollectionS","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
AsDialog.OpenSelector("Depositcollection","","dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
|
||||
setItemValue(0,getRow(),"LOCAL_ACCOUNT",sReturn[0]);//向页面的框中添加数据
|
||||
setItemValue(0,getRow(),"LOCAL_BANK",sReturn[1]);
|
||||
setItemValue(0,getRow(),"SUBJECTID",sReturn[2]);
|
||||
setItemValue(0,getRow(),"SUBJECTNAME",sReturn[3]);
|
||||
},"请选择名称");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
Loading…
x
Reference in New Issue
Block a user