<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html>
<html>
<head lang="en">
	<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
 	<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
 	<%@include file="../../../../../frame/assets/header-all.jsp"%>
<style>
	.form-line .text-content{width: 100px;}
	body{
		overflow: hidden;
		padding: 15px;
	}
	#LIKEjiLianCode + span,
	#LIKEjiLianCode + span input{
		 width: 416px !important;
	}
	.help-span  {
		cursor: help;
	}
	.icon-help {
		display: inline-block;
		width: 16px;
		height: 16px;
		margin-left: -15px;
		margin-right: 3px;
		vertical-align: text-top;
	}
	.img-btn {
  		display: inline-block;
  		width: 25px;
  		height: 16px;
  		vertical-align: middle;
  		margin-left: -45px;
  		position: relative;
	}
</style>
</head>
<body>
<form id="childform" class="easyui-form" data-options="novalidate:true">
<div class="form-line clearfix" >
        <div class="fl">
            <span class="text-content"><em class="must"></em>车牌类型：</span> 
            <input id="hpzl" class="easyui-textbox" readonly="readonly"> 
        </div> 
        <div class="fl">
            <span class="text-content"><em class="must"></em>车牌号码：</span> 
            <input id="hphm" class="easyui-textbox" readonly="readonly"> 
        </div> 
    </div>
    <div class="form-line clearfix">
        <div class="fl">
            <span class="text-content"><em class="must"></em>车辆颜色：</span> 
            <input id="vehicleColor" class="easyui-textbox" readonly="readonly"> 
        </div> 
        <div class="fl">
            <span class="text-content"><em class="must"></em>车辆类型：</span> 
            <input id="vehicleType" class="easyui-textbox"  readonly="readonly"> 
        </div> 
    </div>
    <div class="form-line clearfix">
        <div class="fl">
            <span class="text-content"><em class="must"></em>管辖单位：</span> 
            <input id="managerDeptId" class="easyui-textbox" readonly="readonly"> 
        </div> 
        <div class="fl">
            <span class="text-content"><em class="must"></em>工号：</span> 
            <input id="jobNumber" class="easyui-textbox" readonly="readonly"> 
        </div> 
    </div>
    <div class="form-line clearfix">
        <div class="fl">
            <span class="text-content"><em class="must"></em>联系人：</span> 
            <input id="contactPeople" class="easyui-textbox"  readonly="readonly"> 
        </div> 
        <div class="fl">
            <span class="text-content"><em class="must"></em>联系电话：</span> 
            <input id="contactPhone" class="easyui-textbox"  readonly="readonly"> 
        </div> 
    </div>
    <div class="form-line clearfix">
        <div class="fl">
            <span class="text-content"><em class="must"></em>视频设备编号：</span> 
            <input id="sbbh" class="easyui-textbox" onChange="showVichannel()" readonly="readonly"> 
        </div> 
        <div class="fl">
            <span class="text-content"><em class="must"></em>通道号：</span> 
            <input id="tdbh" class="easyui-textbox" readonly="readonly" > 
        </div> 
    </div>
    <div class="form-line clearfix">
        <div class="fl">
            <span class="text-content"><em class="must"></em>资源类型：</span> 
            <input id="sourceType" class="easyui-textbox"  readonly="readonly"> 
        </div> 
        <div class="fl">
            <span class="text-content"><em class="must"></em>经度：</span> 
            <input id="jd" class="easyui-textbox"  readonly="readonly">
        </div> 
    </div>
    <div class="form-line clearfix">
    	<div class="fl">
            <span class="text-content"><em class="must"></em>纬度：</span> 
            <input id="wd" class="easyui-textbox"  readonly="readonly"> 
        </div> 
    </div>
    <div class="form-line clearfix hidden">
    	<input id="id" class="easyui-textbox" type="hidden"/>
    </div>
</form>
</body>
</html>
<script type="text/javascript">
var wId = $.getUrlParam("winId") ;
var records = top.$("#"+wId).panel("options").data;
$(function(){
	initForms();
});
function initForms(){
	if(records){
		$("#id").textbox("setValue",records.id||"");
        $("#hpzl").textbox("setValue",records.hpzl||"");
        $("#hphm").textbox("setValue",records.hphm||"");
       	/*
        $("#vehicleColor").textbox("setValue",records.vehicleColor && CommonData.cheColor[records.vehicleColor]);
        $("#vehicleType").textbox("setValue",records.vehicleType && CommonData.cheType[records.vehicleType]);
        $("#managerDeptId").textbox("setText",records.managerDeptName||"");
        $("#jobNumber").textbox("setValue",records.jobNumber);
        $("#contactPeople").textbox("setValue",records.contactPeople);
        $("#contactPhone").textbox("setValue",records.contactPhone);
        $("#channelId").textbox("setValue",records.channelId);
        $("#sourceType").textbox("setValue",records.sourceType && CommonData.resourceType[records.sourceType]);
        */
        $("#sbbh").textbox("setValue",records.sbbh);
        $('#jd').textbox('setValue',records.jd);
        $('#wd').textbox("setValue",records.wd);

	}else{
		var datenow = new Date();
	}
}
</script>
