Exemplo n.º 1
0
        public ActionResult StudentFeeAllocation(int allocationId, string allocationOn)
        {
            TempData["allocationId"] = allocationId;
            TempData["allocationOn"] = allocationOn;
            ViewBag.FeeType          = new FeeTypeModel().GetFeeTypeModelList();

            List <FeeHeadMasterVM> result = _feeHeadTypeRepository.GetEntityList();
            var allocatedAmount           = _feeAllocationRepository.GetStudentAllocationListById(allocationId);

            if (allocatedAmount.Count() > 0)
            {
                result.ForEach(item =>
                {
                    allocatedAmount.ForEach(allo =>
                    {
                        if (item.Id == allo.HeadTypeId)
                        {
                            item.Amount             = allo.Amount;
                            item.DiscountAmount     = allo.DiscountAmount;
                            item.DiscountPercenatge = allo.DiscountPerc;
                            item.NetAmount          = allo.NetAmount;
                            item.FeeType            = allo.FeeType;
                        }
                    });
                });
            }
            return(View("~/Views/StudentFeeAllocation/_FeeHeadListPartial.cshtml", result));
        }
Exemplo n.º 2
0
        public ActionResult GetFeeHeadTypeList()
        {
            var result = _feeHeadTypeRepository.GetEntityList();

            return(PartialView("~/Views/FeeHead/_FeeHeadGetList.cshtml", result));
        }
Exemplo n.º 3
0
        public ActionResult StudentDepositPartial()
        {
            var result = _feeHeadTypeRepository.GetEntityList();

            return(PartialView(result));
        }