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

51 lines
1.8 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: 评估模型详情
*/
//获得组件参数 ModelNo报表记录编号 ItemNo阶段编号
String sModelNo = CurPage.getParameter("ModelNo");
String sItemNo = CurPage.getParameter("ItemNo");
if(sModelNo==null) sModelNo="";
if(sItemNo==null) sItemNo="";
ASObjectModel doTemp = new ASObjectModel("EvaluateModelInfo");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
dwTemp.genHTMLObjectWindow(sModelNo+","+sItemNo);
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%>");
var sOldItemNo = getItemValue(0, 0, "ItemNo");
function saveRecord(sFun){
as_save("myiframe0",sFun);
}
function saveRecordAndReturn(){
saveRecord("parent.AsDialog.ClosePage();");
}
function saveRecordAndAdd(){
saveRecord("newRecord()");
}
function newRecord(){
sModelNo = getItemValue(0,getRow(),"ModelNo");
AsControl.OpenComp("/Common/Configurator/EvaluateManage/EvaluateModelInfo.jsp","ModelNo="+sModelNo,"_self","");
}
function SelectCode(sType){
if(sType == "ALL"){
var sCodeNo = getItemValue(0,getRow(),"ValueCode");
AsDialog.SetGridValue("CodeCatalogList", "", "ValueCode=CODENO", sCodeNo, false);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>