Ejemplo n.º 1
0
 public bool UpdateChequeStatus(DTO.LABURNUM.COM.StudentFeeDetailModel model)
 {
     if (new FrontEndApi.ApiClientApi().IsClientValid(model.ApiClientModel.UserName, model.ApiClientModel.Password))
     {
         DTO.LABURNUM.COM.StudentFeeDetailModel dtomodel = new StudentFeeDetailHelper(new FrontEndApi.StudentFeeDetailApi().UpdateChequeStatus(model.StudentFeeDetailId, model.ChequeStatus.GetValueOrDefault(), model.ChequeBounceRemarks)).MapSingle();
         SendChequeStatusUpdateEmail(dtomodel.StudentFeeDetailId);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 public DTO.LABURNUM.COM.StudentFeeDetailModel SearchMonthlyFeeReceiptData(DTO.LABURNUM.COM.StudentFeeDetailModel model)
 {
     if (new FrontEndApi.ApiClientApi().IsClientValid(model.ApiClientModel.UserName, model.ApiClientModel.Password))
     {
         DTO.LABURNUM.COM.StudentFeeDetailModel studentFeeDetailModel = new StudentFeeDetailHelper(new FrontEndApi.StudentFeeDetailApi().GetStudentFeeDetailByID(model.StudentFeeDetailId)).MapSingle();
         API.LABURNUM.COM.StudentFeeDetail      dbstudentfeeDetails   = new FrontEndApi.StudentFeeDetailApi().GetFeePaidDetailDuringMonthlyFeePayment(studentFeeDetailModel.StudentId, studentFeeDetailModel.ClassId, studentFeeDetailModel.AcademicYearId, model.StudentFeeDetailId);
         if (dbstudentfeeDetails.ChequeStatus == DTO.LABURNUM.COM.Utility.ChequeStatusMaster.GetChequeStatusMasterId(DTO.LABURNUM.COM.Utility.EnumChequeStatusMaster.BOUNCE))
         {
             studentFeeDetailModel.LastPendingFee      = dbstudentfeeDetails.PendingFee.GetValueOrDefault();
             studentFeeDetailModel.BounceChequePanelty = API.LABURNUM.COM.Component.Constants.DEFAULTVALUE.CHEQUEBOUNCEPANELTY;
             studentFeeDetailModel.BounceChequeAmount  = dbstudentfeeDetails.ChequePaidAmount.GetValueOrDefault();
         }
         else
         {
             studentFeeDetailModel.LastPendingFee = dbstudentfeeDetails.PendingFee.GetValueOrDefault();
         }
         return(studentFeeDetailModel);
     }
     else
     {
         return(null);
     }
 }