/// <summary> /// 制样码回车 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtInputMakeCode_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (!string.IsNullOrEmpty(txtInputMakeCode.Text)) { this.CurrentFlowFlag = eFlowFlag.打印二维码; } } }
/// <summary> /// 重置 /// </summary> private void Restet() { this.CurrentFlowFlag = eFlowFlag.等待扫码; txtInputMakeCode.ButtonCustom.Enabled = false; txtInputMakeCode.ResetText(); rtxtMakeCheckInfo.ResetText(); // 方便客户快速使用,获取焦点 txtInputMakeCode.Focus(); }
/// <summary> /// 打印二维码 /// </summary> private void PrintAssayCode() { this.CurrentFlowFlag = eFlowFlag.打印二维码; if (MessageBoxEx.Show("立刻打印二维码?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { this._CodePrinter.Print(txtInputMakeCode.Text); Restet(); } else { Restet(); } }