<%@ 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"%>
	<style>
	.form-line .text-content{
		width:150px;
	}
	.formItemLine{    
	display: inline-block;
    vertical-align: middle;
    width: 818px;
    height: 1px;
    border-top: 1px solid green;
    }
	label{margin-right: 20px;}
	[type="checkbox"]{margin-right:5px;vertical-align: middle;}
	.formItem{padding-left: 30px;    padding-top: 20px;   padding-bottom: 8px;  color: green;}
	</style>

</head>
<body class="easyui-layout">
<form id="childform" class="easyui-form" data-options="novalidate:true" >
	<input id="archivevideoid" type="hidden" />
    <div  style="height: 500px; width: 100%;  overflow-y: auto;overflow-x: hidden">

	<div  class="formItem"><span  style="display:inline-block;verticle-align:middle;width:90px;">设备基本信息</span><span class="formItemLine"></span></div>
	<div class="form-line clearfix" >
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备名称：</span> 
			<input id="channelname" class="easyui-textbox" data-options="required:true,validType:'length[0,80]'" missingMessage="通道名称必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备厂商：</span> 
			<input id="videofactory" class="easyui-numberbox" data-options="required:true,validType:'length[0,500]'" missingMessage="设备厂商必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>(外部)设备编码：</span> 
			<input id="outsidecode" class="easyui-textbox" data-options="required:true,validType:'length[0,20]'" missingMessage="外部设备编码必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">		
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机类型：</span> 
			<input id="cameratype" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="摄像机类型必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机补光属性：</span> 
			<input id="cameralightproperty" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="摄像机补光属性必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机MAC地址：</span> 
			<input id="videomacaddress" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="摄像机MAC地址必填项" > 
		</div> 		 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备IPV6信息：</span> 
			<input id="videoipv6" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="设备IPV6信息必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备型号：</span> 
			<input id="videomodel" class="easyui-textbox" data-options="required:false,validType:'length[0,50]'" missingMessage="设备型号必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>编码格式：</span> 
			<input id="videocodeformat" class="easyui-numberbox" data-options="required:false,validType:'length[0,50]'" missingMessage="编码格式必填项" > 
		</div>
	</div>
	<div class="form-line clearfix">	 		 			
		<div class="fl">
			<span class="text-content"><em class="must"></em>视频信号类型：</span> 
			<input id="videosignaltype" class="easyui-textbox" data-options="required:false,validType:'length[0,10]'" missingMessage="视频信号类型必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>视频分辨率：</span> 
			<input id="videoresolution" class="easyui-textbox" data-options="required:false,validType:'length[0,10]'" missingMessage="视频分辨率必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>键盘编号：</span> 
			<input id="keyboardnum" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="键盘编号必填项" > 
		</div>
	</div>
	
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>联网属性：</span> 
			<input id="networkproperty" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="联网属性必填项" > 
		</div> 
		<div class="fl">  
			<span class="text-content"><em class="must"></em>摄像机分辨率：</span> 
			<input id="cameraresolution" class="easyui-combobox" data-options="multiple:true"> 
		</div> 
	</div>
	
	<div  class="formItem"><span  style="display:inline-block;verticle-align:middle;width:90px;">建设管理信息</span><span class="formItemLine"></span></div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>摄像机建设部门：</span> 
			<input id="builddepartment" class="easyui-numberbox" data-options="required:true,validType:'length[0,500]'" missingMessage="摄像机建设部门必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>所属行政区域编码：</span> 
			<input id="areacode" class="easyui-textbox" data-options="required:true,validType:'length[0,20]'" missingMessage="所属行政区域编码必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>保密属性：</span> 
			<input id="secreyattribute" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="保密属性必填项" > 
		</div> 				
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>所属辖区公安机关名称：</span> 
			<input id="areapolicename" class="easyui-textbox" data-options="required:true,validType:'length[0,100]'" missingMessage="所属辖区公安机关名称必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>所属辖区公安机关编码：</span> 
			<input id="areapolicecode" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="所属辖区公安机关编码必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>使用属性：</span> 
			<input id="useattribute" class="easyui-combobox" data-options="multiple:true"  > 
		</div>
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>监控点类型：</span> 
			<input id="videopointtype" class="easyui-numberbox" data-options="required:true,validType:'length[0,50]'" missingMessage="监控点类型必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must">*</em>摄像机所属警种：</span> 
			<input id="videopolicetype" class="easyui-numberbox" data-options="required:true,validType:'length[0,5]'" missingMessage="摄像机所属警种必填项" > 
		</div> 		
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机功能类型：</span> 
			<input id="videofunctiontype" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="摄像机功能类型必填项" > 
		</div> 	 
	</div>
	
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>管理单位名称：</span> 
			<input id="manageunitname" class="easyui-textbox" data-options="required:true,validType:'length[0,100]'" missingMessage="管理单位名称必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>管理单位联系人：</span> 
			<input id="manageunitaccount" class="easyui-textbox" data-options="required:true,validType:'length[0,40]'" missingMessage="管理单位联系人必填项" > 
		</div> 	
		<div class="fl">
			<span class="text-content"><em class="must">*</em>管理单位联系电话：</span> 
			<input id="manageunitphone" class="easyui-textbox" data-options="required:true,validType:'length[0,40]'" missingMessage="管理单位联系电话必填项" > 
		</div> 		
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>管理单位编码：</span> 
			<input id="manageunitcode" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="管理单位编码必填项" > 
		</div>

	<!-- 
		<span class="text-content" style="line-height: 1;height:40px">使用属性：</span>
		<label><input type="checkbox"  name="useattribute" value="1" >公安机关</label>
		<label><input type="checkbox"  name="useattribute" value="2" >环保部门</label>
		<label><input type="checkbox"  name="useattribute" value="3" >文博部门</label>
		<label><input type="checkbox"  name="useattribute" value="4" >医疗部门</label>
		<label><input type="checkbox"  name="useattribute"value="5" >旅游管理</label>		
		<label><input type="checkbox"  name="useattribute"value="6" >新闻广电</label>
		<label><input type="checkbox"  name="useattribute"value="11" >金融部门</label>
		<label><input type="checkbox"  name="useattribute"value="12" >交通部门</label>
		<label><input type="checkbox"  name="useattribute" value="14" >水利部门</label>
		<label><input type="checkbox"  name="useattribute" value="15" >林业部门</label>
		<br/>
		<label><input type="checkbox"  name="useattribute"value="7" >食品医药监督管理部门</label>
		<label><input type="checkbox"  name="useattribute" value="13" >住房和城乡建设部门</label>	
		<label><input type="checkbox"  name="useattribute" value="16" >安全生产监督部门</label>
		<label><input type="checkbox"  name="useattribute"value="8" >教育管理部门</label>
		<label><input type="checkbox"  name="useattribute"value="17" >市政市容委</label>
		<label><input type="checkbox"  name="useattribute"value="9" >检察院</label>
		<label><input type="checkbox"  name="useattribute"value="10" >法院</label>		
		<label><input type="checkbox"  name="useattribute"value="18" >国土局</label>
		-->
	</div> 
	

	<div  class="formItem"><span style="display:inline-block;verticle-align:middle;width:90px;">设备位置信息</span><span class="formItemLine"></span></div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>安装地址：</span> 
			<input id="videoinstalladdress" class="easyui-textbox" data-options="required:true,validType:'length[0,300]'" missingMessage="安装地址必填项" > 
		</div> 
		<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,40]'" missingMessage="经度必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>纬度：</span> 
			<input id="dimension" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="纬度必填项" > 
		</div>	 	
	</div>
	
	<div class="form-line clearfix">	
		<div class="fl">
			<span class="text-content"><em class="must"></em>点位俗称：</span> 
			<input id="videopointname" class="easyui-textbox" data-options="required:false,validType:'length[0,100]'" missingMessage="点位俗称必填项" > 
		</div> 		 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机安装时间：</span> 
			<input id="monitorinstalltime" class="easyui-datetimebox" data-options="required:false,validType:'length[0,19]'" missingMessage="摄像机可视距离必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>室外、内：</span> 
			<input id="installpositiontype" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="摄像机安装位置室外、室内属性必填项" > 
		</div>				 	 	
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>摄像机位置类型：</span> 
			<input id="camerapositiontype" class="easyui-numberbox" data-options="required:true,validType:'length[0,500]'" missingMessage="摄像机位置类型扩展必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机监视方位：</span> 
			<input id="monitorposition" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="摄像机监视方位必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机监视角度：</span> 
			<input id="monitordirection" class="easyui-textbox" data-options="required:false,validType:'length[0,20]'" missingMessage="摄像机监视方向必填项" > 
		</div>
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机安装高度：</span> 
			<input id="monitorininstallhight" class="easyui-textbox" data-options="required:false,validType:'length[0,20]'" missingMessage="摄像机安装高度必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机可视距离：</span> 
			<input id="monitorlookrange" class="easyui-textbox" data-options="required:false,validType:'length[0,20]'" missingMessage="摄像机可视距离必填项" > 
		</div> 		
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机场景预设照片URL：</span> 
			<input id="monitorscenepicurl" class="easyui-textbox" data-options="required:false,validType:'length[0,100]'" missingMessage="摄像机可视距离必填项" > 
		</div> 			 
	</div>
	
	
	<div  class="formItem"><span style="display:inline-block;verticle-align:middle;width:90px;">设备运维信息</span><span class="formItemLine"></span></div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备ip信息：</span> 
			<input id="videoip" class="easyui-textbox" data-options="required:true,validType:'length[0,40]'" missingMessage="设备ip信息必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备端口：</span> 
			<input id="videoport" class="easyui-textbox" data-options="required:true,validType:'length[0,20]'" missingMessage="设备端口必填项" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must">*</em>承建单位区划编码：</span> 
			<input id="buildcompany" class="easyui-textbox" data-options="required:true,validType:'length[0,40]'" missingMessage="承建单位必填项" > 
		</div> 		
	</div>
	<div class="form-line clearfix">	
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备用户名：</span> 
			<input id="videousername" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="设备用户名必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备口令：</span> 
			<input id="videopassword" class="easyui-textbox" data-options="required:true,validType:'length[0,40]'" missingMessage="设备口令必填项" > 
		</div> 			
		<div class="fl">
			<span class="text-content"><em class="must">*</em>承建单位名称：</span> 
			<input id="buildcompanyname" class="easyui-textbox" data-options="required:true,validType:'length[0,128]'" missingMessage="承建单位必填项" > 
		</div> 	
	</div>
	<div class="form-line clearfix">	
		<div class="fl">
			<span class="text-content"><em class="must"></em>对应存储设备ip：</span> 
			<input id="storageip" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="运维单位必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>对应存储设备通道：</span> 
			<input id="storagechannel" class="easyui-textbox" data-options="required:false,validType:'length[0,10]'" missingMessage="运维单位必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>运维单位区划编码：</span> 
			<input id="operationcompany" class="easyui-textbox" data-options="required:true,validType:'length[0,40]'" missingMessage="运维单位必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>硬盘录像机用户名：</span> 
			<input id="dvrusername" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="硬盘录像机用户名必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>硬盘录像机密码：</span> 
			<input id="dvrpassword" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="硬盘录像机密码必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>运维单位名称：</span> 
			<input id="operationcompanyname" class="easyui-textbox" data-options="required:true,validType:'length[0,128]'" missingMessage="运维单位必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备状态：</span> 
			<input id="videostate" class="easyui-textbox" data-options="required:false,validType:'length[0,10]'" missingMessage="设备状态必填项" > 
		</div>	
		<div class="fl">
			<span class="text-content"><em class="must"></em>录像保存天数：</span> 
			<input id="recordkeepdays" class="easyui-textbox" data-options="required:false,validType:'length[0,20]'" missingMessage="运维单位必填项" > 
		</div> 
	</div>
	

	<div  class="formItem"><span style="display:inline-block;verticle-align:middle;width:90px;">共享属性</span><span class="formItemLine"></span></div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>是否对外共享：</span> 
			<input id="isshare" class="easyui-textbox" data-options="required:false,validType:'length[0,10]'" missingMessage="是否对外共享必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>是否接入三级平台：</span> 
			<input id="isjointhreesystem" class="easyui-textbox" data-options="required:false,validType:'length[0,10]'" missingMessage="是否接入三级平台必填项" > 
		</div> 
		
		 
	</div>
	<!-- <div class="form-line clearfix">		
		<div class="fl">
			<span class="text-content"><em class="must"></em>建设管理单位id：</span> 
			<input id="departmentid" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="建设管理单位id必填项" > 
		</div>	
	</div> -->
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>备注：</span> 
			<textarea id="remarks"  style="width:466px;height:80px"></textarea>  			
		</div> 
	</div>
