Esempio n. 1
0
        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 });
        }
Esempio n. 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));
        }
Esempio n. 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)
 {
 }
Esempio n. 9
0
 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 });
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 12
0
 public DialogViewModel(BaseViewModel baseViewModel, string mnemonic, TypeDialog type = TypeDialog.Frame)
     : base(baseViewModel)
 {
     _mnemonic = mnemonic;
     _type = type;
     _dialogID = "dialog_" + Guid.NewGuid().ToString("N");
 }
Esempio n. 13
0
 public void SetTypeDialog(TypeDialog _typeDialog)
 {
     typeDialog = _typeDialog;
 }
Esempio n. 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));
        }
Esempio n. 15
0
        private void btnAddType_Click(object sender, RoutedEventArgs e)
        {
            Window w = new TypeDialog();

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

            s.Show();
        }
Esempio n. 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");
        }