public static IsHasTransformerDetail ( |
||
resolver | ||
return | bool |
protected override void BarCodeScan() { this.tbBarCode.Text = this.tbBarCode.Text.Trim(); #region 当输入框为空时,按回车焦点跳转 if (this.tbBarCode.Text.Trim() == string.Empty && Utility.IsHasTransformerDetail(this.resolver)) { if (this.gvHuList.Visible) { this.btnConfirm.Focus(); } return; } #endregion base.BarCodeScan(); }
private void OrderNoScan() { try { this.gvList.Visible = true; this.gvHuList.Visible = false; this.tbBarCode.Text = this.tbBarCode.Text.Trim(); #region 当输入框为空时,按回车焦点跳转 if (this.tbBarCode.Text.Length == 0 && Utility.IsHasTransformerDetail(this.resolver)) { if (this.resolver.IsScanHu) { this.btnOrderReturn.Focus(); } else { this.gvList.Focus(); this.gvList.BeginEdit(true); } this.gvListDataBind(); return; } #endregion this.resolver.Input = this.tbBarCode.Text; this.resolver = TheClientMgr.ScanBarcode(this.resolver); this.DataBind(); } catch (FaultException ex) { this.tbBarCode.Focus(); this.tbBarCode.Text = string.Empty; this.lblMessage.Text = Utility.FormatExMessage(ex.Message); MessageBox.Show(this, Utility.FormatExMessage(ex.Message), "扫描条码失败", MessageBoxButtons.OK, MessageBoxIcon.Warning); } catch (Exception ex) { MessageBox.Show(this, ex.Message, "程序内部错误,请与管理员联系", MessageBoxButtons.OK, MessageBoxIcon.Error); this.InitialAll(); } }