pos_store.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="pos_store.aspx.cs" Inherits="web_system_pos_store" %>
- <!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 href="../../css/style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- <br />
- <asp:GridView ID="UrlList" runat="server" AutoGenerateColumns="False" BackColor="White"
- BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="id"
- DataSourceID="SqlDataSource1" GridLines="Vertical" Style="position: relative"
- Width="700px" OnRowCreated="UrlList_RowCreated" OnRowDataBound="UrlList_RowDataBound" AllowPaging="True" AllowSorting="True" PageSize="15" OnRowCommand="UrlList_RowCommand">
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <Columns>
- <asp:TemplateField HeaderText="POS門店名稱">
- <ItemTemplate>
- <asp:HyperLink ID="HlName" runat="server" Style="position: relative" Text='<%#Eval("name") %>'></asp:HyperLink>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="是否凍結">
- <ItemTemplate>
- <asp:HyperLink ID="HlIsFreeze" runat="server"></asp:HyperLink>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="排序">
- <ItemTemplate>
- <asp:HyperLink ID="BtnDown" runat="server" ImageUrl="~/images/down.jpg" Style="position: relative">HyperLink</asp:HyperLink>
- <asp:HyperLink ID="BtnUp" runat="server" ImageUrl="~/images/up.jpg" Style="position: relative">HyperLink</asp:HyperLink>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField>
- <ItemTemplate>
- <asp:HyperLink ID="HlEdit" runat="server">編輯</asp:HyperLink>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField>
- <ItemTemplate>
- <asp:LinkButton ID="BtnDelete" runat="server" CommandName="DeleteData" Style="position: relative">刪除</asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- </Columns>
- <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
- <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="Gainsboro" />
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="select id, name from OA_POS_URL order by sequence">
- </asp:SqlDataSource><br />
- <asp:Button ID="BtnAdd" runat="server" Text="添加" OnClick="BtnAdd_Click" /><br />
- <asp:HiddenField ID="MaxSequence" runat="server" Value="0" />
- <asp:Panel ID="Panel1" runat="server" Style="position: relative">
- <asp:Table ID="TblEdit" runat="server" Style="position: relative" Visible="false" Width="550px">
- <asp:TableHeaderRow>
- <asp:TableHeaderCell ColumnSpan="2" BackColor="Menu" HorizontalAlign="Left" BorderWidth="1px">
- POS門店綱址管理
- </asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">名稱</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtName" runat="server" Width="350px">
- </asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">綱址(出差用)</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtUrl" runat="server" Width="350px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">綱址(總部用)</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtInternalUrl" runat="server" Width="350px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">是否凍結</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:DropDownList ID="DdlFreeze" runat="server">
- <asp:ListItem Text="是" Value="Y"></asp:ListItem>
- <asp:ListItem Text="否" Value="N" Selected="True"></asp:ListItem>
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px" ColumnSpan="2">
- <asp:Button ID="BtnOk" runat="server" Text="儲存" OnClick="BtnOk_Click" />
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table><br />
- </asp:Panel>
- </center>
- </div>
- </form>
- </body>
- </html>