private void txtJ_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Dialog.frmDialogSearchEmployer prison = new Dialog.frmDialogSearchEmployer(txtJ.Text); prison.ShowDialog(); if (prison.DialogResult == DialogResult.OK) { txtJ.Text = "[" + prison.GetEmployerId() + "] " + prison.GetEmployerName(); //textBox1.Text = LotId(); txtNo.Text = OutstandingId(); DgvDraw.Rows.Clear(); //employerid = prison.GetEmployerId(); } } }
private void textBox3_KeyDown(object sender, KeyEventArgs e) { Dialog.frmDialogSearchEmployer prison = new Dialog.frmDialogSearchEmployer(); prison.ShowDialog(); if (prison.DialogResult == DialogResult.OK) { textBox3.Text = "[" + prison.GetEmployerId() + "] " + prison.GetEmployerName(); //textBox1.Text = LotId(); textBox1.Text = ProductionId(); } }
private void txtJ_Click(object sender, EventArgs e) { Dialog.frmDialogSearchEmployer prison = new Dialog.frmDialogSearchEmployer(); prison.ShowDialog(); if (prison.DialogResult == DialogResult.OK) { txtJ.Text = "[" + prison.GetEmployerId() + "] " + prison.GetEmployerName(); if (Class.Function.GetTextIdx(txtJ.Text) != "") { string sqlpb = "select case when pwpb <> 0 then pwpb else pwpbmonth end as pwpb from ProductionPrisonWage where employerid = " + Class.Function.GetTextIdx(txtJ.Text) + " and pwpb <> 0 "; txtPwPB.Text = Class.DBConnString.clsDB.QueryExecuteScalarNonAlert(sqlpb) == null ? "0" : Class.DBConnString.clsDB.QueryExecuteScalarNonAlert(sqlpb); string sqlship = "select pwship from ProductionPrisonWage where employerid = " + Class.Function.GetTextIdx(txtJ.Text) + " and pwship <> 0 "; txtPwShip.Text = Class.DBConnString.clsDB.QueryExecuteScalarNonAlert(sqlship) == null ? "0" : Class.DBConnString.clsDB.QueryExecuteScalarNonAlert(sqlship); } Unpay(); } }
private void txtJ_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Dialog.frmDialogSearchEmployer ee = new Dialog.frmDialogSearchEmployer(txtJ.Text); ee.ShowDialog(); if (ee.DialogResult == DialogResult.OK) { txtJ.Text = "[" + ee.GetEmployerId() + "] " + ee.GetEmployerName() + ""; } //if (from == 1) //{ //LoadData(" where e.employerid = " + ee.GetEmployerId()); //} //else { //LoadDataFail(" where e.employerid = " + ee.GetEmployerId()); //} } }
private void txtJ_Click(object sender, EventArgs e) { Dialog.frmDialogSearchEmployer prison = new Dialog.frmDialogSearchEmployer(); prison.ShowDialog(); if (prison.DialogResult == DialogResult.OK) { txtJ.Text = "[" + prison.GetEmployerId() + "] " + prison.GetEmployerName(); //textBox1.Text = LotId(); txtNo.Text = OutstandingFailId(); //employerid = prison.GetEmployerId(); } }
private void txtJ_Click(object sender, EventArgs e) { Dialog.frmDialogSearchEmployer prison = new Dialog.frmDialogSearchEmployer(); prison.ShowDialog(); if (prison.DialogResult == DialogResult.OK) { txtJ.Text = "[" + prison.GetEmployerId() + "] " + prison.GetEmployerName(); } }
private void textBox3_KeyDown(object sender, KeyEventArgs e) { Dialog.frmDialogSearchEmployer prison = new Dialog.frmDialogSearchEmployer(); prison.ShowDialog();//เรียกหน้าเลือกเรือนจำ if (prison.DialogResult == DialogResult.OK) { textBox3.Text = "[" + prison.GetEmployerId() + "] " + prison.GetEmployerName();//เก็บข้อมูลเรือนจำ textBox1.Text = ProductionId(); } }