Пример #1
0
 public FrmWarnEmptyOpenCloseTime()
 {
     InitializeComponent();
     if (ClientEnvironment.IsRuntimeMode)
     {
         _storeListView = new StoreViewList();
     }
 }
Пример #2
0
 public FrmWarnEmptyOpenCloseTime()
 {
     InitializeComponent();
     if (ClientEnvironment.IsRuntimeMode)
     {
         _storeListView = new StoreViewList();
     }
 }
Пример #3
0
 public UCStoresListNotification()
 {
     InitializeComponent();
     if (ClientEnvironment.IsRuntimeMode)
     {
         _storeListView = new StoreViewList();
     }
 }
Пример #4
0
 public UCStoresListNotification()
 {
     InitializeComponent();
     if (ClientEnvironment.IsRuntimeMode)
     {
         _storeListView = new StoreViewList();
     }
 }
Пример #5
0
        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;
        }
Пример #6
0
        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();
        }
Пример #7
0
        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;
            }
        }
Пример #8
0
        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;
        }
Пример #9
0
        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;
            }
        }
Пример #10
0
        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();

        }
Пример #11
0
        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;
        }
Пример #12
0
        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();
        }