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); }
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); } }
public Domain.WGR GetWgr(HwgrToWgr hwgr_wgr) { return(WgrManager.GetWgrEntity(hwgr_wgr)); }