Esempio n. 1
0
 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"));
 }
Esempio n. 2
0
        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"));
        }