<%@ page language="C#" autoeventwireup="true" inherits="Admin_Unit_Manage, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>


<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>


<!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 runat="server">
    <title>Untitled Page</title>
       <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

    <style type="text/css">
        .style1
        {
            width: 87%;
        }
        .style2
        {
            width: 25%;
        }
    </style>

</head>
   <body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
    
    <div class="navigator">【 计量单位管理 】</div>
    
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            <tr>
                <td colspan="2" style="width:100%; ">
     <cc1:Num1GridView id="Num1GridViewShow" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" Width="100%" PageSize="5" AllowPaging="True" 
                    DataSourceID="ObjectDataSourceData" AddSequenceColumn="False" 
                        AllowMultiColumnSorting="False" BorderColor="#CCDDEF" BorderStyle="Solid" 
                        BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？" 
                        Edit="False" FixHeader="False" GridViewSortDirection="Ascending" 
                        PagingStyle="None" style="margin-left: 2px;" TableName="" 
        >
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
         <Columns>
             <asp:TemplateField>
                 <HeaderTemplate>
                     <input ID="checkboxAll0" onclick="javascript:SelectAllCheckboxes(this);" 
                         type="checkbox" />
                 </HeaderTemplate>
                 <ItemTemplate>
                     <input ID="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" />
                 <ItemStyle HorizontalAlign="Center" Width="30px" />
             </asp:TemplateField>
             <asp:BoundField DataField="Code" HeaderText="计量单位代码" SortExpression="Code" >
                 <ItemStyle HorizontalAlign="Center" />
             </asp:BoundField>
             <asp:BoundField DataField="Name" HeaderText="计量单位名称" >
                 <ItemStyle HorizontalAlign="Center" />
             </asp:BoundField>
         </Columns>
        </cc1:Num1GridView>
    
                </td>
            </tr>
            <tr>
                <td colspan="0">
    <div class="vote">
            <asp:Button ID="ButtonAdd" runat="server" CausesValidation="False" Text="添加" onclick="ButtonAdd_Click" 
               CssClass="bt2" />
                    <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" 
                Text="删除" onclientclick="return DeleteButton()" onclick="ButtonDelete_Click" 
              CssClass="bt2"  />
</div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    </td>
            </tr>
      
            <tr>
                <td align="right" class="style2">
                    <asp:Label ID="LabelCode" runat="server" Text="计量单位代码："></asp:Label>
                </td>
                <td align="left" style="width:60%;">
                    <asp:TextBox ID="TextBoxCode" runat="server" CssClass="input2"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label5" runat="server" Text="*"></asp:Label>
                            </font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCode" 
                            runat="server" ControlToValidate="TextBoxCode" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorCode" 
                        runat="server" ControlToValidate="TextBoxCode" Display="Dynamic" 
                        ErrorMessage="计量单位代码最多10个字符" ValidationExpression="^[\s\S]{0,10}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" class="style2" >
    
                    <asp:Label ID="LabelName" runat="server" Text="计量单位名称："></asp:Label>
                </td>
                <td align="left" style="width:60%;">
                    <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label6" runat="server" Text="*"></asp:Label>
                            </font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" 
                        runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                        ErrorMessage="计量单位名称最多20个字符" ValidationExpression="^[\s\S]{0,20}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" class="style2" >
    
                    &nbsp;</td>
                <td align="left" style="width:60%;">
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right" class="style2" >
    
                 &nbsp;</td>
                <td align="left" style="width:60%;">
                     <div style="width:60%;margin:4px;">
                    <asp:Button ID="ButtonConfirm" runat="server" Text="确定" 
                        onclick="ButtonConfirm_Click" ToolTip="Submit" CssClass="bt2" />
                         <input ID="inputReset" runat="server"  type="reset" value="重置" Class="bt2" /><ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
                     </div>
                </td>  
            </tr>
        </table>
    </div>
    <div>
    
     <table style="width:100%">
            <tr>
                <td align="left" colspan="2">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" colspan="2">
    
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:40%">
                    &nbsp;</td>
                <td align="left" style="width:60%">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:40%">
                    &nbsp;</td>
                <td align="left" style="width:60%">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:40%">
                    &nbsp;</td>
                <td align="left" style="width:60%">
&nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:40%">
                    &nbsp;</td>
                <td align="left" style="width:60%">
                    &nbsp;</td>
            </tr>
            </table>

    </div>

    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" TypeName="ShopNum1.BusinessLogic.ShopNum1_Unit_Action">
    </asp:ObjectDataSource>
    </form>
</body>
</html>
