my_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:9k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_fair_my_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>
- <link href="../../css/style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- </center>
- <center>
- <asp:Label ID="LblTitle" runat="server" Text="我的申請單" Font-Bold="True" Font-Size="Medium"></asp:Label>
- </center>
- <center>
- </center>
- <center>
- <asp:GridView ID="FairList" runat="server" AllowPaging="True" AllowSorting="True"
- AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
- BorderWidth="1px" CellPadding="3"
- Style="position: relative" Width="580px" DataKeyNames="id" DataSourceID="SqlDataSource1" OnRowDataBound="FairList_RowDataBound">
- <FooterStyle BackColor="White" ForeColor="#000066" />
- <RowStyle ForeColor="Black" />
- <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
- <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
- <Columns>
- <asp:BoundField DataField="apply_date" SortExpression="apply_date" HeaderText="申請日期" />
- <asp:BoundField DataField="form_no" SortExpression="form_no" HeaderText="單號" />
- <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
- </Columns>
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT id, form_no, apply_date, total_result FROM dbo.OA_FAIR WHERE (emp_id = @emp_id) ORDER BY form_no DESC">
- <SelectParameters>
- <asp:SessionParameter DefaultValue="0" Name="emp_id" SessionField="user_id" />
- </SelectParameters>
- </asp:SqlDataSource><br />
- <asp:Panel ID="PnlFair" Visible="false" runat="server" Style="position: relative">
- <asp:Table ID="TblFair" runat="server" Style="position: relative" Width="580px">
- <asp:TableHeaderRow BackColor="menu">
- <asp:TableHeaderCell ColumnSpan="2" BorderWidth="1px" HorizontalAlign="Left">費用申請表單</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px" Width="130px">單號</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormNo" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請人姓名</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請人工號</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請日期</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">主旨</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtSubject" runat="server" Width="300px" Enabled="false"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請金額</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtAmount" runat="server" Width="300px" Enabled="false"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow Visible="false">
- <asp:TableCell BorderWidth="1px">差旅單號</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:HyperLink ID="HlFormNo" runat="server"></asp:HyperLink>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">備註</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtRemark" runat="server" Width="400px" Enabled="false" TextMode="MultiLine" Rows="5"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow Visible="false">
- <asp:TableCell BorderWidth="1px">圖檔</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:Panel ID="PnlPicture" runat="server" HorizontalAlign="Left">
- </asp:Panel>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </asp:Panel><br />
- <asp:Panel ID="PnlFlow" runat="server" Style="position: relative" Width="580px">
- <asp:GridView ID="FlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
- BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Width="580px" OnRowCreated="FlowList_RowCreated">
- <FooterStyle BackColor="White" ForeColor="#000066" />
- <RowStyle ForeColor="Black" />
- <Columns>
- <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
- <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
- <asp:TemplateField HeaderText="簽核類別">
- <ItemTemplate>
- <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="處理狀態">
- <ItemTemplate>
- <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="是否同意">
- <ItemTemplate>
- <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="處理意見">
- <ItemTemplate>
- <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
- </Columns>
- <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
- <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="select f.id, f.step,e.emp_name, f.comment, f.check_date from OA_FAIR_FORM_FLOW f inner join OA_EMPLOYEE e on e.id=f.operator_id where form_id=@form_id">
- <SelectParameters>
- <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="f_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- </asp:Panel>
- </center>
- </div>
- </form>
- </body>
- </html>