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

52 lines
2.1 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
if(sFlowUnid == null)sFlowUnid = "";
String ID = CurPage.getParameter("id");//租赁物ID
if(ID == null)ID = "";
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
String taskno=CurPage.getParameter("TaskNo");
String RightType= CurPage.getParameter("RightType");
ASObjectModel doTemp = new ASObjectModel("LCConditionInfoTemp");
doTemp.setHtmlEvent("PRECONDITION_TYPE", "onchange", "getShowIndex");
CurPage.getCurComp().setAttribute("RightType", null);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
dwTemp.ReadOnly = "-2";//只读模式
}
dwTemp.genHTMLObjectWindow(ID);
CurPage.getCurComp().setAttribute("RightType", RightType);
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
};
sButtonPosition = "north";
%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function saveRecord(){
as_save("myiframe0","goBack()");
}
function goBack(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LCCondtionForProject/LCCondtionList.jsp";
var sParam = "FlowUnid="+"<%=sFlowUnid%>";
AsControl.OpenView(sUrl,sParam,"_self","");
}
function getShowIndex(){
var preconditionType = getItemValue(0,getRow(),'PRECONDITION_TYPE');
if(typeof(preconditionType)!=undefined && preconditionType!=''){
var showIndex = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.LCConditionForProjectController", "getShowIndex", "FlowUnid=<%=sFlowUnid%>,PreconditionType="+preconditionType);
setItemValue(0,getRow(),"SHOW_INDEX",showIndex);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>