70 lines
2.0 KiB
C#
70 lines
2.0 KiB
C#
|
using Ease.Core.DataAccess;
|
|||
|
using HRM.BO;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace HRM.DA
|
|||
|
{
|
|||
|
#region PayScaleDetailDA
|
|||
|
|
|||
|
public class PLDailyInterestDA
|
|||
|
{
|
|||
|
#region Constructor
|
|||
|
|
|||
|
private PLDailyInterestDA()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Get
|
|||
|
|
|||
|
internal static System.Data.IDataReader Get(TransactionContext tc, DateTime FrominterestDate,
|
|||
|
DateTime ToIntDate)
|
|||
|
{
|
|||
|
string ssql = SQLParser.MakeSQL("Select * from PLDailyInterest where InterestDate Between %d AND %d",
|
|||
|
FrominterestDate, ToIntDate);
|
|||
|
return tc.ExecuteReader(ssql);
|
|||
|
}
|
|||
|
|
|||
|
internal static System.Data.IDataReader Get(TransactionContext tc, DateTime issueDate)
|
|||
|
{
|
|||
|
string ssql = SQLParser.MakeSQL("Select * from PLDailyInterest where InterestDate=%d ", issueDate);
|
|||
|
return tc.ExecuteReader(ssql);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Delete
|
|||
|
|
|||
|
internal static void Delete(TransactionContext tc, DateTime FrominterestDate, DateTime ToIntDate)
|
|||
|
{
|
|||
|
tc.ExecuteNonQuery("DELETE FROM PLDailyInterest WHERE InterestDate>=%d AND InterestDate<=%d",
|
|||
|
FrominterestDate, ToIntDate);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Update
|
|||
|
|
|||
|
internal static void Update(TransactionContext tc, PLDailyInterest oInt)
|
|||
|
{
|
|||
|
tc.ExecuteNonQuery(
|
|||
|
"UPDATE PLDailyInterest SET InterestDate=%d, DailyRate=%n,AnnualRate=%n WHERE PLDailyInterestID=%n",
|
|||
|
oInt.InterestDate, oInt.DailyRate, oInt.AnnualRate, oInt.ID);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Insert
|
|||
|
|
|||
|
internal static void Insert(TransactionContext tc, PLDailyInterest oInt)
|
|||
|
{
|
|||
|
tc.ExecuteNonQuery("INSERT INTO PLDailyInterest(PLDailyInterestID, InterestDate, DailyRate,AnnualRate)" +
|
|||
|
" VALUES(%n, %d, %n,%n)", oInt.ID, oInt.InterestDate, oInt.DailyRate, oInt.AnnualRate);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|