Beispiel #1
0
        public virtual ActionResult OnCreateBoxWizard(long styleId)
        {
            LogI("OnCreateBoxWizard, id=" + styleId);

            var model = AddBoxWizardViewModel.BuildFromStyleId(Db, styleId);

            ViewBag.PartialViewName = "AddBoxesWizard";
            return(View("EditEmpty", model));
        }
Beispiel #2
0
        public virtual ActionResult ValidateWizard(AddBoxWizardViewModel model)
        {
            LogI("ValidateWizard, model=" + model);
            var messages = model.Validate(Db, LogService, Time.GetAppNowTime());

            foreach (var message in messages)
            {
                LogI("ValidateWizard, message=" + message.Message);
            }
            return(JsonGet(new ValueResult <IList <MessageString> >(true, "", messages)));
        }
Beispiel #3
0
        public virtual ActionResult SubmitWizard(AddBoxWizardViewModel model)
        {
            LogI("SubmitWizard, model=" + model);

            model.Apply(Db,
                        QuantityManager,
                        LogService,
                        Cache,
                        ActionService,
                        Time.GetAppNowTime(),
                        AccessManager.UserId);

            return(JsonGet(new MessageResult(true, "", "")));
        }