my_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:33k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_approvel_ch_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>
- <br />
- <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
- Text="我的申請單"></asp:Label> </center>
- <center><br />
- <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" Width="580px" OnRowDataBound="ApprovelList_RowDataBound" DataSourceID="SqlDataSource1">
- <FooterStyle BackColor="White" ForeColor="#000066" />
- <RowStyle ForeColor="Black" /><Columns>
- <asp:BoundField DataField="apply_date" SortExpression="apply_date" HeaderText="申請日期" />
- <asp:BoundField DataField="form_id" SortExpression="form_id" HeaderText="單號" />
- <asp:TemplateField HeaderText="類別">
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Style="position: relative" Text="出差"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
- </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="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="select id, apply_date, form_id, total_result from OA_CH_BUSINESS_FORM where emp_id=@user_id order by apply_date desc">
- <SelectParameters>
- <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
- </SelectParameters>
- </asp:SqlDataSource>
-
- </center>
- <center>
- </center>
- <center>
- </center>
- <center>
- <asp:GridView ID="OffList" runat="server" BackColor="White" BorderColor="#CCCCCC"
- BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="580px" OnRowDataBound="OffList_RowDataBound" DataSourceID="SqlDataSource3">
- <FooterStyle BackColor="White" ForeColor="#000066" />
- <RowStyle 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="處理結果" />
- </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="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="select o.id, o.form_id, o.apply_date, o.total_result, t.name type from OA_CH_OFF_FORM o inner join OA_CH_OFF_TYPE t on o.off_type=t.id where emp_id=@user_id order by o.apply_date desc">
- <SelectParameters>
- <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- <br />
- <asp:Panel ID="PnlApprovel" runat="server" Style="position: relative; left: 0px; top: 0px;" Visible="False">
- <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="580px">
- <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
- <asp:TableHeaderCell ID="TableHeaderCell1" 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="Label221" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormId" runat="server" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label9" runat="server" Style="position: relative" Text="差假別"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffType" runat="server" ReadOnly="true" Style="position: relative"
- Text="出差" ></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label2" runat="server" Style="position: relative" Text="申請人工號"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpNo" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="Label10" runat="server" Style="position: relative" Text="出差日期起"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBeginTime" runat="server" Style="position: relative" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label3" runat="server" Style="position: relative" Text="申請人姓名"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label11" runat="server" Style="position: relative" Text="出差日期止"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEndTime" runat="server" Style="position: relative" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label4" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label12" runat="server" Style="position: relative" Text="去程出發地"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartPlace" runat="server" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label5" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartment" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label13" runat="server" Style="position: relative" Text="回程終地點"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtArrivePlace" runat="server" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label6" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtPosition" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label14" runat="server" Style="position: relative" Text="(去程)起飛時間"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartTime" runat="server" Style="position: relative" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label7" runat="server" Style="position: relative" Text="出差天數"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDays" runat="server" Style="position: relative" ReadOnly="True"></asp:TextBox>日</asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label8" runat="server" Style="position: relative;" Text="(回程)起飛時間"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtArriveTime" runat="server" Style="position: relative" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:Table ID="TblDetail" runat="server" Style="position: relative" Width="828px" BorderStyle="Double">
- <asp:TableHeaderRow BackColor="Menu" runat="server">
- <asp:TableHeaderCell runat="server">序號</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">出差期間</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">起</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">迄</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">交通工具</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">業務內容(含訪問團體)</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server" >備註</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- </asp:Table>
- <br />
- <asp:Table ID="Table3" runat="server" Height="119px" Style="left: 1px; position: relative;
- top: 3px" Width="656px" BorderStyle="Double">
- <asp:TableHeaderRow ID="TableHeaderRow2" runat="server" BackColor="Menu">
- <asp:TableHeaderCell ID="TableHeaderCell2" runat="server">序號</asp:TableHeaderCell>
- <asp:TableHeaderCell ID="TableHeaderCell4" runat="server">費用內容</asp:TableHeaderCell>
- <asp:TableHeaderCell ID="TableHeaderCell3" runat="server">申請金額</asp:TableHeaderCell>
- <asp:TableHeaderCell ID="TableHeaderCell8" runat="server">備註</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow ID="TableRow5" runat="server">
- <asp:TableCell ID="TableCell29" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFNo1" runat="server" BorderStyle="None" Text="1" Width="30px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell38" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFContent1" runat="server" BorderStyle="None" Text="膳食費用" Width="70px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell30" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFAmt1" runat="server" Width="200px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell31" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark1" runat="server" Width="300px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow6" runat="server">
- <asp:TableCell ID="TableCell32" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFNo2" runat="server" BorderStyle="None" Text="2" Width="30px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell33" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFContent2" runat="server" BorderStyle="None" Text="住宿費用" Width="70px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell34" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFAmt2" runat="server" Width="200px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell39" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark2" runat="server" Width="300px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow7" runat="server">
- <asp:TableCell ID="TableCell35" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFNo3" runat="server" BorderStyle="None" Text="3" Width="30px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell36" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFContent3" runat="server" BorderStyle="None" Text="交通費用" Width="70px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell37" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFAmt3" runat="server" Width="200px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell40" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark3" runat="server" Width="300px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow8" runat="server">
- <asp:TableCell ID="TableCell41" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFNo4" runat="server" BorderStyle="None" Text="4" Width="30px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell42" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFContent4" runat="server" BorderStyle="None" Text="其他費用" Width="70px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell43" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFAmt4" runat="server" Width="200px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell44" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark4" runat="server" Width="300px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow9" runat="server">
- <asp:TableCell ID="TableCell45" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFNo5" runat="server" BorderStyle="None" Text="5" Width="30px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell46" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:Label ID="LabFContent5" runat="server" BorderStyle="None" Text="合計" Width="70px"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell47" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFAmt5" runat="server" Width="200px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell48" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark5" runat="server" Width="300px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </asp:Panel>
- <asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
- <asp:Label ID="LblError" runat="server" ForeColor="Red"></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>
- <br />
- <asp:Panel style="POSITION: relative; left: 0px; top: 0px;" id="PnlFlow" runat="server" Width="580px" Visible="False">
- <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>
- <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" ></asp:BoundField>
- <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" ></asp:BoundField>
- </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 dbo.OA_CH_APPROVEL_FORM_FLOW AS f INNER JOIN dbo.OA_EMPLOYEE AS e ON e.id = f.operator_id WHERE (f.form_id = @form_id) and (is_business='Y') order by f.id">
- <SelectParameters>
- <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="a_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- </asp:Panel>
- </center>
- <center>
- <asp:Panel ID="PnlOffForm" runat="server" Visible="False">
- <asp:Table ID="Table1" 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="Label111" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffFormId" runat="server" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label122" runat="server" Text="假別"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffType2" runat="server" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label114" runat="server" Style="position: relative" Text="申請人"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffEmpName" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Labe1l3" runat="server" Style="position: relative" Text="開始時間"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffBeginTime" ReadOnly="True" runat="server" Style="position: relative"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label133" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffApplyDate" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Labe3l4" runat="server" Style="position: relative" Text="結束時間"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffEndTime" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label112" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffDepartment" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label15" runat="server" Style="position: relative" Text="休假時數"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtHours" runat="server" ReadOnly="True" Style="position: relative"></asp:TextBox>小時</asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label121" runat="server" Style="position: relative" Text="職務代理人"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDelegate" runat="server" ReadOnly="True"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px"> </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px"> </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label110" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtOffPosition" runat="server" Style="position: relative" ReadOnly="True"></asp:TextBox></asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px"> </asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px"> </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label118" runat="server" Style="position: relative" Text="附帶公務"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell1" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
- <asp:TextBox ID="TxtParenthesis" runat="server" Rows="3" Style="position: relative"
- TextMode="MultiLine" Width="450px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" BorderWidth="1px">
- <asp:Label ID="Label29" runat="server" Style="position: relative" Text="事由"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell2" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
- <asp:TextBox ID="TxtReason" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
- Width="450px" ReadOnly="True"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </asp:Panel>
- <br />
- <asp:Panel ID="Panel2" runat="server" Style="position: relative" Visible="false">
- <asp:Label ID="LblError2" runat="server" ForeColor="Red"></asp:Label>
- <asp:Button ID="BtnOk2" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk2_Click" />
- </asp:Panel>
- <asp:Panel ID="PnlOffFlow" runat="server" style="position: relative" Visible="False"><asp:GridView ID="OffFlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
- BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource4" Width="580px" OnRowCreated="OffFlowList_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:Panel>
- <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT f.id, f.step, e.emp_name, f.comment, f.check_date FROM dbo.OA_CH_APPROVEL_FORM_FLOW AS f INNER JOIN dbo.OA_EMPLOYEE AS e ON e.id = f.operator_id WHERE (f.form_id = @form_id) and (is_business='N') order by f.id">
- <SelectParameters>
- <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="o_id" />
- </SelectParameters>
- </asp:SqlDataSource>
- </center>
- </div>
- </form>
- </body>
- </html>