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

52 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Content: 决策流模型详情
Input Param:
ModelNo 模板编号
GroupNo 组编号
ConditionNo条件编号
Status状态
*/
//获得组件参数
String sModelNo = CurPage.getParameter("ModelNo");
String sGroupNo = CurPage.getParameter("GroupNo");
String sConditionNo = CurPage.getParameter("ConditionNo");
String sStatus = CurPage.getParameter("Status");
if(sModelNo==null) sModelNo="";
if(sGroupNo==null) sGroupNo="";
if(sConditionNo==null) sConditionNo="";
//因sConditionNo可能含“这里做处理以免DW展示不正确
if(sConditionNo.indexOf(",")>0) sConditionNo = sConditionNo.replace(",", "%");
ASObjectModel doTemp = new ASObjectModel("ClassifyModelInfo");
if (!sModelNo.equals("")){
doTemp.setReadOnly("ModelNo",true); //只读项
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
dwTemp.genHTMLObjectWindow(sModelNo+","+sGroupNo+","+sConditionNo+","+sStatus);
String sButtons[][] = {
{"true","","Button","保存并返回","保存修改并返回","saveRecordAndReturn()","","","",""},
{"true","","Button","保存并新增","保存修改并新增另一条记录","saveRecordAndAdd()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
setDialogTitle("决策流模型详情");
setItemValue(0,0,"ModelNo","<%=sModelNo%>");
function saveRecordAndReturn(){
as_save("myiframe0","parent.AsDialog.ClosePage();");
}
function saveRecordAndAdd(){
as_save("myiframe0","newRecord()");
}
function newRecord(){
sModelNo = getItemValue(0,getRow(),"ModelNo");
AsControl.OpenComp("/Common/Configurator/ClassifyManage/ClassifyModelInfo.jsp","ModelNo="+sModelNo,"_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>