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 }); }
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)); }
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 }); }
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; }
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; }
public DialogViewModel(BaseViewModel baseViewModel, string mnemonic, TypeDialog type = TypeDialog.Frame) : base(baseViewModel) { _mnemonic = mnemonic; _type = type; _dialogID = "dialog_" + Guid.NewGuid().ToString("N"); }
public void SetTypeDialog(TypeDialog _typeDialog) { typeDialog = _typeDialog; }
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)); }
private void btnAddType_Click(object sender, RoutedEventArgs e) { Window w = new TypeDialog(); w.ShowDialog(); }
private void ShowTypeDialog(object sender, RoutedEventArgs e) { var s = new TypeDialog(); s.Show(); }
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"); }