示例#1
0
        /// <summary>
        /// 获取新的运行记录
        /// </summary>
        /// <param name="time"></param>
        /// <returns></returns>
        public static DataTable GetRunLogs(long uid)
        {
            DataTable dt = null;

            try
            {
                if (StaticClass.ServerConet)
                {
                    var request = new GetRunLogsRequest()
                    {
                        UserId = uid
                    };
                    var response = realMessageService.GetRunLogs(request);
                    if (response.Data != null)
                    {
                        dt = response.Data;
                        if (dt != null && dt.Rows.Count > 0)
                        {
                            for (int i = 0; i < dt.Rows.Count; i++)
                            {
                                dt.Rows[i]["state"]   = OprFuction.StateChange(dt.Rows[i]["state"].ToString());
                                dt.Rows[i]["sbstate"] = OprFuction.StateChange(dt.Rows[i]["sbstate"].ToString());
                            }
                        }
                    }
                }
            }
            catch
            {
                OprFuction.SetServerConct();
            }
            return(dt);
        }
示例#2
0
        public BasicResponse <DataTable> GetRunLogs(GetRunLogsRequest realMessageRequest)
        {
            var responsestr = HttpClientHelper.Post(Webapi + "/v1/realmessage/gethistorybypointid?token=" + Token, JSONHelper.ToJSONString(realMessageRequest));

            return(JSONHelper.ParseJSONString <BasicResponse <DataTable> >(responsestr));
        }
 public BasicResponse <DataTable> GetRunLogs(GetRunLogsRequest realMessageRequest)
 {
     return(realMessageService.GetRunLogs(realMessageRequest));
 }