Пример #1
0
 /// <summary>
 /// 获取用户分页列表
 /// </summary>
 /// <param name="page"></param>
 /// <param name="keywords"></param>
 /// <returns></returns>
 public PageResponse <UcUsers> GetUserPageList(PageModel page, string keywords)
 {
     try
     {
         RequestBase request = RequestBase.Get.Clone() as RequestBase;
         request.SetValue("pageIndex", page.PageIndex);
         request.SetValue("pageSize", page.PageSize);
         request.SetValue("keywords", keywords);
         request.Url = GetPageUrl;
         return(sdkUtil.PostForResultVo <PageResponse <UcUsers> >(request));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
     return(new PageResponse <UcUsers>());
 }
Пример #2
0
 /// <summary>
 /// 获取当前登录信息
 /// </summary>
 /// <param name="loginInfo"></param>
 /// <returns></returns>
 public OperatorVo GetCurrentOperator()
 {
     try
     {
         RequestBase request = RequestBase.Get.Clone() as RequestBase;
         request.Url = GetCurrentOperatorUrl;
         return(sdkUtil.PostForResultVo <OperatorVo>(request));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
     return(null);
 }
Пример #3
0
 /// <summary>
 /// 根据主键ID获取信息
 /// </summary>
 /// <returns></returns>
 public UcUsersSetting GetUserSettingInfo(string UserNo)
 {
     try
     {
         RequestBase request = RequestBase.Get.Clone() as RequestBase;
         request.SetValue("userNo", UserNo);
         request.Url = GetUserSettingInfoUrl;
         return(sdkUtil.PostForResultVo <UcUsersSetting>(request));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
     return(null);
 }
Пример #4
0
        /// <summary>
        /// 获取菜单所有列表
        /// </summary>
        /// <param name="loginInfo"></param>
        /// <returns></returns>
        public PageResponse <RtShortMessage> GetPageList(PageModel page)
        {
            try
            {
                RequestBase request = RequestBase.Get.Clone() as RequestBase;
                request.SetValue("pageIndex", page.PageIndex);
                request.SetValue("pageSize", page.PageSize);

                request.Url = GetPageUrl;
                return(sdkUtil.PostForResultVo <PageResponse <RtShortMessage> >(request));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            return(new PageResponse <RtShortMessage>());
        }
Пример #5
0
 /// <summary>
 /// 获取菜单所有列表
 /// </summary>
 /// <param name="loginInfo"></param>
 /// <returns></returns>
 public PageResponse <RtPushconfig> GetPageList(PageModel page, string keywords = "", long PushconfigNo = -1)
 {
     try
     {
         RequestBase request = RequestBase.Get.Clone() as RequestBase;
         request.SetValue("pageIndex", page.PageIndex);
         request.SetValue("pageSize", page.PageSize);
         request.SetValue("keywords", keywords);
         request.SetValue("queryNo", PushconfigNo);
         request.Url = GetPageUrl;
         return(sdkUtil.PostForResultVo <PageResponse <RtPushconfig> >(request));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
     return(new PageResponse <RtPushconfig>());
 }
Пример #6
0
 /// <summary>
 /// 获取菜单所有列表
 /// </summary>
 /// <param name="loginInfo"></param>
 /// <returns></returns>
 public PageResponse <UcLoginLog> GetUcLoginLogPageList(PageModel page, LogQueryForm logQueryForm)
 {
     try
     {
         RequestBase request = RequestBase.Get.Clone() as RequestBase;
         request.SetValue("pageIndex", page.PageIndex, true);
         request.SetValue("pageIndex", page.PageIndex);
         request.SetValue("pageSize", page.PageSize);
         request.SetValue("keywords", logQueryForm.keywords);
         request.SetValue("queryNo", logQueryForm.queryNo);
         request.SetValue("handleUser", logQueryForm.HandleUser);
         request.Url = GetPageUrl;
         return(sdkUtil.PostForResultVo <PageResponse <UcLoginLog> >(request));
     }
     catch (Exception ex)
     {
         LogAgent.Info(ex.ToString());
     }
     return(new PageResponse <UcLoginLog>());
 }
Пример #7
0
 /// <summary>
 /// 获取菜单所有列表
 /// </summary>
 /// <param name="loginInfo"></param>
 /// <returns></returns>
 public PageResponse <RtEmail> GetPageList(PageModel page, string from = "", string to = "", string subject = "", string message = "")
 {
     try
     {
         RequestBase request = RequestBase.Get.Clone() as RequestBase;
         request.SetValue("pageIndex", page.PageIndex);
         request.SetValue("pageSize", page.PageSize);
         request.SetValue("from", from);
         request.SetValue("to", to);
         request.SetValue("subject", subject);
         request.SetValue("message", message);
         request.Url = GetPageUrl;
         return(sdkUtil.PostForResultVo <PageResponse <RtEmail> >(request));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
     return(new PageResponse <RtEmail>());
 }