Esempio n. 1
0
 private DTO.LABURNUM.COM.StudentFeeModel MapCore(API.LABURNUM.COM.StudentFee studentFee)
 {
     DTO.LABURNUM.COM.StudentFeeModel dtoStudentFee = new DTO.LABURNUM.COM.StudentFeeModel()
     {
         StudentFeeId           = studentFee.StudentFeeId,
         ClassId                = studentFee.ClassId,
         AdmissionTypeId        = studentFee.AdmissionTypeId,
         AdmissionFee           = studentFee.AdmissionFee,
         DevelopementFee        = studentFee.DevelopementFee,
         AnnualCharges          = studentFee.AnnualCharges,
         ExamFee                = studentFee.ExamFee,
         SportsFee              = studentFee.SportsFee,
         SecurityFee            = studentFee.SecurityFee,
         StudentId              = studentFee.StudentId,
         AnnualFunctionFee      = studentFee.AnnualFunctionFee,
         CollectedById          = studentFee.CollectedById,
         SectionId              = studentFee.SectionId,
         CreatedOn              = studentFee.CreatedOn,
         IsActive               = studentFee.IsActive,
         LastUpdated            = studentFee.LastUpdated,
         AcademicYearId         = studentFee.AcademicYearId,
         ClassName              = studentFee.Class.ClassName,
         StudentName            = studentFee.Student.FirstName + " " + studentFee.Student.MiddleName + " " + studentFee.Student.LastName,
         SectionName            = studentFee.Section.SectionName,
         DiscountAmount         = studentFee.DiscountAmount,
         DiscountRemarks        = studentFee.DiscountRemarks,
         TotalPayableAmount     = (studentFee.AdmissionFee + studentFee.DevelopementFee + studentFee.AnnualCharges + studentFee.ExamFee + studentFee.SportsFee + studentFee.SecurityFee + studentFee.AnnualFunctionFee.GetValueOrDefault()) - studentFee.DiscountAmount,
         CollectedByName        = studentFee.Faculty.FacultyName,
         ParentName             = studentFee.Student.FatherName,
         AcademicYear           = studentFee.AcademicYearTable.StartYear + "-" + studentFee.AcademicYearTable.EndYear,
         StudentAdmissionNumber = studentFee.Student.AdmissionNumber,
     };
     return(dtoStudentFee);
 }
