pos_store.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="pos_store.aspx.cs" Inherits="web_system_pos_store" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.     <center>
  12.         <br />
  13.         <asp:GridView ID="UrlList" runat="server" AutoGenerateColumns="False" BackColor="White"
  14.             BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="id"
  15.             DataSourceID="SqlDataSource1" GridLines="Vertical" Style="position: relative"
  16.             Width="700px" OnRowCreated="UrlList_RowCreated" OnRowDataBound="UrlList_RowDataBound" AllowPaging="True" AllowSorting="True" PageSize="15" OnRowCommand="UrlList_RowCommand">
  17.             <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  18.             <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  19.             <Columns>
  20.                 <asp:TemplateField HeaderText="POS門店名稱">
  21.                     <ItemTemplate>
  22.                         <asp:HyperLink ID="HlName" runat="server" Style="position: relative" Text='<%#Eval("name") %>'></asp:HyperLink>
  23.                     </ItemTemplate>
  24.                 </asp:TemplateField>
  25.                 <asp:TemplateField HeaderText="是否凍結">
  26.                     <ItemTemplate>
  27.                         <asp:HyperLink ID="HlIsFreeze" runat="server"></asp:HyperLink>
  28.                     </ItemTemplate>
  29.                 </asp:TemplateField>
  30.                 <asp:TemplateField HeaderText="排序">
  31.                     <ItemTemplate>
  32.                         <asp:HyperLink ID="BtnDown" runat="server" ImageUrl="~/images/down.jpg" Style="position: relative">HyperLink</asp:HyperLink>
  33.                         <asp:HyperLink ID="BtnUp" runat="server" ImageUrl="~/images/up.jpg" Style="position: relative">HyperLink</asp:HyperLink>&nbsp;
  34.                     </ItemTemplate>
  35.                 </asp:TemplateField>
  36.                 <asp:TemplateField>
  37.                     <ItemTemplate>
  38.                         <asp:HyperLink ID="HlEdit" runat="server">編輯</asp:HyperLink>
  39.                     </ItemTemplate>
  40.                 </asp:TemplateField>
  41.                 <asp:TemplateField>
  42.                     <ItemTemplate>
  43.                         <asp:LinkButton ID="BtnDelete" runat="server" CommandName="DeleteData" Style="position: relative">刪除</asp:LinkButton>
  44.                     </ItemTemplate>
  45.                 </asp:TemplateField>
  46.             </Columns>
  47.             <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  48.             <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  49.             <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  50.             <AlternatingRowStyle BackColor="Gainsboro" />
  51.         </asp:GridView>
  52.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  53.             SelectCommand="select id, name from OA_POS_URL order by sequence">
  54.         </asp:SqlDataSource><br />
  55.         <asp:Button ID="BtnAdd" runat="server" Text="添加" OnClick="BtnAdd_Click" /><br />
  56.         <asp:HiddenField ID="MaxSequence" runat="server" Value="0" />
  57.         <asp:Panel ID="Panel1" runat="server" Style="position: relative">
  58.             <asp:Table ID="TblEdit" runat="server" Style="position: relative" Visible="false" Width="550px">
  59.                 <asp:TableHeaderRow>
  60.                     <asp:TableHeaderCell ColumnSpan="2" BackColor="Menu" HorizontalAlign="Left" BorderWidth="1px">
  61.                         POS門店綱址管理
  62.                     </asp:TableHeaderCell>
  63.                 </asp:TableHeaderRow>
  64.                 <asp:TableRow>
  65.                     <asp:TableCell BorderWidth="1px">名稱</asp:TableCell>
  66.                     <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  67.                         <asp:TextBox ID="TxtName" runat="server" Width="350px">
  68.                         </asp:TextBox>
  69.                     </asp:TableCell>
  70.                 </asp:TableRow>
  71.                 <asp:TableRow>
  72.                     <asp:TableCell BorderWidth="1px">綱址(出差用)</asp:TableCell>
  73.                     <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  74.                         <asp:TextBox ID="TxtUrl" runat="server" Width="350px"></asp:TextBox>
  75.                         
  76.                     </asp:TableCell>
  77.                 </asp:TableRow>
  78.                 <asp:TableRow>
  79.                     <asp:TableCell BorderWidth="1px">綱址(總部用)</asp:TableCell>
  80.                     <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  81.                         <asp:TextBox ID="TxtInternalUrl" runat="server" Width="350px"></asp:TextBox>
  82.                         
  83.                     </asp:TableCell>
  84.                 </asp:TableRow>
  85.                 <asp:TableRow>
  86.                     <asp:TableCell BorderWidth="1px">是否凍結</asp:TableCell>
  87.                     <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  88.                         <asp:DropDownList ID="DdlFreeze" runat="server">
  89.                             <asp:ListItem Text="是" Value="Y"></asp:ListItem>
  90.                             <asp:ListItem Text="否" Value="N" Selected="True"></asp:ListItem>
  91.                         </asp:DropDownList>
  92.                     </asp:TableCell>
  93.                 </asp:TableRow>
  94.                 <asp:TableRow>
  95.                     <asp:TableCell BorderWidth="1px" ColumnSpan="2">
  96.                         <asp:Button ID="BtnOk" runat="server" Text="儲存" OnClick="BtnOk_Click" />
  97.                     </asp:TableCell>
  98.                 </asp:TableRow>
  99.             </asp:Table><br />
  100.         </asp:Panel>
  101.         
  102.     </center>
  103.     </div>
  104.     </form>
  105. </body>
  106. </html>