void 修改记录ToolStripMenuItemClick(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow != null)
     {
         int        i_CommRecordID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["CommRecordID"].Value.ToString());
         FormRecord tF             = new FormRecord();
         tF.Text           = "材料记录-修改";
         tF.i_CommRecordID = i_CommRecordID;
         tF.ShowDialog();
         RefreshDataGridView1();
     }
 }
        void 新记录ToolStripMenuItemClick(object sender, EventArgs e)
        {
            //
            FormRecord tF = new FormRecord();

            tF.Text = "材料记录-新增";
            int i_ProjectID, i_SupplierID;

            i_ProjectID  = Convert.ToInt32(comboBoxProject.SelectedValue);
            i_SupplierID = Convert.ToInt32(comboBoxSupplier.SelectedValue);

            if (i_ProjectID != 0 && i_SupplierID != 0)
            {
                tF.i_ProjectID  = i_ProjectID;
                tF.i_SupplierID = i_SupplierID;
                tF.ShowDialog();
                RefreshDataGridView1();
            }
        }