<%@ page language="C#" autoeventwireup="true" inherits="Admin_Supplier_List, GroupTGWeb_deploy" %>

<%@ 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>供应商管理</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

</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 style="width: 100%">
        <tr>
            <td style="width: 100%" align="left">
                <div class="query">
                    <table cellpadding="0" cellspacing="0" width="100%" border="0">
                        <tr>
                            <td align="right" style="width: 10%">
                                登录名称：
                            </td>
                            <td style="width: 10%">
                                <asp:TextBox ID="TextBoxUserName" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right" style="width: 10%">
                                <asp:Label ID="LabelName" runat="server" Text="供应商名称："></asp:Label>
                            </td>
                            <td style="width: 10%">
                                <asp:TextBox ID="textBoxName" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right" style="width:10%">
                                供应商分类：
                            </td>
                            <td style="width: 10%">
                                <asp:DropDownList ID="DropDownListCateGoryName" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Button ID="ButtonSearch" runat="server" OnClick="ButtonSearch_Click" CausesValidation="false"
                                    Text="查询" CssClass="bt2" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <cc1:Num1GridView ID="Num1GridiewShow" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" Width="100%" AscendingImageUrl="~/images/SortAsc.gif"
                    DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" Font-Bold="False"
                    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="" DataSourceID="ObjectDataSourceData">
                    <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="checkboxAll" 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="UserName" HeaderText ="登录名称" SortExpression="UserName">         
                    <ItemStyle HorizontalAlign="Center" />
               </asp:BoundField>--%>
                        <asp:TemplateField HeaderText="登录名称" SortExpression="UserName">
                            <ItemTemplate>
                                <a href='<%# "Supplier_Operate.aspx?guid="+ (Eval("Guid")) %>'>
                                    <asp:Label ID="LabelUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></a>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Name" HeaderText="供应商名称" SortExpression="Name">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Contact" HeaderText="联系人" SortExpression="Contact">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="联系地址" DataField="Address" SortExpression="Address">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ContactTel" HeaderText="联系电话" SortExpression="ContactTel">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Fax" HeaderText="传真" SortExpression="Fax">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </cc1:Num1GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <div class="vote">
                    <asp:Button ID="ButtonAdd" runat="server" OnClick="ButtonAdd_Click" Text="添加" CausesValidation="false"
                        OnClientClick="GetCheckedBoxValues()" CssClass="bt2" />
                    <asp:Button ID="ButtonEdit" runat="server" OnClick="ButtonEdit_Click" OnClientClick="return EditButton()"
                        Text="编辑" CssClass="bt2" />
                    <asp:Button ID="ButtonUpdatePwd" runat="server" CausesValidation="false" OnClientClick="return EditButton()"
                        CssClass="bt3" Text="修改密码" OnClick="ButtonUpdatePwd_Click" />
                    <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
                        CausesValidation="false" OnClick="ButtonDelete_Click" CssClass="bt2" />
                    <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </div>
            </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_Supplier_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxName" Name="name" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="textBoxUserName" Name="UserName" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="DropDownListCateGoryName" Name="Categoryguid" PropertyName="SelectedValue"
                Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <br />
    </form>
</body>
</html>
