using System; using System.Linq; using System.Data; using System.Collections.Generic; namespace HRM.BO { #region Class MemberBalaneMonthly [Serializable] public class MemberBalaneMonthly : AuditTrailBase { #region Constructor public MemberBalaneMonthly() { MembersID = 0; ProjectID = 0; MonthDate = DateTime.MinValue; CMOpeningContributionBalance = 0; CMClosingContributionBalance = 0; CMActualOpeningInterest = 0; CMActualClosingInterest = 0; CMOpeningProvisionalInterest = 0; CMClosingProvisionalInterest = 0; CMOpeningActualBalance = 0; CMClosingActualBalance = 0; CMOpeningProvisionalBalance = 0; CMClosingProvisionalBalance = 0; FundTypeID = 0; // Fund = null; EmpCode = null; MembershipDate = DateTime.MinValue; MembershipNo = null; } #endregion #region properties public int ProjectID { get; set; } public int MembersID { get; set; } public DateTime MonthDate { get; set; } public int FundTypeID { get; set; } // public FundType Fund { get; set; } public string EmpCode { get; set; } public DateTime MembershipDate { get; set; } public string MembershipNo { get; set; } public double CMOpeningContributionBalance { get; set; } public double CMClosingContributionBalance { get; set; } public double CMActualOpeningInterest { get; set; } public double CMActualClosingInterest { get; set; } public double CMOpeningProvisionalInterest { get; set; } public double CMOpeningActualBalance { get; set; } public double CMClosingActualBalance { get; set; } public double CMClosingProvisionalInterest { get; set; } public double CMOpeningProvisionalBalance { get; set; } public double CMClosingProvisionalBalance { get; set; } #endregion #region Validation Function public bool Validate(string code, string name, ref MemberBalaneMonthly ob,ref string sMessage) { string s = code; MemberBalaneMonthly MemberBalaneMonthly=new MemberBalaneMonthly(); MemberBalaneMonthly=ob; if (code == string.Empty) { sMessage = "MemberBalaneMonthly Code can not be Empty"; return false; } if (name == string.Empty) { sMessage = "MemberBalaneMonthly Name can not be Empty" ; return false; } return true; } #endregion } #endregion #region Interface public interface IMemberBalaneMonthlyService { int Save(MemberBalaneMonthly item); void Delete(int id); MemberBalaneMonthly Get(int id); MemberBalaneMonthly GetByMemberID(int memberID); List Get(); List Get(DateTime selectedMonth); DataTable GetTable(DateTime fromDate, DateTime toDate); DataTable GetLeftMemberTable(DateTime fromDate, DateTime toDate); } #endregion }