Beispiel #1
0
 private void toolStripMenuItem14_Click(object sender, EventArgs e)
 {
     Form_rk_工具 rk = new Form_rk_工具();
     rk.ShowDialog(this);
 }
Beispiel #2
0
        private void textBox_jj_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Return:
                if (CheckJJ())
                {
                    this.textBox_sj.Select();
                    this.textBox_sj.SelectAll();
                }
                break;

            case Keys.R:
                if (e.Control)
                {
                    if (!CheckJJ())
                    {
                        break;
                    }
                    textBox_sj.Text = textBox_jj.Text;
                    textBox_sj_TextChanged(null, null);
                    var rk_gj = new Form_rk_工具();
                    if (rk_gj.add_rk_gj(textBox_tm.Text))
                    {
                        rk_gj.ShowDialog(this.Owner);
                    }
                    this.textBox_jj.Clear();
                    this.textBox_sj.Clear();
                    var tm = this.textBox_tm.Text;
                    tm  = tm.Remove(6);
                    tm += "XXX";
                    this.textBox_tm.Text = tm;
                    rk_gj.Close();
                }
                break;

            case Keys.P:
                if (!e.Control)
                {
                    break;
                }
                if (!CheckJJ())
                {
                    break;
                }
                textBox_sj.Text = textBox_jj.Text;
                textBox_sj_TextChanged(null, null);
                var print = new Form_Print_BarCode();
                if (print.add_print(textBox_tm.Text))
                {
                    print.ShowDialog(this.Owner);
                }
                this.textBox_jj.Clear();
                this.textBox_sj.Clear();
                var tm2 = this.textBox_tm.Text;
                tm2  = tm2.Remove(6);
                tm2 += "XXX";
                this.textBox_tm.Text = tm2;
                print.Close();
                break;

            case Keys.Escape:
                Close();
                break;

            default:
                break;
            }
        }