<%@ 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="jobid" type="hidden" />
	<div class="form-line clearfix" >
		<div class="fl">
			<span class="text-content"><em class="must"></em>工单来源：</span> 
			<input id="jobsource" class="easyui-numberbox" data-options="required:false,validType:'length[0,10]'" missingMessage="工单来源必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>告警事件id：</span> 
			<input id="alarmeventid" 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> 
			<input id="faultdevicetype" 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="faultdevicename" class="easyui-textbox" data-options="required:false,validType:'length[0,100]'" missingMessage="故障设备名称必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>故障设备编号：</span> 
			<input id="faultdeviceid" 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>故障图片url：</span> 
			<input id="faultpictureurl" 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="faultgrade" 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="faulttype" 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="faultdescription" 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="faultoccurtime" 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="requirefinishtime" 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="actualfinishtime" 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="jobprocessstate" 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="jobreportcompany" 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="jobreportpeople" 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="jobreportphone" 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="jobreporttime" 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="jobacceptstate" 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="jobaccepttime" 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="jobacceptcompany" 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="jobacceptpeople" 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="jobacceptphone" 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="rejectcause" 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="ishangup" 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="hangupcause" class="easyui-textbox" data-options="required:false,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="faultacceptinfo" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="故障受理信息必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>反馈单位：</span> 
			<input id="feedbackcompany" 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="feedbackpeople" 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="feedbacktime" 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="feedbackphone" 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="feedbackstate" 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="feedbackinfo" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="反馈信息必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>是否延期：</span> 
			<input id="isdelay" 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="delaytime" 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="delaycause" class="easyui-textbox" data-options="required:false,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="delayforcompany" 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="delayforpeople" 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="delayfortime" 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="delayforstate" 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="delayfordescription" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="延期审批信息必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>确认故障类型：</span> 
			<input id="confirmfaulttype" 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="confirmfaultinfo" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="确认故障信息必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>维修天数：</span> 
			<input id="repairdays" 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>反馈确认单位：</span> 
			<input id="confirmcompany" 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="confirmpeople" 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="confirmtime" 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="confirmphone" 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="confirmstate" 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="confirmdescription" class="easyui-textbox" data-options="required:false,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="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){
		$("#jobid").val(records.jobid);
		$("#jobsource").numberbox("setValue",records.jobsource);
		$("#alarmeventid").textbox("setValue",records.alarmeventid);
		$("#faultdevicetype").numberbox("setValue",records.faultdevicetype);
		$("#faultdevicename").textbox("setValue",records.faultdevicename);
		$("#faultdeviceid").textbox("setValue",records.faultdeviceid);
		$("#channelnum").numberbox("setValue",records.channelnum);
		$("#faultpictureurl").textbox("setValue",records.faultpictureurl);
		$("#faultgrade").numberbox("setValue",records.faultgrade);
		$("#faulttype").numberbox("setValue",records.faulttype);
		$("#faultdescription").textbox("setValue",records.faultdescription);
		$("#faultoccurtime").textbox("setValue",records.faultoccurtime);
		$("#requirefinishtime").textbox("setValue",records.requirefinishtime);
		$("#actualfinishtime").textbox("setValue",records.actualfinishtime);
		$("#jobprocessstate").numberbox("setValue",records.jobprocessstate);
		$("#jobreportcompany").textbox("setValue",records.jobreportcompany);
		$("#jobreportpeople").textbox("setValue",records.jobreportpeople);
		$("#jobreportphone").textbox("setValue",records.jobreportphone);
		$("#jobreporttime").textbox("setValue",records.jobreporttime);
		$("#jobacceptstate").numberbox("setValue",records.jobacceptstate);
		$("#jobaccepttime").textbox("setValue",records.jobaccepttime);
		$("#jobacceptcompany").textbox("setValue",records.jobacceptcompany);
		$("#jobacceptpeople").textbox("setValue",records.jobacceptpeople);
		$("#jobacceptphone").textbox("setValue",records.jobacceptphone);
		$("#rejectcause").textbox("setValue",records.rejectcause);
		$("#ishangup").numberbox("setValue",records.ishangup);
		$("#hangupcause").textbox("setValue",records.hangupcause);
		$("#faultacceptinfo").textbox("setValue",records.faultacceptinfo);
		$("#feedbackcompany").textbox("setValue",records.feedbackcompany);
		$("#feedbackpeople").textbox("setValue",records.feedbackpeople);
		$("#feedbacktime").textbox("setValue",records.feedbacktime);
		$("#feedbackphone").textbox("setValue",records.feedbackphone);
		$("#feedbackstate").numberbox("setValue",records.feedbackstate);
		$("#feedbackinfo").textbox("setValue",records.feedbackinfo);
		$("#isdelay").numberbox("setValue",records.isdelay);
		$("#delaytime").textbox("setValue",records.delaytime);
		$("#delaycause").textbox("setValue",records.delaycause);
		$("#delayforcompany").textbox("setValue",records.delayforcompany);
		$("#delayforpeople").textbox("setValue",records.delayforpeople);
		$("#delayfortime").textbox("setValue",records.delayfortime);
		$("#delayforstate").numberbox("setValue",records.delayforstate);
		$("#delayfordescription").textbox("setValue",records.delayfordescription);
		$("#confirmfaulttype").numberbox("setValue",records.confirmfaulttype);
		$("#confirmfaultinfo").textbox("setValue",records.confirmfaultinfo);
		$("#repairdays").textbox("setValue",records.repairdays);
		$("#confirmcompany").textbox("setValue",records.confirmcompany);
		$("#confirmpeople").textbox("setValue",records.confirmpeople);
		$("#confirmtime").textbox("setValue",records.confirmtime);
		$("#confirmphone").textbox("setValue",records.confirmphone);
		$("#confirmstate").textbox("setValue",records.confirmstate);
		$("#confirmdescription").textbox("setValue",records.confirmdescription);
		$("#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>
