예제 #1
0
        private void ChangedStore()
        {
            worldList = ClientEnvironment.StoreToWorldService.FindAllForStore(StoreID);
            hwgrList  =
                new StoreWorldToHwgrController(StoreID,
                                               ClientEnvironment.WorldToHWGRService.GetWorldToHwgrFiltered(StoreID));
            wgrList = ClientEnvironment.HwgrToWgrService.GetHwgrToWgrFiltered(StoreID);

            _worldid = 0;

            WgrManager.FillHwgrToWgr(wgrList);
        }
예제 #2
0
        public void MergeHwgrToWgr(List <HwgrToWgr> entities)
        {
            if (entities != null && entities.Count > 0)
            {
                WgrManager.FillHwgrToWgr(entities);

                long             wgrid    = entities[0].WGR_ID;
                List <HwgrToWgr> tempList = new List <HwgrToWgr>(wgrList.Count);

                foreach (HwgrToWgr entity in wgrList)
                {
                    if (entity.WGR_ID != wgrid)
                    {
                        tempList.Add(entity);
                    }
                }

                wgrList.Clear();
                wgrList.Capacity = tempList.Count;
                wgrList.AddRange(tempList);
                wgrList.AddRange(entities);
            }
        }
예제 #3
0
 public Domain.WGR GetWgr(HwgrToWgr hwgr_wgr)
 {
     return(WgrManager.GetWgrEntity(hwgr_wgr));
 }