45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@page import="com.tenwa.comm.util.date.DateAssistant"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2017-10-31
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String currentdate = DateAssistant.getToday();
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
if(sPrevUrl == null) sPrevUrl = "";
|
|
String ID=CurPage.getParameter("ID");
|
|
String sTempletNo = "T_MESSAGE_NOTICE_TASKS_INFO";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
//doTemp.setColTips("", "测试");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
doTemp.setDefaultValue("SEND_STATUS", "N");
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(ID);
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","save()","","","",""},
|
|
{"true","","Button","返回","返回列表","returnList()","","","","btn_icon_return"}
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function save(){
|
|
if(getItemValue(0,getRow(),"CREATOR")==null||getItemValue(0,getRow(),"CREATOR")==""){
|
|
setItemValue(0,0,"CREATOR","<%=CurUser.getUserID()%>");
|
|
setItemValue(0,0,"CREATE_DATE","<%=currentdate%>");
|
|
|
|
}else{
|
|
setItemValue(0,0,"MODIFICATOR","<%=CurUser.getUserID()%>");
|
|
setItemValue(0,0,"MODIFY_DATE","<%=currentdate%>");
|
|
}
|
|
as_save(0);
|
|
}
|
|
|
|
function returnList(){
|
|
AsDialog.ClosePage();
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |