<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_userLocation.aspx.cs" Inherits="Web.sb.admin.login_userLocation" %>

<!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>
</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 ="style1">
                    添加使用地点</td>
                <td class ="tabletd_left ">
                <asp:TextBox ID="tbAdduserlocation" runat="server" Width ="200px"></asp:TextBox>
                                            </td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="Button1" runat="server" Text="添加" 
                    ValidationGroup="Adduserlocation" onclick="Adduserlocation_Click" />
                    </td>
                <td rowspan="3" class ="tabletd_left " style =" width :40%; vertical-align :top ">
               <div style ="padding :3px">
                   <asp:Label ID="lbuserLocation" runat="server"></asp:Label>
                    </div>         
                  <div style ="padding :3px">
                      <asp:Label ID="lbMessageuserLocation" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                  <div style ="padding :3px"> 
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                    ControlToValidate="tbAdduserlocation" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="Adduserlocation" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="tbAdduserlocation" Display="Dynamic" 
                    ErrorMessage="请输入少于15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                    ValidationGroup="Adduserlocation" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                    ControlToValidate="tbEdituserlocation" Display="Dynamic" ErrorMessage="名称不能为空。" 
                                                    ValidationGroup="Edituserlocation" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                    ControlToValidate="tbEdituserlocation" Display="Dynamic" 
                    ErrorMessage="请输入少于15个合法字符。" ValidationExpression="^[^%&gt;&lt;&amp;=\s]{1,15}$" 
                                                    ValidationGroup="Edituserlocation" ForeColor="Red"></asp:RegularExpressionValidator>
                         </div>                    </td>
            </tr>
            <tr>
                <td class ="style1">
                    删除使用地点</td>
                <td class ="tabletd_left ">
                <asp:DropDownList ID="ddlDeluserlocation" runat="server">
                </asp:DropDownList>
                </td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btDeluserlocation" runat="server" Text="删除" 
                    CausesValidation="False" onclick="btDeluserlocation_Click" />
                </td>
            </tr>
            <tr>
                <td class ="style1">
                                                使用地点修改</td>
                <td class ="tabletd_left ">

                                                <asp:DropDownList ID="ddlEdituserlocation" runat="server">
                                                </asp:DropDownList>
                                                修改为：<asp:TextBox ID="tbEdituserlocation" runat="server" Width ="150px"></asp:TextBox>
                          </td>
                <td class ="tabletd_center " style="width :60px">
                                                <asp:Button ID="btEdituserlocation" runat="server" Text="修改" 
                                                    ValidationGroup="Edituserlocation" onclick="btEdituserlocation_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="lbMessageManager" runat="server" ForeColor="Red"></asp:Label>
                    </div>
<div>
<asp:GridView ID="gvUserlocation" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" 
        onrowcancelingedit="gvUserlocation_RowCancelingEdit" 
        onrowediting="gvUserlocation_RowEditing" 
        onrowupdating="gvUserlocation_RowUpdating" 
        onrowcreated="gvUserlocation_RowCreated" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>

                    <asp:BoundField DataField="A1" HeaderText="使用地点编号" ReadOnly="True"/>
                    <asp:BoundField DataField="A2" HeaderText="使用地点名称" ReadOnly="True" />
                    <asp:TemplateField HeaderText="责任人">
                        <EditItemTemplate>
                                <asp:TextBox ID="tbStaffnumber" runat="server" Width ="160px"></asp:TextBox> 
   
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("A3") %>'></asp:Label>      &nbsp;  <asp:Label ID="Label2" runat="server" Text='<%# Bind("A4") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField EditText="修改" HeaderText="变更责任人" ShowEditButton="True" />
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        
                    </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>