//===============================================Import export================================================== //===============================================Openpopup====================================================== #endregion #region Form public ActionResult FormPopup(string entryid, string entrykey, string redirectbyajax) { IDbConnection dbConn = new OrmliteConnection().openConn(); var dict = new Dictionary <string, object>(); dict["activestatus"] = CustomModel.GetActiveStatus(); dict["articletypes"] = CustomModel.GetArticleTypeDDl(); dbConn.Close(); //set parameter dict["redirectbyajax"] = redirectbyajax; ViewBag.entryid = string.IsNullOrEmpty(entryid) ? "0" : entryid; ViewBag.entrykey = string.IsNullOrEmpty(entrykey) ? "0" : entrykey; return(View("ArticleManagementForm", dict)); }
public ActionResult Index(string redirectbyajax, string entryid, string actiontype, string fa) { //fa: form another - default form popup IDbConnection dbConn = new OrmliteConnection().openConn(); var dict = new Dictionary <string, object>(); dict["activestatus"] = CustomModel.GetActiveStatus(); dict["articletypes"] = CustomModel.GetArticleTypeDDl(); dict["listlanguage"] = CustomModel.GetLanguage(); dict["areasname"] = "Admin"; dict["redirectbyajax"] = string.IsNullOrEmpty(redirectbyajax) ? "0" : "1"; dbConn.Close(); //param cho form ViewBag.entryid = string.IsNullOrEmpty(entryid) ? "0" : entryid; ViewBag.actiontype = string.IsNullOrEmpty(actiontype) ? "" : actiontype; ViewBag.fa = string.IsNullOrEmpty(fa) ? "" : fa; return(View("ArticleManagementTree", dict)); }