<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.edit_task" Codebehind="edit_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)
			        }
			    }

			</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="contentdiv">
				<table class="maintable" cellSpacing="0" cellPadding="2" width="100%" border="0">
					<tr>
						<td align="right" width="15%" bgColor="#e0eef5" height="30">编号：</td>
						<td align="left" width="35%" height="30">
                            <asp:Label ID="id" runat="server"></asp:Label>
                        &nbsp;</td>
						<td align="right" width="15%" bgColor="#e0eef5" height="30">所属单位部门：</td>
						<td align="left" width="35%" height="30">
                            <asp:TextBox ID="dpmid" runat="server" onclick="showDIV(this,dwtree);" 
                                ReadOnly="True"></asp:TextBox>
                        &nbsp;</td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">标题：</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">工作类别：</td>
						<td align="left" height="30">
                            <asp:DropDownList ID="classid" runat="server">
                            </asp:DropDownList>
                            </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">状态：</td>
						<td align="left" height="30">
                            <asp:DropDownList ID="zt" runat="server">
                                <asp:ListItem Value="0">等待接收</asp:ListItem>
                                <asp:ListItem Value="1">等待办结</asp:ListItem>
                                <asp:ListItem Value="2">等待终结</asp:ListItem>
                                <asp:ListItem Value="3">任务终结</asp:ListItem>
                            </asp:DropDownList>
                            </td>
						<td align="right" bgColor="#e0eef5" height="30">完成时限：</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>
					</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">完成时间：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="wcsj" runat="server"></asp:TextBox>
                        &nbsp;</td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">登记人账号：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="apr" runat="server" Width="97px" style="width:97px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                                ControlToValidate="apr" ErrorMessage="登记人必须填写"></asp:RequiredFieldValidator>
                        &nbsp;</td>
						<td align="right" bgColor="#e0eef5" height="30">登记时间：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="djsj" runat="server"></asp:TextBox>
                        &nbsp;</td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">奖励分值：</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>
						<td align="right" bgColor="#e0eef5" height="30">最终得分：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="zzdf" runat="server" Width="61px" style="width:61px;">0</asp:TextBox>                      
                            
							<asp:requiredfieldvalidator id="RequiredFieldValidator12" runat="server" 
                                    ControlToValidate="zzdf" ErrorMessage="最终得分不能为空"></asp:requiredfieldvalidator>
							<asp:regularexpressionvalidator id="RegularExpressionValidator13" runat="server" 
                                    ControlToValidate="zzdf" ErrorMessage="最终得分必须为整数"
								ValidationExpression="^-?\d+$"></asp:regularexpressionvalidator>
                                
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">责任人账号：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="zrr" runat="server" Width="97px" style="width:97px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                                ControlToValidate="zrr" ErrorMessage="责任人必须填写"></asp:RequiredFieldValidator>
                        </td>
						<td align="right" bgColor="#e0eef5" height="30">终结人账号：</td>
						<td align="left" height="30">
                            <asp:TextBox ID="zjr" runat="server" Width="97px" style="width:97px;"></asp:TextBox>
                        &nbsp;</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="30">工作详情：</td>
						<td align="left" colSpan="3" height="30" >
                            <asp:textbox id="xq" 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_edit_task1.aspx?t=t1&tempid=<%=id.text %>" width="100%"></iframe>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">办理情况：</td>
						<td align="left" colSpan="3" height="30" ">
                            <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_edit_task2.aspx?t=t2&tempid=<%=id.text %>" width="100%"></iframe>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30">领导意见：</td>
						<td align="left" colSpan="3" height="30" >
                            <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"></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="dwtree">
            <asp:TreeView ID="fidTreeView" 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>
			<!--隐藏结束-->
		</form>
	</body>
</HTML>
