private void customButtonFind_Click(object sender, EventArgs e) { if (customTextBoxDestShopNo.isValid) { //If the shop number entered is valid, call data layer //to get the store information SiteId storeInfo = new SiteId(); ShopProcedures.ExecuteGetStoreInfo(GlobalDataAccessor.Instance.OracleDA, customTextBoxDestShopNo.Text.ToString(), ref storeInfo, out errorCode, out errorText); if (storeInfo != null) { destinationStoreDataFound = true; destShopName = storeInfo.StoreName; labelDestAddr1.Text = storeInfo.StoreAddress1; labelDestAddr2.Text = storeInfo.StoreCityName + "," + storeInfo.State + " " + storeInfo.StoreZipCode; labelDestManager.Text = storeInfo.StoreManager; labelDestPhone.Text = storeInfo.StorePhoneNo; customButtonSubmit.Enabled = !string.IsNullOrEmpty(storeInfo.StoreName); } } else { MessageBox.Show(@"Please enter a valid destination shop number"); } }
private void LoadStoreData(string storeNumber) { try { //data table to load store info string sErrorCode; string sErrorMessage; ShopProcedures.ExecuteGetStoreInfo(this.OracleDA, storeNumber, ref currentSiteId, out sErrorCode, out sErrorMessage); } catch (Exception ex) { BasicExceptionHandler.Instance.AddException( "LoadStoreData failed", new ApplicationException("Load store data failed", ex)); } }