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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="pos_add_show.aspx.cs" Inherits="web_pos_pos_add_show" %>
  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>pos連接地址管理</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     
  10.     <div>
  11.     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  12.             SelectCommand="SELECT [id], [name], [url], [internal_url] FROM [OA_POS_URL]" DeleteCommand="DELETE FROM [OA_POS_URL] WHERE [id] = @original_id AND [name] = @original_name AND [url] = @original_url AND [internal_url] = @original_internal_url" InsertCommand="INSERT INTO [OA_POS_URL] ([name], [url], [internal_url]) VALUES (@name, @url, @internal_url)" UpdateCommand="UPDATE [OA_POS_URL] SET [name] = @name, [url] = @url, [internal_url] = @internal_url WHERE [id] = @original_id AND [name] = @original_name AND [url] = @original_url AND [internal_url] = @original_internal_url" ConflictDetection="CompareAllValues" OldValuesParameterFormatString="original_{0}">
  13.             <DeleteParameters>
  14.                 <asp:Parameter Name="original_id" Type="Int32" />
  15.                 <asp:Parameter Name="original_name" Type="String" />
  16.                 <asp:Parameter Name="original_url" Type="String" />
  17.                 <asp:Parameter Name="original_internal_url" Type="String" />
  18.             </DeleteParameters>
  19.             <UpdateParameters>
  20.                 <asp:Parameter Name="name" Type="String" />
  21.                 <asp:Parameter Name="url" Type="String" />
  22.                 <asp:Parameter Name="internal_url" Type="String" />
  23.                 <asp:Parameter Name="original_id" Type="Int32" />
  24.                 <asp:Parameter Name="original_name" Type="String" />
  25.                 <asp:Parameter Name="original_url" Type="String" />
  26.                 <asp:Parameter Name="original_internal_url" Type="String" />
  27.             </UpdateParameters>
  28.             <InsertParameters>
  29.                 <asp:Parameter Name="name" Type="String" />
  30.                 <asp:Parameter Name="url" Type="String" />
  31.                 <asp:Parameter Name="internal_url" Type="String" />
  32.             </InsertParameters>
  33.         </asp:SqlDataSource>
  34.         &nbsp; &nbsp;
  35.         <center>
  36.         <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
  37.             AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
  38.             BorderWidth="1px" CellPadding="3" DataKeyNames="id" DataSourceID="SqlDataSource1"
  39.             GridLines="Vertical" CaptionAlign="Right" Width="591px">
  40.             <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  41.             <Columns>
  42.                 <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
  43.                 <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
  44.                     SortExpression="id" Visible="False" />
  45.                 <asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" />
  46.                 <asp:BoundField DataField="url" HeaderText="内部网址" SortExpression="url" />
  47.                 <asp:BoundField DataField="internal_url" HeaderText="外部网址" SortExpression="internal_url" />
  48.             </Columns>
  49.             <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  50.             <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  51.             <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  52.             <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  53.             <AlternatingRowStyle BackColor="Gainsboro" />
  54.         </asp:GridView>
  55.             &nbsp;</center>
  56.         <center>
  57.         </center>
  58.      
  59.         <table align="center" border="0" height="20" style="width: 587px">
  60.             <tr>
  61.                 <td style="width: 258px; height: 1px">
  62.                     <span class="STYLE1" style="font-size: 30px; text-transform: uppercase; color: #000099;
  63.                         font-family: 隶书">新增門店地址</span></td>
  64.             </tr>
  65.             <tr>
  66.                 <td style="width: 258px; height: auto">
  67.                     &nbsp;門店名稱: &nbsp;
  68.                     <asp:TextBox ID="name" runat="server" Width="239px"></asp:TextBox></td>
  69.             </tr>
  70.             <tr>
  71.                 <td style="width: 258px; height: 45px;">
  72.                     &nbsp;外部地址: &nbsp;
  73.                     <asp:TextBox ID="url" runat="server" Width="238px"></asp:TextBox></td>
  74.             </tr>
  75.             <tr>
  76.                 <td style="width: 258px; height: 28px">
  77.                     &nbsp;內部地址: &nbsp;
  78.                     <asp:TextBox ID="internal_url" runat="server" Width="237px"></asp:TextBox></td>
  79.             </tr>
  80.             <tr>
  81.                 <td style="width: 258px">
  82.                     <asp:Button ID="btn_ok" runat="server" OnClick="btn_ok_Click" Text="新增" />
  83.                 </td>
  84.             </tr>
  85.         </table>
  86.     </div>
  87.     </form>
  88. </body>
  89. </html>