chore: 首次簽入 Thinkyu ASP.NET 專案

- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
2026-09-10 09:42:37 +08:00
commit 577060bc78
2496 changed files with 501389 additions and 0 deletions
@@ -0,0 +1,110 @@
<%@ 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>
<asp:ObjectDataSource ID="ds課程日期" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="Select訓練日期List"
TypeName="Education.DAC_訓練課程內容">
<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="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>
&nbsp;<asp:Label ID="lbMessage1" runat="server" CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
</td>
</tr>
</table>
<asp:LinkButton ID="btnSave1" runat="server" CssClass="button blue100" OnClick="btnSave_Click">確定儲存</asp:LinkButton>
<asp:Label ID="lbMessage2" runat="server" CssClass="ErrorMessage"
EnableViewState="False"></asp:Label>
<asp:GridView ID="gv學員" runat="server" AutoGenerateColumns="False" DataSourceID="ds報名學員"
EnableModelValidation="True" DataKeyNames="訓練課程編號,學員編號">
<Columns>
<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:Label ID="hf學員編號" runat="server" Text='<%# 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:GridView ID="gv出席狀況" runat="server" ShowHeader="False" DataSourceID="ds課程日期"
AutoGenerateColumns="False" EnableModelValidation="True" OnRowDataBound="gv出席狀況_RowDataBound">
<Columns>
<asp:BoundField DataField="Date" DataFormatString="{0:yyyy-MM-dd}" />
<asp:TemplateField>
<ItemTemplate>
<table>
<tr>
<td>
<asp:RadioButtonList runat="server" ID="rb出席狀況" RepeatLayout="Flow" RepeatDirection="Horizontal">
<asp:ListItem Value="" Enabled="false">未填寫</asp:ListItem>
<asp:ListItem Value="Y"><span style="color:green; font-weight:bold; margin-right:10px">出席</span></asp:ListItem>
<asp:ListItem Value="N"><span style="color:red; font-weight:bold; margin-right:10px">缺席</span></asp:ListItem>
<asp:ListItem Value="L"><span style="color:magenta; font-weight:bold;">請假</span></asp:ListItem>
</asp:RadioButtonList></td>
<td style="padding-left: 15px">
<asp:Label ID="Label1" runat="server" Text="請假事由"></asp:Label></td>
<td>
<asp:TextBox ID="txt請假原因" runat="server" Columns="40" MaxLength="100"></asp:TextBox>
<asp:Label ID="lbMessage" runat="server" CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:LinkButton ID="btnSave2" runat="server" CssClass="button blue100" OnClick="btnSave_Click">確定儲存</asp:LinkButton>
<asp:Label ID="lbMessage3" runat="server" CssClass="ErrorMessage"
EnableViewState="False"></asp:Label>
</asp:Panel>
</asp:Content>