<%@ 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"%>
<html>
	<head id="head1"  runat="server">
    <title><%=pagename %></title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">
    <link href="site_css2.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>
    <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="lib/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
        <style type="text/css">

			    .style1
                {
                    color: #FF0000;
                }
			    .STYLE1 { COLOR: #999999 }
			    .STYLE2 { COLOR: #ff0000 }
			    </style>
                <!-- 配置文件 -->
<script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
<!-- 语言包文件(建议手动加载语言包，避免在ie下，因为加载语言失败导致编辑器加载失败) -->
<script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
			<script language="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 class=""> 
     <!--<![endif]-->
    <form id="Form1" runat="server">
    <div class="content">
        
        <div class="header">

            <h1 class="page-title"><%=pagename %></h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="info.aspx">系统首页</a> <span class="divider">/</span></li>
            <li><a href="department_behavior.aspx">部门<%=ConfigurationManager.AppSettings.Item("staffstr")%>行为记录</a> <span class="divider">/</span></li>
            <li class="active"><%=pagename %></li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                    
<div class="btn-toolbar">
    <asp:button id="Button1" runat="server" Text="保存(ALT+S)" AccessKey="s" 
        class="btn" OnClientClick="disableBtn(this);"></asp:button>
	<asp:button id="Button2" runat="server" Text="取消(ALT+C)" 
        CausesValidation="False" AccessKey="C" class="btn"></asp:button>
    </div>
<div class="btn-group"></div>
<div class="well">


<table class="table" width="100%">
					<tr>
						<td class="td_a">编号：</td>
						<td class="td_b">
                            <asp:Label ID="id" runat="server"></asp:Label>
                        </td>
						<td class="td_a">
                            <span class="STYLE2">行为类别：</span></td>
						<td class="td_b">
                            <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 class="td_a"><span class="STYLE2">事由：</span></td>
						<td class="td_b">
                            <asp:TextBox ID="sy" runat="server" style="width:233px;" Width="233px"></asp:TextBox>
                            <span class="STYLE1">（请假、公差请写明“全天”“上午”“下午”）</span><asp:RequiredFieldValidator 
                                ID="RequiredFieldValidator8" runat="server" ControlToValidate="sy" 
                                ErrorMessage="事由必须填写"></asp:RequiredFieldValidator>
                        </td>
						<td class="td_a">
                            <span class="STYLE2">行为人：</span></td>
						<td class="td_b">
                            <asp:Label ID="dpmid" runat="server"></asp:Label>
                        &nbsp;<asp:Label ID="ac" runat="server"></asp:Label>
                        </td>
					</tr>
					<tr>
						<td class="td_a"><span class="STYLE2">加扣分值：</span></td>
						<td class="td_b">
                            <asp:TextBox ID="fz" runat="server" style="width:61px;" 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 class="td_a">
                            <span class="STYLE2">行为日期：</span></td>
						<td class="td_b">
                            <asp:TextBox ID="fssj" runat="server" onfocus="WdatePicker();" 
                                style="width:90px;" Width="90px"></asp:TextBox>
                            <span class="STYLE1">（请假、公差请按天进行登记）</span><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 class="td_a">备注：</td>
						<td class="td_b">
                            <asp:TextBox ID="bz" runat="server" style="width:233px;" Width="233px"></asp:TextBox>
                        </td>
						<td class="td_a">
                            短信与邮件通知：</td>
						<td class="td_b">
                            <asp:CheckBox ID="sms" runat="server" Checked="True" Text="开启" />
                        </td>
					</tr>
					</table>



</div>
                  
            </div>
        </div>
    </div>

    </form>
</body>
</html>