</div>
	
</form>
</body>
</html>
<script type="text/javascript">
var winId	= $.getUrlParam("winId");
var records = top.$("#"+winId).panel("options").data;
$(function(){
	
	$('#videofactory').combobox({  
		 url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videofactory',
		 textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:"" 
	});
	$('#networkproperty').combobox({  
		 url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=networkproperty',
		 textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:"" 
	});
	$('#videostate').combobox({  
		 url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videostate',
		 textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""  
	});
	$('#cameratype').combobox({  
		 url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=cameratype',
		 textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#videocodeformat').combobox({  
		 url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videocodeformat',
		 textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:"" 
	});
	$('#videosignaltype').combobox({  
		 url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videosignaltype',
		 textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#videoresolution').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videoresolution',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#builddepartment').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=builddepartment',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#videopointtype').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videopointtype',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#secreyattribute').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=secreyattribute',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#videopolicetype').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videopolicetype',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:"" 
	});
	$('#videofunctiontype').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=videofunctiontype',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""  
	});
	$('#monitorposition').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=monitorposition',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#installpositiontype').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=installpositiontype',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#camerapositiontype').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=camerapositiontype',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#isshare').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=isshare',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#isjointhreesystem').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=isjointhreesystem',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#cameralightproperty').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=cameralightproperty',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#cameraresolution').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=cameraresolution',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	$('#useattribute').combobox({  
		url:'ywarchivevideoinfoAction!queryByColumnname.do?columnname=useattribute',
		textField:"codename",  
		 valueField:"code",
		 panelWidth:148,
		 value:""
	});
	
	//加载下拉选项
	setTimeout(loadValue,500);
});
function loadValue(){
	if(records){
		$("#archivevideoid").val(records.archivevideoid);
		$("#videoid").textbox("setValue",records.videoid);
		$("#videonum").textbox("setValue",records.videonum);
		$("#channelnum").numberbox("setValue",records.channelnum);
		$("#channelname").textbox("setValue",records.channelname);
		$("#networkproperty").combobox("setValue",records.networkproperty);
		$("#outsidecode").textbox("setValue",records.outsidecode);
		$("#videofactory").combobox("setValue",records.videofactory);
		$("#videomodel").textbox("setValue",records.videomodel);
		$("#videoresolution").combobox("setValue",records.videoresolution);
		$("#videosignaltype").combobox("setValue",records.videosignaltype);
		$("#cameratype").combobox("setValue",records.cameratype);
		$("#cameralightproperty").combobox("setValue",records.cameralightproperty);
		$("#cameraresolution").combobox("setValue",records.cameraresolution.split(","));
		$("#videocodeformat").combobox("setValue",records.videocodeformat);
		$("#videomacaddress").textbox("setValue",records.videomacaddress);
		$("#departmentid").textbox("setValue",records.departmentid);
		$("#builddepartment").combobox("setValue",records.builddepartment);
		$("#areacode").textbox("setValue",records.areacode);
		$("#secreyattribute").combobox("setValue",records.secreyattribute);
		$("#videofunctiontype").combobox("setValue",records.videofunctiontype);
		$("#areapolicecode").textbox("setValue",records.areapolicecode);
		$("#areapolicename").textbox("setValue",records.areapolicename);
		$("#videopolicetype").combobox("setValue",records.videopolicetype);
		$("#videopointtype").combobox("setValue",records.videopointtype);
		$("#manageunitcode").textbox("setValue",records.manageunitcode);
		$("#manageunitname").textbox("setValue",records.manageunitname);
		$("#manageunitphone").textbox("setValue",records.manageunitphone);
		$("#manageunitaccount").textbox("setValue",records.manageunitaccount);
		$("#useattribute").combobox("setValue",records.useattribute.split("/"));
		$("#videoinstalladdress").textbox("setValue",records.videoinstalladdress);
		$("#videopointname").textbox("setValue",records.videopointname);
		$("#longitude").textbox("setValue",records.longitude);
		$("#dimension").textbox("setValue",records.dimension);
		$("#camerapositiontype").combobox("setValue",records.camerapositiontype);
		$("#installpositiontype").combobox("setValue",records.installpositiontype);
		$("#monitorposition").combobox("setValue",records.monitorposition);
		$("#monitordirection").textbox("setValue",records.monitordirection);
		$("#monitorininstallhight").textbox("setValue",records.monitorininstallhight);
		$("#monitorlookrange").textbox("setValue",records.monitorlookrange);
		$("#monitorinstalltime").datetimebox("setValue",records.monitorinstalltime);
		$("#monitorscenepicurl").textbox("setValue",records.monitorscenepicurl);
		$("#videoip").textbox("setValue",records.videoip);
		$("#videoipv6").textbox("setValue",records.videoipv6);
		$("#videoport").textbox("setValue",records.videoport);
		$("#videousername").textbox("setValue",records.videousername);
		$("#videopassword").textbox("setValue",records.videopassword);
		$("#buildcompany").textbox("setValue",records.buildcompany);
		$("#buildcompanyname").textbox("setValue",records.buildcompanyname);
		$("#operationcompany").textbox("setValue",records.operationcompany);
		$("#operationcompanyname").textbox("setValue",records.operationcompanyname);
		$("#storageip").textbox("setValue",records.storageip);
		$("#storagechannel").textbox("setValue",records.storagechannel);
		$("#recordkeepdays").textbox("setValue",records.recordkeepdays);
		$("#dvrusername").textbox("setValue",records.dvrusername);
		$("#dvrpassword").textbox("setValue",records.dvrpassword);
		$("#videostate").combobox("setValue",records.videostate);
		$("#isshare").combobox("setValue",records.isshare);
		$("#isjointhreesystem").combobox("setValue",records.isjointhreesystem);
		$("#keyboardnum").textbox("setValue",records.keyboardnum);
		$("#remarks").val(records.remarks);


		/* var chosed = records.useattribute;
		var ck = $('input[name="useattribute"]');
		$.each(ck,function(){			
			var val = $(this).val();
			if(chosed.indexOf(val)!=-1){
				$(this).prop('checked',true)
			}	
		})
		
		var chosedcam = records.cameraresolution;
		var ckcam = $('input[name="cameraresolution"]');
		$.each(ckcam,function(){			
			var val = $(this).val();
			if(chosedcam.indexOf(val)!=-1){
				$(this).prop('checked',true)
			}	
		}) */

	}else{
		
	}
}

</script>
