⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editprice_direct.aspx

📁 简单的Web平台。能够读取Excel文件
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditPrice_Direct.aspx.cs" Inherits="EditPrice_Direct" Debug="true" %>

<!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>
    <script language="javascript" type="text/javascript">
        function GoBack()
        {
            if ( !confirm('是否确定退出匹配模块?') )
            {
                return;
            }
            parent.frames['Main_Bottom_MenuFrame'].location = 'PriceMenu.aspx';
            parent.frames['Main_Bottom_MainFrame'].location = 'Success.aspx';
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 620px; height: 30px" border="1">
            <tr>
                <td style="width: 90px; height: 26px">
                    <asp:Label ID="Label1" runat="server" Font-Names="宋体" Font-Size="Small" Text="零件编号"></asp:Label></td>
                <td style="width: 154px; height: 26px">
                    <asp:TextBox ID="txtPartCode" runat="server" Height="15px" Width="125px"></asp:TextBox></td>
                <td style="width: 86px; height: 26px">
                    <asp:Label ID="lblQuery" runat="server" Font-Names="宋体" Font-Size="Small" Text="查询范围"></asp:Label></td>
                <td style="width: 95px; height: 26px">
                    &nbsp;<asp:DropDownList ID="ddlQueryRange" runat="server">
                        <asp:ListItem Value="-1">全部</asp:ListItem>
                        <asp:ListItem Value="0">已匹配</asp:ListItem>
                        <asp:ListItem Value="1">未匹配</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 105px; height: 26px">
                    <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="查询" />
                </td>
                <td style="width: 175px; height: 26px">
                    <asp:CheckBox ID="ckbBlur" runat="server" Font-Names="黑体" Font-Size="Small" Text="模糊匹配" Width="75px" /></td>
            </tr>
            <tr>
                <td style="width: 90px; height: 26px">
                    &nbsp;</td>
                <td style="width: 154px; height: 26px">
                    &nbsp;</td>
                <td style="width: 86px; height: 26px">
                    <asp:Label ID="Label2" runat="server" Font-Names="宋体" Font-Size="Small" Text="编辑状态"></asp:Label></td>
                <td style="width: 95px; height: 26px">
                    &nbsp;<asp:DropDownList ID="ddlEdit" runat="server">
                        <asp:ListItem Value="-1">全部</asp:ListItem>
                        <asp:ListItem Value="0">已编辑</asp:ListItem>
                        <asp:ListItem Value="1">未编辑</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 105px; height: 26px">
                    &nbsp;</td>
                <td style="width: 175px; height: 26px">
                    &nbsp;<input id="Button1" style="width: 78px" type="button" value="返回" onclick="GoBack()" /></td>
            </tr>
        </table>
        <asp:GridView ID="gvPrice" runat="server" AutoGenerateColumns="False" CellPadding="4"
            EmptyDataText="无查询结果" Font-Names="Arial" Font-Size="Small" ForeColor="#333333"
            GridLines="None" Height="40px" ShowFooter="True" Width="620px" OnRowUpdated="gvPrice_RowUpdated" OnRowUpdating="gvPrice_RowUpdating" OnRowEditing="gvPrice_RowEditing" DataKeyNames="ID" OnRowCancelingEdit="gvPrice_RowCancelingEdit" AllowPaging="True" OnPageIndexChanging="gvPrice_PageIndexChanging" PageSize="15" OnRowDataBound="gvPrice_RowDataBound" >
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EmptyDataRowStyle Font-Names="Arial" Font-Size="Small" />
            <Columns>
                <asp:CommandField ShowEditButton="True" >
                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                </asp:CommandField>
                <asp:BoundField DataField="零件编号" HeaderText="零件编号" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                </asp:BoundField>               
                
                <asp:TemplateField HeaderText="单价">
                    <ItemTemplate>
                        <%# Eval("单价") %>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtEditPrice" Text='<%# Eval("单价")%>' runat="server" Width="90px" Height="16px" />
                    </EditItemTemplate>
                    <ItemStyle Width="80px" HorizontalAlign="Right" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="所属厂牌" ReadOnly="True" DataField="MakeName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="ModelName" HeaderText="所属车系" ReadOnly="True" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="备注" ReadOnly="True" DataField="备注" >
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:BoundField>
                <asp:BoundField DataField="导入标记" Visible="False" />
                <asp:BoundField DataField="匹配标记" Visible="False" />
            </Columns>
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditRowStyle BackColor="#999999" Font-Names="Arial" Font-Size="Small" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" Font-Names="Arial" Font-Size="Small" ForeColor="#284775" />
            <PagerSettings Mode="NumericFirstLast" />
            <PagerTemplate>
                当前页:<asp:Label  ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label> 
                总页数:<asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>">总页数:</asp:Label>                 
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton> 
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton> 
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton> 
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton> 
                <asp:textbox id="txtNewPageIndex" runat="server" width="24px" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' Height="11px" />
                <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" /> 
            </PagerTemplate>
        </asp:GridView>
                        <asp:HiddenField ID="hidVersion" runat="server" />
    
    </div>
                        <asp:HiddenField ID="hidModels" runat="server" />
                        <asp:HiddenField ID="hidTableName" runat="server" />
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -