示例#1
0
        protected override void EntityChanged()
        {
            if (Entity != null)
            {
                swController = new StoreWorldController();
                LoadEmployeeRelation();

                teEmployee.Text = Context.CurrentEmployee.FullName;
                //IList lst = ClientEnvironment.EmployeeRelationService.GetEmployeeRelations(Context.CurrentEmployee.ID);

                //Context.FillEmployeeRelation(lst);
                ///*
                //WorldDictionary worldDiction = new WorldDictionary();
                //worldDiction.Refresh();
                //worldDiction.FillEmployeeRelation(lst);
                //StoreDictionary storeDiction = new StoreDictionary();
                //storeDiction.Refresh();
                //storeDiction.FillEmployeeRelation(lst);
                // * */
                //m_Relations = new BindingTemplate<EmployeeRelation>(lst);

                //gridControl.DataSource = m_Relations;
                //UpdateButtonState();
            }
        }
示例#2
0
        private void SetStore(long storeid)
        {
            Domain.Store store = null;

            if (m_ListStores.TryGetValue(storeid, out store))
            {
                Domain.Region reg = null;
                if (m_listRegions.TryGetValue(store.RegionID, out reg))
                {
                    CountryId = reg.CountryID;
                    RegionId  = reg.ID;
                    StoreId   = storeid;
                    StoreWorldController sw = new StoreWorldController();
                    sw.LoadByStoreId(storeid);

                    storeWorldLookUpCtrl.EntityList = sw.GetListByStoreId(storeid);
                }
            }
        }
示例#3
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;
        }
示例#4
0
        private void SetStore(long storeid)
        {
            Domain.Store store = null;

            if (m_ListStores .TryGetValue (storeid, out store))
            {
                Domain.Region reg = null;
                if (m_listRegions.TryGetValue(store.RegionID, out reg))
                {
                    CountryId = reg.CountryID;
                    RegionId = reg.ID;
                    StoreId = storeid;
                    StoreWorldController sw = new StoreWorldController();
                    sw.LoadByStoreId(storeid);

                    storeWorldLookUpCtrl.EntityList = sw.GetListByStoreId(storeid);

                }
            }
        }
        protected override void EntityChanged()
        {
            if (Entity != null)
            {
                swController = new StoreWorldController();
                LoadEmployeeRelation();

                teEmployee.Text = Context.CurrentEmployee.FullName;
                //IList lst = ClientEnvironment.EmployeeRelationService.GetEmployeeRelations(Context.CurrentEmployee.ID);

                //Context.FillEmployeeRelation(lst);
                ///*
                //WorldDictionary worldDiction = new WorldDictionary();
                //worldDiction.Refresh();
                //worldDiction.FillEmployeeRelation(lst);
                //StoreDictionary storeDiction = new StoreDictionary();
                //storeDiction.Refresh();
                //storeDiction.FillEmployeeRelation(lst);
                // * */
                //m_Relations = new BindingTemplate<EmployeeRelation>(lst);

                //gridControl.DataSource = m_Relations;
                //UpdateButtonState();
            }
        }