<%@ 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="taskid" type="hidden" />
	<div class="form-line clearfix" >
		<div class="fl">
			<span class="text-content"><em class="must"></em>任务名称：</span> 
			<input id="taskname" class="easyui-textbox" data-options="required:false,validType:'length[0,60]'" missingMessage="任务名称必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>任务类型：</span> 
			<input id="tasktype" 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="tsaklevel" 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="taskdescribe" class="easyui-textbox" data-options="required:false,validType:'length[0,256]'" missingMessage="任务描述必填项" > 
		</div> 
	</div>
	<div class="form-line clearfix">
		<div class="fl">
			<span class="text-content"><em class="must"></em>任务模式：</span> 
			<input id="taskmodel" 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="daystarttime" 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="daystarttimebyhour" 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="channeltotals" 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="mondayruntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周一运行时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周一运行间隔时间：</span> 
			<input id="mondayrunbyhour" class="easyui-textbox" 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="tuesdayruntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周二运行时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周二运行间隔时间：</span> 
			<input id="tuesdayrunbyhour" class="easyui-textbox" 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="wednesdayuntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周三运行时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周三运行间隔时间：</span> 
			<input id="wednesdayunbyhour" class="easyui-textbox" 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="thursdayruntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周四运行时间点必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周四运行间隔时间：</span> 
			<input id="thursdayrunbyhour" class="easyui-textbox" 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="fridayruntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周五运行时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周五运行间隔时间：</span> 
			<input id="fridayrunbyhour" class="easyui-textbox" 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="saturdatruntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周六运行时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周六运行间隔时间：</span> 
			<input id="saturdatrunbyhour" class="easyui-textbox" 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="sundayruntime" class="easyui-textbox" data-options="required:false,validType:'length[0,5]'" missingMessage="周天运行时间必填项" > 
		</div> 
		<div class="fl">
			<span class="text-content"><em class="must"></em>周天运行间隔时间：</span> 
			<input id="sundayrunbyhour" class="easyui-textbox" 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="mondayswitch" 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="tuesdayswitch" 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="wednesdayswitch" 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="thursdayswitch" 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="fridayswitch" 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="saturdayswitch" 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="sundayswitch" 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="detectionswitch" 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="detectionstarttime" 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="createaccount" 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="createtime" 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="modifyaccount" 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="modifytime" 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="remarks" 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>扩展1：</span> 
			<input id="extend1" class="easyui-textbox" data-options="required:false,validType:'length[0,128]'" missingMessage="扩展1必填项" > 
		</div> 
		<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>
	<div class="form-line clearfix">
		<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 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){
		$("#taskid").val(records.taskid);
		$("#taskname").textbox("setValue",records.taskname);
		$("#tasktype").numberbox("setValue",records.tasktype);
		$("#tsaklevel").numberbox("setValue",records.tsaklevel);
		$("#taskdescribe").textbox("setValue",records.taskdescribe);
		$("#taskmodel").numberbox("setValue",records.taskmodel);
		$("#daystarttime").numberbox("setValue",records.daystarttime);
		$("#daystarttimebyhour").numberbox("setValue",records.daystarttimebyhour);
		$("#channeltotals").numberbox("setValue",records.channeltotals);
		$("#mondayruntime").textbox("setValue",records.mondayruntime);
		$("#mondayrunbyhour").textbox("setValue",records.mondayrunbyhour);
		$("#tuesdayruntime").textbox("setValue",records.tuesdayruntime);
		$("#tuesdayrunbyhour").textbox("setValue",records.tuesdayrunbyhour);
		$("#wednesdayuntime").textbox("setValue",records.wednesdayuntime);
		$("#wednesdayunbyhour").textbox("setValue",records.wednesdayunbyhour);
		$("#thursdayruntime").textbox("setValue",records.thursdayruntime);
		$("#thursdayrunbyhour").textbox("setValue",records.thursdayrunbyhour);
		$("#fridayruntime").textbox("setValue",records.fridayruntime);
		$("#fridayrunbyhour").textbox("setValue",records.fridayrunbyhour);
		$("#saturdatruntime").textbox("setValue",records.saturdatruntime);
		$("#saturdatrunbyhour").textbox("setValue",records.saturdatrunbyhour);
		$("#sundayruntime").textbox("setValue",records.sundayruntime);
		$("#sundayrunbyhour").textbox("setValue",records.sundayrunbyhour);
		$("#mondayswitch").numberbox("setValue",records.mondayswitch);
		$("#tuesdayswitch").numberbox("setValue",records.tuesdayswitch);
		$("#wednesdayswitch").numberbox("setValue",records.wednesdayswitch);
		$("#thursdayswitch").numberbox("setValue",records.thursdayswitch);
		$("#fridayswitch").numberbox("setValue",records.fridayswitch);
		$("#saturdayswitch").numberbox("setValue",records.saturdayswitch);
		$("#sundayswitch").numberbox("setValue",records.sundayswitch);
		$("#detectionswitch").numberbox("setValue",records.detectionswitch);
		$("#detectionstarttime").textbox("setValue",records.detectionstarttime);
		$("#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>
