<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html>
<html>
<head lang="en">
	<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
 	<%@include file="../../../frame/assets/header-all.jsp"%>
	<script type="text/javascript" src="../js/jquery.form.js"></script>
	<style>
		* { font-size:13px}
		.form-line .text-content{
			width:120px;
		}
		body { margin:0}
		.line { position:relative; float:left; padding: 8px 0px 8px 50px;   border-left: 0 !important;}
		.line span { float:left}
		input { border:1px solid #888; vertical-align:middle}
		.file { position:absolute; left:90px; top:8px; display:none;filter:alpha(opacity=0);opacity:0}
		.file1 { padding:6px 13px; display:block; float:left; background:#67c23a; color:#fff; z-index:1; margin-left:5px; vertical-align:middle; cursor: pointer}
		.inputstyle {     width: 180px;height: 26px;border:1px solid #888; z-index:99}
		.fail{padding:0 5px;}
		.datagrid-body{
			height:85px !important;
		}
	</style>
</head>
<body class="easyui-layout">
<form id="childform" class="easyui-form" data-options="novalidate:true">
	<input id="id" type="hidden" />
	<div class="form-line clearfix" >
		<div class="fl">
			<span class="text-content"><em class="must">*</em>名称：</span>
			<input id="name" class="easyui-textbox" data-options="required:true,validType:'length[0,128]'" >
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>备案编码18位：</span>
			<input id="bianma" class="easyui-textbox" data-options="required:false,validType:'length[0,18]'">
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>道路id：</span>
			<input id="roadid" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'">
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>道路名称：</span>
			<input id="roadname" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>经度：</span>
			<input id="longitude" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" >
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>纬度：</span>
			<input id="latitude" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'"  >
		</div>


	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>厂商编码：</span>
			<input id="factoryid" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备私有编码：</span>
			<input id="bianma2" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >
		</div>
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>行政区划编码：</span>
			<input id="regionid" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>行政区划名称：</span>
			<input id="regionname" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >
		</div>
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>数据采集频率1或5分钟：</span>
			<input id="detfrequency" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >
		</div>
		<%--<div class="fl">--%>
			<%--<span class="text-content"><em class="must"></em>更新时间：</span>--%>
			<%--<input id="updatetime" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" >--%>
		<%--</div>--%>
	</div>


</form>
</form>
</body>
</html>
<script type="text/javascript">
var winId	= $.getUrlParam("winId");
var records = top.$("#"+winId).panel("options").data;
$(function(){
	$('#azsj').datebox({ editable:false });
	//加载下拉选项
	setTimeout(loadValue,500);
});
function loadValue(){
	if(records){
		$("#id").val(records.id);
		$("#name").textbox("setValue",records.name);
		$("#bianma").textbox("setValue",records.bianma);
		$("#roadid").textbox("setValue",records.roadid);
		$("#roadname").textbox("setValue",records.roadname);
		$("#longitude").textbox("setValue",records.longitude);
		$("#latitude").textbox("setValue",records.latitude);
		$("#regionid").textbox("setValue",records.regionid);
		$("#bianma2").textbox("setValue",records.bianma2);
		$("#factoryid").textbox("setValue",records.factoryid);
		$("#regionname").textbox("setValue",records.regionname);
		$("#detfrequency").textbox("setValue",records.detfrequency);
		$("#updatetime").textbox("setValue",records.updatetime);
	}
}

</script>
