Example #1
0
        //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;
        }
Example #2
0
 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;
 }
Example #3
0
 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;
     
 }
Example #4
0
 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;
 }
Example #5
0
 public Fee GetFeeForAll(string currSY)
 {
     Fee fee = new Fee();
     TranslateFeeBDOToFee(flogic.GetFeeForAll(currSY),fee);
     return fee;
 }
Example #6
0
 public bool CreateFee(ref Fee fee, ref string message)
 {
     FeeBDO fbdo = new FeeBDO();
     TranslateFeeToFeeBDO(fee, fbdo);
     return flogic.CreateFee(ref fbdo, ref message);
 }
Example #7
0
 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;
 }
Example #8
0
 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;
 }