my_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:19k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_approvel_tw_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>
- <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
- Text="我的申請單"></asp:Label> </center>
- <center>
- </center>
- <center>
- <asp:GridView ID="ApprovelList" runat="server" BackColor="White" BorderColor="#CCCCCC"
- BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="580px" OnRowDataBound="ApprovelList_RowDataBound" OnRowCreated="ApprovelList_RowCreated">
- <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_id" SortExpression="form_id" HeaderText="單號" />
- <asp:BoundField DataField="type" HeaderText="類別" SortExpression="type" />
- <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
- <asp:TemplateField>
- <ItemTemplate>
- <asp:LinkButton ID="LbRevoke" OnClientClick="return confirm('確定要撤銷嗎?')" runat="server" Style="position: relative" Enabled="false">撤销</asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- </Columns>
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="select a.id, a.form_id, a.apply_date, t.name type, a.total_result from OA_TW_APPROVEL_FORM a inner join OA_TW_OFF_TYPE t on a.off_type=t.id where a.emp_id=@user_id order by a.apply_date desc">
- <SelectParameters>
- <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- <asp:Panel ID="PnlApprovel" runat="server" Style="position: relative" Visible="False">
- <br />
- <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="580px">
- <asp:TableHeaderRow runat="server">
- <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4" Height="20px"
- HorizontalAlign="Left">流通事業群台幹差假單</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 runat="server" BorderWidth="1px">
- <asp:Label ID="LblVacationBegin" runat="server" BorderStyle="None"
- Text="休假日期起"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtVacationBegin" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblEmpNo" runat="server" BorderStyle="None" Text="申請人工號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblVacationEnd" runat="server" BorderStyle="None"
- Text="休假日期止"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtVacationEnd" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblApplyDate" runat="server" BorderStyle="None" Text="申請日期"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblVacationPlace" runat="server" BorderStyle="None"
- Text="休假區域"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtVacationPlace" runat="server" Enabled="false"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblEmpId" runat="server" BorderStyle="None" Text="申請人姓名"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFlightGoDepart" runat="server" BorderStyle="None" Text="班機(往)出發地"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightGoDepart" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblDepartment" runat="server" BorderStyle="None" Text="申請人部門"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartment" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFlightGoArrive" runat="server" BorderStyle="None" Text="班機(往)終地點"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightGoArrive" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblPosition" runat="server" BorderStyle="None" Text="申請人職稱"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtPosition" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFlightGoTime" runat="server" BorderStyle="None" Text="(往)起飛時間"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightGoTime" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblDelegate" runat="server" BorderStyle="None" Text="代理人"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDelegate" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFlightBackTime" runat="server" BorderStyle="None" Text="(返)起飛時間"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightBackTime" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblOffType" runat="server" BorderStyle="None" Text="假別"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffType" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFlightBackDepart" runat="server" BorderStyle="None" Text="班機(返)出發地"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightBackDepart" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblParenthesis" runat="server" BorderStyle="None" Text="附帶公務假"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtParenthesis" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblFlightBackArrive" runat="server" BorderStyle="None" Text="班機(返)終地點"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightBackArrive" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblDays" runat="server" BorderStyle="None" Text="工作日數"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDays" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblBusinessBegin" runat="server" BorderStyle="None" Text="工作日期起"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBusinessBegin" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblBusinessPlace" runat="server" BorderStyle="None" Text="工作地點"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBusinessPlace" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblBusinessEnd" runat="server" BorderStyle="None" Text="工作日期止"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBusinessEnd" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="LblReason" runat="server" BorderStyle="None" Text="申請事由"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
- <asp:TextBox ID="TxtReason" runat="server" Rows="3" TextMode="MultiLine" Width="450px" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </asp:Panel>
- </center>
- <center>
- <asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
- <asp:Label ID="LblError" ForeColor="red" runat="server"></asp:Label>
- <asp:Button ID="BtnOk" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk_Click" />
- <asp:HiddenField ID="State" runat="server" />
- <asp:HiddenField ID="PositionId" runat="server" />
- <asp:HiddenField ID="DepartmentId" runat="server" />
- </asp:Panel>
- <asp:Panel ID="PnlFlow" runat="server" Style="position: relative; left: 0px; top: 0px;" 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_TW_APPROVEL_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="a_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- </asp:Panel>
- </center>
- </div>
- </form>
- </body>
- </html>