<%@ 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 readonly  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 readonly id="channelname" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备厂商：</span> 
			<input readonly  id="videofactory" class="easyui-numberbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>(外部)设备编码：</span> 
			<input readonly  id="outsidecode" class="easyui-textbox" > 
		</div> 
	</div>
	<div class="form-line clearfix">		
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机类型：</span> 
			<input readonly  id="cameratype" class="easyui-numberbox"  > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机补光属性：</span> 
			<input readonly  id="cameralightproperty" class="easyui-numberbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机MAC地址：</span> 
			<input readonly  id="videomacaddress" class="easyui-textbox"  > 
		</div> 		 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备IPV6信息：</span> 
			<input readonly  id="videoipv6" class="easyui-textbox" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备型号：</span> 
			<input readonly  id="videomodel" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>编码格式：</span> 
			<input readonly  id="videocodeformat" class="easyui-numberbox" > 
		</div>
	</div>
	<div class="form-line clearfix">	 		 			
		<div class="fl">
			<span class="text-content"><em class="must"></em>视频信号类型：</span> 
			<input readonly  id="videosignaltype" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>视频分辨率：</span> 
			<input readonly  id="videoresolution" class="easyui-textbox"  > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>键盘编号：</span> 
			<input readonly  id="keyboardnum" class="easyui-textbox" > 
		</div>
	</div>
	
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>联网属性：</span> 
			<input readonly  id="networkproperty" class="easyui-numberbox" > 
		</div> 
		<div class="fl">  
			<span class="text-content"><em class="must"></em>摄像机分辨率：</span> 
			<input readonly  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 readonly  id="builddepartment" class="easyui-numberbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>所属行政区域编码：</span> 
			<input readonly  id="areacode" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>保密属性：</span> 
			<input readonly  id="secreyattribute" class="easyui-numberbox" > 
		</div> 				
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>所属辖区公安机关名称：</span> 
			<input readonly  id="areapolicename" class="easyui-textbox" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>所属辖区公安机关编码：</span> 
			<input readonly  id="areapolicecode" class="easyui-textbox"  > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>使用属性：</span> 
			<input readonly  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 readonly  id="videopointtype" class="easyui-numberbox" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must">*</em>摄像机所属警种：</span> 
			<input readonly  id="videopolicetype" class="easyui-numberbox" > 
		</div> 		
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机功能类型：</span> 
			<input readonly  id="videofunctiontype" class="easyui-numberbox" > 
		</div> 	 
	</div>
	
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>管理单位名称：</span> 
			<input readonly  id="manageunitname" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>管理单位联系人：</span> 
			<input readonly  id="manageunitaccount" class="easyui-textbox" > 
		</div> 	
		<div class="fl">
			<span class="text-content"><em class="must">*</em>管理单位联系电话：</span> 
			<input readonly  id="manageunitphone" class="easyui-textbox" > 
		</div> 		
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>管理单位编码：</span> 
			<input readonly  id="manageunitcode" class="easyui-textbox" > 
		</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 readonly  id="videoinstalladdress" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>经度：</span> 
			<input readonly  id="longitude" class="easyui-textbox"> 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>纬度：</span> 
			<input readonly  id="dimension" class="easyui-textbox" > 
		</div>	 	
	</div>
	
	<div class="form-line clearfix">	
		<div class="fl">
			<span class="text-content"><em class="must"></em>点位俗称：</span> 
			<input readonly  id="videopointname" class="easyui-textbox" > 
		</div> 		 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机安装时间：</span> 
			<input readonly  id="monitorinstalltime" class="easyui-datetimebox" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must"></em>室外、内：</span> 
			<input readonly  id="installpositiontype" class="easyui-numberbox" > 
		</div>				 	 	
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must">*</em>摄像机位置类型：</span> 
			<input readonly  id="camerapositiontype" class="easyui-numberbox"> 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机监视方位：</span> 
			<input readonly  id="monitorposition" class="easyui-numberbox"  > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机监视角度：</span> 
			<input readonly  id="monitordirection" class="easyui-textbox" > 
		</div>
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机安装高度：</span> 
			<input readonly  id="monitorininstallhight" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机可视距离：</span> 
			<input readonly  id="monitorlookrange" class="easyui-textbox" > 
		</div> 		
		<div class="fl">
			<span class="text-content"><em class="must"></em>摄像机场景预设照片URL：</span> 
			<input readonly  id="monitorscenepicurl" class="easyui-textbox"  > 
		</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 readonly  id="videoip" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备端口：</span> 
			<input readonly  id="videoport" class="easyui-textbox" > 
		</div>
		<div class="fl">
			<span class="text-content"><em class="must">*</em>承建单位区划编码：</span> 
			<input readonly  id="buildcompany" class="easyui-textbox"> 
		</div> 		
	</div>
	<div class="form-line clearfix">	
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备用户名：</span> 
			<input readonly  id="videousername" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>设备口令：</span> 
			<input readonly  id="videopassword" class="easyui-textbox" > 
		</div> 			
		<div class="fl">
			<span class="text-content"><em class="must">*</em>承建单位名称：</span> 
			<input readonly  id="buildcompanyname" class="easyui-textbox" > 
		</div> 	
	</div>
	<div class="form-line clearfix">	
		<div class="fl">
			<span class="text-content"><em class="must"></em>对应存储设备ip：</span> 
			<input readonly  id="storageip" class="easyui-textbox"  > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>对应存储设备通道：</span> 
			<input readonly  id="storagechannel" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>运维单位区划编码：</span> 
			<input readonly  id="operationcompany" class="easyui-textbox" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>硬盘录像机用户名：</span> 
			<input readonly  id="dvrusername" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>硬盘录像机密码：</span> 
			<input readonly  id="dvrpassword" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must">*</em>运维单位名称：</span> 
			<input readonly  id="operationcompanyname" class="easyui-textbox"> 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>设备状态：</span> 
			<input readonly  id="videostate" class="easyui-textbox" > 
		</div>	
		<div class="fl">
			<span class="text-content"><em class="must"></em>录像保存天数：</span> 
			<input readonly  id="recordkeepdays" class="easyui-textbox" > 
		</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 readonly  id="isshare" class="easyui-textbox" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>是否接入三级平台：</span> 
			<input readonly  id="isjointhreesystem" class="easyui-textbox" > 
		</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(){
	
	/* $('#detectionswitch').combobox({
		 url:'xtclAction!query_Xtcl.do?csdl=ywTaskEnable',
		 textField:"csmc",  
		 valueField:"csdm",
		 panelWidth:148,
		 value:"1" 
	}); */
	
	$('#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>
