public ActionResult GetFinancialPeriod(string year) { if (Utility.SsnBranch != null) { FinancialPeriodListVM FinancialPeriodList = new FinancialPeriodListVM(); var _year = Convert.ToInt32(year); short branchid = 30;// Utility.SsnBranch; var financialPeriodList = new NetStock.BusinessFactory.GLFinancialPeriodBO().GetList(branchid, _year); FinancialPeriodList.GLFinancialPeriod = financialPeriodList; return(View("FinancialPeriod", FinancialPeriodList)); } return(RedirectToAction("Login", "Account")); }
public ActionResult SaveExtendedFinancialPeriod(FinancialPeriodListVM GLFinancialPeriodList) { //GLFinancialPeriod GLFinancialPeriod = new GLFinancialPeriod(); //var saveGLFinPeriod = new NetStock.BusinessFactory.GLFinancialPeriodBO().SaveGLFinancialPeriod(GLFinancialPeriod); GLFinancialPeriodList.GLFinancialPeriod.Update(dt => { dt.BranchID = Utility.SsnBranch; }); var saveGLFinPeriod = new NetStock.BusinessFactory.GLFinancialPeriodBO().SaveGLFinancialPeriod(GLFinancialPeriodList.GLFinancialPeriod); return(RedirectToAction("GLFinancialPeriod")); }
public ActionResult GLFinancialPeriod() { var branchID = Utility.SsnBranch; GLFinancialPeriod glFinancialPeriod = new GLFinancialPeriod(); List <GLFinancialPeriod> lstGLFinancialPeriod = new List <GLFinancialPeriod>(); FinancialPeriodListVM FinancialPeriodList = new FinancialPeriodListVM(); FinancialPeriodList.GLFinancialPeriod = lstGLFinancialPeriod; //glTransaction.AccountCodeList = Utility.GetAccountCodeItemList(); //glTransaction.DebitCreditList = Utility.GetLookupItemList("DebitCredit"); //glTransaction.DocumentDate = DateTime.Now.Date; //glTransaction.GLJournalDetails = new List<GLJournalDetail>(); return(View("FinancialPeriod", FinancialPeriodList)); }