/// <summary> /// 更新文件列表 /// </summary> /// <param name="retmsg"></param> /// <param name="filedata"></param> /// <returns></returns> public static int DoUpdateFileList(string account, out string retmsg, out CommonData.FileData filedata) { int res = -1; try { WRFileUpdate.UpdateFileWebService ws = new WRFileUpdate.UpdateFileWebService(); RecvRes retres = TransRes(ws.GetUpdateFileList(account)); retmsg = retres.Description; filedata = null; if (retres.IsOK) { if (!string.IsNullOrEmpty(retres.ExtData)) { string jsondata = retres.ExtData; filedata = JsonDeal.JsonData2FileData(jsondata); res = 0; } else { throw new Exception("accpect extData is null"); } } } catch (Exception ex) { filedata = null; retmsg = ex.Message; throw; } return(res); }
/// <summary> /// 获取所有权限文件夹名称 /// </summary> /// <param name="data"></param> /// <param name="retmsg"></param> /// <returns></returns> public static int DoGetFilePermissionList(out List <CommonData.FilePermission> FilePermission, out string retmsg) { int res = -1; try { FilePermission = null; WRFileUpdate.UpdateFileWebService ws = new WRFileUpdate.UpdateFileWebService(); RecvRes retres = TransRes(ws.GetFilePermissionList()); retmsg = retres.Description; if (retres.IsOK) { FilePermission = JsonDeal.JsonData2FilePermissionlist(retres.ExtData); res = 0; } } catch (Exception ex) { FilePermission = null; retmsg = ex.Message; throw; } return(res); }