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

			    .style1
                {
                    height: 30px;
                }

			</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%" 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>
                        </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="sy" runat="server" Width="233px" style="width:233px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="sy" ErrorMessage="事由必须填写"></asp:RequiredFieldValidator>
                        </td>
						<td align="right" bgColor="#e0eef5" height="30">行为人：</td>
						<td align="left" height="30">
                            <asp:Label ID="ac" runat="server"></asp:Label>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">加扣分值：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="fz" runat="server" Width="61px" style="width:61px;">0</asp:TextBox>                      
                            
                            <span class="STYLE1">（负数为扣分）</span><asp:requiredfieldvalidator id="RequiredFieldValidator9" runat="server" 
                                    ControlToValidate="fz" ErrorMessage="分值不能为空"></asp:requiredfieldvalidator>
							<asp:regularexpressionvalidator id="RegularExpressionValidator11" runat="server" 
                                    ControlToValidate="fz" ErrorMessage="分值必须为整数"
								ValidationExpression="^-?\d+$"></asp:regularexpressionvalidator>
                                
                        </td>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">行为日期：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="fssj" runat="server" Width="67px" onfocus="WdatePicker();" style="width:67px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                                ControlToValidate="fssj" ErrorMessage="行为日期必须填写"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" 
                                ControlToValidate="fssj" 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" class="style1">备注：</td>
						<td align="left" class="style1">
                            <asp:TextBox ID="bz" runat="server" Width="233px" style="width:233px;"></asp:TextBox>
                        </td>
						<td align="right" bgColor="#e0eef5" class="style1">&nbsp;</td>
						<td align="left" class="style1">
                            &nbsp;</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>

		</form>
	</body>
</HTML>