private void button2_Click(object sender, EventArgs e) { if (this.button2.Text == "--请选择--" || this.button2.Text == "待定") { if (this.comboBox3.SelectedIndex < 0) { return; } A_FZ_Bid bid = new A_FZ_Bid(this, dt_bid.Rows[this.comboBox3.SelectedIndex]["HLX"].ToString(), ClassConstant.DW_ID, DateTime.Now.Year.ToString(), dt_bid.Rows[this.comboBox3.SelectedIndex]["ZBFS"].ToString()); bid.ShowDialog(); } else { MessageBox.Show("该合同已经选择标号!"); } }
private void button10_Click(object sender, EventArgs e) { if (this.hLXTextBox.Tag == null || this.hDWTextBox.Tag.ToString() == null || this.comboBox7.SelectedIndex < 0) { return; } A_FZ_Bid bid = new A_FZ_Bid(this, this.hLXTextBox.Tag.ToString(), this.hDWTextBox.Tag.ToString(), hDATEDateTimePicker.Value.Year.ToString(), this.comboBox7.SelectedItem.ToString()); bid.ShowDialog(); }