Пример #1
0
        public JsonResult CheckAccountHeadCode(string code, bool isFedaration, int ahid)
        {
            AccountHeadService iservice = new AccountHeadService();
            bool isSuccess = iservice.CheckAccountHeadCode(code, isFedaration, ahid);

            return(Json(new { issuccess = isSuccess }));
        }
Пример #2
0
 public ContraEntryController()
 {
     _ContraEntryService = new ContraEntryService();
     _employeeService    = new EmployeeService();
     _bankService        = new BankService();
     _accountheadService = new AccountHeadService();
 }
        //
        // GET: /Federation/AccountTree/
        public ActionResult AccountTree()
        {
            List <AccountHeadDto> lstAccountHeadDtos = _accountHeadService.GetAll(false);

            lstAccountHeadDtos = lstAccountHeadDtos.FindAll(l => l.StatusID != 3);

            var lstBankMasterDto = new AccountHeadService().GetOrganizationBanks();

            var ahlevel1    = lstAccountHeadDtos.FindAll(l => l.ParentAHID == 0);
            var assetparent = ahlevel1.Find(l => l.AHCode.ToUpper() == "ASSETS");
            var ahlevl2     = lstAccountHeadDtos.Find(l => l.ParentAHID == assetparent.AHID && l.AHCode.ToUpper() == "CLOSING BALANCES");
            var ahlevl3     = lstAccountHeadDtos.Find(l => l.ParentAHID == ahlevl2.AHID && l.AHCode.ToUpper() == "CASH AND BANK");
            var ahlevel4    = lstAccountHeadDtos.Find(l => l.ParentAHID == ahlevl3.AHID && l.AHCode.ToUpper() == "BANK ACCOUNTS");

            var lstBankAccountHeads = lstAccountHeadDtos.FindAll(l => l.ParentAHID == ahlevel4.AHID);

            foreach (var bank in lstBankAccountHeads)
            {
                if (!lstBankMasterDto.Exists(l => l == bank.AHID))
                {
                    lstAccountHeadDtos.Remove(bank);
                }
            }

            ViewBag.AccountHeads = lstAccountHeadDtos;
            AccountHeadDtos      = lstAccountHeadDtos;
            AccountHeadModel accountHeadModel = new AccountHeadModel();

            return(View(accountHeadModel));
        }
Пример #4
0
 public GeneralPaymentsController_Backup()
 {
     _accountheadService     = new AccountHeadService();
     _employeeService        = new EmployeeService();
     _generalpaymentsService = new GroupGeneralPaymentsService();
     _groupReceiptService    = new GroupReceiptService();
     _bankService            = new BankService();
 }
 public GeneralReceiptController()
 {
     _accountheadService    = new AccountHeadService();
     _employeeService       = new EmployeeService();
     _generalReceiptService = new GroupGeneralReceiptService();
     _groupReceiptService   = new GroupReceiptService();
     _bankService           = new BankService();
 }
Пример #6
0
 public DepositOBController()
 {
     _villageService     = new VillageService();
     _groupService       = new GroupService();
     _clusterService     = new ClusterService();
     _interestService    = new InterestService();
     _accountHeadService = new AccountHeadService();
 }
 public GroupOtherPaymentsController()
 {
     _masterService      = new MasterService();
     _accountheadService = new AccountHeadService();
     //_groupGeneralReceiptService = new GroupGeneralReceiptService();
     _groupOtherReceiptService = new GroupOtherReceiptService();
     _groupOtherReceiptDto     = new GroupOtherRecieptDto();
 }
Пример #8
0
 public MemberController()
 {
     _occupationService     = new OccupationService();
     _groupService          = new GroupService();
     _accountheadservice    = new AccountHeadService();
     _memberservice         = new MemberService();
     _memberKycService      = new MemberKycService();
     _referenceValueService = new ReferenceValueService();
     _panchayatService      = new PanchayatService();
 }
Пример #9
0
 public GroupJournalEntryController()
 {
     _journalService         = new GroupJournalService1();
     _groupReceiptService    = new GroupReceiptService();
     _accountHeadService     = new AccountHeadService();
     _employeeService        = new EmployeeService();
     _generalpaymentsService = new FederationGeneralPaymentsService();
     _groupService           = new GroupService();
     _clusterService         = new ClusterService();
 }
 public GeneralPaymentsController()
 {
     _clusterService         = new ClusterService();
     _groupService           = new GroupService();
     _accountheadService     = new AccountHeadService();
     _employeeService        = new EmployeeService();
     _generalpaymentsService = new FederationGeneralPaymentsService();
     _groupReceiptService    = new GroupReceiptService();
     _bankService            = new BankService();
 }
