chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true"
|
||||
CodeBehind="後台受訓紀錄查詢.aspx.cs" Inherits="Education.Forms.辦訓狀況.後台受訓紀錄查詢" %>
|
||||
|
||||
<%@ 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_課程報名" OnSelecting="ds訓練記錄_Selecting">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="txt訓練年度_Search" Name="訓練年度"
|
||||
PropertyName="Text" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ddl計畫別_Search" Name="計畫別"
|
||||
PropertyName="SelectedValue" Type="String" />
|
||||
<asp:ControlParameter ControlID="txt課程名稱_Search" Name="課程名稱"
|
||||
PropertyName="Text" Type="String" />
|
||||
<asp:Parameter Name="公司別" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<table border="0" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol"
|
||||
style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol"
|
||||
style="width: 180px;"></td>
|
||||
<td class="widthcontrol" style="width: 90px;"></td>
|
||||
<td class="widthcontrol"
|
||||
style="width: 180px;"> </td>
|
||||
<td class="widthcontrol" style="width: 90px;"></td>
|
||||
<td class="widthcontrol"
|
||||
style="width: 180px;"></td>
|
||||
<td class="widthcontrol"
|
||||
style="width: 180px;"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="Label6" runat="server" Text="訓練年度"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:TextBox ID="txt訓練年度_Search" runat="server" Text="" MaxLength="4"
|
||||
CssClass="inputFull" ValidationGroup="Search"></asp:TextBox>
|
||||
<asp:RangeValidator runat="server" ID="rgv訓練年度_Search" ControlToValidate="txt訓練年度_Search"
|
||||
ValidationGroup="Search" Type="Integer" MinimumValue="1000" MaximumValue="2999"
|
||||
ErrorMessage="請輸入正確西元年度" CssClass="ErrorMessage" Display="Dynamic"></asp:RangeValidator>
|
||||
</td>
|
||||
<td class="datainput" colspan="2" rowspan="1" style="vertical-align: top">
|
||||
<asp:LinkButton runat="server" ID="btnSearch計畫別" CssClass="button blue100"
|
||||
OnClick="btnSearch計畫別_Click">查詢計畫別</asp:LinkButton>
|
||||
</td>
|
||||
<td class="caption"> </td>
|
||||
<td class="datainput"> </td>
|
||||
<td class="datainput"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb計畫別Label" runat="server" Text="計畫別"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<weblib:WDropDownList ID="ddl計畫別_Search" runat="server" CssClass="inputFull"></weblib:WDropDownList>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練名稱Label" runat="server" Text="課程名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<asp:TextBox ID="txt課程名稱_Search" runat="server" CssClass="inputFull" MaxLength="50"
|
||||
Text=""></asp:TextBox>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
|
||||
<asp:LinkButton runat="server" ID="btnSearch" CssClass="button blue120"
|
||||
OnClick="btnSearch_Click">查詢訓練記錄</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>
|
||||
<asp:Label ID="lbMessage" runat="server" Text="" EnableViewState="false" CssClass="ErrorMessage"></asp:Label>
|
||||
</div>
|
||||
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="false"
|
||||
DataSourceID="ds訓練記錄" EnableModelValidation="True" EnableViewState="True"
|
||||
Width="100%" Visible="false" PageSize="20">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="員工編號" HeaderText="員工編號">
|
||||
<HeaderStyle Width="5em" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="員工姓名" HeaderText="員工姓名">
|
||||
<HeaderStyle Width="5em" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="開課別" HeaderText="開課別">
|
||||
<HeaderStyle Width="60px" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="訓練日期">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="lb訓練日期" Text='<%# Eval("訓練日期") %>'></asp:Label>
|
||||
<asp:Label runat="server" ID="lb訓練日期迄"
|
||||
Text='<%# Eval("訓練日期迄", "{0}").Length > 0
|
||||
&& Eval("訓練日期迄", "{0}").CompareTo(Eval("訓練日期", "{0}")) != 0
|
||||
? " 至 " + Eval("訓練日期迄", "{0}") : "" %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle Width="12em" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="訓練名稱" HeaderText="訓練名稱">
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="訓練時數">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="lb訓練時數" Text='<%# DAC.GetInt32(Eval("填寫數")) > 0 ? Eval("訓練時數", "{0}") : "0" %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle Width="5em" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<%-- <asp:BoundField DataField="計畫年度名稱" HeaderText="計畫別">
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:BoundField>--%>
|
||||
<asp:BoundField DataField="站別名稱" HeaderText="單位">
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
<HeaderStyle Width="8em" />
|
||||
</asp:BoundField>
|
||||
<%-- <asp:BoundField DataField="填寫數" HeaderText="填寫數">
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:BoundField> --%>
|
||||
</Columns>
|
||||
<PagerTemplate>
|
||||
<weblib:GridViewPager ID="GridViewPager1" runat="server" />
|
||||
</PagerTemplate>
|
||||
</asp:GridView>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user