deal1_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:13k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="deal1_list.aspx.cs" Inherits="web_pos_c_deal1_list" %>
- <!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>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Label ID="Label11" runat="server" Text="區域:"></asp:Label>
- <asp:DropDownList ID="textArea" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id">
- </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name], [last_id] FROM [OA_DEPARTMENT] where id=144 or id=145 or id=146 or id=147 or id=194">
- </asp:SqlDataSource>
- <br />
- <asp:Label ID="Label22" runat="server" Text="日期:"></asp:Label>
- <asp:TextBox ID="textDate" runat="server"></asp:TextBox>
- <asp:ImageButton ID="ImageButton2" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton2_Click" ></asp:ImageButton>
- <asp:Calendar ID="Calendar2" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" OnSelectionChanged="Calendar2_SelectionChanged"
- Style="position: relative" Visible="False" Width="200px">
- <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
- <SelectorStyle BackColor="#CCCCCC" />
- <WeekendDayStyle BackColor="#FFFFCC" />
- <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
- <OtherMonthDayStyle ForeColor="Gray" />
- <NextPrevStyle VerticalAlign="Bottom" />
- <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
- <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
- </asp:Calendar>
- <br />
- <asp:Button ID="Btn_ok" runat="server" Text="查詢" OnClick="Btn_ok_Click" />
-
-
- <asp:Panel ID="Panel1" runat="server" Height="148px" Width="521px">
- <asp:GridView ID="PosCList" runat="server" BackColor="White" BorderColor="#999999"
- BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
- GridLines="Vertical" AutoGenerateColumns="False" OnRowDataBound="PosCList_RowDataBound">
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
- <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="Gainsboro" />
- <Columns>
- <asp:BoundField DataField="name" HeaderText="店名" SortExpression="name" />
- <asp:BoundField DataField="t_count" HeaderText="來客數" SortExpression="t_count" />
- <asp:BoundField DataField="t_count1" HeaderText="提袋數" SortExpression="t_count1" />
- <asp:BoundField DataField="t_lv" HeaderText="提袋率" SortExpression="t_lv" />
- <asp:BoundField DataField="t_date" HeaderText="提袋日期" SortExpression="t_date" />
- <asp:BoundField DataField="remark" HeaderText="備注" SortExpression="remark" />
- <asp:BoundField DataField="apply_date" HeaderText="填單日期" SortExpression="apply_date" />
- </Columns>
- </asp:GridView>
- </asp:Panel>
- <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 as f left join oa_department as d on f.department_id=d.id where t_date=convert(varchar(10),getdate(),120) order by d.id"></asp:SqlDataSource>
- <asp:Panel ID="Panel2" runat="server" Height="145px" Width="529px" Visible="false">
- <asp:GridView ID="PosCList_select" runat="server" AutoGenerateColumns="False" BackColor="White"
- BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1"
- GridLines="Vertical" Width="508px" OnRowDataBound="PosCList_select_RowDataBound">
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <Columns>
- <asp:BoundField DataField="name" HeaderText="店名" SortExpression="name" />
- <asp:BoundField DataField="t_count" HeaderText="來客數" SortExpression="t_count" />
- <asp:BoundField DataField="t_count1" HeaderText="提代數" SortExpression="t_count1" />
- <asp:BoundField DataField="t_lv" HeaderText="提袋率" SortExpression="t_lv" />
- <asp:BoundField DataField="t_date" HeaderText="提袋日期" SortExpression="t_date" />
- <asp:BoundField DataField="remark" HeaderText="備注" SortExpression="remark" />
- <asp:BoundField DataField="apply_date" HeaderText="填單日期" SortExpression="apply_date" />
- </Columns>
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
- <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="#DCDCDC" />
- </asp:GridView>
- </asp:Panel>
- <asp:SqlDataSource ID="SqlDataSource1" 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 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">
- <SelectParameters>
- <asp:QueryStringParameter Name="t_date" QueryStringField="t_date" />
- <asp:QueryStringParameter Name="dpt_id" QueryStringField="dpt_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- <asp:Panel ID="Panel3" runat="server" Height="1px" Visible="False" Width="521px">
- <asp:Table ID="TblForm" runat="server" Height="300" Width="574px">
- <asp:TableHeaderRow runat="server">
- <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4" Height="20px"
- HorizontalAlign="Left">流通事業群POS來客數統計單</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFormNo" runat="server" BorderStyle="None" Text="申請單號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormNo" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell ID="TableCell3" runat="server" BorderWidth="1px">
- <asp:Label ID="Label1" runat="server" BorderStyle="None" Text="申請人工號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell4" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell ID="TableCell5" runat="server" BorderWidth="1px">
- <asp:Label ID="Label2" runat="server" BorderStyle="None" Text="申請人姓名"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell6" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell ID="TableCell7" runat="server" BorderWidth="1px">
- <asp:Label ID="Label3" runat="server" BorderStyle="None" Text="申請日期"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell8" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell ID="TableCell9" runat="server" BorderWidth="1px">
- <asp:Label ID="Label4" runat="server" BorderStyle="None" Text="申請人部門"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell10" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartment" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell ID="TableCell11" runat="server" BorderWidth="1px">
- <asp:Label ID="Label5" runat="server" BorderStyle="None" Text="申請人職稱"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell12" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtPosition" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow1" runat="server">
- <asp:TableCell ID="TableCell1" runat="server" BorderWidth="1px">
- <asp:Label ID="Label6" runat="server" BorderStyle="None" Text="來客數"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell2" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TextCount" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell ID="TableCell13" runat="server" BorderWidth="1px">
- <asp:Label ID="Label7" runat="server" BorderStyle="None" Text="提袋數"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell14" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TextCount1" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow2" runat="server">
- <asp:TableCell ID="TableCell15" runat="server" BorderWidth="1px">
- <asp:Label ID="Label8" runat="server" BorderStyle="None" Text="提袋率"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell16" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TextLv" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell ID="TableCell17" runat="server" BorderWidth="1px">
- <asp:Label ID="Label9" runat="server" BorderStyle="None" Text="提袋日期"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell18" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TextDate1" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow3" runat="server">
- <asp:TableCell ID="TableCell19" runat="server" BorderWidth="1px">
- <asp:Label ID="LblReason" runat="server" BorderStyle="None" Text="備注"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell20" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
- <asp:TextBox ID="TxtRemark" runat="server" Enabled="False" Rows="3" TextMode="MultiLine"
- Width="450px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server" BorderWidth="1px">
- <asp:TableCell runat="server" BorderWidth="1px" ColumnSpan="4">
- <asp:Button ID="BtnSave" runat="server" Enabled="false" Text="存储" />
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </asp:Panel>
- <br />
- <br />
-
- </div>
- </form>
- </body>
- </html>