void 新租赁合同ToolStripMenuItemClick(object sender, EventArgs e) { FormLeaseHT tF = new FormLeaseHT(); tF.Text = "租赁合同-新增"; if (comboBoxProject.SelectedIndex >= 0) { tF.i_ProjectID = Convert.ToInt32(comboBoxProject.SelectedValue); tF.s_ProjectName = comboBoxProject.SelectedText.ToString(); tF.ShowDialog(); //刷新租赁合同显示 RefreshLeaseHT(); } }
void 修改租赁合同ToolStripMenuItemClick(object sender, EventArgs e) { FormLeaseHT tF = new FormLeaseHT(); tF.Text = "租赁合同-修改"; if (comboBoxProject.SelectedIndex >= 0) { tF.i_ProjectID = Convert.ToInt32(comboBoxProject.SelectedValue); tF.s_ProjectName = comboBoxProject.SelectedText.ToString(); tF.i_HTID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["HTID"].Value); tF.ShowDialog(); //刷新租赁合同显示 RefreshLeaseHT(); } }