my_list_d.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:19k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list_d.aspx.cs" Inherits="web_approvel_ch_my_list_d" %>
- <!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>
- <style type="text/css">
- <!--
- .STYLE1 {font-size: 16px;
- float: none;
- height: 10px;
- width: 100px;
- border-top-style: double;
- border-right-style: double;
- border-bottom-style: double;
- border-left-style: double;
- position: relative;}
- -->
- </style>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Panel ID="PnlApprovel" runat="server" Style="left: 0px; position: relative;
- top: 0px" Visible="false">
- <center>
- <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="681px">
- <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="left">
- <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" ReadOnly="True" Style="position: relative"></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" ReadOnly="True" Style="position: relative"></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" ReadOnly="True" Style="position: relative"></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" ReadOnly="True" Style="position: relative"></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" ReadOnly="True" Style="position: relative"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:Table ID="TblDetail" runat="server" BorderStyle="Double" Style="position: relative"
- Width="828px">
- <asp:TableHeaderRow runat="server" BackColor="Menu">
- <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" BorderStyle="Double" Height="119px" Style="left: 1px;
- position: relative; top: 3px" Width="656px">
- <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" ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell31" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark1" runat="server" ReadOnly="True" Width="300px"></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" ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell39" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark2" runat="server" ReadOnly="True" Width="300px"></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" ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell40" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark3" runat="server" ReadOnly="True" Width="300px"></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" ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell44" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark4" runat="server" ReadOnly="True" Width="300px"></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" ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
- <asp:TableCell ID="TableCell48" runat="server" BorderWidth="1px" HorizontalAlign="Center">
- <asp:TextBox ID="TxtFRemark5" runat="server" ReadOnly="True" Width="300px"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </center>
- <center>
- </center>
- </asp:Panel>
- <br />
- </div>
- <center>
- <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" OnClick="BtnOk_Click" Style="position: relative"
- Text="送件" />
- <asp:HiddenField ID="State" runat="server" />
- <asp:HiddenField ID="PositionId" runat="server" />
- <asp:HiddenField ID="DepartmentId" runat="server" />
- </asp:Panel>
- </center>
- <center>
- </center>
- <center>
- <asp:Panel ID="PnlFlow" runat="server" Style="left: 0px; position: relative; top: 0px"
- Visible="False" Width="580px">
- <asp:GridView ID="FlowList" runat="server" AutoGenerateColumns="False" BackColor="White"
- BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
- Style="position: relative" 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 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:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="列印" Width="104px" />
- </center>
- </form>
- </body>
- </html>