protected override void save( ) { if (string.IsNullOrEmpty(txtDC004.Text)) { MessageBox.Show("请选择流水等信息"); return; } if (string.IsNullOrEmpty(cmbDC009.Text)) { MessageBox.Show("管控责任人不可为空"); return; } if (string.IsNullOrEmpty(cmbDC011.Text)) { MessageBox.Show("生产监管人不可为空"); return; } getValue( ); gridView1.CloseEditor( ); gridView1.UpdateCurrentRow( ); //gridView2 . CloseEditor ( ); //gridView2 . UpdateCurrentRow ( ); result = _bll.Save(tableView, tableViewOne, _dc, bodyList, coeList, Logins.username); if (result) { MessageBox.Show("成功保存"); coeList.Clear( ); bodyList.Clear( ); UnEnable( ); toolSelect.Enabled = toolAdd.Enabled = toolDelete.Enabled = toolUpdate.Enabled = toolReview.Enabled = toolPrint.Enabled = toolExport.Enabled = toolMaintain.Enabled = toolcopy.Enabled = toolLibrary.Enabled = toolStorage.Enabled = true; toolSave.Enabled = toolCancel.Enabled = false; } else { MessageBox.Show("保存失败"); } base.save( ); }