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

45 lines
2.2 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String Id = CurPage.getParameter("ID");//流程编号
if(Id == null)Id = "";
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
if(sFlowUnid == null)sFlowUnid = "";
String RightType= CurPage.getParameter("RightType");
if(RightType == null) RightType = "";
String taskno=CurPage.getParameter("TaskNo");
if(taskno == null) taskno = "";
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
if(ishistory == null) ishistory = "";
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
if(sTempletNo == null) sTempletNo = "LBAssetsDisposalFeeListTemp";
String sInfoTempletNo = CurPage.getParameter("InfoTempletNo");//模板号
if(sInfoTempletNo == null) sInfoTempletNo = "LBAssetsDisposalFeeInfoTemp";
ASObjectModel doTemp = new ASObjectModel(sInfoTempletNo);
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
dwTemp.ReadOnly = "1";//只读模式
}
dwTemp.genHTMLObjectWindow(Id);
CurPage.getCurComp().setAttribute("RightType", RightType);
String sButtons[][] =null;
sButtons =new String[][] {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回","goBack()","","","","btn_icon_return"}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function saveRecord(){
as_save("myiframe0");
}
function goBack(){
var sUrl = "/Tenwa/Lease/Flow/AssetsDisposal/AssetsDisposalFeeApply/AssetsDisposalFeeList.jsp";
var sParam='FlowUnid=<%=sFlowUnid%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&RightType=<%=RightType%>&TaskNo=<%=taskno%>&TempletNo=<%=sTempletNo%>&InfoTempletNo=<%=sInfoTempletNo%>';
AsControl.OpenView(sUrl,sParam,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>