2018-06-03 22:26:41 +08:00

75 lines
2.9 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String docId = CurPage.getParameter("docId");
if(docId == null) docId = "100000";
String RightType= CurPage.getParameter("RightType");
String taskno=CurPage.getParameter("TaskNo");
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
ASObjectModel doTemp = new ASObjectModel("ProjFundPlanChangeList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataListHistory");
}
dwTemp.Style="1";
dwTemp.ShowSummary="1"; //汇总
dwTemp.ReadOnly = "1";
dwTemp.setPageSize(25);
dwTemp.genHTMLObjectWindow(docId);
String sButtons[][] =null;
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
RightType="ReadOnly";
sButtons=new String[][] {
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""}
};
}else{
sButtons = new String[][]{
{"true","All","Button","新增","新增银行账户信息","newRecord()","","","",""},
{"true","","Button","修改","查看银行账户信息详情","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除银行账户信息","deleteRecord()","","","",""},
};}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newRecord(){
var sPara="flow_unid=<%=docId%>&TaskNo=<%=taskno%>"+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>";
OpenPage("/Accounting/LoanSimulation/FundPlanInfo.jsp?EditRight=02","_self","");
}
/*~[Describe=删除记录;InputParam=无;OutPutParam=无;]~*/
function deleteRecord(){
//var sUserID=getItemValue(0,getRow(),"InputUserId");
var sCustomerID = getItemValue(0,getRow(),"cust_id");
if (typeof(sCustomerID)=="undefined" || sCustomerID.length==0){
alert(getHtmlMessage('1'));
return;
}else if(sUserID=='<%=CurUser.getUserID()%>'){
if(confirm(getHtmlMessage('2')))
{
as_delete('myiframe0');
}
}else
alert(getHtmlMessage('3'));
}
/*~[Describe=查看及修改详情;InputParam=无;OutPutParam=无;]~*/
function viewAndEdit(){
var sUserID=getItemValue(0,getRow(),"creator_");
if(sUserID=='<%=CurUser.getUserID()%>')
sEditRight='02';
else
sEditRight='01';
var sCustomerID = getItemValue(0,getRow(),"cust_id");
var sAccountId = getItemValue(0,getRow(),"id");
if (typeof(sCustomerID)=="undefined" || sCustomerID.length==0){
alert(getHtmlMessage('1'));
return;
}else{
OpenPage("/Accounting/LoanSimulation/FundPlanList.jsp?cust_id="+sCustomerID+"&id="+sAccountId+"&EditRight="+sEditRight, "_self","");
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>