コード例 #1
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 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>);
     }
 }
コード例 #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);
        }
コード例 #3
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 public List <Department> GetDepartmentTree(string siteID, string parentId)
 {
     byte[] list = RemoteHelper.GetDepartmentTree(siteID, parentId);
     return(We7Helper.BytesToObject(list) as List <Department>);
 }
コード例 #4
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 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>);
 }
コード例 #5
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 public List <string> GetAccountsOfRole(string roleID, int from, int count)
 {
     byte[] list = RemoteHelper.GetAccountsOfRole(roleID, from, count);
     return(We7Helper.BytesToObject(list) as List <string>);
 }
コード例 #6
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 public List <string> GetRolesOfAccount(string accountID)
 {
     byte[] list = RemoteHelper.GetRolesOfAccount(accountID);
     return(We7Helper.BytesToObject(list) as List <string>);
 }
コード例 #7
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 public List <Role> GetRoles(string siteID, OwnerRank type, string key)
 {
     byte[] list = RemoteHelper.GetRoles(siteID, type, key);
     return(We7Helper.BytesToObject(list) as List <Role>);
 }
コード例 #8
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 public List <Role> GetRoles(string siteID, int from, int count)
 {
     byte[] list = RemoteHelper.GetRoles(siteID, from, count);
     return(We7Helper.BytesToObject(list) as List <Role>);
 }
コード例 #9
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 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));
 }
コード例 #10
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 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>);
 }
コード例 #11
0
ファイル: AccountRemoteHelper.cs プロジェクト: sunsiz/We7CMS
 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>);
 }