public List <Account> GetAccountList(List <string> ownerIds) { if (ownerIds == null || ownerIds.Count == 0) { return(null); } else { byte[] list = RemoteHelper.GetAccountList(ownerIds.ToArray()); return(We7Helper.BytesToObject(list) as List <Account>); } }
/// <summary> /// 将字串转换为List对象 /// </summary> /// <param name="xml"></param> /// <returns></returns> public List <ProcessHistory> StrToList(string xml) { if (xml == null) { return(new List <ProcessHistory>()); } byte[] buffer = new byte[0]; buffer = Convert.FromBase64String(xml); if (buffer == null || buffer.Length == 0) { return(new List <ProcessHistory>()); } List <ProcessHistory> list = (List <ProcessHistory>)We7Helper.BytesToObject(buffer); return(list); }
public List <Department> GetDepartmentTree(string siteID, string parentId) { byte[] list = RemoteHelper.GetDepartmentTree(siteID, parentId); return(We7Helper.BytesToObject(list) as List <Department>); }
public List <Department> GetDepartments(string siteID, string parentID, string selectName, string[] fields) { byte[] list = RemoteHelper.GetDepartments(siteID, parentID, selectName, fields); return(We7Helper.BytesToObject(list) as List <Department>); }
public List <string> GetAccountsOfRole(string roleID, int from, int count) { byte[] list = RemoteHelper.GetAccountsOfRole(roleID, from, count); return(We7Helper.BytesToObject(list) as List <string>); }
public List <string> GetRolesOfAccount(string accountID) { byte[] list = RemoteHelper.GetRolesOfAccount(accountID); return(We7Helper.BytesToObject(list) as List <string>); }
public List <Role> GetRoles(string siteID, OwnerRank type, string key) { byte[] list = RemoteHelper.GetRoles(siteID, type, key); return(We7Helper.BytesToObject(list) as List <Role>); }
public List <Role> GetRoles(string siteID, int from, int count) { byte[] list = RemoteHelper.GetRoles(siteID, from, count); return(We7Helper.BytesToObject(list) as List <Role>); }
public List <Account> QueryAccountsByQuery(AccountQuery query, int from, int count, string[] fields) { byte[] arr = RemoteHelper.QueryAccountsByQuery(query, from, count, fields); return((List <Account>)We7Helper.BytesToObject(arr)); }
public List <Account> GetAccountList(Criteria c, Order[] o, int begin, int count) { byte[] list = RemoteHelper.GetAccountList(c, o, begin, count); return(We7Helper.BytesToObject(list) as List <Account>); }
public List <Account> GetAccounts(string siteID, string departmentID, string selectName, OwnerRank type) { byte[] list = RemoteHelper.GetAccounts(siteID, departmentID, selectName, type); return(We7Helper.BytesToObject(list) as List <Account>); }