示例#1
0
 /// <summary>
 /// 通过参数取得用户信息
 /// </summary>
 /// <returns></returns>
 private string GetUsersByParams(HttpContext context)
 {
     try
     {
         string name_startsWith = context.Request.QueryString["name_startsWith"];
         string maxRows         = context.Request.QueryString["maxRows"];
         string orgID           = context.Request.QueryString["orgID"];
         string strMain         = context.Request.QueryString["is_main"];
         if (string.IsNullOrEmpty(name_startsWith) || string.IsNullOrEmpty(maxRows) || string.IsNullOrEmpty(strMain))
         {
             return("Fail");
         }
         else
         {
             bool           isMain = strMain == "true" ? true : false;
             UserProfileBLL bll    = new UserProfileBLL();
             DataTable      dt     = bll.GetUsersByFilter(maxRows, orgID, name_startsWith, isMain);
             return(EasyUIJsonConvert.GetAutoCompleteJson(dt));
         }
     }
     catch (Exception ex)
     {
         DBManager.RecoreErrorProfile(ex, "RuleDesignHandler.GetUsersByParams", DBManager.GetCurrentUserAD());
         return("Fail");
     }
 }