Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        public byte[] GetAccountList(List <string> ownerIds)
        {
            List <Account> list = AccountLocalHelper.GetAccountList(ownerIds);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 3
0
        public byte[] GetAccounts(string siteID, string departmentID, string selectName, OwnerRank type)
        {
            List <Account> list = AccountLocalHelper.GetAccounts(siteID, departmentID, selectName, type);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 4
0
        public byte[] GetDepartmentTree(string siteID, string parentId)
        {
            List <Department> list = AccountLocalHelper.GetDepartmentTree(siteID, parentId);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 5
0
        public byte[] GetDepartments(string siteID, string parentID, string selectName, string[] fields)
        {
            List <Department> list = AccountLocalHelper.GetDepartments(siteID, parentID, selectName, fields);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 6
0
        public byte[] GetAccountsOfRole(string roleID, int from, int count)
        {
            List <string> list = AccountLocalHelper.GetAccountsOfRole(roleID, from, count);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 7
0
        public byte[] GetRolesOfAccount(string accountID)
        {
            List <string> list = AccountLocalHelper.GetRolesOfAccount(accountID);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 8
0
        public byte[] GetRoles(string siteID, OwnerRank type, string key)
        {
            List <Role> list = AccountLocalHelper.GetRoles(siteID, type, key);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 9
0
        public byte[] GetRoles(string siteID, int from, int count)
        {
            List <Role> list = AccountLocalHelper.GetRoles(siteID, from, count);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 10
0
        public byte[] QueryAccountsByQuery(AccountQuery query, int from, int count, string[] fields)
        {
            List <Account> list = AccountLocalHelper.QueryAccountsByQuery(query, from, count, fields);

            return(We7Helper.ObjectToBytes(list));
        }
Esempio n. 11
0
        public byte[] GetAccountList(Criteria c, Order[] o, int begin, int count)
        {
            List <Account> list = AccountLocalHelper.GetAccountList(c, o, begin, count);

            return(We7Helper.ObjectToBytes(list));
        }