public List <AscmGetMaterialTask> GetMaterialTaskInfo() { List <AscmGetMaterialTask> list = null; try { string message = string.Empty; if (!string.IsNullOrEmpty(GetMaterialTaskId)) { WinForm.AscmWebService.AscmWebService Service = new AscmWebService.AscmWebService(); string jsonStr = Service.CheckTaskInfo(frmMain.encryptTicket, GetMaterialTaskId, ref message); if (!string.IsNullOrEmpty(jsonStr)) { list = (List <AscmGetMaterialTask>)JsonConvert.DeserializeObject(jsonStr, typeof(List <AscmGetMaterialTask>)); if (list == null || list.Count == 0) { MessageBoxEx.Show("没有查到符合该条件任务信息!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } } catch (Exception ex) { throw ex; } return(list); }