//Change Pending public Fee GetFee(int FeeID, string currSY) { List<Fee> flist = new List<Fee>(); flist = GetAllFees(); Fee fee = new Fee(); fee = flist.Find(a => a.FeeID == FeeID && a.SYImplemented == currSY); return fee; }
public List<Fee> GetAllFees() { List<Fee> flist = new List<Fee>(); foreach (FeeBDO fbdo in flogic.GetAllFees()) { Fee f = new Fee(); TranslateFeeBDOToFee(fbdo, f); flist.Add(f); } return flist; }
public void TranslateFeeBDOToFee(FeeBDO fbdo, Fee f) { f.Deactivated = fbdo.Deactivated; f.FeeCode = fbdo.FeeCode; f.FeeDescription = fbdo.FeeDescription; f.Unit = fbdo.Unit; f.Amount = fbdo.Amount; f.DateSet = fbdo.DateSet; f.GradeLevel = fbdo.GradeLevel; f.SYImplemented = fbdo.SYImplemented; }
public void TranslateFeeBDOToFee(FeeBDO fbdo, Fee f) { GradeLevelService gService = new GradeLevelService(); f.Deactivated = fbdo.Deactivated; f.FeeID = fbdo.FeeID; f.FeeDescription = fbdo.FeeDescription; f.NumPay = (int)fbdo.NumPay; f.DiscountFullPay = (float)fbdo.DiscountFullPay; f.Amount = fbdo.Amount; //gService. f.GradeLev = gService.GetGradeLevel(fbdo.GradeLevel); f.GradeLevel = fbdo.GradeLevel; f.SYImplemented = fbdo.SYImplemented; }
public Fee GetFeeForAll(string currSY) { Fee fee = new Fee(); TranslateFeeBDOToFee(flogic.GetFeeForAll(currSY),fee); return fee; }
public bool CreateFee(ref Fee fee, ref string message) { FeeBDO fbdo = new FeeBDO(); TranslateFeeToFeeBDO(fee, fbdo); return flogic.CreateFee(ref fbdo, ref message); }
private List<Fee> ToFeeList(List<FeeBDO> fbList) { List<Fee> fList = new List<Fee>(); foreach (FeeBDO fb in fbList) { Fee f = new Fee(); TranslateFeeBDOToFee(fb, f); fList.Add(f); } return fList; }
public void TranslateFeeToFeeBDO(Fee f, FeeBDO fbdo) { fbdo.Deactivated = f.Deactivated; fbdo.FeeID = f.FeeID; fbdo.FeeDescription = f.FeeDescription; fbdo.NumPay = f.NumPay; fbdo.DiscountFullPay = f.DiscountFullPay; fbdo.Amount = f.Amount; fbdo.GradeLevel = f.GradeLevel; fbdo.SYImplemented = f.SYImplemented; }