/// <summary> /// List对象转换为字串 /// </summary> /// <param name="list"></param> /// <returns></returns> public string ListToStr(List <ProcessHistory> list) { byte[] buffer = We7Helper.ObjectToBytes(list); string xml = Convert.ToBase64String(buffer); return(xml); }
public byte[] GetAccountList(List <string> ownerIds) { List <Account> list = AccountLocalHelper.GetAccountList(ownerIds); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetAccounts(string siteID, string departmentID, string selectName, OwnerRank type) { List <Account> list = AccountLocalHelper.GetAccounts(siteID, departmentID, selectName, type); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetDepartmentTree(string siteID, string parentId) { List <Department> list = AccountLocalHelper.GetDepartmentTree(siteID, parentId); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetDepartments(string siteID, string parentID, string selectName, string[] fields) { List <Department> list = AccountLocalHelper.GetDepartments(siteID, parentID, selectName, fields); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetAccountsOfRole(string roleID, int from, int count) { List <string> list = AccountLocalHelper.GetAccountsOfRole(roleID, from, count); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetRolesOfAccount(string accountID) { List <string> list = AccountLocalHelper.GetRolesOfAccount(accountID); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetRoles(string siteID, OwnerRank type, string key) { List <Role> list = AccountLocalHelper.GetRoles(siteID, type, key); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetRoles(string siteID, int from, int count) { List <Role> list = AccountLocalHelper.GetRoles(siteID, from, count); return(We7Helper.ObjectToBytes(list)); }
public byte[] QueryAccountsByQuery(AccountQuery query, int from, int count, string[] fields) { List <Account> list = AccountLocalHelper.QueryAccountsByQuery(query, from, count, fields); return(We7Helper.ObjectToBytes(list)); }
public byte[] GetAccountList(Criteria c, Order[] o, int begin, int count) { List <Account> list = AccountLocalHelper.GetAccountList(c, o, begin, count); return(We7Helper.ObjectToBytes(list)); }