66 lines
2.3 KiB
Plaintext
66 lines
2.3 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";
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("ProjRentPlanChangeList");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
String ishistory=CurPage.getParameter("IsHistory");
|
|
String nodeNo=CurPage.getParameter("NodeNo");
|
|
if(null!=ishistory&&ishistory.equals("true")){
|
|
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
isShowButton=false;
|
|
}else{
|
|
isShowButton=true;
|
|
}
|
|
dwTemp.ShowSummary="1"; //汇总
|
|
dwTemp.Style="1";
|
|
dwTemp.ReadOnly = "1";
|
|
dwTemp.setPageSize(100);
|
|
|
|
dwTemp.genHTMLObjectWindow(docId);
|
|
String sButtons[][] = {
|
|
{"true","","Button","编辑","详情","viewAndEdit()","","","",""}
|
|
};
|
|
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
|
function newRecord(){
|
|
OpenPage("/Accounting/LoanSimulation/RentPlanInfo.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/RentPlanList.jsp?cust_id="+sCustomerID+"&id="+sAccountId+"&EditRight="+sEditRight, "_self","");
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |