Files
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

179 lines
10 KiB
Plaintext

<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true"
CodeBehind="學員課程異動通知.aspx.cs" Inherits="Education.Forms.辦訓前置作業.學員課程異動通知" %>
<%@ Register Src="../Common/訓練企劃搜尋.ascx" TagName="訓練企劃搜尋" TagPrefix="uc1" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="weblib" %>
<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>
<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>
<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="Label27" 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>
&nbsp;<asp:Label ID="lbMessage1" runat="server" CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
</td>
<td class="datainput">&nbsp;</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>
<td class="datainput">&nbsp;</td>
</tr>
<tr>
<td class="caption">
<asp:Label ID="Label23" runat="server" Text="聯絡人電話"></asp:Label></td>
<td class="datainput" colspan="2">
<asp:TextBox ID="txt聯絡人電話" runat="server" MaxLength="30" Width="400px"></asp:TextBox>
</td>
<td class="datainput">&nbsp;</td>
</tr>
<tr>
<td class="caption">
<asp:Label ID="Label24" runat="server" Text="聯絡人Email"></asp:Label></td>
<td class="datainput" colspan="2">
<asp:TextBox ID="txt聯絡人email" runat="server" MaxLength="50" Width="400px"></asp:TextBox>
</td>
<td class="datainput">&nbsp;</td>
</tr>
<tr>
<td class="caption">
<asp:Label ID="Label10" runat="server" Text="異動通知內容"></asp:Label></td>
<td class="datainput" colspan="2">
<asp:TextBox ID="txt通知內容" runat="server" Columns="80" Rows="15" TextMode="MultiLine"
CssClass="inputFull" MaxLength="500"></asp:TextBox>
</td>
<td style="vertical-align: top">
<asp:LinkButton ID="btn發送" runat="server" CssClass="button blue120" OnClick="btn發送_Click">發送新異動通知</asp:LinkButton>
</td>
</tr>
</table>
<table>
<tr>
<td class="captionCenter" colspan="2" style="vertical-align: top">
<asp:Label ID="Label25" runat="server" Text="已發送異動通知"></asp:Label>
</td>
<td class="captionCenter" style="vertical-align: top; height: 28px;">
<asp:Label ID="Label1" runat="server" Text="已報名學員"></asp:Label>
&nbsp;<asp:LinkButton ID="btn全選" runat="server" CssClass="button blue60" OnClick="btn全選_Click">全選</asp:LinkButton>
<asp:LinkButton ID="btn不選" runat="server" CssClass="button blue60" OnClick="btn不選_Click">不選</asp:LinkButton>
</td>
</tr>
<tr>
<td class="datainput" colspan="2" style="vertical-align: top">
<asp:GridView ID="gv異動通知" runat="server" AutoGenerateColumns="False" DataKeyNames="編號,異動通知項次"
DataSourceID="ds異動通知" EnableModelValidation="True" OnSelectedIndexChanged="gv異動通知_SelectedIndexChanged"
OnRowCommand="gv異動通知_RowCommand">
<Columns>
<asp:BoundField DataField="異動通知項次" HeaderText="項次" ReadOnly="True" SortExpression="異動通知項次">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="異動通知日期" DataFormatString="{0:yyyy-MM-dd}" HeaderText="通知日期"
SortExpression="異動通知日期" />
<asp:TemplateField HeaderText="通知內容" SortExpression="異動通知內容">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("異動通知內容") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="LinkButton4" runat="server" OnClientClick='<%# GetOpenWindowJS("../Common/ShowContent.aspx", "_content", "type", "CourseChange", "id", Eval("編號"), "item", Eval("異動通知項次")) %>'
Text='<%# Eval("異動通知內容", "{0}").Length > 10 ? Eval("異動通知內容", "{0}").Substring(0, 10) + "..." : Eval("異動通知內容", "{0}") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server" CssClass="button blue120" CommandName="Select">查詢發送狀態</asp:LinkButton>
<asp:LinkButton ID="LinkButton3" runat="server" CssClass="button red100" CommandName="ReSend"
CommandArgument='<%# Eval("異動通知項次") %>'>重新發送</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
<td class="datainput" style="vertical-align: top">
<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="學員姓名">
<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="行前通知&lt;br&gt;發送狀態">
<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>
<asp:TemplateField HeaderText="異動通知&lt;br&gt;發送狀態">
<ItemTemplate>
<asp:Label ID="Label26" runat="server" ForeColor="Red" Text='<%# Get異動通知發送狀態(Eval("學員編號")) %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
</asp:Content>