Esempio n. 2
0
 public StudentFeeHelper(API.LABURNUM.COM.StudentFee studentFee)
 {
     if (studentFee == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.StudentFees = new List <API.LABURNUM.COM.StudentFee>();
     this.StudentFees.Add(studentFee);
 }
Esempio n. 3
0
 private DTO.LABURNUM.COM.StudentFeeModel MapCore(API.LABURNUM.COM.StudentFee studentFee)
 {
     DTO.LABURNUM.COM.StudentFeeModel dtoStudentFee = new DTO.LABURNUM.COM.StudentFeeModel()
     {
         StudentFeeId    = studentFee.StudentFeeId,
         ClassId         = studentFee.ClassId,
         AdmissionTypeId = studentFee.AdmissionTypeId,
         StudentId       = studentFee.StudentId,
         CreatedOn       = studentFee.CreatedOn,
         IsActive        = studentFee.IsActive,
         LastUpdated     = studentFee.LastUpdated
     };
     return(dtoStudentFee);
 }
Esempio n. 4
0
 public DTO.LABURNUM.COM.FeeReportingResultModel GetFeeReportingResultModel(API.LABURNUM.COM.StudentFee dbStudentFee)
 {
     DTO.LABURNUM.COM.FeeReportingResultModel model = new DTO.LABURNUM.COM.FeeReportingResultModel()
     {
         AcademicYearId       = dbStudentFee.AcademicYearId,
         AcademicYear         = dbStudentFee.AcademicYearTable.AcademicYear,
         AdmissionFee         = dbStudentFee.AdmissionFee,
         AnnualCharges        = dbStudentFee.AnnualCharges,
         DevelopementFee      = dbStudentFee.DevelopementFee,
         ExamFee              = dbStudentFee.ExamFee,
         SportsFee            = dbStudentFee.SportsFee,
         SecurityFee          = dbStudentFee.SecurityFee,
         DiscountAmount       = dbStudentFee.DiscountAmount,
         ClassId              = dbStudentFee.ClassId,
         ClassName            = dbStudentFee.Class.ClassName,
         StudentId            = dbStudentFee.StudentId,
         StudentName          = dbStudentFee.Student.FirstName + " " + dbStudentFee.Student.MiddleName + " " + dbStudentFee.Student.LastName,
         SectionId            = dbStudentFee.SectionId,
         SectionName          = dbStudentFee.Section.SectionName,
         TotalPaidOnAdmission = (dbStudentFee.AdmissionFee + dbStudentFee.AnnualCharges + dbStudentFee.ExamFee + dbStudentFee.SportsFee + dbStudentFee.SecurityFee) - dbStudentFee.DiscountAmount,
     };
     return(model);
 }
Esempio n. 5
0
        public List <DTO.LABURNUM.COM.FeeReportingResultModel> GetFeeReportingResultModel(API.LABURNUM.COM.StudentFee dbStudentFee, List <API.LABURNUM.COM.StudentFeeDetail> dblist)
        {
            //int counter = 1;
            List <DTO.LABURNUM.COM.FeeReportingResultModel> dbFRList = new List <DTO.LABURNUM.COM.FeeReportingResultModel>();

            DTO.LABURNUM.COM.FeeReportingResultModel model = new DTO.LABURNUM.COM.FeeReportingResultModel();
            foreach (API.LABURNUM.COM.StudentFeeDetail item in dblist)
            {
                if (item.PayForTheMonth == dbStudentFee.CreatedOn.Month)
                {
                    model.AdmissionFee    = dbStudentFee.AdmissionFee;
                    model.AnnualCharges   = dbStudentFee.AnnualCharges;
                    model.DevelopementFee = dbStudentFee.DevelopementFee;
                    model.ExamFee         = dbStudentFee.ExamFee;
                    model.SportsFee       = dbStudentFee.SportsFee;
                    model.SecurityFee     = dbStudentFee.SecurityFee;
                    model.DiscountAmount  = dbStudentFee.DiscountAmount;
                    model.MonthlyFee      = item.MonthlyFee;
                    model.LateFee         = item.LateFee;
                    model.TransportFee    = item.TransportFee;
                    model.PendingFee      = item.PendingFee;
                    //model.AnnualFunctionFee = item.AnnualFunctionFee;
                    model.MonthDiscountAmount = item.DiscountAmount;
                    model.MonthName           = item.Month.MonthName;
                    model.StudentName         = dbStudentFee.Student.FirstName + " " + dbStudentFee.Student.MiddleName + " " + dbStudentFee.Student.LastName;
                    model.ClassName           = dbStudentFee.Class.ClassName;
                    model.SectionName         = dbStudentFee.Section.SectionName;
                }
                else
                {
                    model.MonthlyFee   = item.MonthlyFee;
                    model.LateFee      = item.LateFee;
                    model.TransportFee = item.TransportFee;
                    model.PendingFee   = item.PendingFee;
                    //model.AnnualFunctionFee = item.AnnualFunctionFee;
                    model.MonthDiscountAmount = item.DiscountAmount;
                    model.MonthName           = item.Month.MonthName;
                    model.StudentName         = dbStudentFee.Student.FirstName + " " + dbStudentFee.Student.MiddleName + " " + dbStudentFee.Student.LastName;
                    model.ClassName           = dbStudentFee.Class.ClassName;
                    model.SectionName         = dbStudentFee.Section.SectionName;
                }
                dbFRList.Add(model);
            }
            return(dbFRList);
        }