示例#1
0
        public ActionResult Update()
        {
            MainApplication model = new MainApplication()
            {
                EmployeeDetails = new EmployeeMaster(),
                module          = new Module(),
            };
            string email = TempData["loginId"].ToString();

            model.modulelist = _imoduleservice.getAllModules();
            model.UpdatedUserCredentailList = _iusercredentailservice.GetUserCredentialsByEmail(email);
            model.userCredentialList        = _iusercredentailservice.GetUserCredentialsByEmail("*****@*****.**");
            model.CompanyCode   = CompanyCode;
            model.CompanyName   = CompanyName;
            model.FinancialYear = FinancialYear;
            model.EmployeeDetails.Designation = _iemployeeservice.getEmpByEmail(UserEmail).Designation;
            //find login user start assign id
            var EmpDynamicStartIndex = _iusercredentailservice.GetDataByEmailAndComponyModuleId(email).AssignId;

            Session["EmpDynamicStartIndex"] = EmpDynamicStartIndex;

            //find shop and godown assign id's login range
            var godownlist = _GodownService.GetAll();
            var shoplist   = _ShopService.GetAll();

            Session["DynamicShopGodownRange"] = godownlist.Count() + shoplist.Count();
            return(View(model));
        }