chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,596 @@
|
||||
<%@ 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 runat="server" ID="dsForm" DataObjectTypeName="Education.外部受訓紀錄"
|
||||
DeleteMethod="DeleteOne" InsertMethod="InsertOne" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="SelectOne" TypeName="Education.DAC_外部受訓紀錄" UpdateMethod="UpdateOne">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="GV" PropertyName="SelectedDataKey["員工編號"]"
|
||||
Name="員工編號" Type="String"></asp:ControlParameter>
|
||||
<asp:ControlParameter ControlID="GV" PropertyName="SelectedDataKey["序號"]"
|
||||
Name="序號" Type="Int32"></asp:ControlParameter>
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource runat="server" ID="dsGrid" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="Select" TypeName="Education.DAC_外部受訓紀錄"
|
||||
OnSelecting="dsGrid_Selecting">
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="noInputReturnAll" Type="Boolean" DefaultValue="True"></asp:Parameter>
|
||||
<asp:Parameter DefaultValue="" Name="員工編號" Type="String" />
|
||||
<asp:ControlParameter ControlID="dd實施單位_Search" Name="實施單位"
|
||||
PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="dd課程類別_Search" Name="課程類別"
|
||||
PropertyName="SelectedValue" Type="String" />
|
||||
<asp:ControlParameter ControlID="txt訓練名稱_Search" Name="訓練名稱"
|
||||
PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="txt訓練年度_Search" Name="訓練年度"
|
||||
PropertyName="Text" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="txt訓練單位_Search" Name="訓練單位"
|
||||
PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="ds課程類別" runat="server"
|
||||
OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="Get類別資料By大類ForDropDown" TypeName="Education.DAC_BCLS">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="課程類別" Name="大類" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:LinkButton runat="server" ID="Tab處理" CssClass="tabButtonSelected">處理</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="Tab查詢" CssClass="tabButton">查詢</asp:LinkButton>
|
||||
<div style="border-top: 1px solid gray;">
|
||||
<asp:MultiView runat="server" ID="MultiView1">
|
||||
<asp:View runat="server" ID="View處理">
|
||||
<asp:FormView runat="server" ID="FV" DataSourceID="dsForm"
|
||||
DataKeyNames="員工編號,序號,DB_APPNO">
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnInsert" runat="server" Text="新增" CommandName="New" CssClass="button blue80" />
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" Text="更正" CommandName="Edit" CssClass="button green80" />
|
||||
<asp:LinkButton ID="btnDelete" runat="server" Text="刪除" CommandName="Delete" CssClass="button red80"
|
||||
OnClientClick="return confirm("是否確定刪除此筆資料?");" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" 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" Text='<%# Bind("員工編號") %>' CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="2">
|
||||
<asp:Label ID="lb員工編號X" runat="server" CssClass="inputFull"
|
||||
Text='<%# Get員工姓名(Eval("員工編號")) %>'></asp:Label>
|
||||
</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" Text='<%# Bind("序號") %>' CssClass="inputFull"></asp:Label>
|
||||
</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" Text='<%# Bind("實施單位") %>' CssClass="inputFull"></asp:Label>
|
||||
</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" Text='<%# Bind("課程類別") %>' CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<asp:Label ID="lb課程類別X" runat="server" CssClass="inputFull"
|
||||
Text='<%# Get類別名稱("課程類別", Eval("課程類別")) %>'></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='<%# Bind("訓練名稱") %>' CssClass="inputFull"></asp:Label>
|
||||
</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" Text='<%# Bind("訓練年度") %>' CssClass="inputFull"></asp:Label>
|
||||
</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" Text='<%# Bind("訓練時數") %>' CssClass="inputFull"></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='<%# Bind("訓練單位") %>' CssClass="inputFull"></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='<%# Eval("課程說明", "{0}").Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>") %>'
|
||||
CssClass="inputFull"></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='<%# Eval("備註", "{0}").Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>") %>'
|
||||
CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ItemTemplate>
|
||||
<InsertItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnSave" runat="server" Text="存檔" CommandName="Insert" CssClass="button blue80" />
|
||||
<asp:LinkButton ID="btnCancel" runat="server" Text="取消" CommandName="Cancel" CausesValidation="false"
|
||||
CssClass="button red80" OnClientClick="return confirm("是否確定取消新增?");" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb員工編號Label" runat="server" Text="員工編號"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<weblib:LookupTextBox ID="txt員工編號" runat="server" LookupConfigName="BPSN"
|
||||
OutputControl="txt員工編號X" Text='<%# Bind("員工編號") %>' CssClass="inputFull"
|
||||
TextBoxWidth="5em" />
|
||||
<asp:RequiredFieldValidator ID="rfv員工編號" runat="server" ControlToValidate="txt員工編號"
|
||||
Display="Dynamic" ErrorMessage="請輸入" EnableClientScript="False"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<asp:TextBox ID="txt員工編號X" runat="server" Text='<%# Get員工姓名(Eval("員工編號")) %>'
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb序號Label" runat="server" Text="序號"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:Label ID="Label33" runat="server" Text="(系統自動編號)"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb實施單位Label" runat="server" Text="實施單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<weblib:WDropDownList ID="dd實施單位" runat="server" CssClass="inputFull" SelectedValue='<%# Bind("實施單位") %>'>
|
||||
<asp:ListItem Value="" Text="(請選擇)"></asp:ListItem>
|
||||
<asp:ListItem Value="公司" Text="公司"></asp:ListItem>
|
||||
<asp:ListItem Value="派駐單位" Text="派駐單位"></asp:ListItem>
|
||||
<asp:ListItem Value="自行進修" Text="自行進修"></asp:ListItem>
|
||||
</weblib:WDropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfv實施單位" runat="server" ControlToValidate="dd實施單位"
|
||||
Display="Dynamic" ErrorMessage="請選擇"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb課程類別Label" runat="server" Text="課程類別"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<weblib:WDropDownList ID="dd課程類別" runat="server" CssClass="inputFull"
|
||||
DataSourceID="ds課程類別" DataTextField="Name" DataValueField="Value"
|
||||
SelectedValue='<%# Bind("課程類別") %>'>
|
||||
</weblib:WDropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfv課程類別" runat="server" ControlToValidate="dd課程類別"
|
||||
Display="Dynamic" ErrorMessage="請選擇"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練名稱Label" runat="server" Text="訓練名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt訓練名稱" runat="server" CssClass="inputFull" MaxLength="52"
|
||||
Text='<%# Bind("訓練名稱") %>'></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練名稱" runat="server" ControlToValidate="txt訓練名稱"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練年度Label" runat="server" Text="訓練年度"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:TextBox ID="txt訓練年度" runat="server" Text='<%# Bind("訓練年度") %>' MaxLength="4"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練年度" runat="server" ControlToValidate="txt訓練年度"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ID="rv訓練年度" runat="server" ControlToValidate="txt訓練年度"
|
||||
ErrorMessage="可接受範圍為 1900 至 2999" MaximumValue="2999" MinimumValue="1900"
|
||||
Type="Integer" Display="Dynamic"></asp:RangeValidator>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練時數Label" runat="server" Text="訓練時數"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:TextBox ID="txt訓練時數" runat="server" Text='<%# Bind("訓練時數") %>' MaxLength="3"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練時數" runat="server" ControlToValidate="txt訓練時數"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ID="rv訓練時數" runat="server" ControlToValidate="txt訓練時數"
|
||||
ErrorMessage="可接受範圍為 0 至 999" MaximumValue="999" MinimumValue="0"
|
||||
Type="Integer" Display="Dynamic"></asp:RangeValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練單位Label" runat="server" Text="訓練單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt訓練單位" runat="server" Text='<%# Bind("訓練單位") %>' MaxLength="52"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練單位" runat="server" ControlToValidate="txt訓練單位"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb課程說明Label" runat="server" Text="課程說明"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt課程說明" runat="server" Text='<%# Bind("課程說明") %>' MaxLength="202"
|
||||
TextMode="MultiLine" Rows="5" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb備註Label" runat="server" Text="備註"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt備註" runat="server" Text='<%# Bind("備註") %>' MaxLength="202" TextMode="MultiLine"
|
||||
Rows="5" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</InsertItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnSave" runat="server" Text="存檔" CommandName="Update" CssClass="button blue80" />
|
||||
<asp:LinkButton ID="btnCancel" runat="server" Text="取消" CommandName="Cancel" CausesValidation="false"
|
||||
CssClass="button red80" OnClientClick="return confirm("是否確定取消更正?");" />
|
||||
<asp:HiddenField ID="hfDBAPPNO" runat="server" Value='<%# Bind("DB_APPNO") %>' />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><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="datadisplay" colspan="2">
|
||||
<asp:Label ID="lb員工編號X" runat="server" CssClass="inputFull"
|
||||
Text='<%# Get員工姓名(Eval("員工編號")) %>'></asp:Label>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><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">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb實施單位Label" runat="server" Text="實施單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<weblib:WDropDownList ID="dd實施單位" runat="server" CssClass="inputFull" SelectedValue='<%# Bind("實施單位") %>'>
|
||||
<asp:ListItem Value="" Text="(請選擇)"></asp:ListItem>
|
||||
<asp:ListItem Value="公司" Text="公司"></asp:ListItem>
|
||||
<asp:ListItem Value="派駐單位" Text="派駐單位"></asp:ListItem>
|
||||
<asp:ListItem Value="自行進修" Text="自行進修"></asp:ListItem>
|
||||
</weblib:WDropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfv實施單位" runat="server" ControlToValidate="dd實施單位"
|
||||
Display="Dynamic" ErrorMessage="請選擇"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb課程類別Label" runat="server" Text="課程類別"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<weblib:WDropDownList ID="dd課程類別" runat="server" CssClass="inputFull"
|
||||
DataSourceID="ds課程類別" DataTextField="Name" DataValueField="Value"
|
||||
SelectedValue='<%# Bind("課程類別") %>'>
|
||||
</weblib:WDropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfv課程類別" runat="server" ControlToValidate="dd課程類別"
|
||||
Display="Dynamic" ErrorMessage="請選擇"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練名稱Label" runat="server" Text="訓練名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt訓練名稱" runat="server" CssClass="inputFull" MaxLength="52"
|
||||
Text='<%# Bind("訓練名稱") %>'></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練名稱" runat="server" ControlToValidate="txt訓練名稱"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練年度Label" runat="server" Text="訓練年度"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:TextBox ID="txt訓練年度" runat="server" Text='<%# Bind("訓練年度") %>' MaxLength="4"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練年度" runat="server" ControlToValidate="txt訓練年度"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ID="rv訓練年度" runat="server" ControlToValidate="txt訓練年度"
|
||||
ErrorMessage="可接受範圍為 1900 至 2999" MaximumValue="2999" MinimumValue="1900"
|
||||
Type="Integer" Display="Dynamic"></asp:RangeValidator>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練時數Label" runat="server" Text="訓練時數"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:TextBox ID="txt訓練時數" runat="server" Text='<%# Bind("訓練時數") %>' MaxLength="3"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練時數" runat="server" ControlToValidate="txt訓練時數"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ID="rv訓練時數" runat="server" ControlToValidate="txt訓練時數"
|
||||
ErrorMessage="可接受範圍為 0 至 999" MaximumValue="999" MinimumValue="0"
|
||||
Type="Integer" Display="Dynamic"></asp:RangeValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb訓練單位Label" runat="server" Text="訓練單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt訓練單位" runat="server" Text='<%# Bind("訓練單位") %>' MaxLength="52"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv訓練單位" runat="server" ControlToValidate="txt訓練單位"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb課程說明Label" runat="server" Text="課程說明"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt課程說明" runat="server" Text='<%# Bind("課程說明") %>' MaxLength="202"
|
||||
TextMode="MultiLine" Rows="5" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb備註Label" runat="server" Text="備註"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="7">
|
||||
<asp:TextBox ID="txt備註" runat="server" Text='<%# Bind("備註") %>' MaxLength="202" TextMode="MultiLine"
|
||||
Rows="5" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</EditItemTemplate>
|
||||
<EmptyDataTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnInsert" runat="server" Text="新增" CommandName="New" CssClass="button blue80" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" 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"></td>
|
||||
<td class="datadisplay" colspan="2"></td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb序號Label" runat="server" Text="序號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb實施單位Label" runat="server" Text="實施單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1"></td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb課程類別Label" runat="server" Text="課程類別"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練名稱Label" runat="server" Text="訓練名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練年度Label" runat="server" Text="訓練年度"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1"></td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練時數Label" runat="server" Text="訓練時數"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練單位Label" runat="server" Text="訓練單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb課程說明Label" runat="server" Text="課程說明"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb備註Label" runat="server" Text="備註"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</EmptyDataTemplate>
|
||||
</asp:FormView>
|
||||
<asp:GridView runat="server" ID="GV" DataSourceID="dsGrid" AllowPaging="true"
|
||||
DataKeyNames="員工編號,序號" AutoGenerateColumns="False"
|
||||
EnableModelValidation="True" Width="100%">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="序號" SortExpression="序號">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label11" runat="server" Text='<%# Bind("序號") %>'></asp:Label>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"
|
||||
CommandName="Select" Text=""></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="實施單位" HeaderText="實施單位" SortExpression="實施單位"></asp:BoundField>
|
||||
<asp:TemplateField HeaderText="課程類別" SortExpression="課程類別">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label31" runat="server" Text='<%# Bind("課程類別") %>'></asp:Label>
|
||||
<asp:Label ID="Label32" runat="server" Text='<%# Get類別名稱("課程類別", Eval("課程類別")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="訓練名稱" HeaderText="訓練名稱" SortExpression="訓練名稱" />
|
||||
<asp:BoundField DataField="訓練年度" HeaderText="訓練年度" SortExpression="訓練年度">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="訓練時數" HeaderText="訓練時數" SortExpression="訓練時數">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="訓練單位" HeaderText="訓練單位" SortExpression="訓練單位"></asp:BoundField>
|
||||
</Columns>
|
||||
<PagerTemplate>
|
||||
<weblib:gridviewpager id="GridViewPager1" runat="server" />
|
||||
</PagerTemplate>
|
||||
</asp:GridView>
|
||||
</asp:View>
|
||||
<asp:View runat="server" ID="View查詢">
|
||||
<div>
|
||||
<asp:LinkButton ID="btnSearch" runat="server" CssClass="button blue80"
|
||||
Text="查詢" OnClick="btnSearch_Click" />
|
||||
<asp:LinkButton ID="btnClear" runat="server" CssClass="button red80"
|
||||
Text="清除" OnClick="btnClear_Click" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td class="widthcontrol" colspan="1" style="width: 90px;"></td>
|
||||
<td class="widthcontrol" colspan="1" style="width: 200px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb實施單位Label0" runat="server" Text="實施單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<weblib:WDropDownList ID="dd實施單位_Search" runat="server" CssClass="inputFull"
|
||||
SelectedValue='<%# Bind("實施單位") %>'>
|
||||
<asp:ListItem Text="(請選擇)" Value=""></asp:ListItem>
|
||||
<asp:ListItem Text="公司" Value="公司"></asp:ListItem>
|
||||
<asp:ListItem Text="派駐單位" Value="派駐單位"></asp:ListItem>
|
||||
<asp:ListItem Text="自行進修" Value="自行進修"></asp:ListItem>
|
||||
</weblib:WDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb課程類別Label0" runat="server" Text="課程類別"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<weblib:WDropDownList ID="dd課程類別_Search" runat="server" CssClass="inputFull"
|
||||
DataSourceID="ds課程類別" DataTextField="Name" DataValueField="Value">
|
||||
</weblib:WDropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練名稱Label0" runat="server" Text="訓練名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<asp:TextBox ID="txt訓練名稱_Search" runat="server" CssClass="inputFull"
|
||||
MaxLength="50" Text=""></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練年度Label0" runat="server" Text="訓練年度"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<asp:TextBox ID="txt訓練年度_Search" runat="server" CssClass="inputFull"
|
||||
MaxLength="10" Text=""></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb訓練單位Label0" runat="server" Text="訓練單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<asp:TextBox ID="txt訓練單位_Search" runat="server" CssClass="inputFull"
|
||||
MaxLength="50" Text=""></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label ID="lbMessage" runat="server" CssClass="ErrorMessage"
|
||||
EnableViewState="False"></asp:Label>
|
||||
</asp:View>
|
||||
</asp:MultiView>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace Education.Forms.自行登錄
|
||||
{
|
||||
public partial class 外部訓練登錄 : FormBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
FunctionName = "外部受訓紀錄登錄";
|
||||
|
||||
Form_View = FV;
|
||||
Grid_View = GV;
|
||||
FormView_DataSource = dsForm;
|
||||
GridView_DataSource = dsGrid;
|
||||
|
||||
AddTabButton(MultiView1, View查詢, Tab查詢);
|
||||
AddTabButton(MultiView1, View處理, Tab處理);
|
||||
|
||||
if (IsPostBack)
|
||||
{
|
||||
Grid_View.DataBind();
|
||||
Form_View.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
ActivateTab(MultiView1, View處理);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void FormView_InsertDataBound(object sender, EventArgs e)
|
||||
{
|
||||
base.FormView_InsertDataBound(sender, e);
|
||||
FindControl<ITextControl>(Form_View, "txt員工編號").Text = UserId;
|
||||
FindControl<ITextControl>(Form_View, "txt員工編號X").Text = UserName;
|
||||
}
|
||||
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
txt訓練名稱_Search.Text = "";
|
||||
txt訓練年度_Search.Text = "";
|
||||
txt訓練單位_Search.Text = "";
|
||||
dd實施單位_Search.SelectedValue = "";
|
||||
dd課程類別_Search.SelectedValue = "";
|
||||
}
|
||||
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
Grid_View.PageIndex = 0;
|
||||
Grid_View.DataBind();
|
||||
|
||||
if (Grid_View.Rows.Count > 0)
|
||||
{
|
||||
ActivateTab(MultiView1, View處理);
|
||||
}
|
||||
else
|
||||
{
|
||||
lbMessage.Text = "沒有資料,請以其他查詢條件查詢!";
|
||||
}
|
||||
}
|
||||
|
||||
protected void dsGrid_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
|
||||
{
|
||||
e.InputParameters["員工編號"] = UserId;
|
||||
}
|
||||
}
|
||||
}
|
||||
+224
@@ -0,0 +1,224 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自動產生>
|
||||
// 這段程式碼是由工具產生的。
|
||||
//
|
||||
// 變更這個檔案可能會導致不正確的行為,而且如果已重新產生
|
||||
// 程式碼,則會遺失變更。
|
||||
// </自動產生>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Education.Forms.自行登錄
|
||||
{
|
||||
|
||||
|
||||
public partial class 外部訓練登錄
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// dsForm 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource dsForm;
|
||||
|
||||
/// <summary>
|
||||
/// dsGrid 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource dsGrid;
|
||||
|
||||
/// <summary>
|
||||
/// ds課程類別 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ds課程類別;
|
||||
|
||||
/// <summary>
|
||||
/// Tab處理 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton Tab處理;
|
||||
|
||||
/// <summary>
|
||||
/// Tab查詢 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton Tab查詢;
|
||||
|
||||
/// <summary>
|
||||
/// MultiView1 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.MultiView MultiView1;
|
||||
|
||||
/// <summary>
|
||||
/// View處理 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.View View處理;
|
||||
|
||||
/// <summary>
|
||||
/// FV 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.FormView FV;
|
||||
|
||||
/// <summary>
|
||||
/// GV 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView GV;
|
||||
|
||||
/// <summary>
|
||||
/// View查詢 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.View View查詢;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton btnSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnClear 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton btnClear;
|
||||
|
||||
/// <summary>
|
||||
/// lb實施單位Label0 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb實施單位Label0;
|
||||
|
||||
/// <summary>
|
||||
/// dd實施單位_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::WebLib.WDropDownList dd實施單位_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lb課程類別Label0 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb課程類別Label0;
|
||||
|
||||
/// <summary>
|
||||
/// dd課程類別_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::WebLib.WDropDownList dd課程類別_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lb訓練名稱Label0 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb訓練名稱Label0;
|
||||
|
||||
/// <summary>
|
||||
/// txt訓練名稱_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txt訓練名稱_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lb訓練年度Label0 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb訓練年度Label0;
|
||||
|
||||
/// <summary>
|
||||
/// txt訓練年度_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txt訓練年度_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lb訓練單位Label0 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb訓練單位Label0;
|
||||
|
||||
/// <summary>
|
||||
/// txt訓練單位_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txt訓練單位_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lbMessage 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbMessage;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,444 @@
|
||||
<%@ 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持有證照Form" runat="server" DataObjectTypeName="Education.持有證照"
|
||||
TypeName="Education.DAC_持有證照" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="SelectOne" InsertMethod="InsertOne" UpdateMethod="UpdateOne" DeleteMethod="DeleteOne">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="gv持有證照" Name="員工編號"
|
||||
PropertyName="SelectedDataKey["員工編號"]" Type="String" />
|
||||
<asp:ControlParameter ControlID="gv持有證照" Name="序號"
|
||||
PropertyName="SelectedDataKey["序號"]" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="ds持有證照Grid" runat="server" DataObjectTypeName="Education.持有證照"
|
||||
TypeName="Education.DAC_持有證照" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="Select" OnSelecting="ds持有證照Grid_Selecting">
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="noInputReturnAll" Type="Boolean" DefaultValue="true" />
|
||||
<asp:Parameter DefaultValue="" Name="員工編號" Type="String" />
|
||||
<asp:ControlParameter ControlID="txt證照名稱_Search" Name="證照名稱"
|
||||
PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="txt證照字號_Search" Name="證照字號"
|
||||
PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="txt發證單位_Search" Name="發證單位"
|
||||
PropertyName="Text" Type="String" />
|
||||
<asp:Parameter Name="核發日期" Type="DateTime"></asp:Parameter>
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:LinkButton runat="server" ID="tab處理" Text="處理" CssClass="tabButtonSelected"></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="tab查詢" Text="查詢" CssClass="tabButton"></asp:LinkButton>
|
||||
<div style="border-top: 1px solid gray">
|
||||
<asp:MultiView ID="MultiView1" runat="server">
|
||||
<asp:View ID="View處理" runat="server">
|
||||
<asp:FormView ID="fv持有證照" runat="server" EnableModelValidation="True" EnableViewState="False"
|
||||
DataSourceID="ds持有證照Form" DataKeyNames="員工編號,序號,DB_APPNO">
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnInsert" runat="server" Text="新增" CommandName="New" CssClass="button blue80" />
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" Text="更正" CommandName="Edit" CssClass="button green80" />
|
||||
<asp:LinkButton ID="btnDelete" runat="server" Text="刪除" CommandName="Delete" CssClass="button red80"
|
||||
OnClientClick="return confirm("是否確定刪除此筆資料?");"
|
||||
CommandArgument='<%# String.Format("{0}|{1}", Eval("員工編號"), Eval("序號")) %>' />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td style="width: 300px;"></td>
|
||||
<td class="widthcontrol" style="width: 0px;"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb員工編號Label4" runat="server" Text="員工編號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<asp:Label ID="lb員工編號" runat="server" Text='<%# Bind("員工編號") %>' CssClass="inputFull"></asp:Label>
|
||||
<asp:Label ID="lb員工編號X0" runat="server" CssClass="inputFull"
|
||||
Text='<%# Get員工姓名(Eval("員工編號")) %>'></asp:Label>
|
||||
</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" Text='<%# Bind("序號") %>' CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
<td colspan="2"></td>
|
||||
<td rowspan="8" style="text-align: center; vertical-align: top">
|
||||
<asp:Image ID="Image1" runat="server" EnableViewState="False"
|
||||
ImageUrl='<%# Education.PublicVariable.證照上傳路徑 + "T_" + Eval("員工編號", "{0}") + "_" + Eval("序號", "{0}") + ".jpg?now=" + DateTime.UtcNow.AddHours(8).Ticks.ToString() %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb證照名稱Label4" runat="server" Text="證照名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<asp:Label ID="lb證照名稱" runat="server" Text='<%# Bind("證照名稱") %>'
|
||||
CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb證照字號Label4" runat="server" Text="證照字號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<asp:Label ID="lb證照字號" runat="server" Text='<%# Bind("證照字號") %>'
|
||||
CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb發證單位Label4" runat="server" Text="發證單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<asp:Label ID="lb發證單位" runat="server" Text='<%# Bind("發證單位") %>'
|
||||
CssClass="inputFull"></asp:Label>
|
||||
</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='<%# Eval("核發日期", "{0:yyyy-MM-dd}") %>'></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb附件檔案Label" runat="server" Text="附件檔案"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7">
|
||||
<div><asp:Literal ID="lt附件檔案" runat="server"></asp:Literal></div>
|
||||
<asp:FileUpload ID="fu附件檔案" runat="server" CssClass="input" />
|
||||
<asp:LinkButton ID="btnUpload" runat="server"
|
||||
CommandArgument='<%# String.Format("{0}|{1}", Eval("員工編號"), Eval("序號")) %>'
|
||||
CommandName="上傳附件" CssClass="button gray80"
|
||||
Text="上傳附件"></asp:LinkButton>
|
||||
<asp:LinkButton ID="LinkButton3" runat="server"
|
||||
CommandArgument='<%# String.Format("{0}|{1}", Eval("員工編號"), Eval("序號")) %>'
|
||||
CommandName="刪除附件" CssClass="button red80"
|
||||
OnClientClick="return confirm("是否確定刪除附件?");">刪除附件</asp:LinkButton>
|
||||
<br />
|
||||
<asp:Label ID="Label9" runat="server" Text="(檔案大小 5MB 之內的照片檔案)"></asp:Label>
|
||||
<asp:Label ID="lbMessage1" runat="server" CssClass="ErrorMessage"
|
||||
EnableViewState="False"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ItemTemplate>
|
||||
<InsertItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnSave" runat="server" Text="存檔" CommandName="Insert" CssClass="button blue80" />
|
||||
<asp:LinkButton ID="btnCancel" runat="server" Text="取消" CommandName="Cancel" CausesValidation="false"
|
||||
CssClass="button red80" OnClientClick="return confirm("是否確定取消新增?");" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb員工編號Label5" runat="server"
|
||||
Text="員工編號"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<weblib:LookupTextBox ID="txt員工編號" runat="server" LookupConfigName="BPSN"
|
||||
OutputControl="txt員工編號X" Text='<%# Bind("員工編號") %>' CssClass="inputFull"
|
||||
TextBoxWidth="5em" />
|
||||
<asp:RequiredFieldValidator ID="rfv員工編號" runat="server" ControlToValidate="txt員工編號"
|
||||
Display="Dynamic" ErrorMessage="請輸入" EnableClientScript="False"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<asp:TextBox ID="txt員工編號X" runat="server" Text='<%# Get員工姓名(Eval("員工編號")) %>'
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb序號Label4" runat="server"
|
||||
Text="序號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1">
|
||||
<asp:Label ID="lb序號" runat="server"
|
||||
Text="(自動編號)"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb證照名稱Label5" runat="server"
|
||||
Text="證照名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<asp:RadioButton ID="rb證照名稱1" runat="server" Text="就業服務乙級技術士證" GroupName="1" />
|
||||
<br />
|
||||
<asp:RadioButton ID="rb證照名稱2" runat="server" Text="就業服務專業人員證書" GroupName="1" />
|
||||
<br />
|
||||
<asp:RadioButton ID="rb證照名稱3" runat="server" Text="社會工作師證書" GroupName="1" />
|
||||
<br />
|
||||
<asp:RadioButton ID="rb證照名稱999" runat="server" Text="其他" GroupName="1" />
|
||||
<asp:TextBox ID="txt證照名稱" runat="server" Text='<%# Bind("證照名稱") %>' MaxLength="50"
|
||||
CssClass="input"></asp:TextBox>
|
||||
<asp:CustomValidator ID="CustomValidator1" runat="server"
|
||||
ControlToValidate="txt證照名稱" Display="Dynamic" ErrorMessage="請選擇或請輸入"
|
||||
OnServerValidate="CustomValidator1_ServerValidate" ValidateEmptyText="True"></asp:CustomValidator>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb證照字號Label5" runat="server"
|
||||
Text="證照字號"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<asp:TextBox ID="txt證照字號" runat="server" Text='<%# Bind("證照字號") %>' MaxLength="50"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv證照字號" runat="server" ControlToValidate="txt證照字號"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb發證單位Label5" runat="server"
|
||||
Text="發證單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<asp:TextBox ID="txt發證單位" runat="server" CssClass="inputFull" MaxLength="50"
|
||||
Text='<%# Bind("發證單位") %>'></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv發證單位" runat="server" ControlToValidate="txt發證單位"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
<td class="caption"><span style="color: red;">*</span><asp:Label ID="lb核發日期Label4"
|
||||
runat="server" Text="核發日期"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<weblib:DateTextBox ID="txt核發日期" runat="server" CssClass="inputFull"
|
||||
DateOrder="YMD" DateSeparator="" Value='<%# Bind("核發日期") %>' />
|
||||
<asp:RequiredFieldValidator ID="rfv核發日期" runat="server"
|
||||
ControlToValidate="txt核發日期" Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</InsertItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnSave2" runat="server" Text="存檔" CommandName="Update"
|
||||
CssClass="button blue80" />
|
||||
<asp:LinkButton ID="btnCancel2" runat="server" Text="取消" CommandName="Cancel" CausesValidation="false"
|
||||
CssClass="button red80"
|
||||
OnClientClick="return confirm("是否確定取消更正?");" />
|
||||
<asp:HiddenField ID="hfDBAPPNO" runat="server" Value='<%# Bind("DB_APPNO") %>' />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 140px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb員工編號Label6" runat="server"
|
||||
Text="員工編號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3">
|
||||
<asp:Label ID="lb員工編號" runat="server" Text='<%# Bind("員工編號") %>' CssClass="inputFull"></asp:Label>
|
||||
<asp:Label ID="lb員工編號X0" runat="server" CssClass="inputFull"
|
||||
Text='<%# Get員工姓名(Eval("員工編號")) %>'></asp:Label>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb序號Label5" runat="server"
|
||||
Text="序號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1">
|
||||
<asp:Label ID="lb序號2" runat="server" Text='<%# Bind("序號") %>'
|
||||
CssClass="inputFull"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb證照名稱Label6" runat="server"
|
||||
Text="證照名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<asp:RadioButton ID="rb證照名稱1" runat="server" GroupName="1" Text="就業服務乙級技術士證" />
|
||||
<br />
|
||||
<asp:RadioButton ID="rb證照名稱2" runat="server" GroupName="1" Text="就業服務專業人員證書" />
|
||||
<br />
|
||||
<asp:RadioButton ID="rb證照名稱3" runat="server" GroupName="1" Text="社會工作師證書" />
|
||||
<br />
|
||||
<asp:RadioButton ID="rb證照名稱999" runat="server" GroupName="1" Text="其他" />
|
||||
<asp:TextBox ID="txt證照名稱" runat="server" CssClass="input" MaxLength="50"
|
||||
Text='<%# Bind("證照名稱") %>'></asp:TextBox>
|
||||
<asp:CustomValidator ID="CustomValidator1" runat="server"
|
||||
ControlToValidate="txt證照名稱" Display="Dynamic" ErrorMessage="請選擇或請輸入"
|
||||
OnServerValidate="CustomValidator1_ServerValidate" ValidateEmptyText="True"></asp:CustomValidator>
|
||||
</td>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb證照字號Label6" runat="server"
|
||||
Text="證照字號"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<asp:TextBox ID="txt證照字號" runat="server" Text='<%# Bind("證照字號") %>' MaxLength="50"
|
||||
CssClass="inputFull"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv證照字號" runat="server" ControlToValidate="txt證照字號"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<span style="color: red;">*</span><asp:Label ID="lb發證單位Label6" runat="server"
|
||||
Text="發證單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="3">
|
||||
<asp:TextBox ID="txt發證單位" runat="server" CssClass="inputFull" MaxLength="50"
|
||||
Text='<%# Bind("發證單位") %>'></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfv發證單位" runat="server" ControlToValidate="txt發證單位"
|
||||
Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
<td class="caption"><span style="color: red;">*</span><asp:Label ID="lb核發日期Label5"
|
||||
runat="server" Text="核發日期"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput" colspan="1">
|
||||
<weblib:DateTextBox ID="txt核發日期" runat="server" CssClass="inputFull"
|
||||
DateOrder="YMD" DateSeparator="" Value='<%# Bind("核發日期") %>' />
|
||||
<asp:RequiredFieldValidator ID="rfv核發日期" runat="server"
|
||||
ControlToValidate="txt核發日期" Display="Dynamic" ErrorMessage="請輸入"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</EditItemTemplate>
|
||||
<EmptyDataTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="btnInsert2" runat="server" Text="新增" CommandName="New"
|
||||
CssClass="button blue80" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 120px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb員工編號Label7" runat="server" Text="員工編號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3"></td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb序號Label6" runat="server" Text="序號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb證照名稱Label7" runat="server" Text="證照名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3"></td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb證照字號Label7" runat="server" Text="證照字號"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb發證單位Label7" runat="server" Text="發證單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="3"></td>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb核發日期Label6" runat="server" Text="核發日期"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb附件檔案Label6" runat="server" Text="附件檔案"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay" colspan="7"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</EmptyDataTemplate>
|
||||
</asp:FormView>
|
||||
<asp:GridView ID="gv持有證照" runat="server" DataKeyNames="員工編號,序號,DB_APPNO"
|
||||
DataSourceID="ds持有證照Grid" AutoGenerateColumns="False"
|
||||
EnableModelValidation="True" AllowPaging="True" Width="100%">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="序號" SortExpression="序號">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("序號") %>'></asp:Label>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"
|
||||
CommandName="Select" Text=""></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="證照名稱" HeaderText="證照名稱" SortExpression="證照名稱" />
|
||||
<asp:BoundField DataField="證照字號" HeaderText="證照字號" SortExpression="證照字號" />
|
||||
<asp:BoundField DataField="發證單位" HeaderText="發證單位" SortExpression="發證單位" />
|
||||
<asp:BoundField DataField="核發日期" HeaderText="核發日期" SortExpression="核發日期" DataFormatString="{0:yyyyMMdd}">
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<PagerTemplate>
|
||||
<weblib:GridViewPager ID="GridViewPager1" runat="server" />
|
||||
</PagerTemplate>
|
||||
</asp:GridView>
|
||||
</asp:View>
|
||||
<asp:View ID="View查詢" runat="server">
|
||||
<div>
|
||||
<asp:LinkButton ID="btnSearch" runat="server" Text="查詢"
|
||||
CssClass="button blue80" OnClick="btnSearch_Click" />
|
||||
<asp:LinkButton ID="btnClear" runat="server" Text="清除" CssClass="button red80"
|
||||
OnClick="btnClear_Click" />
|
||||
</div>
|
||||
<table border="0" cellpadding="3" cellspacing="2" style="table-layout: fixed;">
|
||||
<tr>
|
||||
<td colspan="1" class="widthcontrol" style="width: 90px;"></td>
|
||||
<td colspan="1" class="widthcontrol" style="width: 200px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb證照名稱Label" runat="server" Text="證照名稱"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<asp:TextBox ID="txt證照名稱_Search" runat="server" Text="" MaxLength="50" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb證照字號Label" runat="server" Text="證照字號"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<asp:TextBox ID="txt證照字號_Search" runat="server" Text="" MaxLength="50" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="lb發證單位Label" runat="server" Text="發證單位"></asp:Label>
|
||||
</td>
|
||||
<td class="datainput">
|
||||
<asp:TextBox ID="txt發證單位_Search" runat="server" Text="" MaxLength="50" CssClass="inputFull"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label ID="lbMessage" runat="server" CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
|
||||
</asp:View>
|
||||
</asp:MultiView>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,287 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.IO;
|
||||
using WebLib;
|
||||
|
||||
namespace Education.Forms.自行登錄
|
||||
{
|
||||
public partial class 持有證照 : FormBase
|
||||
{
|
||||
private bool fileOK = false;
|
||||
private string 文件上傳目錄;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
FunctionName = "持有證照登錄";
|
||||
文件上傳目錄 = Server.MapPath(PublicVariable.證照上傳路徑);
|
||||
|
||||
if (!Directory.Exists(文件上傳目錄))
|
||||
Directory.CreateDirectory(文件上傳目錄);
|
||||
|
||||
Form_View = fv持有證照;
|
||||
Grid_View = gv持有證照;
|
||||
FormView_DataSource = ds持有證照Form;
|
||||
GridView_DataSource = ds持有證照Grid;
|
||||
|
||||
AddTabButton(MultiView1, View處理, tab處理);
|
||||
AddTabButton(MultiView1, View查詢, tab查詢);
|
||||
|
||||
if (IsPostBack)
|
||||
{
|
||||
Grid_View.DataBind();
|
||||
Form_View.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
ActivateTab(MultiView1, View處理);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
Grid_View.PageIndex = 0;
|
||||
Grid_View.DataBind();
|
||||
|
||||
if (Grid_View.Rows.Count > 0)
|
||||
{
|
||||
ActivateTab(MultiView1, View處理);
|
||||
}
|
||||
else
|
||||
{
|
||||
lbMessage.Text = "沒有資料,請以其他查詢條件查詢!";
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
txt發證單位_Search.Text = "";
|
||||
txt證照名稱_Search.Text = "";
|
||||
txt證照字號_Search.Text = "";
|
||||
}
|
||||
|
||||
protected override void FormView_DataBinding(object sender, EventArgs e)
|
||||
{
|
||||
base.FormView_DataBinding(sender, e);
|
||||
RegisterPostbackTrigger(Form_View.FindControl("btnUpload"));
|
||||
}
|
||||
|
||||
protected override void FormView_ReadOnlyDataBound(object sender, EventArgs e)
|
||||
{
|
||||
base.FormView_ReadOnlyDataBound(sender, e);
|
||||
RegisterPostbackTrigger(Form_View.FindControl("btnUpload"));
|
||||
|
||||
if (Form_View.DataItem != null)
|
||||
{
|
||||
string 員工編號 = (Form_View.DataItem as Education.持有證照).員工編號;
|
||||
int 序號 = (Form_View.DataItem as Education.持有證照).序號;
|
||||
string tFullName = String.Format("{0}{1}_{2}.jpg", 文件上傳目錄, 員工編號, 序號);
|
||||
|
||||
/*
|
||||
if (Form_View.FindControl("lt附件檔案") != null)
|
||||
{
|
||||
if (File.Exists(tFullName))
|
||||
{
|
||||
FindControl<ITextControl>(Form_View, "lt附件檔案").Text =
|
||||
String.Format("<a href=\"{0}{1}_{2}.jpg\" target=\"_new\">下載附件檔案</a>",
|
||||
ResolveClientUrl(PublicVariable.證照上傳路徑), 員工編號, 序號);
|
||||
}
|
||||
else
|
||||
{
|
||||
FindControl<ITextControl>(Form_View, "lt附件檔案").Text = "尚未上傳檔案";
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
Image image1 = FindControl<Image>(Form_View, "Image1");
|
||||
if (image1 != null)
|
||||
{
|
||||
string[] tmp = image1.ImageUrl.Split('?');
|
||||
if (tmp.Length > 0 && !File.Exists(Server.MapPath(tmp[0])))
|
||||
{
|
||||
image1.ImageUrl = "~/picture/nopicture.jpg";
|
||||
image1.Attributes.Remove("onclick");
|
||||
image1.Style.Remove("cursor");
|
||||
}
|
||||
else
|
||||
{
|
||||
image1.Attributes.Add("onclick", GetOpenWindowJS("../Common/ShowLargePicture.aspx", "_picture", "pic",
|
||||
String.Format("{0}{1}_{2}.jpg", Education.PublicVariable.證照上傳路徑, 員工編號, 序號)));
|
||||
image1.Style.Add("cursor", "pointer");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void FormView_InsertDataBound(object sender, EventArgs e)
|
||||
{
|
||||
base.FormView_InsertDataBound(sender, e);
|
||||
FindControl<ITextControl>(Form_View, "txt員工編號").Text = UserId;
|
||||
FindControl<ITextControl>(Form_View, "txt員工編號X").Text = UserName;
|
||||
}
|
||||
|
||||
protected override void FormView_EditDataBound(object sender, EventArgs e)
|
||||
{
|
||||
base.FormView_EditDataBound(sender, e);
|
||||
|
||||
RadioButton rb1 = FindControl<RadioButton>(Form_View, "rb證照名稱1");
|
||||
RadioButton rb2 = FindControl<RadioButton>(Form_View, "rb證照名稱2");
|
||||
RadioButton rb3 = FindControl<RadioButton>(Form_View, "rb證照名稱3");
|
||||
RadioButton rb999 = FindControl<RadioButton>(Form_View, "rb證照名稱999");
|
||||
TextBox txt1 = FindControl<TextBox>(Form_View, "txt證照名稱");
|
||||
|
||||
if (txt1.Text.CompareTo(rb1.Text) == 0)
|
||||
{
|
||||
rb1.Checked = true;
|
||||
txt1.Text = "";
|
||||
}
|
||||
else if (txt1.Text.CompareTo(rb2.Text) == 0)
|
||||
{
|
||||
rb2.Checked = true;
|
||||
txt1.Text = "";
|
||||
}
|
||||
else if (txt1.Text.CompareTo(rb3.Text) == 0)
|
||||
{
|
||||
rb3.Checked = true;
|
||||
txt1.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
rb999.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void FormView_ItemCommand(object sender, FormViewCommandEventArgs e)
|
||||
{
|
||||
base.FormView_ItemCommand(sender, e);
|
||||
|
||||
string[] args = e.CommandArgument.ToString().Split('|');
|
||||
string 員工編號 = String.Empty;
|
||||
int 序號 = -1;
|
||||
|
||||
if (args.Length > 0)
|
||||
員工編號 = args[0];
|
||||
if (args.Length > 1)
|
||||
序號 = DAC.GetInt32(args[1]);
|
||||
|
||||
switch (e.CommandName)
|
||||
{
|
||||
case "上傳附件":
|
||||
if (員工編號 == String.Empty || 序號 == -1)
|
||||
return;
|
||||
|
||||
FileUpload fuFile = FindControl<FileUpload>(Form_View, "fu附件檔案");
|
||||
檢查上傳照片(fuFile);
|
||||
儲存上傳文件(fuFile, 員工編號, 序號);
|
||||
Form_View.DataBind();
|
||||
break;
|
||||
case "刪除附件":
|
||||
case "Delete":
|
||||
if (員工編號 == String.Empty || 序號 == -1)
|
||||
return;
|
||||
|
||||
string fileName = String.Format("{0}{1}_{2}.jpg", 文件上傳目錄, 員工編號, 序號);
|
||||
if (File.Exists(fileName))
|
||||
File.Delete(fileName);
|
||||
fileName = String.Format("{0}T_{1}_{2}.jpg", 文件上傳目錄, 員工編號, 序號);
|
||||
if (File.Exists(fileName))
|
||||
File.Delete(fileName);
|
||||
|
||||
Form_View.DataBind();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void 檢查上傳照片(FileUpload fu)
|
||||
{
|
||||
// 處理上傳照片
|
||||
string ext = "";
|
||||
|
||||
if (fu.HasFile && fu.PostedFile.ContentType.ToLower().IndexOf("image") >= 0)
|
||||
{
|
||||
// 檢查副檔名
|
||||
ext = Path.GetExtension(fu.FileName).ToLower();
|
||||
String[] allowedExt = { ".gif", ".jpeg", ".jpg", ".png" };
|
||||
for (int i = 0; i < allowedExt.Length; i++)
|
||||
{
|
||||
if (ext == allowedExt[i])
|
||||
{
|
||||
fileOK = true;
|
||||
}
|
||||
}
|
||||
|
||||
// 檢查檔案大小
|
||||
if (fileOK && fu.PostedFile.ContentLength < 5242880)
|
||||
fileOK = true;
|
||||
else
|
||||
fileOK = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
fileOK = false;
|
||||
}
|
||||
}
|
||||
|
||||
protected void 儲存上傳文件(FileUpload fu, string 員工編號, int 序號)
|
||||
{
|
||||
if (fileOK)
|
||||
{
|
||||
try
|
||||
{
|
||||
string tFullName = String.Format("{0}T_{1}_{2}.jpg", 文件上傳目錄, 員工編號, 序號);
|
||||
MemoryStream ms = PictureProcess.縮圖(fu.PostedFile.InputStream, 300, 300);
|
||||
File.WriteAllBytes(tFullName, ms.ToArray());
|
||||
|
||||
tFullName = String.Format("{0}{1}_{2}.jpg", 文件上傳目錄, 員工編號, 序號);
|
||||
ms = PictureProcess.縮圖(fu.PostedFile.InputStream, 2000, 2000);
|
||||
File.WriteAllBytes(tFullName, ms.ToArray());
|
||||
ms.Dispose();
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
|
||||
{
|
||||
args.IsValid = false;
|
||||
|
||||
Control container = (source as Control).Parent;
|
||||
RadioButton rb1 = FindControl<RadioButton>(container, "rb證照名稱1");
|
||||
RadioButton rb2 = FindControl<RadioButton>(container, "rb證照名稱2");
|
||||
RadioButton rb3 = FindControl<RadioButton>(container, "rb證照名稱3");
|
||||
RadioButton rb999 = FindControl<RadioButton>(container, "rb證照名稱999");
|
||||
TextBox txt1 = FindControl<TextBox>(container, "txt證照名稱");
|
||||
|
||||
if (rb1.Checked)
|
||||
{
|
||||
txt1.Text = rb1.Text;
|
||||
args.IsValid = true;
|
||||
}
|
||||
else if (rb2.Checked)
|
||||
{
|
||||
txt1.Text = rb2.Text;
|
||||
args.IsValid = true;
|
||||
}
|
||||
else if (rb3.Checked)
|
||||
{
|
||||
txt1.Text = rb3.Text;
|
||||
args.IsValid = true;
|
||||
}
|
||||
else if (rb999.Checked)
|
||||
{
|
||||
args.IsValid = txt1.Text.Trim().Length > 0;
|
||||
}
|
||||
}
|
||||
|
||||
protected void ds持有證照Grid_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
|
||||
{
|
||||
e.InputParameters["員工編號"] = UserId;
|
||||
}
|
||||
}
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自動產生>
|
||||
// 這段程式碼是由工具產生的。
|
||||
//
|
||||
// 變更這個檔案可能會導致不正確的行為,而且如果已重新產生
|
||||
// 程式碼,則會遺失變更。
|
||||
// </自動產生>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Education.Forms.自行登錄
|
||||
{
|
||||
|
||||
|
||||
public partial class 持有證照
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// ds持有證照Form 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ds持有證照Form;
|
||||
|
||||
/// <summary>
|
||||
/// ds持有證照Grid 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ds持有證照Grid;
|
||||
|
||||
/// <summary>
|
||||
/// tab處理 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton tab處理;
|
||||
|
||||
/// <summary>
|
||||
/// tab查詢 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton tab查詢;
|
||||
|
||||
/// <summary>
|
||||
/// MultiView1 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.MultiView MultiView1;
|
||||
|
||||
/// <summary>
|
||||
/// View處理 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.View View處理;
|
||||
|
||||
/// <summary>
|
||||
/// fv持有證照 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.FormView fv持有證照;
|
||||
|
||||
/// <summary>
|
||||
/// gv持有證照 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView gv持有證照;
|
||||
|
||||
/// <summary>
|
||||
/// View查詢 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.View View查詢;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton btnSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnClear 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton btnClear;
|
||||
|
||||
/// <summary>
|
||||
/// lb證照名稱Label 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb證照名稱Label;
|
||||
|
||||
/// <summary>
|
||||
/// txt證照名稱_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txt證照名稱_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lb證照字號Label 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb證照字號Label;
|
||||
|
||||
/// <summary>
|
||||
/// txt證照字號_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txt證照字號_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lb發證單位Label 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lb發證單位Label;
|
||||
|
||||
/// <summary>
|
||||
/// txt發證單位_Search 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txt發證單位_Search;
|
||||
|
||||
/// <summary>
|
||||
/// lbMessage 控制項。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自動產生的欄位。
|
||||
/// 若要修改,請將欄位宣告從設計工具檔案移到程式碼後置檔案。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbMessage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user