예제 #1
0
        private void NewMarketRetProc(Form form, object data)
        {
            BOMarket         mktBo       = (BOMarket)data;
            MarketDetaiedlMD detailedMkt = new MarketDetaiedlMD((MarketMD)mktBo.GetBOTable());
            List <CountryMD> cty         = mktBo.GetMktCountry();

            detailedMkt.Countries = mktBo.GetCountryString();
            objList.AddObject(detailedMkt);
        }
예제 #2
0
        private void objList_RowNumberDblClick(BrightIdeasSoftware.OlvListViewHitTestInfo hti)
        {
            MarketDetaiedlMD obj      = (MarketDetaiedlMD)hti.RowObject;
            frmMarketMD      frmMktMd = new frmMarketMD(BOIDEnum.Market);

            frmMktMd.MdiParent  = this.MdiParent;
            frmMktMd.FormMode   = NanCrm.FormMode.Ok;
            frmMktMd.UpdateProc = MarketMDUpdateProc;
            //int id = ((MarketDetaiedlMD)hti.RowObject).ID;
            //frmMktMd.LoadDataById(id);
            frmMktMd.SetBOTable(((MarketDetaiedlMD)hti.RowObject).GetOrignalMD());
            frmMktMd.Show();
        }
예제 #3
0
        private void MarketMDUpdateProc(Form form, object data)
        {
            BOMarket         mktBo       = (BOMarket)data;
            MarketDetaiedlMD detailedMkt = new MarketDetaiedlMD((MarketMD)mktBo.GetBOTable());
            List <CountryMD> cty         = mktBo.GetMktCountry();

            detailedMkt.Countries = mktBo.GetCountryString();
            if (objList.FocusedItem != null)
            {
                objList.GetItem(objList.FocusedItem.Index).RowObject = detailedMkt;
            }

            objList.RefreshSelectedObjects();
        }