private void LoadGrid() { m_bpList = (BOBP)BOFactory.GetBO(BOIDEnum.BP); List<BPMD> listObj = Utilities.ConvertList<BPMD>(m_bpList.GetDataList()); objList.SetObjects(listObj); }
public static BusinessObject GetBO(BOIDEnum boid) { BusinessObject bo = null; switch (boid) { case BOIDEnum.BOSequence: bo = new BOSequence(); break; case BOIDEnum.Country: bo = new BOCountry(); break; case BOIDEnum.ProductGroup: bo = new BOProductGroup(); break; case BOIDEnum.Market: bo = new BOMarket(); break; case BOIDEnum.MarketDetail: bo = new BOMarketDetail(); break; case BOIDEnum.SearchPlantf: bo = new BOBPSearchPlan(); break; case BOIDEnum.Texture: bo = new BOTexture(); break; case BOIDEnum.KeyWord: bo = new BOKeyWord(); break; case BOIDEnum.KeyWordList: bo = new BOKWList(); break; case BOIDEnum.Product: bo = new BOProduct(); break; case BOIDEnum.PSearchPlan: bo = new BOProductSearchPlan(); break; case BOIDEnum.PSearchResult: bo = new BOBPSearchResult(); break; case BOIDEnum.BP: bo = new BOBP(); break; default: break; } bo.Init(); return bo; }