<%@ 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:120px;
	}
	</style>
</head>
<body class="easyui-layout">
<form id="childform" class="easyui-form" data-options="novalidate:true">
	<input id="ruleid" type="hidden" />
	<div class="form-line clearfix" >
		<div class="fl">
			<span class="text-content"><em class="must"></em>参数配置名称：</span> 
			<input id="taskid" 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="ruleruntime" 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="nosignalswitch" 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="imgclearswitch" 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="imgclearunderlevel" 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="imgclearupperlevel" 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="imgcontrastswitch" 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="imgcontrastunderlevel" 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="imgcontrastupperlevel" 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="imgcolorswitch" 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="imgcolordeviation" 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="imglightswitch" 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="imglightunderlevel" 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="imglightupperlevel" 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="videofreezeswitch" class="easyui-numberbox" data-options="required:false,validType:'length[0,5]'" missingMessage="视频冻结检测开关必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>spdjcd：</span> 
			<input id="videofreezedegree" class="easyui-textbox" data-options="required:false,validType:'length[0,20]'" missingMessage="spdjcd必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>镜头抖动检测开关：</span> 
			<input id="videojitterswitch" 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="videojitterdegree" 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="videoupheavalswitch" 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="videoupheavaldegree" 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="videocodeerrorswitch" 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="videocodeerrordegree" 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="videonoiseswitch" 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="videonoisedegree" 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="videorollstripeswitch" 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="videorollstropedegree" 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="createaccount" 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="createtime" class="easyui-textbox" data-options="required:false,validType:'length[0,19]'" missingMessage="创建日期必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>修改人员：</span> 
			<input id="modifyaccount" 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="modifytime" class="easyui-textbox" data-options="required:false,validType:'length[0,19]'" missingMessage="修改日期必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>备注：</span> 
			<input id="remarks" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="备注必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>扩展1：</span> 
			<input id="extend1" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="扩展1必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>扩展2：</span> 
			<input id="extend2" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="扩展2必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>扩展3：</span> 
			<input id="extend3" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="扩展3必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>扩展4：</span> 
			<input id="extend4" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="扩展4必填项" > 
		</div> 
	</div>

	<div class="form-line hidden">
		 
	</div>
</form>
</body>
</html>
<script type="text/javascript">
var winId	= $.getUrlParam("winId");
var records = top.$("#"+winId).panel("options").data;
$(function(){
	//加载下拉选项
	setTimeout(loadValue,500);
});
function loadValue(){
	if(records){
		$("#ruleid").val(records.ruleid);
		$("#taskid").textbox("setValue",records.taskid);
		$("#ruleruntime").textbox("setValue",records.ruleruntime);
		$("#nosignalswitch").numberbox("setValue",records.nosignalswitch);
		$("#imgclearswitch").numberbox("setValue",records.imgclearswitch);
		$("#imgclearunderlevel").textbox("setValue",records.imgclearunderlevel);
		$("#imgclearupperlevel").textbox("setValue",records.imgclearupperlevel);
		$("#imgcontrastswitch").numberbox("setValue",records.imgcontrastswitch);
		$("#imgcontrastunderlevel").textbox("setValue",records.imgcontrastunderlevel);
		$("#imgcontrastupperlevel").textbox("setValue",records.imgcontrastupperlevel);
		$("#imgcolorswitch").numberbox("setValue",records.imgcolorswitch);
		$("#imgcolordeviation").textbox("setValue",records.imgcolordeviation);
		$("#imglightswitch").numberbox("setValue",records.imglightswitch);
		$("#imglightunderlevel").textbox("setValue",records.imglightunderlevel);
		$("#imglightupperlevel").textbox("setValue",records.imglightupperlevel);
		$("#videofreezeswitch").numberbox("setValue",records.videofreezeswitch);
		$("#videofreezedegree").textbox("setValue",records.videofreezedegree);
		$("#videojitterswitch").numberbox("setValue",records.videojitterswitch);
		$("#videojitterdegree").textbox("setValue",records.videojitterdegree);
		$("#videoupheavalswitch").numberbox("setValue",records.videoupheavalswitch);
		$("#videoupheavaldegree").textbox("setValue",records.videoupheavaldegree);
		$("#videocodeerrorswitch").numberbox("setValue",records.videocodeerrorswitch);
		$("#videocodeerrordegree").textbox("setValue",records.videocodeerrordegree);
		$("#videonoiseswitch").numberbox("setValue",records.videonoiseswitch);
		$("#videonoisedegree").textbox("setValue",records.videonoisedegree);
		$("#videorollstripeswitch").numberbox("setValue",records.videorollstripeswitch);
		$("#videorollstropedegree").textbox("setValue",records.videorollstropedegree);
		$("#createaccount").textbox("setValue",records.createaccount);
		$("#createtime").textbox("setValue",records.createtime);
		$("#modifyaccount").textbox("setValue",records.modifyaccount);
		$("#modifytime").textbox("setValue",records.modifytime);
		$("#remarks").textbox("setValue",records.remarks);
		$("#extend1").textbox("setValue",records.extend1);
		$("#extend2").textbox("setValue",records.extend2);
		$("#extend3").textbox("setValue",records.extend3);
		$("#extend4").textbox("setValue",records.extend4);

	}else{
		
	}
}
/*
var xx1 = $("#xx1").textbox("getValue");//文本
var xx2 = $("#xx2").combobox("getValue");//下拉
var xx3 = $("#xx3").datetimebox("getValue");//日期
var xx4 = $("#xx4").numberbox("getValue");//数字
$('#xx5').combobox({  
	url:'xtclAction!select_Xtcl.do?csdl=xx5&page=1&rows=1000', 
	textField:"csmc",  
	valueField:"csdm",
	panelWidth:148,
	loadFilter:function(data){
		//data.unshift({"csmc":"选择","csdm":""});
		return data;
	}
});
$("#xx6").textbox("setValue",records.xx6);
$("#xx7").combobox("setValue",records.xx7);
$("#xx8").combobox("setValue",records.xx8);
$("#xx9").datetimebox("setValue",$.getNowTime());
$("#xx10").datetimebox("setValue",$.getTodayStart('00:00:00',-3));//往前推3天  +'00:00:00'
$("#xx11").datetimebox("setValue",$.getTodayEnd());//当天 +'23:59:59'	
$("#xx12").datetimebox("setValue",$.getDateNumToStr(records.xx12));
$("#xx13").numberbox("setValue",records.xx13);
*/
</script>
