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

<!DOCTYPE html>
<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" />
    
</head>
<body>
    <form id="form1" runat="server" defaultfocus ="tbAddDepartment">
<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 :31px"  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>

        <table border = "0" class ="table_noborder" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class =" td_leftnoborder   " style =" vertical-align :top; width:280px; padding-right :5%;">
            <div  class ="divLinkButtonLeft ">
                         类型：<asp:DropDownList ID="ddlCodeMod" runat="server">
                            <asp:ListItem Selected="True">条形码</asp:ListItem>
                            <asp:ListItem>二维码</asp:ListItem>
                            <asp:ListItem>信息标签</asp:ListItem>
                        </asp:DropDownList>   
                    </div>
                    <div  class ="divLinkButtonLeft "> 宽度：<asp:TextBox ID="tbWidth" runat="server" Width="100px"></asp:TextBox>
                         <span style="color :Red ">
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbWidth" Display="Dynamic" ErrorMessage="宽度须为整数。" ForeColor="Red" ValidationExpression="^\+?[0-9]*$" ValidationGroup="code"></asp:RegularExpressionValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="tbWidth" Display="Dynamic" ErrorMessage="宽度不能为空。" ForeColor="Red" ValidationGroup="code"></asp:RequiredFieldValidator>
                         </span>
                        </div>
                    <div  class ="divLinkButtonLeft ">字号：<asp:TextBox ID="tbFontSize" runat="server" Width="100px"></asp:TextBox>
                        <span style="color :Red ">
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator15" runat="server" ControlToValidate="tbFontSize" Display="Dynamic" ErrorMessage="字号须为整数。" ForeColor="Red" ValidationExpression="^\+?[0-9]*$" ValidationGroup="code"></asp:RegularExpressionValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="tbFontSize" Display="Dynamic" ErrorMessage="字号不能为空。" ForeColor="Red" ValidationGroup="code"></asp:RequiredFieldValidator>
                         </span>
                        </div>
                      <div  class ="divLinkButtonLeft ">间距：<asp:TextBox ID="tbSpace" runat="server" Width="100px"></asp:TextBox>
                        <span style="color :Red ">
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator16" runat="server" ControlToValidate="tbSpace" Display="Dynamic" ErrorMessage="间距须为整数。" ForeColor="Red" ValidationExpression="^-?\d+$" ValidationGroup="code"></asp:RegularExpressionValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="tbSpace" Display="Dynamic" ErrorMessage="间距不能为空。" ForeColor="Red" ValidationGroup="code"></asp:RequiredFieldValidator>
                         </span>
                       </div> 
                      <div  class ="divLinkButtonLeft ">排序：<asp:TextBox ID="tbCodeorder" runat="server" Width="100px"></asp:TextBox>
                        <span style="color :Red ">
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbSpace" Display="Dynamic" ErrorMessage="间距须为整数。" ForeColor="Red" ValidationExpression="^-?\d+$" ValidationGroup="code"></asp:RegularExpressionValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbSpace" Display="Dynamic" ErrorMessage="间距不能为空。" ForeColor="Red" ValidationGroup="code"></asp:RequiredFieldValidator>
                         </span>
                       </div> 
                     <div  class ="divLinkButtonLeft ">&nbsp;&nbsp; <asp:Button ID="btCode" runat="server" onclick="btCode_Click" 
                            style="margin-bottom: 0px" Text="保存" ValidationGroup="code" 
                            Height="21px" />
                        </div> 
             
                </td>
                <td class ="td_leftnoborder " style =" vertical-align :top ">
                     <asp:GridView ID="GridView1" runat="server" 
            onrowdeleting="GridView1_RowDeleting" 
                BorderWidth="1px" CssClass="gv" Width="100%" cellspacing="1" 
                AutoGenerateColumns="False" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
           <asp:BoundField DataField="codeorder" HeaderText="显示顺序" ReadOnly="True" />
                <asp:BoundField DataField="codetype" HeaderText="类型" ReadOnly="True" />
                <asp:BoundField DataField="codewidth" HeaderText="宽度" ReadOnly="True" />
                <asp:BoundField DataField="fontsize" HeaderText="字号" ReadOnly="True" />
                <asp:BoundField DataField="space" HeaderText="间距" ReadOnly="True" />
                <asp:CommandField HeaderText="修改" SelectText="修改" ShowSelectButton="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
                                   </td>
            </tr>
       
        </table>
   
             </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>