Пример #11
0
 public GroupController()
 {
     _groupService       = new GroupService();
     _bankService        = new BankService();
     _villageService     = new VillageService();
     _clusterService     = new ClusterService();
     _interestService    = new InterestService();
     _accountHeadService = new AccountHeadService();
     _panchayatService   = new PanchayatService();
     _memberService      = new MemberService();
     _commonService      = new CommonService();
 }
Пример #12
0
 public LoanOBController()
 {
     _villageService               = new VillageService();
     _groupService                 = new GroupService();
     _clusterService               = new ClusterService();
     _projectService               = new ProjectService();
     _fundSourceService            = new FundSourceService();
     _loanpurposeService           = new LoanPurposeService();
     _interestService              = new InterestService();
     _accountHeadService           = new AccountHeadService();
     _groupLoanDisbursementService = new GroupLoanDisbursementService();
 }
Пример #13
0
 public ReceiptController()
 {
     _groupService          = new GroupService();
     _referenceValueService = new ReferenceValueService();
     _panchayatService      = new PanchayatService();
     _bankService           = new BankService();
     _groupReceiptService   = new GroupReceiptService();
     _ClusterService        = new ClusterService();
     _villageService        = new VillageService();
     _employeeService       = new EmployeeService();
     _accountheadService    = new AccountHeadService();
     _repaymentService      = new RepaymentService();
 }
Пример #14
0
 public MemberReceiptController()
 {
     _groupService          = new GroupService();
     _referenceValueService = new ReferenceValueService();
     _bankService           = new BankService();
     _groupReceiptService   = new GroupReceiptService();
     _employeeService       = new EmployeeService();
     _memberservice         = new MemberService();
     _memberReceiptService  = new MemberReceiptService();
     _repaymentService      = new RepaymentService();
     _accountheadService    = new AccountHeadService();
     _ContraEntryService    = new ContraEntryService();
 }
Пример #15
0
 public BaseController()
 {
     _groupService       = new GroupService();
     _bankService        = new BankService();
     _villageService     = new VillageService();
     _clusterService     = new ClusterService();
     _interestService    = new InterestService();
     _accountHeadService = new AccountHeadService();
     _panchayatService   = new PanchayatService();
     _memberService      = new MemberService();
     _commonService      = new CommonService();
     //UserInfo.UserID = SESS_USER_ID;
 }
 public PaymentsToFederationController()
 {
     _clusterService         = new ClusterService();
     _groupService           = new GroupService();
     _accountheadService     = new AccountHeadService();
     _employeeService        = new EmployeeService();
     _generalpaymentsService = new FederationGeneralPaymentsService();
     _groupReceiptService    = new GroupReceiptService();
     _bankService            = new BankService();
     _dbContext = new MFISDBContext();
     _dbContext = new MFISDBContext();
     //_paymentsToFederationService = new PaymentsToFederationService();
     _bankService         = new BankService();
     _groupReceiptService = new GroupReceiptService();
     _employeeService     = new EmployeeService();
 }
Пример #17
0
 public MemberLoanDisbursementControllerBACKUP()
 {
     _loanpurposeService            = new LoanPurposeService();
     _memberloanapplicationService  = new MemberLoanApplicationService();
     _memberLoanDisbursementService = new MemberLoanDisbursementService();
     _groupLoanDisbursementService  = new GroupLoanDisbursementService();
     _memberService       = new MemberService();
     _accountHeadService  = new AccountHeadService();
     _fundSourceService   = new FundSourceService();
     _projectService      = new ProjectService();
     _groupReceiptService = new GroupReceiptService();
     _bankService         = new BankService();
     _loanSecurityService = new LoanSecurityMasterService();
     _interestService     = new InterestService();
     _masterService       = new MasterService();
 }
Пример #18
0
        public void LoadAccountHeads()
        {
            AccountHeadService   ahService       = new AccountHeadService();
            List <SelectListDto> lstAccountHeads = null;

            if (GroupInfo != null && GroupInfo.GroupID > 0)
            {
                lstAccountHeads = ahService.GetGeneralLedgerAccountHeads(GroupInfo.GroupID);
            }
            else
            {
                lstAccountHeads = ahService.GetGeneralLedgerAccountHeads(null);
            }

            ViewBag.AccountHeads = new SelectList(lstAccountHeads, "ID", "Text");
        }
