80 lines
2.6 KiB
C#
80 lines
2.6 KiB
C#
using HRM.BO;
|
|
using HRM.BO.Configuration;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
[Serializable]
|
|
public class NewInvestment : BasicBaseObject
|
|
{
|
|
public int NewInvestmentID { get; set; }
|
|
public DateTime TranMonth { get; set; }
|
|
public double Balance { get; set; }
|
|
public double CurrentAmount { get; set; }
|
|
public int ApproverOne { get; set; }
|
|
public string ApproverOneRemarks { get; set; }
|
|
public DateTime? ApproverOneDate{ get; set; }
|
|
public int ApproverTwo { get; set; }
|
|
public string ApproverTwoRemarks { get; set; }
|
|
public DateTime? ApproverTwoDate { get; set; }
|
|
|
|
public List<NewInvestmentInBank> NewInvestmentInBanks { get; set; }
|
|
|
|
public NewInvestment()
|
|
{
|
|
Balance = 0.0;
|
|
TranMonth = DateTime.MinValue;
|
|
CreatedDate = DateTime.MinValue;
|
|
ApproverOneDate = null;
|
|
ApproverTwoDate = null;
|
|
NewInvestmentInBanks = [];
|
|
}
|
|
}
|
|
|
|
public class NewInvestmentInBank : BasicBaseObject
|
|
{
|
|
public int NewInvestmentInBankID { get; set; }
|
|
public int NewInvestmentID { get; set; }
|
|
public int BankID { get; set; }
|
|
public string BankName { get; set; }
|
|
public double Amount { get; set; }
|
|
|
|
public double Ratio { get; set; }
|
|
public int RatingID { get; set; }
|
|
public double ThreeMonthRate { get; set; }
|
|
public double SixMonthRate { get; set; }
|
|
public double TwelveMonthRate { get; set; }
|
|
public double ThreeYearRate { get; set; }
|
|
public double FiveYearRate { get; set; }
|
|
|
|
public NewInvestmentInBank()
|
|
{
|
|
Amount = 0.0;
|
|
Ratio = 0.0;
|
|
RatingID = 0;
|
|
ThreeMonthRate = 0.0;
|
|
SixMonthRate = 0.0;
|
|
TwelveMonthRate = 0.0;
|
|
ThreeYearRate = 0.0;
|
|
FiveYearRate = 0.0;
|
|
}
|
|
}
|
|
|
|
#region NewInvestment Service
|
|
public interface INewInvestmentService
|
|
{
|
|
NewInvestment Get(int id);
|
|
NewInvestment GetByTranMonth(DateTime tranMonth);
|
|
NewInvestment GetByMemberID(int MemberID);
|
|
List<NewInvestment> GetAll();
|
|
void Save(NewInvestment item);
|
|
void Delete(int id);
|
|
NewInvestment GetFromConfig(int currentUserID, DateTime date);
|
|
string SendMailToHr(EmailSettings emailSettings, int HrID);
|
|
NewInvestment GetNewInvestmentById(int NewInvestmentID);
|
|
int UpdateNewInvestmentApproval(NewInvestment item);
|
|
}
|
|
#endregion IPFWithdrawalRequest Service
|
|
}
|