141 lines
7.2 KiB
Plaintext
141 lines
7.2 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true"
|
|
CodeBehind="學員行前通知.aspx.cs" Inherits="Education.Forms.辦訓前置作業.學員行前通知" %>
|
|
|
|
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="weblib" %>
|
|
<%@ Register Src="../Common/訓練企劃搜尋.ascx" TagName="訓練企劃搜尋" TagPrefix="uc1" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
|
<asp:ObjectDataSource ID="ds計畫" runat="server" OldValuesParameterFormatString="original_{0}"
|
|
SelectMethod="Select確定報名學員計畫" TypeName="Education.DAC_課程報名" OnObjectCreating="ds報名學員_ObjectCreating">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="訓練企劃搜尋" Name="訓練課程編號" PropertyName="訓練企劃編號"
|
|
Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:ObjectDataSource ID="ds報名學員" runat="server" OldValuesParameterFormatString="original_{0}"
|
|
SelectMethod="Select確定報名學員名單" TypeName="Education.DAC_課程報名" OnObjectCreating="ds報名學員_ObjectCreating">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="訓練企劃搜尋" Name="訓練課程編號" PropertyName="訓練企劃編號"
|
|
Type="Int32" />
|
|
<asp:ControlParameter ControlID="ddl計畫" Name="計畫年度編號" PropertyName="SelectedValue"
|
|
Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<uc1:訓練企劃搜尋 ID="訓練企劃搜尋" runat="server" 包含已結案="True" OnClick="btn查詢_Click"
|
|
訓練企劃狀態="已簽核未結案" />
|
|
<asp:Label ID="lbMessage" runat="server" CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
|
|
<asp:Panel ID="Panel1" runat="server" Visible="false">
|
|
<table>
|
|
<tr>
|
|
<td class="caption">
|
|
<asp:Label ID="Label25" runat="server" Text="計畫"></asp:Label></td>
|
|
<td class="datainput">
|
|
<weblib:WDropDownList ID="ddl計畫" runat="server" DataSourceID="ds計畫" DataTextField="計畫年度名稱"
|
|
DataValueField="計畫年度編號">
|
|
</weblib:WDropDownList>
|
|
<asp:LinkButton ID="btn查詢學員" runat="server" CssClass="button blue100" OnClick="btn查詢學員_Click">查詢學員</asp:LinkButton>
|
|
<asp:Label ID="lbMessage1" runat="server" CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="caption">
|
|
<asp:Label ID="Label22" runat="server" Text="聯絡人姓名"></asp:Label></td>
|
|
<td class="datainput">
|
|
<asp:TextBox ID="txt聯絡人" runat="server" MaxLength="30"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="caption">
|
|
<asp:Label ID="Label23" runat="server" Text="聯絡人電話"></asp:Label></td>
|
|
<td class="datainput">
|
|
<asp:TextBox ID="txt聯絡人電話" runat="server" MaxLength="30" Width="400px"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="caption">
|
|
<asp:Label ID="Label24" runat="server" Text="聯絡人Email"></asp:Label></td>
|
|
<td class="datainput">
|
|
<asp:TextBox ID="txt聯絡人email" runat="server" MaxLength="50" Width="400px"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="caption">
|
|
<asp:Label ID="Label11" runat="server" Text="附加檔案"></asp:Label>
|
|
</td>
|
|
<td class="datainput">
|
|
<asp:FileUpload ID="fuAttach" runat="server" Width="400px" /><br />
|
|
<asp:Label ID="Label26" runat="server" Text="(附件最大 5MB,請於發送之前確認是否已挑選附件!)" Font-Size="10pt"
|
|
ForeColor="Red"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="captionCenter" colspan="2" style="vertical-align: top">
|
|
<asp:Label ID="Label10" runat="server" Text="已報名學員"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="datainput" colspan="2">
|
|
<div style="float: left">
|
|
<asp:GridView ID="gv學員" runat="server" AutoGenerateColumns="False"
|
|
DataSourceID="ds報名學員" EnableModelValidation="True"
|
|
OnDataBound="gv學員_DataBound">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="寄送">
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="cb寄送" runat="server" />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="員工編號" DataField="學員編號" SortExpression="學員編號">
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:BoundField>
|
|
<asp:TemplateField HeaderText="姓名" SortExpression="學員姓名">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lb學員姓名" runat="server" Text='<%# Bind("學員姓名") %>'></asp:Label>
|
|
<asp:HiddenField ID="hf學員編號" runat="server" Value='<%# Bind("學員編號") %>' />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="單位" DataField="站別名稱" SortExpression="站別名稱">
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:BoundField>
|
|
<asp:BoundField HeaderText="職務" DataField="職務名稱" SortExpression="職務名稱">
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:BoundField>
|
|
<asp:TemplateField HeaderText="電子郵件">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="txt電子郵件" runat="server" Columns="30" Text='<%# Bind("電子郵件") %>'></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="發送狀態">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lb已寄送" runat="server" Text='<%# Eval("通知發送狀態", "{0}") == "Y" ? "已發送" : "" %>'
|
|
ForeColor="Red"></asp:Label>
|
|
<asp:HiddenField ID="hf通知發送狀態" runat="server" Value='<%# Bind("通知發送狀態") %>' />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<div style="float: left; margin-left: 10px">
|
|
<asp:LinkButton ID="btn全選" runat="server" CssClass="button blue60" OnClick="btn全選_Click"
|
|
Visible="False">全選</asp:LinkButton><br />
|
|
<asp:LinkButton ID="btn不選" runat="server" CssClass="button blue60" OnClick="btn不選_Click"
|
|
Visible="False">不選</asp:LinkButton>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="datainput" colspan="2">
|
|
<asp:LinkButton ID="btn發送" runat="server" CssClass="button blue120" OnClick="btn發送_Click"
|
|
Visible="False">發送行前通知</asp:LinkButton>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
<div>
|
|
</div>
|
|
</asp:Content>
|