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,196 @@
//
// 這個檔案是 訓練效益個人 資料表的資料存取類別 檔案二
// 您可以修改這個檔案,加入您自訂的屬性與方法
//
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
using WebLib;
using System.Data.SqlClient;
namespace Education
{
///<summary>
/// 訓練效益個人 資料存取類別
///</summary>
public partial class DAC_訓練效益個人 : WebLib.DAC
{
#region
///<summary>
/// InsertOne 之前會執行此方法
/// 在這裡可以做一些檢查或是自動編號等動作
/// 回傳 false 會打斷 InsertOne 的執行
///</summary>
protected virtual bool BeforeInsertOne( value)
{
return true;
}
///<summary>
/// InsertOne 之後會執行此方法
///</summary>
protected virtual void AfterInsertOne( value)
{
}
///<summary>
/// InsertOne 發生錯誤時會執行此方法
///</summary>
///<param name="handled">錯誤是否已經處理妥當</param>
protected virtual void OnInsertOneError(Exception error, out bool handled)
{
handled = false;
}
///<summary>
/// UpdateOne 之前會執行此方法
/// 在這裡可以做一些檢查
/// 回傳 false 會打斷 UpdateOne 的執行
///</summary>
protected virtual bool BeforeUpdateOne( value)
{
return true;
}
///<summary>
/// UpdateOne 之後會執行此方法
///</summary>
protected virtual void AfterUpdateOne( value)
{
}
///<summary>
/// UpdateOne 發生錯誤時會執行此方法
///</summary>
///<param name="handled">錯誤是否已經處理妥當</param>
protected virtual void OnUpdateOneError(Exception error, out bool handled)
{
handled = false;
}
///<summary>
/// DeleteOne 之前會執行此方法
/// 在這裡可以做一些檢查
/// 回傳 false 會打斷 DeleteOne 的執行
///</summary>
protected virtual bool BeforeDeleteOne( value)
{
return true;
}
///<summary>
/// DeleteOne 之後會執行此方法
///</summary>
protected virtual void AfterDeleteOne( value)
{
}
///<summary>
/// DeleteOne 之前會執行此方法
/// 在這裡可以做一些檢查
/// 回傳 false 會打斷 DeleteOne 的執行
///</summary>
protected virtual bool BeforeDeleteOne(int , string , int DB_APPNO)
{
return true;
}
///<summary>
/// DeleteOne 之後會執行此方法
///</summary>
protected virtual void AfterDeleteOne(int , string , int DB_APPNO)
{
}
///<summary>
/// DeleteOne 發生錯誤時會執行此方法
///</summary>
///<param name="handled">錯誤是否已經處理妥當</param>
protected virtual void OnDeleteOneError(Exception error, out bool handled)
{
handled = false;
}
#endregion
// 有另外加上去的屬性及方法,請加在這裡
[DataObjectMethod(DataObjectMethodType.Select)]
public List Select(int , int )
{
List result = new List();
IDataList list = result as IDataList;
DbCommand cmdSelect = NewCommand();
cmdSelect.CommandText = _select + _from + _where
+ " and 訓練課程企劃編號 = @訓練課程企劃編號 "
+ " and 填表序號 = @填表序號 "
+ " order by 學員編號 "
;
AddParam(cmdSelect, "訓練課程企劃編號", );
AddParam(cmdSelect, "填表序號", );
Select(cmdSelect, ref list);
return result;
}
public void Update(int , int , string , string , string )
{
List d = SelectOne(, );
if (d.Count == 0)
{
newValue = new ();
newValue. = ;
newValue. = ;
newValue. = ;
newValue. = ;
newValue. = ;
InsertOne(newValue);
}
else
{
d[0]. = ;
d[0]. = ;
UpdateOne(d[0]);
}
}
[DataObjectMethod(DataObjectMethodType.Select)]
public DataTable SelectFor簽核(int , int )
{
DbCommand cmdSelect = NewCommand();
cmdSelect.CommandText =
@"SELECT A.學員編號, B.BPNME AS 學員姓名,
C.RAJNO AS 職務編號, G.BPJME AS 職務名稱,
C.RACNO AS 等級編號, H.BPCME AS 等級名稱,
A.是否有成效, A.成效說明
FROM 訓練效益個人 A
INNER JOIN BPSNView B ON A.學員編號 = B.BPENO
LEFT OUTER JOIN RASN C on A.學員編號 = C.RANUM and C.RAEDT is NULL
left outer join BPJA G on G.BPPYN = C.RAPYN and G.BPJNO = C.RAJNO
left outer join BPJB H on H.BPPYN = C.RAPYN and H.BPJNO = C.RAJNO and H.BPCNO = C.RACNO
WHERE A.訓練課程企劃編號 = @訓練課程企劃編號 AND A.填表序號 = @填表序號
ORDER BY A.學員編號";
AddParam(cmdSelect, "訓練課程企劃編號", );
AddParam(cmdSelect, "填表序號", );
return Select(cmdSelect);
}
}
///<summary>
/// 訓練效益個人 資料集合類別
///</summary>
public partial class List : List<>
{
// 有另外加上去的屬性及方法,請加在這裡
}
///<summary>
/// 訓練效益個人 資料紀錄類別
///</summary>
public partial class
{
// 有另外加上去的屬性及方法,請加在這裡
}
}