apzl_leasing/WebContent/DeskTop/WorkRecordInfo.jsp
2018-06-03 22:26:41 +08:00

57 lines
1.9 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"%><%
/*
Describe:--工作笔记详情;
Input Param:
ObjectNo对象编号
NoteType笔记类型
SerialNo笔记流水号
*/
//获得页面参数
String sCustomerID = CurPage.getParameter("CustomerID");
String sNoteType = CurPage.getParameter("NoteType");
String sObjectNo = CurPage.getParameter("ObjectNo");
String sSerialNo = CurPage.getParameter("SerialNo");
if(sNoteType == null) sNoteType = "";
if(sObjectNo == null) sObjectNo = "";
if(sSerialNo == null) sSerialNo = "";
//通过显示模版产生模型对象doTemp
ASObjectModel doTemp = new ASObjectModel("WorkRecordInfo");
doTemp.setDefaultValue("customerid", sCustomerID);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
dwTemp.genHTMLObjectWindow(sSerialNo);
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","saveRecord()","","","",""},
{sNoteType.indexOf("All")>=0?"true":"false","","Button","返回","返回列表页面","exitPopWindow()","","","","btn_icon_return"},
{sNoteType.indexOf("Customer")>=0?"true":"false","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"},
//{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
};
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
setDialogTitle("工作笔记");
function saveRecord(sPostEvents){
as_save("myiframe0",'exitPopWindow()');
}
function goBack(){
OpenPage("/DeskTop/WorkRecordList.jsp","_self","");
}
function exitPopWindow(){
try{
if(parent.AsDialog){
parent.AsDialog.ClosePage();
}else{
parent.close();
}
}catch(e){
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>