/// <summary> /// 获取用户未读通知 /// </summary> /// <param name="usercode">用户代码</param> /// <param name="errmsg">出错时返回的错误提示信息</param> /// <returns>是否成功执行</returns> public bool GetUserUnReadNotifyV2(string usercode, ref string json, ref string errmsg) { bool result = true; try { Dictionary <string, string> postdata = new Dictionary <string, string>(); postdata.Add("usercode", usercode);//用户代码 string url = "UserManage.aspx?action=getuserunreadnotify"; json = PalmAPIHelper.PalmCoreIIS3676API(url, postdata, "POST"); } catch (Exception ex) { errmsg = "接口返回信息格式不正确"; result = false; LogWriter.WriteLog(ex); } return(result); }
/// <summary> /// /// </summary> /// <param name="usercode"></param> /// <param name="json"></param> /// <param name="errmsg"></param> /// <returns></returns> public bool GsetAbnormalMoudel(string usercode, ref string json, ref string errmsg) { bool result = true; try { Dictionary <string, string> postdata = new Dictionary <string, string>(); postdata.Add("data", "{\"usercode\":\"" + usercode + "\",\"page\":1}");//用户代码 string url = "AbnormalMessage.aspx?action=getAbnormalMoudel"; json = PalmAPIHelper.PalmCoreIIS3676API(url, postdata, "POST"); } catch (Exception ex) { errmsg = "接口返回信息格式不正确"; result = false; LogWriter.WriteLog(ex); } return(result); }
/// <summary> /// 获取我的任务未完成列表 /// </summary> /// <param name="usercode">用户代码</param> /// <param name="errmsg">出错时返回的错误提示信息</param> /// <returns>是否成功执行</returns> public bool GetMyAcceptTaskListV2(string usercode, ref string json, ref string errmsg) { bool result = true; try { Dictionary <string, string> postdata = new Dictionary <string, string>(); postdata.Add("data", "{\"usercode\":\"" + usercode + "\"}");//用户代码 string url = "TaskManage.aspx?action=getmyaccepttasklist"; json = PalmAPIHelper.PalmCoreIIS3676API(url, postdata, "POST"); } catch (Exception ex) { errmsg = "接口返回信息格式不正确"; result = false; LogWriter.WriteLog(ex); } return(result); }
/// <summary> /// 登录请求 /// </summary> /// <param name="pageurl">页面URL</param> /// <param name="data">数据</param> /// <param name="errmsg">出错时返回的错误提示信息</param> /// <returns>是否成功执行</returns> public bool RequestIIS3676Data(string pageurl, string data, ref string json, ref string errmsg) { bool result = true; try { Dictionary <string, string> postdata = new Dictionary <string, string>(); postdata.Add("data", data);//用户密码 string url = pageurl; json = PalmAPIHelper.PalmCoreIIS3676API(url, postdata, "POST"); } catch (Exception ex) { errmsg = "接口返回信息格式不正确:" + ex.Message.ToString(); result = false; LogWriter.WriteLog(ex); } return(result); }