Esempio n. 1
0
        private void showStoreDetail()
        {
            //
            this.mStoreDS = new StoreDS();
            this.txtStoreDetail.Clear();
            if (this.cboCompany.SelectedValue != null && this.txtStore.Text.Length > 0)
            {
                StoreDS ds = new StoreDS();
                switch (this.cboScope.SelectedItem.ToString())
                {
                case SCOPE_STORES: ds.Merge(CustomerProxy.GetStoreDetail(Convert.ToInt32(CompanySelectedValue), Convert.ToInt32(this.txtStore.Text))); break;

                case SCOPE_SUBSTORES: ds.Merge(CustomerProxy.GetStoreDetail(Convert.ToInt32(CompanySelectedValue), this.txtStore.Text)); break;
                }
                if (ds.StoreTable.Rows.Count > 0)
                {
                    this.mStoreDS            = ds;
                    this.txtStoreDetail.Text = getStoreDetailString();
                }
            }
        }