public FrmWarnEmptyOpenCloseTime() { InitializeComponent(); if (ClientEnvironment.IsRuntimeMode) { _storeListView = new StoreViewList(); } }
public UCStoresListNotification() { InitializeComponent(); if (ClientEnvironment.IsRuntimeMode) { _storeListView = new StoreViewList(); } }
public void LoadStoreList() { _storesViewList = new StoreViewList(); _storesViewList.Init(); _storesViewList.LoadAll(); _storesViewList.RemoveAustriaStores(); lookUpEditStores.Properties.DataSource = _storesViewList; if (_storesViewList.Count == 1) { lookUpEditStores.EditValue = _storesViewList[0].ID; } lookUpEditStores.Properties.PopupFormWidth = lookUpEditStores.Width; gridColumn_Country.GroupIndex = 0; gridColumn_Region.GroupIndex = 1; lookUpEditStores.Properties.View.ExpandAllGroups(); storeWorldLookUpCtrl1.InitFirstValue = false; }
public void LoadStoreList() { ucWeekTimePlanning.Context = _planningContext; _storesViewList = new StoreViewList(); _storesViewList.Init(); _storesViewList.LoadAll(); lookUpEditStores.Properties.DataSource = _storesViewList; if (_storesViewList.Count == 1) { lookUpEditStores.EditValue = _storesViewList[0].ID; } lookUpEditStores.Properties.PopupFormWidth = lookUpEditStores.Width; gridColumn_Country.GroupIndex = 0; gridColumn_Region.GroupIndex = 1; lookUpEditStores.Properties.View.ExpandAllGroups(); }
private void LoadStores() { lookUpStores.Properties.BeginUpdate(); try { _listStores.Clear(); if (Entity != null) { StoreViewList lst = new StoreViewList(); lst.LoadByRegion(EntityRegion.ID); for (int i = 0; i < lst.Count; i++) { _listStores.Add(lst[i].Entity); } //List<Domain.Store> lst = ClientEnvironment.StoreService.FindAll(); // if (lst != null) // { // foreach (Domain.Store store in lst) // if (store.RegionID == EntityRegion.ID) _listStores.Add(store); // } } if (lookUpStores.Properties.DataSource == null) { lookUpStores.Properties.DataSource = _listStores; } } finally { lookUpStores.Properties.EndUpdate(); } if (_listStores.Count > 0) { lookUpStores.EditValue = _listStores[0].ID; } }
private void InitStoreList() { _swController = new StoreWorldController(); ListStores = new StoreViewList(); ListStores.Init(); ListStores.LoadAll(); _listStoreShorts = new StoreShortList().ReInit(); lookUpEditStores.Properties.DataSource = ListStores; lookUpEditStores.Properties.View.ExpandAllGroups(); if ((ListStores != null) && (ListStores.Count == 1)) { lookUpEditStores.EditValue = ListStores[0].ID; } List <Domain.World> lstWorlds = ClientEnvironment.WorldService.FindAll(); repositoryItemLookUpWorlds.DataSource = lstWorlds; repositoryItemLookUpStores.DataSource = _listStoreShorts; }
private void LoadStores() { lookUpStores.Properties.BeginUpdate(); try { _listStores.Clear(); if (Entity != null) { StoreViewList lst = new StoreViewList(); lst.LoadByRegion(EntityRegion.ID); for (int i = 0; i < lst.Count; i++) { _listStores.Add(lst[i].Entity); } //List<Domain.Store> lst = ClientEnvironment.StoreService.FindAll(); // if (lst != null) // { // foreach (Domain.Store store in lst) // if (store.RegionID == EntityRegion.ID) _listStores.Add(store); // } } if (lookUpStores.Properties.DataSource == null) lookUpStores.Properties.DataSource = _listStores; } finally { lookUpStores.Properties.EndUpdate(); } if (_listStores.Count > 0) { lookUpStores.EditValue = _listStores[0].ID; } }
public void LoadStoreList() { m_storesViewList = new StoreViewList(); m_storesViewList.Init(); m_storesViewList.LoadAll(); lookUpEditStores.Properties.DataSource = m_storesViewList; if (m_storesViewList.Count == 1) { lookUpEditStores.EditValue = m_storesViewList[0].ID; } //lookUpEditStores.Properties.PopupFormWidth = lookUpEditStores.Width; gridColumn_Country.GroupIndex = 0; gridColumn_Region.GroupIndex = 1; lookUpEditStores.Properties.View.ExpandAllGroups(); }