Пример #1
0
        private void LoadGrid()
        {
            olvcTexture.DataSource = BOFactory.GetBO(BOIDEnum.Texture).GetValieValue("ID","Name");
            olvcGroup.DataSource= BOFactory.GetBO(BOIDEnum.ProductGroup).GetValieValue("ID", "Name");

            m_proList = (BOProduct)BOFactory.GetBO(BOIDEnum.Product);
            List<ProductMD> listObj = Utilities.ConvertList<ProductMD>(m_proList.GetDataList());
            objList.SetObjects(listObj);
        }
Пример #2
0
 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;
 }