public void CheckMachine(string machineNo) { try { ResponseResult res = new ResponseResult(); using (ReplenishBLL repBll = new ReplenishBLL()) { res = repBll.CheckMachine(machineNo); if (res.Message == "OK") { this.SetActiveColor("txtNoOfLabel"); this.SetTextFocusControl(this.txtNoOfLabel, false); } else { base.ShowWarningBox(string.Format("'{0}' {1}", machineNo, ResourceManager.Instance.GetString(res.Message)), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK")); this.SetActiveColor("txtMCNo"); this.SetTextFocusControl(this.txtMCNo, true); } } } catch (WebException wex) { base.HideWaitProcess(); base.ShowErrorBox(wex.Message, "WebException"); } catch (Exception ex) { base.HideWaitProcess(); base.ShowErrorBox(ex.Message, "Exception"); } }
public ResponseResult CheckMachine(string mcno) { response = new ResponseResult(); using (ReplenishBLL repBll = new ReplenishBLL()) { response = repBll.CheckMachine(mcno); } return response; }