public AccountHeadService() { _dbContext = new MFISDBContext(); _commonService = new CommonService(); _accountHeadDll = new AccountHeadDll(); AutoMapperEntityConfiguration.Configure(); }
public ActionResult AccountHeadTableView() { DataTable dt = new DataTable(); AccountHeadDll adll = new AccountHeadDll(); dt = adll.GetAccountHeadsfebTableView(); ViewBag.AccountHeadDt = dt; return(View()); }
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); }
public AccountHeadDto GetAccountHeadViewBalanceSummary(int ahId, bool isFederation, int groupId) { AccountHeadDll iAccountHeadDll = new AccountHeadDll(); return(iAccountHeadDll.ViewBalance(ahId, isFederation, groupId)); }
public List <SelectListDto> GetGeneralLedgerAccountHeads(int?groupId) { AccountHeadDll ahdll = new AccountHeadDll(); return(ahdll.GetGeneralLedgerAccountHeads(groupId)); }
public List <AccountHeadDto> GetGroupAccountTree(int groupId) { AccountHeadDll ahdll = new AccountHeadDll(); return(ahdll.GetGroupAccountTree(groupId)); }
public List <int> GetOrganizationBanks() { AccountHeadDll ahdll = new AccountHeadDll(); return(ahdll.GetOrganizationBanks()); }
public List <int> GetBankAHIDs() { AccountHeadDll ahdll = new AccountHeadDll(); return(ahdll.GetBankAHIDs()); }