<%@ Page Language="C#" AutoEventWireup="true" CodeFile="{file_list_name}.cs" Inherits="{fyp_namespace}.Web.{file_list_name type="2"}" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
'' ============================================================================================
'' 项目名称：{fyp_title}
'' 项目版本：{fyp_version}
'' 项目描述：{fyp_description}
'' 文件名称：{file_list_name}
'' 文件描述：信息列表文件{value_match_check value1="{table_description}" value2="" extend_match="unequal"} （{table_description}）{/value_match_check}
'' 公司名称：{fyp_company}
'' 开发人员：{fyp_designer}
'' 创建日期：{fyp_created_date}
'' 修订日期：{system_date_time format="yyyy-MM-dd hh:mm:ss"}
'' 版权信息：{fyp_copyright}

'' 项目升级时需读取以下生成工具的版权信息
'' 生成工具：{fysoft_name}
'' 当前版本：{fysoft_version}
'' 官方网站：{fysoft_website}
'' ============================================================================================
-->

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>信息列表</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="js/js_page.js"></script>
    <script language="javascript" type="text/javascript" src="js/js_string.js"></script>
    <script language="javascript" type="text/javascript" src="js/js_regex.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" CssClass="tableStyleSolidLine" Width="100%" PageSize="20"
        AutoGenerateColumns="False" AllowPaging="True" CellPadding="4" ShowFooter="True"
        DataKeyNames="{fields_loop type="3" separator=","}{field_name}{/fields_loop}"
        OnPageIndexChanging="GridView1_PageIndexChanging"
        OnRowDataBound="GridView1_RowDataBound"
{remark note="说明：备用"}
        OnRowCommand="GridView1_RowCommand"
{/remark}
{create_order_by_check value="true" match="true"}
        AllowSorting="True"
        OnSorting="GridView1_Sorting"
{/create_order_by_check}
{create_manage_check value="true" match="true"}
    {field_edit_in_list_all_check value="true" match="true" type="1"}
        OnRowEditing="GridView1_RowEditing"
        OnRowCancelingEdit="GridView1_RowCancelingEdit"
        OnRowUpdating="GridView1_RowUpdating"
    {/field_edit_in_list_all_check}
    {batch_manage_check value="false" match="true"}
        OnRowDeleting="GridView1_RowDeleting"
    {/batch_manage_check}
{/create_manage_check}
        >
            <HeaderStyle CssClass="tableTitle1" Wrap="False"/>
            <RowStyle CssClass="tableContent001" Wrap="False" />
            <AlternatingRowStyle CssClass="tableContentAlternating001" Wrap="False" />
            <SelectedRowStyle Wrap="False" />
            <EditRowStyle Wrap="False" />
            <FooterStyle CssClass="tableTitle1" Wrap="False" />
            <PagerStyle Wrap="False" />
            <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下页" PageButtonCount="3" PreviousPageText="上页"/>
            <Columns>
                {fields_loop}
                <asp:TemplateField HeaderText="{field_caption translate="auto"}" FooterText="{field_caption translate="auto"}" SortExpression="{field_name}">
                <ItemTemplate>
                <asp:Label ID="lab_{control_name}_Show" runat="server" Text='<%# Eval("{field_name}")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                {field_edit_in_list_check value="true" match="true"}
                <asp:TextBox ID="{control_name}" runat="server" Text='<%# Bind("{field_name}") %>' CssClass="textBox"></asp:TextBox>
                {/field_edit_in_list_check}

                {field_edit_in_list_check value="false" match="true"}
                <asp:Label ID="lab_{control_name}_Show" runat="server" Text='<%# Eval("{field_name}")%>'></asp:Label>
                {/field_edit_in_list_check}
                </EditItemTemplate>

                </asp:TemplateField>
                {/fields_loop}

