EchoTex_Payroll/HRM.BO/Fund/MemberInfo/MembersTransactionDetails.cs
2024-10-14 10:01:49 +06:00

138 lines
4.9 KiB
C#

using System;
using System.Linq;
using System.Data;
using System.Collections.Generic;
namespace HRM.BO
{
#region Class MembersTransactionDetails
[Serializable]
public class MembersTransactionDetails : AuditTrailBase
{
#region Constructor
public MembersTransactionDetails()
{
MemberID = 0;
ActivityID = 0;
ProjectID = 0;
TranTypeID = 0;
TranDate = DateTime.MinValue;
Amount = 0;
Effect = EnumTranEffect.Nothing;
VoucherNo = null;
FundTypeID = 0;
//FundType = null;
FactorAmount = 0;
}
#endregion
#region properties
public string Code { get; set; }
public int ProjectID { get; set; }
public int MemberID { get; set; }
public int ActivityID { get; set; }
public int TranTypeID { get; set; }
public DateTime TranDate { get; set; }
public double Amount { get; set; }
public EnumTranEffect Effect { get; set; }
public string VoucherNo { get; set; }
public int FundTypeID { get; set; }
//public FundType FundType { get; set; }
public Member Member { get; set; }
public double FactorAmount { get; set; }
#endregion
}
#endregion
#region Interface
public interface IMembersTransactionDetailsService
{
//void UploadOpeningTranForLTA(List<MembersTransactionDetails> memberTrans, List<MemberBalaneMonthly> membersMonthlyBalances);
DataSet GetTransactionMembers(DateTime uploadMonth);
DataSet GetTransactionIAMembers();
DataSet GetTransactionMembers(string queryString);
int Save(MembersTransactionDetails item);
void Save(List<MembersTransactionDetails> memberTrans, DateTime date);
// void Save(DataTable dataTable, string type, DateTime date, MemberHandler memHandler);
// void Save(DataSet ds, string type, DateTime date, MemberHandler memHandler);
// void Save(DataGridView dgvContributionInfo, string type, DateTime date, MemberHandler memHandler);
void Delete(int id);
MembersTransactionDetails Get(int id);
List<MembersTransactionDetails> Get();
List<MembersTransactionDetails> Get(EnumMemberTranType type);
List<MembersTransactionDetails> GetMemberContribution(int memberID, DateTime beforeConOfDate);
List<MembersTransactionDetails> GetMemberContribution(int memberID, string searchCondition);
List<MembersTransactionDetails> GetMemberContribution(int memberID, string searchCondition, string FMConn);
DataTable GetTable();
DataSet GetGFProvissionMember(DateTime month);
void UploadOpeningTran(List<MembersTransactionDetails> memberTrans, List<MemberBalaneMonthly> membersMonthlyBalances);
void UploadOpeningTranForGF(List<MembersTransactionDetails> memberTrans, List<MemberBalaneMonthly> membersMonthlyBalances);
bool IsExist(int projectID);
bool IsExistMonth(DateTime month, int fundID, int tranTypeID);
bool IsExistMemberContribution(int memberID, DateTime month, int fundID, int tranTypeID);
// void SaveYearlyPFPostEntry(EaseFAS.BO.GLTrans oGLTrans);
DataSet GetTranAmount(int iD, DateTime dtYearEnd);
DataSet GetTranAmount(string memberID, DateTime dtFirst, DateTime dtLast);
DataTable GetMembersAccount(string smemberId, DateTime fromMonth, DateTime toMonth, EnumMemberDvdntDuration divDuration);
DataTable GetMembersEPFCPF(int EmpID, DateTime dateTime);
DataTable GetMembersAccountBeforeAfterAudit(string smemberId, DateTime Fromdate, DateTime Todate, EnumMemberDvdntDuration divDuration);
double GetOpeningBalance(int memberID, int fundType, DateTime FromDate);
double GetOpeningBalance(int memberID, int fundType, DateTime FromDate, string FMConn);
double GetSettledInterest(int memberID);
DataSet GetOpeningBalance(string memberID, int fundType, DateTime FromDate);
DataSet GetMembersYearlyBalance(DateTime FromDate, DateTime ToDate);
DataSet GetTranAmountForCalculate(int memberID, DateTime dtYearEnd);
List<MembersTransactionDetails> GetSettledInterest(DateTime Trandate, string tranType, int memberID);
// void SaveWithdrawal(List<MembersTransactionDetails> _odetails, MemberHandler _memberHandler);
DataSet GetIndividualPFBalance(DateTime Fromdate, DateTime dtYearEnd, DateTime tillDate, string sEmpID);
DataTable GetFunds(int memberID);
// DataSet GetMemberContribution(int memberID, string Date);
DateTime GetMonth(int memberID);
double GetCurBalance(int memberID, DateTime balanceMonth);
double GetOpeningBalance(int memberID, DateTime balanceMonth);
DataSet GetTranAmountForCalculate(int memberID, DateTime dtYearEnd, DateTime dtMonthEnd);
}
#endregion
}