chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="數位課程訓練對象.aspx.cs" Inherits="Education.Forms.課程企劃.數位課程訓練對象" %>
|
||||
|
||||
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="cc1" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<h3>一、查詢員工</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="Label9" runat="server" Text="員工編號"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtBPENO" runat="server"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="Label10" runat="server" Text="員工姓名"></asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtBPNME" runat="server"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:LinkButton ID="btnSearch員工" runat="server" CssClass="button blue80" OnClick="btnSearch員工_Click">查詢</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Panel ID="Panel1" runat="server" Visible="false">
|
||||
<h3>二、選擇一個員工</h3>
|
||||
<asp:ObjectDataSource ID="ds員工" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="Select" TypeName="Education.DAC_BPSN">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="txtBPENO" Name="BPENO" PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="txtBPNME" Name="BPNME" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ds員工" DataKeyNames="員工編號"
|
||||
EnableModelValidation="True" AllowPaging="True" OnDataBound="GridView1_DataBound"
|
||||
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" CssClass="button blue60" Text="選取"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="員工編號" HeaderText="員工編號">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="員工姓名" HeaderText="員工姓名">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="計畫年度名稱" HeaderText="計畫名稱"></asp:BoundField>
|
||||
<asp:BoundField DataField="站別名稱" HeaderText="站別">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="職務名稱" HeaderText="職務">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<PagerTemplate>
|
||||
<cc1:GridViewPager ID="GridViewPager1" runat="server" />
|
||||
</PagerTemplate>
|
||||
</asp:GridView>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="Panel2" runat="server" Visible="false">
|
||||
<h3>三、挑選這個員工應觀看的數位課程 (此處列出的是「不開放給所有人」的課程)</h3>
|
||||
<asp:Label ID="Label2" runat="server" Text="已觀看不可移除" ForeColor="Red"></asp:Label>
|
||||
<asp:ObjectDataSource ID="ds數位課程" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="Select非開放課程" TypeName="Education.DAC_數位課程"></asp:ObjectDataSource>
|
||||
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="課程編號" DataSourceID="ds數位課程" EnableModelValidation="True" AllowPaging="True" OnRowCommand="GridView2_RowCommand">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Eval("課程編號") %>' CommandName="Add" CssClass="button green60">加入</asp:LinkButton>
|
||||
<asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Eval("課程編號") %>' CommandName="Remove" CssClass="button red60">移除</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="應觀看">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lb已報名" runat="server" Text="是" ForeColor="Red" Visible='<%# Dao數位課程觀看紀錄.是否報名(DAC.GetInt32(Eval("課程編號")), DAC.GetString(GridView1.SelectedValue)) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="已觀看">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lb已觀看" runat="server" Text="是" ForeColor="Red" Visible='<%# Dao數位課程觀看紀錄.是否觀看(DAC.GetInt32(Eval("課程編號")), DAC.GetString(GridView1.SelectedValue)) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="課程編號" DataFormatString="{0:000000}" HeaderText="課程編號" ReadOnly="True" SortExpression="課程編號">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="課程名稱" HeaderText="課程名稱" SortExpression="課程名稱" />
|
||||
<asp:TemplateField HeaderText="課程類別" SortExpression="課程類別">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Get類別名稱("課程類別", Eval("課程類別")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="講師" HeaderText="講師" SortExpression="講師">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="長度" HeaderText="長度" SortExpression="長度">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<PagerTemplate>
|
||||
<cc1:GridViewPager ID="GridViewPager2" runat="server" />
|
||||
</PagerTemplate>
|
||||
</asp:GridView>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user