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

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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 rel="stylesheet" type="text/css" href="style/index.css" />
    <link type="text/css" rel="Stylesheet" href="../css/index.css" />

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

    <script src="js/jquery-1.2.6.pack.js" type="text/javascript"></script>

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

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="企业资质列表"></asp:Label>
            </div>
        
                <cc1:GroupFlyGridView ID="GroupFlyGridView" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" BorderColor="#CCDDEF"
                    CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False"
                    GridViewSortDirection="Ascending" PagingStyle="None" TableName="" Width="100%"
                    AllowSorting="True" DataSourceID="ObjectDataSourceDate" GridLines="None" CellSpacing="1"
                    Style="margin-left: 0px;">
                    <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" value='<%# Eval("Guid") %>' type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="证照编号" DataField="Cardnum" />
                        <asp:BoundField HeaderText="证照名称" DataField="CardName" />
                        <asp:TemplateField HeaderText="证照图片">
                            <ItemTemplate>
                                <a class="bigImg">
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("CardImage") %>' Width="100"
                                        Height="75" /></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="证照类型">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# CardTypeBind(Eval("CardType").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="发证日期" DataField="CardDate" DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField HeaderText="发证机关" DataField="CardDepartment" />
                        <asp:BoundField HeaderText="证照内容" DataField="CardContent" />
                    </Columns>
                </cc1:GroupFlyGridView>
          
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" Text="添加" CssClass="bnt1" OnClick="ButtonAdd_Click" />
        <asp:Button ID="ButtonEdite" runat="server" Text="编辑" CssClass="bnt1" OnClick="ButtonEdit_Click"
            OnClientClick="return EditButton()" />
        <asp:Button ID="ButtonDel" runat="server" Text="删除" CssClass="bnt1" OnClick="ButtonDelete_Click"
            OnClientClick="return DeleteButton()" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
        
        
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_EnterpriseResources_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </form>
</body>
</html>
