Example #1
0
        private void textBoxPDBH_DoubleClick(object sender, EventArgs e)
        {
            FormSelectHT frmSelectHT = new FormSelectHT();

            frmSelectHT.strConn      = strConn;
            frmSelectHT.iSelectStyle = 100;
            frmSelectHT.ShowDialog();
            intPDID = frmSelectHT.iHTNumber;

            getCPDDetail();
        }
Example #2
0
        private void textBoxPDBH_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                FormSelectHT frmSelectHT = new FormSelectHT();
                frmSelectHT.strConn      = strConn;
                frmSelectHT.iSelectStyle = 110;
                frmSelectHT.strHTSearch  = textBoxPDBH.Text.Trim();

                frmSelectHT.ShowDialog();
                intPDID = frmSelectHT.iHTNumber;

                getCPDDetail();
                dataGridViewDJMX.Focus();
            }
        }