Пример #19
0
        //
        // GET: /Federation/AccountTree/
        public ActionResult AccountTree()
        {
            List <AccountHeadDto> lstAccountHeadDtos = _accountHeadService.GetAll(true);

            lstAccountHeadDtos = lstAccountHeadDtos.FindAll(l => l.StatusID != 3);

            var lstBankMasterDto = new AccountHeadService().GetOrganizationBanks();

            var ahlevel1    = lstAccountHeadDtos.FindAll(l => l.ParentAHID == 0);
            var assetparent = ahlevel1.Find(l => l.AHCode.ToUpper() == "ASSETS");
            var ahlevl2     = lstAccountHeadDtos.Find(l => l.ParentAHID == assetparent.AHID && l.AHCode.ToUpper() == "CLOSING BALANCES");
            var ahlevl3     = lstAccountHeadDtos.Find(l => l.ParentAHID == ahlevl2.AHID && l.AHCode.ToUpper() == "CASH AND BANK");
            var ahlevel4    = lstAccountHeadDtos.Find(l => l.ParentAHID == ahlevl3.AHID && l.AHCode.ToUpper() == "BANK ACCOUNTS");

            var lstBankAccountHeads = lstAccountHeadDtos.FindAll(l => l.ParentAHID == ahlevel4.AHID);

            foreach (var bank in lstBankAccountHeads)
            {
                if (!lstBankMasterDto.Exists(l => l == bank.AHID))
                {
                    lstAccountHeadDtos.Remove(bank);
                }
            }

            //var lstBankAHIDS = new AccountHeadService().GetBankAHIDs();

            //foreach (int ahid in lstBankAHIDS)
            //{
            //    lstAccountHeadDtos.Remove(lstAccountHeadDtos.Find(l => l.AHID == ahid));
            //}
            //ReferenceValueService _referenceValueService = new ReferenceValueService();
            //var lstAHTypes = _referenceValueService.GetByRefMasterCode("AHTYPE");
            //var assettype = lstAHTypes.Find(l => l.RefCode.ToUpper() == "ASSETS");
            //var bankParentAH = lstAccountHeadDtos.Find(l => l.AHLevel == 4 && l.AHCode.ToUpper() == "BANK ACCOUNTS" && l.AHType == assettype.RefID && l.IsFederation);
            // lstAccountHeadDtos.RemoveAll(l => l.ParentAHID == bankParentAH.AHID);
            //end filtering the bankaccounts

            //lstAccountHeadDtos.FindAll(l => l.AHLevel > 3).ForEach(l => l.AHName = l.AHName + " - " + l.AHCode);
            ViewBag.AccountHeads = lstAccountHeadDtos;
            AccountHeadDtos      = lstAccountHeadDtos;
            AccountHeadModel accountHeadModel = new AccountHeadModel();

            ViewBag.IsFederation = true;
            return(View(accountHeadModel));
        }
Пример #20
0
        public ActionResult GroupAccountTree()
        {
            List <AccountHeadDto> lstAccountHeadDtos = _accountHeadService.GetAll(false);
            var lstBankAHIDS = new AccountHeadService().GetBankAHIDs();

            foreach (int ahid in lstBankAHIDS)
            {
                lstAccountHeadDtos.Remove(lstAccountHeadDtos.Find(l => l.AHID == ahid));
            }

            List <AccountHeadDto> lstExtraHeads = new List <AccountHeadDto>();

            foreach (var obj in lstAccountHeadDtos)
            {
                if (obj.AHName.Trim() == "1" || obj.AHName.Trim() == "2")
                {
                    lstExtraHeads.Add(obj);
                }
            }

            foreach (var obj in lstExtraHeads)
            {
                lstAccountHeadDtos.Remove(obj);
            }


            //for(int i = 0; i < lstAccountHeadDtos.Count(); i++)
            //{
            //    if (lstAccountHeadDtos[i].AHName == "1" || lstAccountHeadDtos[i].AHName == "2")
            //        lstAccountHeadDtos.RemoveAt(i);
            //}

            //lstAccountHeadDtos.FindAll(l => l.AHLevel > 3).ForEach(l => l.AHName = l.AHName + " - " + l.AHCode);
            ViewBag.AccountHeads = lstAccountHeadDtos;
            AccountHeadDtos      = lstAccountHeadDtos;
            AccountHeadModel accountHeadModel = new AccountHeadModel();

            ViewBag.IsFederation = false;
            return(View("AccountTree", accountHeadModel));
        }
 public AccountHeadMappingController()
 {
     _accountheadservice        = new AccountHeadService();
     _accountheadmappingService = new AccountHeadMappingService();
 }
Пример #22
0
 public GroupAccountTreeController()
 {
     _accountHeadService = new AccountHeadService();
     _masterService      = new MasterService();
 }
Пример #23
0
 public InterestController()
 {
     _interestService    = new InterestService();
     _accountHeadService = new AccountHeadService();
 }
Пример #24
0
 public AccountTreeController()
 {
     _accountHeadService = new AccountHeadService();
 }