41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
|
|
String id = CurPage.getParameter("id");
|
|
String RightType=CurPage.getParameter("RightType");
|
|
if(id == null) id = "";
|
|
if(RightType==null) RightType="";
|
|
ASObjectModel doTemp = new ASObjectModel("LB_REGISTER_GPS_INFO");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.Style="2";
|
|
if(RightType.equals("ReadOnly")){//控制页面只读
|
|
dwTemp.ReadOnly="1";
|
|
}
|
|
dwTemp.genHTMLObjectWindow(id);
|
|
CurPage.getCurComp().setAttribute("RightType", RightType);
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存","saveRecord()","","","","btn_icon_save"}
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
//请选择合同编号
|
|
function SelectContractGps(){
|
|
AsDialog.OpenSelector("SelectContractGps","","dialogWidth=" + parseInt(window.screen.width * 0.5) + "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[3]);
|
|
setItemValue(0,getRow(),"PLATE_NUMBER",sReturn[4]);
|
|
},"请选择合同编号");
|
|
}
|
|
function saveRecord(){
|
|
as_save("myiframe0");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |