Example #1
0
        public void getDatas(EDatabaseType dType, ref List<Object> list, out int iRest)
        {
            List<DatabaseObj> _objList = new List<DatabaseObj>();
            m_DatabaseAccesor.getDatas(dType, ref _objList, out iRest);

            if (0 == _objList.Count)
                return;

            if (EDatabaseType.EUserAccount == dType)
            {
                foreach(DatabaseObj _obj in _objList)
                {
                    Object _ua = new SUserAccount();

                    _obj.put(ref _ua);
                    list.Add(_ua);
                }
            }
            else if (EDatabaseType.ESearchFactor == dType)
            {
                foreach (DatabaseObj _obj in _objList)
                {
                    Object _ua = new SSearchFactor();

                    _obj.put(ref _ua);
                    list.Add(_ua);
                }
            }
            else if (EDatabaseType.EForbiddenCorp == dType)
            {
                foreach (DatabaseObj _obj in _objList)
                {
                    Object _ua = new SForbiddenCorp();

                    _obj.put(ref _ua);
                    list.Add(_ua);
                }
            }
            return;
        }
 public ForbiddenCorpAdapter(SForbiddenCorp fc)
 {
     m_AttrValues.Add(c_AttrCorpName, fc.szCorpName);
 }