Beispiel #1
0
        // GET: Waste
        public ActionResult WasteList(int?foodMenuId, int?ingredientId)
        {
            _iCommonService.GetPageWiseRoleRigths("Waste");
            WasteListViewModel wasteListViewModel = new WasteListViewModel();

            wasteListViewModel.FoodMenuList    = _iDropDownService.GetFoodMenuList();
            wasteListViewModel.IngredientList  = _iDropDownService.GetIngredientList();
            wasteListViewModel.WasteListModels = _iWasteService.GetWasteList(Convert.ToInt32(foodMenuId), Convert.ToInt32(ingredientId)).ToList();
            return(View(wasteListViewModel));
        }
        public IActionResult Index(int?storeId, DateTime?fromDate, DateTime?toDate, int?foodMenuId)
        {
            _iCommonService.GetPageWiseRoleRigths("InventoryAlteration");
            InventoryAlterationViewModel inventoryAlterationView = new InventoryAlterationViewModel();

            if (storeId != null)
            {
                inventoryAlterationView.InventoryAlterationViewList = _inventoryAlterationService.GetInventoryAlterationList(Convert.ToInt32(storeId), Convert.ToDateTime(fromDate), Convert.ToDateTime(toDate), Convert.ToInt32(foodMenuId));
            }
            inventoryAlterationView.FromDate     = DateTime.UtcNow.AddMinutes(LoginInfo.Timeoffset);
            inventoryAlterationView.ToDate       = DateTime.UtcNow.AddMinutes(LoginInfo.Timeoffset);
            inventoryAlterationView.StoreList    = _iDropDownService.GetStoreList();
            inventoryAlterationView.FoodMenuList = _iDropDownService.GetFoodMenuList();
            return(View(inventoryAlterationView));
        }
        public ViewResult GetMasterSales()
        {
            MasterSalesReport masterSalesReport = new MasterSalesReport();

            masterSalesReport.FoodCategoryList = _iDropDownService.GetFoodMenuCategoryList();
            masterSalesReport.FoodMenuList     = _iDropDownService.GetFoodMenuList();
            masterSalesReport.OutletList       = _iDropDownService.GetOutletList();
            return(View(masterSalesReport));
        }
Beispiel #4
0
        public ActionResult Varient(int?id)
        {
            VarientModel varientModel = new VarientModel();

            if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true)
            {
                if (id > 0)
                {
                    int varientId = Convert.ToInt32(id);
                    varientModel = _iVarientService.GetAddonesById(varientId);
                }
                varientModel.FoodMenuList = _iDropDownService.GetFoodMenuList();
                return(View(varientModel));
            }
            else
            {
                return(RedirectToAction("NotFound", "Error"));
            }
        }
        public IActionResult Index(int?foodMenuId)
        {
            _iCommonService.GetPageWiseRoleRigths("FoodMenuIngredient");
            FoodMenuIngredientModel foodMenuIngredientModel = new FoodMenuIngredientModel();

            if (Convert.ToInt32(foodMenuId) > 0)
            {
                foodMenuIngredientModel = _iFoodMenuIngredientService.GetFoodMenuIngredientList(Convert.ToInt32(foodMenuId));
            }
            foodMenuIngredientModel.FoodCategoryList = _iDropDownService.GetFoodMenuCategoryList();
            foodMenuIngredientModel.FoodMenuList     = _iDropDownService.GetFoodMenuList();
            foodMenuIngredientModel.IngredientList   = _iDropDownService.GetIngredientList();
            return(View(foodMenuIngredientModel));
        }
Beispiel #6
0
        public IActionResult Print(int?id)
        {
            AssetEventModel assetEventModel = new AssetEventModel();

            if (id > 0)
            {
                assetEventModel = _iAssetEventService.GetAssetEventById(Convert.ToInt32(id));
            }
            else
            {
                assetEventModel.EventDatetime = DateTime.UtcNow.AddMinutes(LoginInfo.Timeoffset);
                assetEventModel.ReferenceNo   = _iAssetEventService.ReferenceNumberAssetEvent().ToString();
            }
            assetEventModel.StoreList       = _iDropDownService.GetStoreList();
            assetEventModel.AssetItemList   = _iDropDownService.GetAssetItemList();
            assetEventModel.FoodMenuList    = _iDropDownService.GetFoodMenuList();
            assetEventModel.IngredientList  = _iDropDownService.GetIngredientList();
            assetEventModel.MissingNoteList = _iDropDownService.GetCateringFoodMenuGlobalStatus();
            return(View(assetEventModel));
        }