if (dataGridView1.Rows.Count > 0 && dataGridView1.CurrentRow.Index > -1 && MessageBox.Show("是否要确认?", "询问", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
int enterID = ((VMaterialEnterStore)this.bindingSource1.Current).EnterId;
MaterialEnterStore entity = DataRepository.MaterialEnterStoreProvider.GetByEnterId(enterID);
entity.State = 1;//只是质检通过而已
DataRepository.MaterialEnterStoreProvider.Update(entity);
ShowEnterStore();
ShowEnterStoreDetail();
}
{
int enterID = ((VMaterialEnterStore)this.bindingSource1.Current).EnterId;
MaterialEnterStore entity = DataRepository.MaterialEnterStoreProvider.GetByEnterId(enterID);
entity.State = 1;//只是质检通过而已
DataRepository.MaterialEnterStoreProvider.Update(entity);
ShowEnterStore();
ShowEnterStoreDetail();
}