Esempio n. 1
0
 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>);
     }
 }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 public List <Department> GetDepartmentTree(string siteID, string parentId)
 {
     byte[] list = RemoteHelper.GetDepartmentTree(siteID, parentId);
     return(We7Helper.BytesToObject(list) as List <Department>);
 }
Esempio n. 4
0
 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>);
 }
Esempio n. 5
0
 public List <string> GetAccountsOfRole(string roleID, int from, int count)
 {
     byte[] list = RemoteHelper.GetAccountsOfRole(roleID, from, count);
     return(We7Helper.BytesToObject(list) as List <string>);
 }
Esempio n. 6
0
 public List <string> GetRolesOfAccount(string accountID)
 {
     byte[] list = RemoteHelper.GetRolesOfAccount(accountID);
     return(We7Helper.BytesToObject(list) as List <string>);
 }
Esempio n. 7
0
 public List <Role> GetRoles(string siteID, OwnerRank type, string key)
 {
     byte[] list = RemoteHelper.GetRoles(siteID, type, key);
     return(We7Helper.BytesToObject(list) as List <Role>);
 }
Esempio n. 8
0
 public List <Role> GetRoles(string siteID, int from, int count)
 {
     byte[] list = RemoteHelper.GetRoles(siteID, from, count);
     return(We7Helper.BytesToObject(list) as List <Role>);
 }
Esempio n. 9
0
 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));
 }
Esempio n. 10
0
 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>);
 }
Esempio n. 11
0
 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>);
 }