chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/PopupForm.Master" AutoEventWireup="true"
|
||||
CodeBehind="ShowCourseDetail.aspx.cs" Inherits="Education.Forms.選課.ShowCourseDetail" %>
|
||||
|
||||
<%@ Register Src="~/Forms/Common/起訖日顯示.ascx" TagPrefix="uc1" TagName="起訖日顯示" %>
|
||||
<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="SelectOne" TypeName="Education.DAC_訓練課程企劃">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter Name="編號" QueryStringField="id" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="ds課程內容" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="SelectBy課程企劃" TypeName="Education.DAC_訓練課程內容">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter Name="訓練課程企劃編號" QueryStringField="id" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
<asp:FormView ID="FormView1" runat="server" DataSourceID="ds課程企劃" EnableModelValidation="True">
|
||||
<ItemTemplate>
|
||||
<table border="0" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td class="widthcontrol" colspan="1" style="width: 80px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 120px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 80px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 120px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 80px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 120px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 80px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 120px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb編號Label" runat="server" Text="編號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1">
|
||||
<asp:Label ID="lb編號" runat="server" CssClass="inputFull" Text='<%# Bind("顯示編號") %>'></asp:Label>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練名稱Label" runat="server" Text="訓練名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="5">
|
||||
<asp:Label ID="lb訓練名稱" runat="server" CssClass="inputFull" Text='<%# Bind("訓練名稱") %>'></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練日期Label" runat="server" Text="訓練日期"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<uc1:起訖日顯示 runat="server" ID="起訖日顯示" 起日='<%# Eval("訓練日期") %>' 迄日='<%# Eval("訓練日期迄") %>'
|
||||
Format="yyyy-MM-dd" />
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練時數Label" runat="server" Text="訓練時數"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1">
|
||||
<asp:Label ID="lb訓練時數" runat="server" CssClass="inputFull" Text='<%# Bind("訓練時數") %>'></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練地點Label" runat="server" Text="訓練地點"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7">
|
||||
<asp:Label ID="lb訓練地點" runat="server" Text="<%# Get訓練地點() %>"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="fixedwithborder"
|
||||
DataKeyNames="訓練課程企劃編號,課程序號" DataSourceID="ds課程內容" EnableModelValidation="True">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="節次" HeaderText="節次" SortExpression="節次">
|
||||
<HeaderStyle Width="60px" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="日期時間">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lb訓練日期" runat="server" MaxLength="5" Text='<%# Eval("訓練日期", "{0:yyyy-MM-dd}") %>'></asp:Label><br />
|
||||
<asp:Label ID="lb時間" runat="server" MaxLength="5" Text='<%# Education.訓練課程內容.Get起訖時間Str(Eval("時間起"), Eval("時間迄")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle Width="150px" />
|
||||
<ItemStyle Width="150px" HorizontalAlign="Center" VerticalAlign="Top" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="課程名稱" HeaderText="課程名稱" SortExpression="課程名稱" />
|
||||
<asp:TemplateField HeaderText="課程大綱" SortExpression="課程大綱">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("課程大綱", "{0}").Replace("\r\n", "<br/>") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="時數" HeaderText="時數" SortExpression="時數">
|
||||
<HeaderStyle Width="60px" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="講師" SortExpression="講師編號">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="Label1" runat="server" Text='<%# Get課程講師姓名(Eval("課程序號")) %>'
|
||||
OnClientClick='<%# GetOpenWindowJS("ShowTeacherDetail.aspx", "_teacherdetail", "id", GetData.取得選定講師(Eval("訓練課程企劃編號"), Eval("課程序號")).編號) %>'>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle Width="120px" />
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user