public ActionResult Index(string mnemonic, int? parentID, int? currentID, TypeDialog typeDialog = TypeDialog.Frame, string sysFilter = null)
        {
            if (Request.IsAjaxRequest())
            {
                return PartialView("Index", new StandartDialogViewModel(this, mnemonic, typeDialog) { ParentID = parentID, CurrentID = currentID, SysFilter = sysFilter });
            }

            return View("Index", new StandartDialogViewModel(this, mnemonic, typeDialog) { ParentID = parentID, CurrentID = currentID, SysFilter = sysFilter });
        }
Beispiel #2
0
        public ActionResult GetViewModel(string mnemonic, TypeDialog typeDialog, int id = 0)
        {
            if (Request.IsAjaxRequest())
            {
                return PartialView("_BuilderViewModel", new StandartDialogViewModel(this, mnemonic, typeDialog));
            }

            ViewBag.ID = id;
            ViewBag.AutoBind = true;

            return View("_BuilderViewModel", new StandartDialogViewModel(this, mnemonic, typeDialog));
        }
Beispiel #3
0
        protected DialogViewModel(IBaseController controller)
            : base(controller)
        {
            var request = controller.HttpContext.Request;

            _mnemonic = request["mnemonic"];

            _dialogID = request["_dialogid"];

            if (!String.IsNullOrEmpty(request["_dialogtype"]))
                _type = (TypeDialog)Enum.Parse(typeof(TypeDialog), request["_dialogtype"]);

            if (!String.IsNullOrEmpty(request["_parentid"]))
                ParentID = Int32.Parse(request["_parentid"]);

            if (!String.IsNullOrEmpty(request["_currentid"]))
                CurrentID = Int32.Parse(request["_currentid"]);
        }
 public StandartFormModel(BaseViewModel baseViewModel, string mnemonic, string dialogID, TypeDialog type = TypeDialog.Frame)
     : base(baseViewModel, mnemonic, dialogID, type)
 {
 }
 public StandartDialogViewModel(BaseViewModel baseViewModel, string mnemonic, TypeDialog type = TypeDialog.Frame)
     : base(baseViewModel, mnemonic, type)
 {
 }
 public StandartDialogViewModel(IBaseController controller, string mnemonic, TypeDialog type = TypeDialog.Frame)
     : base(controller, mnemonic, type)
 {
 }
 public CustomDialogView(BaseViewModel baseViewModel, string mnemonic, string dialogID, TypeDialog type = TypeDialog.Frame)
     : base(baseViewModel, mnemonic, dialogID, type)
 {
 }
 public StandartGridView(IBaseController controller, string mnemonic, string dialogID, TypeDialog type = TypeDialog.Frame)
     : base(controller, mnemonic, dialogID, type)
 {
 }
 public PartialViewResult GetDialog(string mnemonic, int? parentID, int? currentID, TypeDialog typeDialog = TypeDialog.Frame, string searchStr = null, string sysFilter = null)
 {
     return PartialView("Index", new StandartDialogViewModel(this, mnemonic, typeDialog) { ParentID = parentID, CurrentID = currentID, SearchStr = searchStr, SysFilter = sysFilter });
 }
Beispiel #10
0
 protected Dialog_WidgetViewModel(BaseViewModel baseViewModel, string mnemonic, string dialogID, TypeDialog type = TypeDialog.Frame)
     : base(baseViewModel, mnemonic, type)
 {
     _widgetID = "widget_" + Guid.NewGuid().ToString("N");
     _dialogID = dialogID;
 }
Beispiel #11
0
 protected Dialog_WidgetViewModel(IBaseController controller, string mnemonic, string dialogID, TypeDialog type = TypeDialog.Frame)
     : base(controller, mnemonic, type)
 {
     _widgetID = "widget_" + Guid.NewGuid().ToString("N");
     _dialogID = dialogID;
 }
Beispiel #12
0
 public DialogViewModel(BaseViewModel baseViewModel, string mnemonic, TypeDialog type = TypeDialog.Frame)
     : base(baseViewModel)
 {
     _mnemonic = mnemonic;
     _type = type;
     _dialogID = "dialog_" + Guid.NewGuid().ToString("N");
 }
Beispiel #13
0
 public void SetTypeDialog(TypeDialog _typeDialog)
 {
     typeDialog = _typeDialog;
 }
Beispiel #14
0
        public PartialViewResult GetPartialViewModel(string mnemonic, TypeDialog typeDialog, int id = 0, bool autoBind = false)
        {
            ViewBag.ID = id;
            ViewBag.AutoBind = autoBind;

            return PartialView("_BuilderViewModel", new StandartDialogViewModel(this, mnemonic, typeDialog));
        }
Beispiel #15
0
        private void btnAddType_Click(object sender, RoutedEventArgs e)
        {
            Window w = new TypeDialog();

            w.ShowDialog();
        }
Beispiel #16
0
        private void ShowTypeDialog(object sender, RoutedEventArgs e)
        {
            var s = new TypeDialog();

            s.Show();
        }
Beispiel #17
0
        public DialogViewModel(IBaseController controller, string mnemonic, TypeDialog type = TypeDialog.Frame)
            : base(controller)
        {
            _mnemonic = mnemonic;
            _type = type;

            _dialogID = controller.HttpContext.Request["_dialogid"] ?? "dialog_" + Guid.NewGuid().ToString("N");
        }