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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="deal1_list.aspx.cs" Inherits="web_pos_c_deal1_list" %>
  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. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div>
  10.         &nbsp;<asp:Label ID="Label11" runat="server" Text="區域:"></asp:Label>&nbsp;
  11.         <asp:DropDownList ID="textArea" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id">
  12.         </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  13.             SelectCommand="SELECT [id], [name], [last_id] FROM [OA_DEPARTMENT] where id=144 or id=145 or id=146 or id=147 or&#13;&#10;id=194">
  14.         </asp:SqlDataSource>
  15.         <br />
  16.         <asp:Label ID="Label22" runat="server" Text="日期:"></asp:Label>
  17.         <asp:TextBox ID="textDate" runat="server"></asp:TextBox>
  18.          <asp:ImageButton ID="ImageButton2" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton2_Click" ></asp:ImageButton>
  19.                     <asp:Calendar ID="Calendar2" runat="server" BackColor="White" BorderColor="#999999"
  20.                         CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  21.                         ForeColor="Black" Height="145px" OnSelectionChanged="Calendar2_SelectionChanged"
  22.                         Style="position: relative" Visible="False" Width="200px">
  23.                         <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  24.                         <SelectorStyle BackColor="#CCCCCC" />
  25.                         <WeekendDayStyle BackColor="#FFFFCC" />
  26.                         <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  27.                         <OtherMonthDayStyle ForeColor="Gray" />
  28.                         <NextPrevStyle VerticalAlign="Bottom" />
  29.                         <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  30.                         <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  31.                     </asp:Calendar>
  32.         <br />
  33.         <asp:Button ID="Btn_ok" runat="server" Text="查詢" OnClick="Btn_ok_Click" />
  34.         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
  35.         &nbsp; &nbsp; &nbsp;
  36.         <asp:Panel ID="Panel1" runat="server" Height="148px" Width="521px">
  37.         <asp:GridView ID="PosCList" runat="server" BackColor="White" BorderColor="#999999"
  38.             BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
  39.             GridLines="Vertical" AutoGenerateColumns="False"   OnRowDataBound="PosCList_RowDataBound">
  40.             <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  41.             <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  42.             <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  43.             <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  44.             <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  45.             <AlternatingRowStyle BackColor="Gainsboro" />
  46.             <Columns>
  47.                 <asp:BoundField DataField="name" HeaderText="店名" SortExpression="name" />
  48.                 <asp:BoundField DataField="t_count" HeaderText="來客數" SortExpression="t_count" />
  49.                 <asp:BoundField DataField="t_count1" HeaderText="提袋數" SortExpression="t_count1" />
  50.                 <asp:BoundField DataField="t_lv" HeaderText="提袋率" SortExpression="t_lv" />
  51.                 <asp:BoundField DataField="t_date" HeaderText="提袋日期" SortExpression="t_date" />
  52.                 <asp:BoundField DataField="remark" HeaderText="備注" SortExpression="remark" />
  53.                 <asp:BoundField DataField="apply_date" HeaderText="填單日期" SortExpression="apply_date" />
  54.             </Columns>
  55.         </asp:GridView>
  56.         </asp:Panel>       
  57.         <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>" SelectCommand="select f.id,d.name,f.t_count,f.t_count1,f.t_lv,f.t_date,f.remark,f.apply_date from oa_pos_c_form &#13;&#10;as f left join oa_department as d on f.department_id=d.id &#13;&#10;where t_date=convert(varchar(10),getdate(),120) order by d.id"></asp:SqlDataSource>
  58.         <asp:Panel ID="Panel2" runat="server" Height="145px" Width="529px" Visible="false">
  59.         <asp:GridView ID="PosCList_select" runat="server" AutoGenerateColumns="False" BackColor="White"
  60.             BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1"
  61.             GridLines="Vertical"  Width="508px"   OnRowDataBound="PosCList_select_RowDataBound">
  62.             <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  63.             <Columns>
  64.                 <asp:BoundField DataField="name" HeaderText="店名" SortExpression="name" />
  65.                 <asp:BoundField DataField="t_count" HeaderText="來客數" SortExpression="t_count" />
  66.                 <asp:BoundField DataField="t_count1" HeaderText="提代數" SortExpression="t_count1" />
  67.                 <asp:BoundField DataField="t_lv" HeaderText="提袋率" SortExpression="t_lv" />
  68.                 <asp:BoundField DataField="t_date" HeaderText="提袋日期" SortExpression="t_date" />               
  69.                 <asp:BoundField DataField="remark" HeaderText="備注" SortExpression="remark" />
  70.                 <asp:BoundField DataField="apply_date" HeaderText="填單日期" SortExpression="apply_date" />
  71.             </Columns>
  72.             <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  73.             <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  74.             <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  75.             <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  76.             <AlternatingRowStyle BackColor="#DCDCDC" />
  77.         </asp:GridView>
  78.         </asp:Panel>
  79.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  80.             SelectCommand="select f.id,d.name,f.t_count,f.t_count1,f.t_lv,f.t_date,f.remark,f.apply_date from oa_pos_c_form as f left join oa_department as d on f.department_id=d.id where t_date=@t_date and d.last_id=@dpt_id">
  81.             <SelectParameters>
  82.                 <asp:QueryStringParameter  Name="t_date" QueryStringField="t_date" />
  83.                 <asp:QueryStringParameter  Name="dpt_id" QueryStringField="dpt_id" />
  84.             </SelectParameters>
  85.         </asp:SqlDataSource>
  86.         <asp:Panel ID="Panel3" runat="server" Height="1px" Visible="False" Width="521px">
  87.             &nbsp;<asp:Table ID="TblForm" runat="server" Height="300" Width="574px">
  88.                 <asp:TableHeaderRow runat="server">
  89.                     <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4" Height="20px"
  90.                         HorizontalAlign="Left">流通事業群POS來客數統計單</asp:TableHeaderCell>
  91.                 </asp:TableHeaderRow>
  92.                 <asp:TableRow runat="server">
  93.                     <asp:TableCell runat="server" BorderWidth="1px">
  94.                         <asp:Label ID="LblFormNo" runat="server" BorderStyle="None" Text="申請單號"></asp:Label>
  95.                     </asp:TableCell>
  96.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  97.                         <asp:TextBox ID="TxtFormNo" runat="server" Enabled="False"></asp:TextBox>
  98.                     </asp:TableCell>
  99.                     <asp:TableCell ID="TableCell3" runat="server" BorderWidth="1px">
  100.                         <asp:Label ID="Label1" runat="server" BorderStyle="None" Text="申請人工號"></asp:Label>
  101.                     </asp:TableCell>
  102.                     <asp:TableCell ID="TableCell4" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  103.                         <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="False"></asp:TextBox>
  104.                     </asp:TableCell>
  105.                 </asp:TableRow>
  106.                 <asp:TableRow runat="server">
  107.                     <asp:TableCell ID="TableCell5" runat="server" BorderWidth="1px">
  108.                         <asp:Label ID="Label2" runat="server" BorderStyle="None" Text="申請人姓名"></asp:Label>
  109.                     </asp:TableCell>
  110.                     <asp:TableCell ID="TableCell6" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  111.                         <asp:TextBox ID="TxtEmpName" runat="server" Enabled="False"></asp:TextBox>
  112.                     </asp:TableCell>
  113.                     <asp:TableCell ID="TableCell7" runat="server" BorderWidth="1px">
  114.                         <asp:Label ID="Label3" runat="server" BorderStyle="None" Text="申請日期"></asp:Label>
  115.                     </asp:TableCell>
  116.                     <asp:TableCell ID="TableCell8" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  117.                         <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="False"></asp:TextBox>
  118.                     </asp:TableCell>
  119.                 </asp:TableRow>
  120.                 <asp:TableRow runat="server">
  121.                     <asp:TableCell ID="TableCell9" runat="server" BorderWidth="1px">
  122.                         <asp:Label ID="Label4" runat="server" BorderStyle="None" Text="申請人部門"></asp:Label>
  123.                     </asp:TableCell>
  124.                     <asp:TableCell ID="TableCell10" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  125.                         <asp:TextBox ID="TxtDepartment" runat="server" Enabled="False"></asp:TextBox>
  126.                     </asp:TableCell>
  127.                     <asp:TableCell ID="TableCell11" runat="server" BorderWidth="1px">
  128.                         <asp:Label ID="Label5" runat="server" BorderStyle="None" Text="申請人職稱"></asp:Label>
  129.                     </asp:TableCell>
  130.                     <asp:TableCell ID="TableCell12" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  131.                         <asp:TextBox ID="TxtPosition" runat="server" Enabled="False"></asp:TextBox>
  132.                     </asp:TableCell>
  133.                 </asp:TableRow>
  134.                 <asp:TableRow ID="TableRow1" runat="server">
  135.                     <asp:TableCell ID="TableCell1" runat="server" BorderWidth="1px">
  136.                         <asp:Label ID="Label6" runat="server" BorderStyle="None" Text="來客數"></asp:Label>
  137.                     </asp:TableCell>
  138.                     <asp:TableCell ID="TableCell2" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  139.                         <asp:TextBox ID="TextCount" runat="server" Enabled="False"></asp:TextBox>
  140.                     </asp:TableCell>
  141.                     <asp:TableCell ID="TableCell13" runat="server" BorderWidth="1px">
  142.                         <asp:Label ID="Label7" runat="server" BorderStyle="None" Text="提袋數"></asp:Label>
  143.                     </asp:TableCell>
  144.                     <asp:TableCell ID="TableCell14" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  145.                         <asp:TextBox ID="TextCount1" runat="server" Enabled="False"></asp:TextBox>
  146.                     </asp:TableCell>
  147.                 </asp:TableRow>
  148.                 <asp:TableRow ID="TableRow2" runat="server">
  149.                     <asp:TableCell ID="TableCell15" runat="server" BorderWidth="1px">
  150.                         <asp:Label ID="Label8" runat="server" BorderStyle="None" Text="提袋率"></asp:Label>
  151.                     </asp:TableCell>
  152.                     <asp:TableCell ID="TableCell16" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  153.                         <asp:TextBox ID="TextLv" runat="server" Enabled="False"></asp:TextBox>
  154.                     </asp:TableCell>
  155.                     <asp:TableCell ID="TableCell17" runat="server" BorderWidth="1px">
  156.                         <asp:Label ID="Label9" runat="server" BorderStyle="None" Text="提袋日期"></asp:Label>
  157.                     </asp:TableCell>
  158.                     <asp:TableCell ID="TableCell18" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  159.                         <asp:TextBox ID="TextDate1" runat="server" Enabled="False"></asp:TextBox>
  160.                     </asp:TableCell>
  161.                 </asp:TableRow>
  162.                 <asp:TableRow ID="TableRow3" runat="server">
  163.                     <asp:TableCell ID="TableCell19" runat="server" BorderWidth="1px">
  164.                         <asp:Label ID="LblReason" runat="server" BorderStyle="None" Text="備注"></asp:Label>
  165.                     </asp:TableCell>
  166.                     <asp:TableCell ID="TableCell20" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  167.                         <asp:TextBox ID="TxtRemark" runat="server" Enabled="False" Rows="3" TextMode="MultiLine"
  168.                             Width="450px"></asp:TextBox>
  169.                     </asp:TableCell>
  170.                 </asp:TableRow>
  171.                 <asp:TableRow runat="server" BorderWidth="1px">
  172.                     <asp:TableCell runat="server" BorderWidth="1px" ColumnSpan="4">
  173.                         <asp:Button ID="BtnSave" runat="server" Enabled="false" Text="存储" />
  174.                     </asp:TableCell>
  175.                 </asp:TableRow>
  176.             </asp:Table>
  177.         </asp:Panel>
  178.         <br />
  179.         &nbsp;<br />
  180.         &nbsp; &nbsp;&nbsp; &nbsp;
  181.     </div>
  182.     </form>
  183. </body>
  184. </html>