70 lines
2.9 KiB
Plaintext
70 lines
2.9 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2018-06-14
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("ID");
|
|
//if(sPrevUrl == null) sPrevUrl = "";
|
|
String inputuserid = CurUser.getUserID();
|
|
String inputusername = CurUser.getUserName();
|
|
String inputorgid = CurOrg.getOrgID();
|
|
String inputorgname = CurOrg.getOrgName();
|
|
|
|
String sTempletNo = "LB_CAR_LICENSE_PLATE_INFO_Info";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
/* doTemp.setColTips("", "测试"); */
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","save()","","","",""},
|
|
{"true","All","Button","返回","返回列表","returnList()","","","",""}
|
|
};
|
|
/* sButtonPosition = "south"; */
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
|
|
window.onload=function(){
|
|
setItemValue(0,getRow(),"INPUTUSERID","<%=inputusername%>");
|
|
setItemValue(0,getRow(),"UPDATEUSERID","<%=inputusername%>");
|
|
setItemValue(0,getRow(),"INPUTORGID","<%=inputorgname%>");
|
|
setItemValue(0,getRow(),"UPDATEORGID","<%=inputorgname%>");
|
|
var date = new Date();
|
|
var updatetime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
|
|
var inputtime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
|
|
var inputtimes = getItemValue(0,getRow(),"INPUTTIME");
|
|
if(inputtimes==null||inputtimes==""){
|
|
setItemValue(0,getRow(),"INPUTTIME",inputtime);
|
|
}
|
|
setItemValue(0,getRow(),"UPDATETIME",updatetime);
|
|
}
|
|
//请选择合同编号
|
|
function selectContractNo(){
|
|
AsDialog.OpenSelector("SelectContractNo","","dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_"){
|
|
alert(getHtmlMessage('1'));//请选择一条信息!
|
|
return;
|
|
}
|
|
|
|
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
|
|
|
|
setItemValue(0,getRow(),"CONTRACT_ID",sReturn[0]);//向页面的框中添加数据
|
|
setItemValue(0,getRow(),"contract_no",sReturn[1]);
|
|
setItemValue(0,getRow(),"FRAME_NUMBER",sReturn[2]);
|
|
setItemValue(0,getRow(),"PLATE_NUMBER",sReturn[3]);
|
|
setItemValue(0,getRow(),"PLATETIME",sReturn[4]);
|
|
},"请选择合同编号");
|
|
}
|
|
|
|
function save(){
|
|
as_save("myiframe0","returnList()");
|
|
}
|
|
function returnList(){
|
|
AsControl.OpenView("/Tenwa/CarPhoto/CarPhotoList.jsp", "","_self","");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |