Esempio n. 1
0
 public string SearchPage(string SearchId, string TableName, string FormId)
 {
     var search = new HiWind.EasyUI.Search(UserID);
     return search.SearchPageGrid(SearchId, true, true, 0, Request["Parese"]);
 }
Esempio n. 2
0
        public ActionResult SysFunctionRole()
        {
            if (Request.QueryString["SearchId"] != null)
                ViewData["SearchId"] = Request.QueryString["SearchId"].ToString();
            else
                ViewData["SearchId"] = "";

            if (Request.QueryString["TableName"] != null)
                ViewData["TableName"] = Request.QueryString["TableName"].ToString();
            else
                ViewData["TableName"] = "";

            if (Request.QueryString["FormId"] != null)
                ViewData["FormId"] = Request.QueryString["FormId"].ToString();
            else
                ViewData["FormId"] = "";

            //Load search list
            Hashtable SearchDt = new HiWind.EasyUI.Search(UserID).SearchLoad(Request.QueryString["SearchId"].ToString());
            string ColStr = "";
            string FrozenColumns = "";
            string SearchOther = "";
            string KeyId = "";
            if (SearchDt.Keys.Count > 0)
            {
                ColStr = SearchDt["Columns"] != null ? SearchDt["Columns"].ToString().Trim() : "";
                FrozenColumns = SearchDt["FrozenColumns"] != null ? SearchDt["FrozenColumns"].ToString().Trim() : "";
                SearchOther = SearchDt["SearchOther"] != null ? SearchDt["SearchOther"].ToString().Trim() : "";
                KeyId = SearchDt["KeyId"] != null ? SearchDt["KeyId"].ToString().Trim() : "Id";
            }
            ViewData["SearchColumns"] = ColStr;
            ViewData["FrozenColumns"] = FrozenColumns;
            ViewData["SearchOther"] = SearchOther;
            ViewData["SearchKeyField"] = KeyId;

            //Load TriggerKey
            Hashtable TriggerKeyDt = new HiWind.EasyUI.TriggerKey(UserID).TriggerKeyLoadForSearch(Request.QueryString["SearchId"].ToString());
            string TriggerKeyFirst = "";
            string TriggerKeyLast = "";
            if (TriggerKeyDt.Keys.Count > 0)
            {
                TriggerKeyFirst = TriggerKeyDt["TrigFirst"] != null ? TriggerKeyDt["TrigFirst"].ToString().Trim() : "";
                TriggerKeyLast = TriggerKeyDt["TrigLast"] != null ? TriggerKeyDt["TrigLast"].ToString().Trim() : "";
            }
            ViewData["TriggerKeyFirst"] = TriggerKeyFirst;
            ViewData["TriggerKeyLast"] = TriggerKeyLast;
            return View();
        }
Esempio n. 3
0
        public string SearchPage(string SearchId, string TableName, string FormId)
        {
            var search = new HiWind.EasyUI.Search(UserID);

            return(search.SearchPageGrid(SearchId, true, true, 0, Request["Parese"]));
        }
Esempio n. 4
0
        public ActionResult SearchGridTree()
        {
            if (Request.QueryString["SearchId"] != null)
                ViewData["SearchId"] = Request.QueryString["SearchId"].ToString();
            else
                ViewData["SearchId"] = "";

            if (Request.QueryString["TableName"] != null)
                ViewData["TableName"] = Request.QueryString["TableName"].ToString();
            else
                ViewData["TableName"] = "";

            if (Request.QueryString["FormId"] != null)
                ViewData["FormId"] = Request.QueryString["FormId"].ToString();
            else
                ViewData["FormId"] = "";

            Hashtable SearchDt = new HiWind.EasyUI.Search(UserID).SearchLoad(Request.QueryString["SearchId"].ToString());

            //Load search conditional
            string SearchConditions = "";
            if (SearchDt.Keys.Count > 0)
                SearchConditions = SearchDt["SearchConditions"] != null ? SearchDt["SearchConditions"].ToString().Trim() : "";

            SearchConditions = new HiWind.EasyUI.Form(UserID).HtmlChanges(SearchConditions);
            SearchConditions = HiWind.EasyUI.CommonUI.ReplaceSysConstant(SearchConditions, UserID);
            ViewData["SearchConditions"] = SearchConditions;

            //Load saerch list
            string ColStr = ""; string FrozenColumns = "";
            string SearchOther = "";
            if (SearchDt.Keys.Count > 0)
            {
                ColStr = SearchDt["Columns"] != null ? SearchDt["Columns"].ToString().Trim() : "";
                FrozenColumns = SearchDt["FrozenColumns"] != null ? SearchDt["FrozenColumns"].ToString().Trim() : "";
                SearchOther = SearchDt["SearchOther"] != null ? SearchDt["SearchOther"].ToString().Trim() : "";
            }
            ViewData["SearchColumns"] = ColStr;
            ViewData["FrozenColumns"] = FrozenColumns;
            ViewData["SearchOther"] = SearchOther;

            //Load TriggerKey
            Hashtable TriggerKeyDt = new HiWind.EasyUI.TriggerKey(UserID).TriggerKeyLoadForSearch(Request.QueryString["SearchId"].ToString());
            string TriggerKeyFirst = "";
            string TriggerKeyLast = "";
            if (TriggerKeyDt.Keys.Count > 0)
            {
                TriggerKeyFirst = TriggerKeyDt["TrigFirst"] != null ? TriggerKeyDt["TrigFirst"].ToString().Trim() : "";
                TriggerKeyLast = TriggerKeyDt["TrigLast"] != null ? TriggerKeyDt["TrigLast"].ToString().Trim() : "";
            }
            ViewData["TriggerKeyFirst"] = TriggerKeyFirst;
            ViewData["TriggerKeyLast"] = TriggerKeyLast;
            return View();
        }
Esempio n. 5
0
 public ActionResult Search()
 {
     var search = new HiWind.EasyUI.Search(UserID);
     string SearchId = "";
     if (Request.QueryString["SearchId"] != null)
     {
         ViewData["SearchId"] = Request.QueryString["SearchId"].ToString();
         SearchId = Request.QueryString["SearchId"].ToString().Trim();
     }
     else
         ViewData["SearchId"] = "";
     ViewData["SearchContent"] = search.SearchPageGrid(ViewData["SearchId"].ToString(), true, true, 0, Request["Parese"]);
     return View();
 }
Esempio n. 6
0
 public ActionResult Role()
 {
     var search = new HiWind.EasyUI.Search(UserID);
     ViewData["Grid1"] = search.SearchPageGrid("SysSearch00000041", "SysRole", "SysForm00000003", "Role", "角色列表", true);
     ViewData["Grid2"] = search.SearchPageGrid("SysSearch00000030", "SysUserRole", "SysForm00000003", "UserRole", "", false);
     return View();
 }
Esempio n. 7
0
 public ActionResult Functions()
 {
     var search = new HiWind.EasyUI.Search(UserID);
     ViewData["Grid1"] = search.SearchPageGrid("SysSearch00000077", "SysFunctionList", "SysForm00000003", "Menu", "菜单", false);
     ViewData["Grid2"] = search.SearchPageGrid("SysSearch00000078", "SysFunctionList", "SysForm00000003", "Search", "查询", false);
     ViewData["Grid3"] = search.SearchPageGrid("SysSearch00000082", "SysFunctionList", "SysForm00000003", "Form", "表单", false);
     ViewData["Grid4"] = search.SearchPageGrid("SysSearch00000083", "SysFunctionList", "SysForm00000003", "Key", "触发键", false);
     ViewData["Grid5"] = search.SearchPageGrid("SysSearch00000084", "SysFunctionList", "SysForm00000003", "Other", "其它", false);
     return View();
 }
Esempio n. 8
0
 public ActionResult Users()
 {
     var search = new HiWind.EasyUI.Search(UserID);
     ViewData["Grid1"] = search.SearchPageGrid("SysSearch00000042", "SysUser", "SysForm00000003", "User", "操作员管理", true);
     ViewData["Grid2"] = search.SearchPageGrid("SysSearch00000085", "SysUserRole", "SysForm00000003", "UserRole", "", false);
     return View();
 }