Ejemplo n.º 1
0
 public AccountHeadService()
 {
     _dbContext      = new MFISDBContext();
     _commonService  = new CommonService();
     _accountHeadDll = new AccountHeadDll();
     AutoMapperEntityConfiguration.Configure();
 }
Ejemplo n.º 2
0
        public ActionResult AccountHeadTableView()
        {
            DataTable      dt   = new DataTable();
            AccountHeadDll adll = new AccountHeadDll();

            dt = adll.GetAccountHeadsfebTableView();
            ViewBag.AccountHeadDt = dt;
            return(View());
        }
Ejemplo n.º 3
0
        public ResultDto AccountHeadInsertUpdate(AccountHeadDto accountHead)
        {
            ResultDto resultDto = new ResultDto();

            try
            {
                string         ahCode          = string.Empty;
                AccountHeadDll iAccountHeadDll = new AccountHeadDll();
                int            accountHeadId   = iAccountHeadDll.InsertUpdateAccountHead(accountHead, "ACCOUNT_TREE", accountHead.AHID, out ahCode);

                resultDto.ObjectId   = accountHeadId;
                resultDto.ObjectCode = ahCode;

                /*ObjectParameter paramAccountHeadId = new ObjectParameter("AHID", accountHead.AHID);
                 * ObjectParameter paramaccountHeadCode = new ObjectParameter("AHCode", accountHead.AHCode);
                 * _dbContext.uspAccountHeadInsertUpdate(paramAccountHeadId, paramaccountHeadCode, accountHead.AHName,
                 *  accountHead.TE_AHName, accountHead.AHType, accountHead.ParentAHID, accountHead.IsMemberTransaction,
                 *  accountHead.IsSLAccount, accountHead.OpeningBalance, accountHead.OpeningBalanceType,
                 *  accountHead.AHLevel, accountHead.IsFederation, accountHead.UserID);
                 *
                 * resultDto.ObjectId = (int)paramAccountHeadId.Value;
                 * resultDto.ObjectCode = (string)paramaccountHeadCode.Value;
                 *
                 * int accountHeadId = (int)paramAccountHeadId.Value;*/

                if (accountHeadId > 0)
                {
                    resultDto.Message = "AccountHead details saved success fully";
                }
                else if (accountHeadId == -1)
                {
                    resultDto.Message  = "Error occured while saving AccountHead details";
                    resultDto.ObjectId = -1;
                }
                else
                {
                    resultDto.Message  = "Error occured while saving AccountHead details";
                    resultDto.ObjectId = -1;
                }
            }
            catch (Exception ex)
            {
                resultDto.Message  = "Service layer error occured while saving the bank details";
                resultDto.ObjectId = -98;
            }
            return(resultDto);
        }
Ejemplo n.º 4
0
        public AccountHeadDto GetAccountHeadViewBalanceSummary(int ahId, bool isFederation, int groupId)
        {
            AccountHeadDll iAccountHeadDll = new AccountHeadDll();

            return(iAccountHeadDll.ViewBalance(ahId, isFederation, groupId));
        }
Ejemplo n.º 5
0
        public List <SelectListDto> GetGeneralLedgerAccountHeads(int?groupId)
        {
            AccountHeadDll ahdll = new AccountHeadDll();

            return(ahdll.GetGeneralLedgerAccountHeads(groupId));
        }
Ejemplo n.º 6
0
        public List <AccountHeadDto> GetGroupAccountTree(int groupId)
        {
            AccountHeadDll ahdll = new AccountHeadDll();

            return(ahdll.GetGroupAccountTree(groupId));
        }
Ejemplo n.º 7
0
        public List <int> GetOrganizationBanks()
        {
            AccountHeadDll ahdll = new AccountHeadDll();

            return(ahdll.GetOrganizationBanks());
        }
Ejemplo n.º 8
0
        public List <int> GetBankAHIDs()
        {
            AccountHeadDll ahdll = new AccountHeadDll();

            return(ahdll.GetBankAHIDs());
        }