This commit is contained in:
chapal 2024-10-14 16:49:56 +06:00
parent bb8c875a8e
commit 1d58361f02
2 changed files with 3 additions and 3 deletions

View File

@ -93,8 +93,8 @@ namespace HRM.DA
internal static DataTable GetLayout(TransactionContext tc, DateTime dtSalaryMonth) internal static DataTable GetLayout(TransactionContext tc, DateTime dtSalaryMonth)
{ {
return tc.ExecuteDataTable( return tc.ExecuteDataTable(
"SELECT ProductionBonusSetupID as id, DesignNo as design FROM ProductionBonusSetup where CreationDate >= %d", "SELECT ProductionBonusSetupID as id, DesignNo as design FROM ProductionBonusSetup where Salarymonth >= %d",
dtSalaryMonth); GlobalFunctions.FirstDateOfMonth(dtSalaryMonth));
} }
internal static DataTable GetLayoutMonthly(TransactionContext tc, DateTime dtSalaryMonth) internal static DataTable GetLayoutMonthly(TransactionContext tc, DateTime dtSalaryMonth)
{ {

View File

@ -39,7 +39,7 @@ namespace HRM.DA
oEmployee.TinNo = oReader.GetString("tinNo"); oEmployee.TinNo = oReader.GetString("tinNo");
oEmployee.CategoryID = oReader.GetInt32("categoryID").Value; oEmployee.CategoryID = oReader.GetInt32("categoryID").Value;
oEmployee.ForeignExPat = oReader.GetBoolean("foreignExPat").Value; oEmployee.ForeignExPat = oReader.GetBoolean("foreignExPat").Value;
oEmployee.TaxCircle = (EnumTaxCircle)oReader.GetInt32("taxCircle", true, 0); //oEmployee.TaxCircle = (EnumTaxCircle)oReader.GetInt32("taxCircle", true, 0);
//oEmployee.TaxCircle = oReader.GetString("taxCircle"); //oEmployee.TaxCircle = oReader.GetString("taxCircle");
oEmployee.IsConfirmed = oReader.GetBoolean("isConfirmed").Value; oEmployee.IsConfirmed = oReader.GetBoolean("isConfirmed").Value;
oEmployee.Status = (EnumEmployeeStatus)oReader.GetInt32("status").Value; oEmployee.Status = (EnumEmployeeStatus)oReader.GetInt32("status").Value;