<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.change_task" EnableEventValidation="false" Codebehind="change_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 xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>工作情况变更</title>
    <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: #FFFFFF;
	font-weight: bold;
}
    </style>
<script type="text/javascript">
    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="tdiv">
      <table class="maintable" width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
          <td height="25" colspan="2" align="center" bgcolor="#006699"><span class="STYLE2">
              工作情况变更</span></td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#EEEEEE">&nbsp;工作编号：</td>
          <td height="30" bgcolor="#EEEEEE">
              <asp:Label ID="id" runat="server"></asp:Label>
            </td>
        </tr>
        
        <tr>
          <td height="30" align="right" bgcolor="#EEEEEE">&nbsp;工作标题：</td>
          <td height="30" bgcolor="#EEEEEE">
                            <asp:TextBox ID="bt" runat="server" Width="328px" style="width:328px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="bt" ErrorMessage="标题必须填写"></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                                ControlToValidate="bt" ErrorMessage="协作详情必须填写"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#EEEEEE">工作类型：</td>
          <td height="30" bgcolor="#EEEEEE">
                            <asp:DropDownList ID="classid" runat="server" TabIndex="1">
                            </asp:DropDownList>
            </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#EEEEEE">工作来源：</td>
          <td height="30" bgcolor="#EEEEEE">
                            <asp:TextBox ID="ly" runat="server" Width="233px" style="width:233px;"></asp:TextBox>
            </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#EEEEEE">奖励分值：</td>
          <td height="30" bgcolor="#EEEEEE">
                            <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 height="30" align="right" bgcolor="#EEEEEE">完成时限：</td>
          <td height="30" bgcolor="#EEEEEE">
                            <asp:TextBox ID="wcsx" runat="server" Width="72px" onfocus="WdatePicker();" style="width:72px;"></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 height="100" align="right" bgcolor="#EEEEEE">&nbsp;工作详情：</td>
          <td height="100" bgcolor="#EEEEEE">
              <asp:TextBox ID="xq" runat="server" Height="98px" TextMode="MultiLine" 
                  Width="550px" TabIndex="2" style="width:550px;height:98px;"></asp:TextBox>
          </td>
        </tr>
        <tr>
          <td align="right" bgcolor="#EEEEEE">&nbsp;相关附件：</td>
          <td bgcolor="#EEEEEE">
           <iframe frameborder="0" scrolling="yes" src="upfiles_change_task.aspx?t=t1&tempid=<%=id.text %>" width="100%"></iframe>
          </td>
        </tr>
         <tr id="qzzj" runat="server">
          <td height="30" align="right" bgcolor="#EEEEEE">&nbsp;强制终结：</td>
          <td height="30" bgcolor="#EEEEEE">
             
              <asp:CheckBox ID="zj" runat="server" AutoPostBack="True" Text="终结" />&nbsp;最终得分
                            <asp:TextBox ID="zzdf" runat="server" Width="61px" style="width:61px;">0</asp:TextBox>                      
                            
							<asp:requiredfieldvalidator id="RequiredFieldValidator13" runat="server" 
                                    ControlToValidate="zzdf" ErrorMessage="分值不能为空"></asp:requiredfieldvalidator>
							<asp:regularexpressionvalidator id="RegularExpressionValidator13" runat="server" 
                                    ControlToValidate="zzdf" ErrorMessage="分值必须为整数"
								ValidationExpression="^-?\d+$"></asp:regularexpressionvalidator>
                                
          </td>
        </tr>
        <tr>
          <td height="40" colspan="2" align="center" bgcolor="#EEEEEE">
              <asp:Button ID="Button1" runat="server" Text="确定(ALT+S)" 
                  OnClientClick="disableBtn(this);" AccessKey="s" TabIndex="4"
                  />
          </td>
        </tr>
      </table>
    </div>
    
    </form>
</body>
</html>
