示例#1
0
        private bool btnOk_Clicking(object sender, EventArgs e)
        {
            if (this.FormMode == FormMode.Ok)
            {
                return(true);
            }
            IList     obj    = (IList)objList.Objects;
            BOTexture objTxt = (BOTexture)m_bo;

            objTxt.SetDataList(obj);
            return(objTxt.UpdateBatch());
        }
示例#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);
        }