예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                if (MessageBox.Show("是否审核所选记录", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.Yes)
                {
                    MetageFindClass  findClass = new MetageFindClass();
                    OutWeighingClass info      = new OutWeighingClass();

                    for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
                    {
                        info.Id       = dataGridView1.SelectedRows[i].Cells["id"].Value.ToString();
                        info.Assessor = "审核人";
                        findClass.AssessorOutInfo(info);
                    }
                    MessageBox.Show("审核完成");
                    FindInfo();
                }
            }
        }