Exemple #1
0
        private void SelectStore_Load(object sender, EventArgs e)
        {
            List <SiteId>         stores      = new List <SiteId>();
            CommonDatabaseContext dataContext = CreateCommonDatabaseContext();
            bool retVal = InventoryAuditProcedures.GetStores(stores, dataContext);

            if (!retVal)
            {
                MessageBox.Show(dataContext.ErrorText);
                return;
            }

            ddlStore.DisplayMember = "StoreNumber";
            ddlStore.DataSource    = stores;
        }
Exemple #2
0
        private void LoadStoresIfNecessary()
        {
            if (CachedStores != null)
            {
                return;
            }

            CachedStores = new List <SiteId>();
            CommonDatabaseContext dataContext = CreateCommonDatabaseContext();
            bool retVal = InventoryAuditProcedures.GetStores(CachedStores, dataContext);

            if (!retVal)
            {
                MessageBox.Show(dataContext.ErrorText);
                return;
            }

            ddlShopNumber.DisplayMember = "StoreNumber";
            ddlShopNumber.DataSource    = CachedStores;
        }