private void btn_sp(object sender, EventArgs e) { if (this.hCODETextBox.Text == "") { MessageBox.Show("请先输入合同号"); return; } A_HT_SP_OP sp = new A_HT_SP_OP(this.hCODETextBox.Text, 1, this); sp.MdiParent = this.MdiParent; sp.Show(); //this.tabControl1.SelectTab(0); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.hCODETextBox.Text == "") { MessageBox.Show("请先输入合同号"); return; } A_HT_SP_OP sp = new A_HT_SP_OP(this.hCODETextBox.Text, 3, this, this.dataGridView1.SelectedRows[0]); sp.MdiParent = this.MdiParent; sp.Show(); }