提前结清网银页面选择不到数据

This commit is contained in:
tangfutang 2019-11-14 15:49:53 +08:00
parent 82e71fe6a2
commit 1e149e930f

View File

@ -1,78 +1,78 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-08-26
Content:
History Log:
*/
String flowunid = CurPage.getParameter("FlowUnid");
String flowName = CurPage.getParameter("FlowName");
//获取是否已经生成提提前结清数据
String number = Sqlca.getString("select COUNT(*) from LC_FUND_RENT_ADJUST_TEMP where flowunid='"+flowunid+"'");
String userID = CurUser.getUserID();
String orgID = CurUser.getOrgID();
ASObjectModel doTemp = new ASObjectModel("LCEbankTempList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.ShowSummary = "1";
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(flowunid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","do_delete()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
AsDialog.OpenSelector("SelectEbankData","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
var id = sReturn[0];
var ebank_sn = sReturn[1];
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckEbankID.jsp","EBANKID="+id);
if("FALSE" == result){
alert("此笔网银已发起收款流程!");
return;
}
var message = AsControl.RunJavaMethodTrans("com.tenwa.reckon.executor.CreateTransactionExecutor","copyLCEbankTemp","flowunid=<%=flowunid%>,userID=<%=userID%>,orgID=<%=orgID%>,flow_name=<%=flowName%>,contractId="+id);
reloadSelf();
},"请选择收款网银");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Fund/FundCollection/LCEbankTempInfo.jsp";
var sPara = "<%=flowunid%>";
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'FlowUnid=' +sPara ,'_self','');
}
function do_delete(){
if(Number(<%=number%>)>0){
alert("已生成结清数据,不能删除网银!");
return ;
}
var ebanknumber = getItemValue(0,getRow(0),"EBANK_SN");
if(typeof(ebanknumber) == "undefined" || ebanknumber.length == 0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
var message = AsControl.RunJavaMethodTrans("com.tenwa.reckon.executor.CreateTransactionExecutor","deleteLCEbankTemp","flowunid=<%=flowunid%>,ebanknumber="+ebanknumber);
if("true"==message){
// as_delete(0,"alert('删除成功!')");
as_delete(0);
}else{
alert("删除失败!");
}
}
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-08-26
Content:
History Log:
*/
String flowunid = CurPage.getParameter("FlowUnid");
String flowName = CurPage.getParameter("FlowName");
//获取是否已经生成提提前结清数据
String number = Sqlca.getString("select COUNT(*) from LC_FUND_RENT_ADJUST_TEMP where flowunid='"+flowunid+"'");
String userID = CurUser.getUserID();
String orgID = CurUser.getOrgID();
ASObjectModel doTemp = new ASObjectModel("LCEbankTempList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.ShowSummary = "1";
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(flowunid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","do_delete()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
AsDialog.OpenSelector("SelectEbankData","businessType,汽车","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
var id = sReturn[0];
var ebank_sn = sReturn[1];
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckEbankID.jsp","EBANKID="+id);
if("FALSE" == result){
alert("此笔网银已发起收款流程!");
return;
}
var message = AsControl.RunJavaMethodTrans("com.tenwa.reckon.executor.CreateTransactionExecutor","copyLCEbankTemp","flowunid=<%=flowunid%>,userID=<%=userID%>,orgID=<%=orgID%>,flow_name=<%=flowName%>,contractId="+id);
reloadSelf();
},"请选择收款网银");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Fund/FundCollection/LCEbankTempInfo.jsp";
var sPara = "<%=flowunid%>";
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'FlowUnid=' +sPara ,'_self','');
}
function do_delete(){
if(Number(<%=number%>)>0){
alert("已生成结清数据,不能删除网银!");
return ;
}
var ebanknumber = getItemValue(0,getRow(0),"EBANK_SN");
if(typeof(ebanknumber) == "undefined" || ebanknumber.length == 0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
var message = AsControl.RunJavaMethodTrans("com.tenwa.reckon.executor.CreateTransactionExecutor","deleteLCEbankTemp","flowunid=<%=flowunid%>,ebanknumber="+ebanknumber);
if("true"==message){
// as_delete(0,"alert('删除成功!')");
as_delete(0);
}else{
alert("删除失败!");
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>