<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.add_task" EnableEventValidation="false" Codebehind="add_task.aspx.vb" %>
<%@ Import namespace="work_plan_web_deploy"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD id="HEAD1" runat="server">
		<title>工作情况登记</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="site_css.css" type="text/css" rel="stylesheet">
         <script type="text/javascript" src="js/DatePicker/WdatePicker.js" language="javascript"></script>
         <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
			<style type="text/css">
			.STYLE1 { COLOR: #999999 }
			.STYLE2 { COLOR: #ff0000 }
			.STYLE4 { COLOR: #ff0000 }
			.STYLE6 { COLOR: #ff0000 }
			.STYLE7 { COLOR: #ff0000 }

			</style>
			<script language="javascript">
			    function setValue(obj) {
			        var d = new Date();
			        var timeStr;
			        var m = (d.getMonth() + 1) + "";
			        if (m.length == 1)
			            m = '0' + m;
			        var _d = (d.getDate()) + "";
			        if (_d.length == 1)
			            _d = '0' + _d;

			        timeStr = d.getYear() + "-" + m + "-" + _d;
			        obj.value = timeStr
			    }

			    function getidate(obj1, obj2) {
			        if (obj2.value.length == 18) {
			            obj1.value = obj2.value.substr(6, 4) + "-" + obj2.value.substr(10, 2) + "-" + obj2.value.substr(12, 2)
			        }
			    }
			    function ResetButton() {
			        var btn = document.getElementById("Button1");
			        if (btn.disabled == true) {
			            btn.disabled = false;
			        }
			    }
			    function disableBtn(btn) {
			        btn.value = '系统正在执行操作...';
			        btn.disabled = 'disabled';
			        __doPostBack("Button1", "OnClick");
			        //doPostBack can now fire serverside event even if button is disabled  
			    }
  
			</script>
	</HEAD>
	<body>
		<form id="Form1" runat="server">
			<div id="title">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td align="center" height="20">工作计划 — 工作情况登记</td>
					</tr>
				</table>
			</div>
			<div id="place">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td height="30">您当前的位置：工作计划 &gt;&gt; 工作情况登记</td>
					</tr>
				</table>
			</div>
			<div id="contentdiv">
				<table class="maintable" cellSpacing="0" cellPadding="2" width="100%">
					<tr>
						<td align="right" width="15%" bgColor="#e0eef5" height="30">编号：</td>
						<td align="left" width="35%" height="30">
                            <span class="STYLE1">系统分配</span></td>
						<td align="right" width="15%" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            工作类别：</SPAN></td>
						<td align="left" width="35%" height="30">
                            <asp:DropDownList ID="classid" runat="server">
                                <asp:ListItem Selected="True" Value="0">请选择</asp:ListItem>
                            </asp:DropDownList>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToValidate="classid" ErrorMessage="所属类型必须选择"
                                Operator="GreaterThan" ValueToCompare="0"></asp:CompareValidator>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            标题：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="bt" runat="server" Width="233px" style="width:233px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="bt" ErrorMessage="标题必须填写"></asp:RequiredFieldValidator>
                        </td>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            责任人：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="zzr" onclick="showDIV(this,admintree);" 
                                    runat="server" ReadOnly="True">点击选择</asp:TextBox>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">来源：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="ly" runat="server" Width="233px" style="width:233px;"></asp:TextBox>
                        </td>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            奖励分值：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="jlfz" runat="server" Width="61px" style="width:61px;">0</asp:TextBox>                      
                            
							<asp:requiredfieldvalidator id="RequiredFieldValidator9" runat="server" 
                                    ControlToValidate="jlfz" ErrorMessage="奖励分值不能为空"></asp:requiredfieldvalidator>
							<asp:regularexpressionvalidator id="RegularExpressionValidator11" runat="server" 
                                    ControlToValidate="jlfz" ErrorMessage="奖励分值必须为整数"
								ValidationExpression="^-?\d+$"></asp:regularexpressionvalidator>
                                
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            完成时限：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="wcsx" runat="server" Width="67px" onfocus="WdatePicker();" style="width:67px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                                ControlToValidate="wcsx" ErrorMessage="完成时限必须填写"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" 
                                ControlToValidate="wcsx" ErrorMessage="日期格式必须为2009-01-05" 
                                
                                
                                ValidationExpression="(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)"></asp:RegularExpressionValidator>
                        </td>
						<td align="right" bgColor="#e0eef5" height="30">完成时间：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="wcsj" runat="server" Width="67px" onfocus="WdatePicker();" style="width:67px;"></asp:TextBox>
                            <span class="STYLE1">（未完成请留空）</span><asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                                ControlToValidate="wcsj" ErrorMessage="日期格式必须为2009-01-05" 
                                
                                
                                ValidationExpression="(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)"></asp:RegularExpressionValidator>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">短信与邮件自动提醒：</td>
						<td align="left" height="30">
                            <asp:CheckBox ID="sms" runat="server" Checked="True" Text="开启" />
                        </td>
						<td align="right" bgColor="#e0eef5" height="30">自动提醒不带标题：</td>
						<td align="left" height="30">
                            <asp:CheckBox ID="nobt" runat="server" Text="不带标题" />
                            <span class="STYLE1">（需要保密的工作请开启此功能）</span></td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="120">工作详情：</td>
						<td align="left" colSpan="3" height="120">
                            <asp:TextBox ID="xq" runat="server" Height="112px" TextMode="MultiLine" 
                                Width="568px" style="width:568px;height:112px;"></asp:TextBox>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5">工作详情附件：</td>
						<td align="left" colSpan="3">
                        <iframe frameborder="0" scrolling="yes" src="upfiles_add_task1.aspx?t=t1&tempid=<%=tid.Value %>" width="100%"></iframe>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="120">办理情况：</td>
						<td align="left" colSpan="3" height="120">
                            <asp:textbox id="kzqk" runat="server" 
                                Width="568px" Height="112px" TextMode="MultiLine" style="width:568px;height:112px;"></asp:textbox></td>
					</tr>
                    <tr>
						<td align="right" bgColor="#e0eef5">办理情况附件：</td>
						<td align="left" colSpan="3">
                        <iframe frameborder="0" scrolling="yes" src="upfiles_add_task2.aspx?t=t2&tempid=<%=tid.Value %>" width="100%"></iframe>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="120">领导意见：</td>
						<td align="left" colSpan="3" height="120">
                            <asp:textbox id="ldyj" runat="server" 
                                Width="568px" Height="112px" TextMode="MultiLine" style="width:568px;height:112px;"></asp:textbox></td>
					</tr>
					</table>
			</div>
			<table cellSpacing="0" cellPadding="0" width="300" align="center" border="0">
				<tr>
					<td vAlign="middle" align="center" height="40">&nbsp;
						<asp:button id="Button1" runat="server" Text="录入(ALT+S)" AccessKey="s" 
                            Width="120px" OnClientClick="disableBtn(this);"></asp:button>&nbsp;
						<asp:button id="Button2" runat="server" Width="120px" Text="清除重录(ALT+C)" 
                            CausesValidation="False" AccessKey="C"></asp:button></td>
				</tr>
			</table>
                        <!--隐藏开始-->
			<div class="menudiv" id="admintree">
            <asp:TreeView ID="adminTreeView" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
		    <asp:HiddenField ID="tid" runat="server" />
		</form>
	</body>
</HTML>