{create_manage_check value="false" match="true"}
                <asp:TemplateField HeaderText="{text translate="auto"}查看{/text}" FooterText="{text translate="auto"}查看{/text}">
{/create_manage_check}
{create_manage_check value="true" match="true"}
                <asp:TemplateField 
                HeaderText="<a href='{file_add_name}' target='_blank'>{text translate="auto"}新增{/text}</a>  {batch_manage_check value="true" match="true"}<a href=javascript:if(OperateRec('{text translate="auto"}确定删除所选记录{/text}？','','')){__doPostBack('lnkBtn_Del','')}> {text translate="auto"}删除{/text}</a> <input name='CheckBox_RecMain' id='CheckBox_RecMain' type='checkbox' onClick=SetAllCheckBoxSta(this,'CheckBox_RecID');SetTabTrColorAll(true,document.all.GridView1,this,1,2,'tableContent001','tableContentAlternating001','tableContentClick001')>{/batch_manage_check}" 
                FooterText="<a href='{file_add_name}' target='_blank'>{text translate="auto"}新增{/text}</a>  {batch_manage_check value="true" match="true"}<a href=javascript:if(OperateRec('{text translate="auto"}确定删除所选记录{/text}？','','')){__doPostBack('lnkBtn_Del','')}> {text translate="auto"}删除{/text}</a> <input name='CheckBox_RecMain' id='CheckBox_RecMain' type='checkbox' onClick=SetAllCheckBoxSta(this,'CheckBox_RecID');SetTabTrColorAll(true,document.all.GridView1,this,1,2,'tableContent001','tableContentAlternating001','tableContentClick001')>{/batch_manage_check}"
                >
                {field_edit_in_list_all_check value="true" match="true" type="1"}
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton_Save" runat="server" CausesValidation="True" CommandName="Update"
                            Text="{text translate="auto"}保存{/text}"></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton_Cancel" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="{text translate="auto"}取消{/text}"></asp:LinkButton>
                    </EditItemTemplate>
                 {/field_edit_in_list_all_check}
{/create_manage_check}

                    <ItemTemplate>
                        <asp:HyperLink ID="LinkButton_View" NavigateUrl='<%# "{file_detail_name}?{fields_loop type="3" separator=' + "&' distinct="true"}{control_name}=" + this.Server.UrlEncode(Convert.ToString(Eval("{field_name}"))){/fields_loop}%>' Target="_blank" runat="server">{text translate="auto"}查看{/text}</asp:HyperLink>

{create_manage_check value="true" match="true"}
                {field_edit_in_list_all_check value="true" match="true" type="1"}
                        <asp:LinkButton ID="LinkButton_Setting" runat="server" CausesValidation="False" CommandName="Edit" CommandArgument='<%#{fields_loop type="3" separator=' + "|||" + '}Eval("{field_name}"){/fields_loop}%>'
                            Text="{text translate="auto"}设置{/text}"></asp:LinkButton>
                 {/field_edit_in_list_all_check}
                        <asp:HyperLink ID="LinkButton_Modify" NavigateUrl='<%# "{file_add_name}?{fields_loop type="3" separator=' + "&' distinct="true"}{control_name}=" + this.Server.UrlEncode(Convert.ToString(Eval("{field_name}"))){/fields_loop}%>' Target="_blank" runat="server">{text translate="auto"}修改{/text}</asp:HyperLink>

                    {batch_manage_check value="true" match="true"}
                        <asp:CheckBox ID="CheckBox_RecID" runat="server" />
                    {/batch_manage_check}

                    {batch_manage_check value="false" match="true"}
                        <asp:LinkButton ID="LinkButton_Del" runat="server" CausesValidation="False" CommandName="Delete" CommandArgument='<%#{fields_loop type="3" separator=' + "|||" + '}Eval("{field_name}"){/fields_loop}%>'
                            Text="{text translate="auto"}删除{/text}"></asp:LinkButton>
                    {/batch_manage_check}
{/create_manage_check}
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>

{batch_manage_check value="true" match="true"}
        <asp:LinkButton ID="lnkBtn_Del" runat="server" OnClick="lnkBtn_Del_Click" CssClass="hiddenNone">{text translate="auto"}删除{/text}</asp:LinkButton>
{/batch_manage_check}

    </div>
    </form>
</body>
</html>