<%@ 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="alarmeventid" type="hidden" />
	<div class="form-line clearfix" >
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警规则id：</span> 
			<input id="alarmruleid" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'" missingMessage="告警规则id必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警规则名称：</span> 
			<input id="alarmrulename" 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="alarmdevicetype" class="easyui-numberbox" data-options="required:false,validType:'length[0,18]'" missingMessage="告警设备类型必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警设备名称：</span> 
			<input id="alarmdevicename" 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="alarmdeviceid" 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="channelnum" class="easyui-numberbox" 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>告警类型：</span> 
			<input id="alarmtype" class="easyui-numberbox" data-options="required:false,validType:'length[0,10]'" missingMessage="告警类型必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警严重级别：</span> 
			<input id="alarmgrade" class="easyui-numberbox" 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>告警子类型编码：</span> 
			<input id="alarmsubtypecode" 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="alarmsubtypename" class="easyui-textbox" data-options="required:false,validType:'length[0,200]'" missingMessage="告警子类型编码名称必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警原因：</span> 
			<input id="alarmreason" class="easyui-textbox" data-options="required:false,validType:'length[0,254]'" missingMessage="告警原因必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警时间：</span> 
			<input id="alarmtime" 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="falutdtype" 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="falutdescription" class="easyui-textbox" data-options="required:false,validType:'length[0,254]'" missingMessage="故障描述必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>处理状态：</span> 
			<input id="processstatus" class="easyui-numberbox" data-options="required:false,validType:'length[0,10]'" missingMessage="处理状态必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>处理时间：</span> 
			<input id="processtime" 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="processaccount" 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="processdescription" class="easyui-textbox" data-options="required:false,validType:'length[0,254]'" missingMessage="处理描述必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>销警时间：</span> 
			<input id="unalarmtime" class="easyui-textbox" data-options="required:false,validType:'length[0,19]'" missingMessage="销警时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>完成处理时间：</span> 
			<input id="completetime" 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="completeaccount" class="easyui-textbox" data-options="required:false,validType:'length[0,32]'" missingMessage="完成处理人员编号必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>图片url路径：</span> 
			<input id="pictureurl" class="easyui-textbox" data-options="required:false,validType:'length[0,254]'" missingMessage="图片url路径必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>视频url路径：</span> 
			<input id="videourl" class="easyui-textbox" data-options="required:false,validType:'length[0,254]'" missingMessage="视频url路径必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>处理人员编号：</span> 
			<input id="relatetaskbatchnum" 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="relatetasknum" 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="accountnum" 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="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){
		$("#alarmeventid").val(records.alarmeventid);
		$("#alarmruleid").textbox("setValue",records.alarmruleid);
		$("#alarmrulename").textbox("setValue",records.alarmrulename);
		$("#alarmdevicetype").numberbox("setValue",records.alarmdevicetype);
		$("#alarmdevicename").textbox("setValue",records.alarmdevicename);
		$("#alarmdeviceid").textbox("setValue",records.alarmdeviceid);
		$("#channelnum").numberbox("setValue",records.channelnum);
		$("#alarmtype").numberbox("setValue",records.alarmtype);
		$("#alarmgrade").numberbox("setValue",records.alarmgrade);
		$("#alarmsubtypecode").textbox("setValue",records.alarmsubtypecode);
		$("#alarmsubtypename").textbox("setValue",records.alarmsubtypename);
		$("#alarmreason").textbox("setValue",records.alarmreason);
		$("#alarmtime").textbox("setValue",records.alarmtime);
		$("#falutdtype").textbox("setValue",records.falutdtype);
		$("#falutdescription").textbox("setValue",records.falutdescription);
		$("#processstatus").numberbox("setValue",records.processstatus);
		$("#processtime").textbox("setValue",records.processtime);
		$("#processaccount").textbox("setValue",records.processaccount);
		$("#processdescription").textbox("setValue",records.processdescription);
		$("#unalarmtime").textbox("setValue",records.unalarmtime);
		$("#completetime").textbox("setValue",records.completetime);
		$("#completeaccount").textbox("setValue",records.completeaccount);
		$("#pictureurl").textbox("setValue",records.pictureurl);
		$("#videourl").textbox("setValue",records.videourl);
		$("#relatetaskbatchnum").textbox("setValue",records.relatetaskbatchnum);
		$("#relatetasknum").textbox("setValue",records.relatetasknum);
		$("#accountnum").textbox("setValue",records.accountnum);
		$("#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>
