<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_system.aspx.cs" Inherits="Web.sb.admin.login_system" %>
<!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>OA标题页</title>
<link href="../../css/admincss/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../css/popcalendar.js"></script>
    <style type="text/css">
        .style1
        {
            width: 106px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">系统设置</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(../../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >

   
   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                计量单位设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        
<div>
<table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                    添加计量单位</td>
                <td class ="tabletd_left ">
                <asp:TextBox ID="tbAddUnit" runat="server" Width ="200px"></asp:TextBox>
                                            </td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="btAddUnit" runat="server" Text="添加" 
                    ValidationGroup="AddUnit" onclick="btAddUnit_Click" />
                    </td>
                <td rowspan="3" class ="tabletd_left " style =" width :40%; vertical-align :top ">
               <div style ="padding :3px">
                   <asp:Label ID="lbUnit" runat="server"></asp:Label>
                    </div>         
                  <div style ="padding :3px">
                      <asp:Label ID="lbMessageUnit" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                  <div style ="padding :3px"> 
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="tbAddUnit" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddUnit" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                    ControlToValidate="tbAddUnit" Display="Dynamic" 
                    ErrorMessage="请输入少于15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                    ValidationGroup="AddUnit" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" 
                    ControlToValidate="tbAddUnit" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="AddUnit" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="tbEditUnit" Display="Dynamic" ErrorMessage="名称不能为空。" 
                                                    ValidationGroup="EditUnit" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" 
                    ControlToValidate="tbEditUnit" Display="Dynamic" 
                    ErrorMessage="请输入少于15个合法字符。" ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                                                    ValidationGroup="EditUnit" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" 
                    ControlToValidate="tbEditUnit" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="EditUnit" ForeColor="Red"></asp:RegularExpressionValidator>
                         </div>                    </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                    删除计量单位</td>
                <td class ="tabletd_left ">
                <asp:DropDownList ID="ddlDelUnit" runat="server">
                </asp:DropDownList>
                </td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btDelUnit" runat="server" Text="删除" 
                    CausesValidation="False" onclick="btDelUnit_Click" />
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                                                修改计量单位</td>
                <td class ="tabletd_left ">

                                                <asp:DropDownList ID="ddlEditUnit" runat="server">
                                                </asp:DropDownList>
                                                修改为：<asp:TextBox ID="tbEditUnit" runat="server" Width ="150px"></asp:TextBox>
                          </td>
                <td class ="tabletd_center " style="width :60px">
                                                <asp:Button ID="btEditUnit" runat="server" Text="修改" 
                                                    ValidationGroup="EditUnit" onclick="btEditUnit_Click" />
                                            </td>
            </tr>
        </table>
                    </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                存放地点设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        
<div>
<table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                    添加存放地点</td>
                <td class ="tabletd_left ">
                <asp:TextBox ID="tbAddLocation" runat="server" Width ="200px"></asp:TextBox>
                                            </td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="btAddLocation" runat="server" Text="添加" 
                    ValidationGroup="addLocation" onclick="btAddLocation_Click" />
                    </td>
                <td rowspan="3" class ="tabletd_left " style =" width :40%; vertical-align :top ">
               <div style ="padding :3px">
                   <asp:Label ID="lbLocation" runat="server"></asp:Label>
                    </div>         
                  <div style ="padding :3px">
                      <asp:Label ID="lbMessageLocation" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                  <div style ="padding :3px"> 
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="tbAddLocation" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="addLocation" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="tbAddLocation" Display="Dynamic" 
                    ErrorMessage="请输入少于15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                    ValidationGroup="addLocation" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="tbEditLocation" Display="Dynamic" ErrorMessage="名称不能为空。" 
                                                    ValidationGroup="EditLocation" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                    ControlToValidate="tbEditLocation" Display="Dynamic" 
                    ErrorMessage="请输入少于15个合法字符。" ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                                                    ValidationGroup="EditLocation" ForeColor="Red"></asp:RegularExpressionValidator>
                         </div>                    </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                    删除存放地点</td>
                <td class ="tabletd_left ">
                <asp:DropDownList ID="ddlDelLocation" runat="server">
                </asp:DropDownList>
                </td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btDelLocation" runat="server" Text="删除" 
                    CausesValidation="False" onclick="btDelLocation_Click" />
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                                                修改存放地点</td>
                <td class ="tabletd_left ">

                                                <asp:DropDownList ID="ddlEditLocation" runat="server">
                                                </asp:DropDownList>
                                                修改为：<asp:TextBox ID="tbEditLocation" runat="server" Width ="150px"></asp:TextBox>
                          </td>
                <td class ="tabletd_center " style="width :60px">
                                                <asp:Button ID="btEditLocation" runat="server" Text="修改" 
                                                    ValidationGroup="EditLocation" onclick="btEditLocation_Click" />
                                            </td>
            </tr>
        </table>
                    </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                报损原因设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        
<div>
<table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                    添加报损原因</td>
                <td class ="tabletd_left ">
                <asp:TextBox ID="tbAddLosscause" runat="server" Width ="200px"></asp:TextBox>
                                            </td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="btAddLosscause" runat="server" Text="添加" 
                    ValidationGroup="AddLosscause" onclick="btAddLosscause_Click" />
                    </td>
                <td rowspan="3" class ="tabletd_left " style =" width :40%; vertical-align :top ">
               <div style ="padding :3px">
                   <asp:Label ID="lbLosscause" runat="server"></asp:Label>
                    </div>         
                  <div style ="padding :3px">
                      <asp:Label ID="lbMessageLosscause" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                  <div style ="padding :3px"> 
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbAddLosscause" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddLosscause" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbAddLosscause" Display="Dynamic" 
                    ErrorMessage="请输入少于15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                    ValidationGroup="AddLosscause" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="tbAddLosscause" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="AddLosscause" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="tbEditLosscause" Display="Dynamic" ErrorMessage="名称不能为空。" 
                                                    ValidationGroup="EditLosscause" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                    ControlToValidate="tbEditLosscause" Display="Dynamic" 
                    ErrorMessage="请输入少于15个合法字符。" ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                                                    ValidationGroup="EditLosscause" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                    ControlToValidate="tbEditLosscause" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="EditLosscause" ForeColor="Red"></asp:RegularExpressionValidator>
                         </div>                    </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                    删除报损原因</td>
                <td class ="tabletd_left ">
                <asp:DropDownList ID="ddlDelLosscause" runat="server">
                </asp:DropDownList>
                </td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btDelLosscause" runat="server" Text="删除" 
                    CausesValidation="False" onclick="btDelLosscause_Click" style="height: 26px" />
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                                                修改报损原因</td>
                <td class ="tabletd_left ">

                                                <asp:DropDownList ID="ddlEditLosscause" runat="server">
                                                </asp:DropDownList>
                                                修改为：<asp:TextBox ID="tbEditLosscause" runat="server" Width ="150px"></asp:TextBox>
                          </td>
                <td class ="tabletd_center " style="width :60px">
                                                <asp:Button ID="btEditLosscause" runat="server" Text="修改" 
                                                    ValidationGroup="EditLosscause" onclick="btEditLosscause_Click" />
                                            </td>
            </tr>
        </table>
                    </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->





   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                其它设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <div>
                      <asp:Label ID="lbMessageOther" runat="server" ForeColor="Red"></asp:Label>
                    </div>
<div>
<table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
<tr>
<td class ="tabletd_right ">设备代码位数</td>
<td class ="tabletd_left ">
    <asp:TextBox ID="tbDevicecharnumber" runat="server" Width="40px" 
                        ValidationGroup="devicecharnumber"></asp:TextBox>
                                            </td>
<td class ="tabletd_center ">

                <asp:Button ID="btDevicecharnumber" runat="server" Text="设置" 
                        onclick="btDevicecharnumber_Click" 
        ValidationGroup="devicecharnumber" />
                                            </td>
<td class ="tabletd_left ">
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator16" runat="server" 
                                                ControlToValidate="tbDevicecharnumber" 
                        Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                
        ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="devicecharnumber" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                                                ControlToValidate="tbDevicecharnumber" 
                Display="Dynamic" ErrorMessage="设备代码位数不能为空。" 
                                                ValidationGroup="devicecharnumber" ForeColor="Red"></asp:RequiredFieldValidator>
                                            </td>
</tr>
<tr>
<td class ="tabletd_right ">预借预领期</td>
<td class ="tabletd_left ">
                <asp:TextBox ID="tbSetPreLendTime" runat="server" Width ="40px"></asp:TextBox>
                                            天</td>
<td class ="tabletd_center ">

                <asp:Button ID="btSetPreLendTime" runat="server" Text="设置" 
                        onclick="btSetPreLendTime_Click" ValidationGroup="preLendTime" />
                    </td>
<td class ="tabletd_left ">
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                                                ControlToValidate="tbSetPreLendTime" 
                        Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="preLendTime" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                                ControlToValidate="tbSetPreLendTime" 
                Display="Dynamic" ErrorMessage="预借期不能为空。" 
                                                ValidationGroup="preLendTime" ForeColor="Red"></asp:RequiredFieldValidator>
                                            &nbsp;</td>
</tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px" rowspan="2">
                    缺省借出期限</td>
                <td class ="tabletd_left ">
                    缺省借出天数：<asp:TextBox ID="tbDefaultLenddays" runat="server" Width="40px" 
                        ValidationGroup="Lenddays"></asp:TextBox>
                                            </td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="btSetDefaultLendDays" runat="server" Text="设置" 
                        onclick="btSetDefaultLendDays_Click" ValidationGroup="Lenddays" />
                    </td>
                <td class ="tabletd_left " style =" width :40%; vertical-align :top " 
                    rowspan="2">
                   <asp:Label ID="lbLendTime" runat="server"></asp:Label>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator14" runat="server" 
                                                ControlToValidate="tbDefaultLenddays" 
                        Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="Lenddays" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                                ControlToValidate="tbDefaultLenddays" 
                Display="Dynamic" ErrorMessage="缺省借出天数不能为空。" 
                                                ValidationGroup="Lenddays" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                                ControlToValidate="tbDefaultReturnDate" 
                Display="Dynamic" ErrorMessage="缺省归还日期不能为空。" 
                                                ValidationGroup="ReturnDate" ForeColor="Red"></asp:RequiredFieldValidator>
                                            &nbsp;</td>
            </tr>
            <tr>
                <td class ="tabletd_left ">
                    缺省最后归还日期：<asp:TextBox ID="tbDefaultReturnDate" runat="server" Width ="100px" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>
      </td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="btSetDefaultReturnDate" runat="server" Text="设置" 
                        onclick="btSetDefaultReturnDate_Click" ValidationGroup="ReturnDate" />
                    </td>
            </tr>
            </table>
                    </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

    </td>
    <td  style =" background-image:url(../../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>