private void loadDataGrid() { dataTable.Rows.Clear(); if (!string.IsNullOrEmpty(tubeBarcode)) { PCRTestResultViewListController controller = new PCRTestResultViewListController(); controller.QueryTubesPCRTestResultByBarcode(tubeBarcode, dataTable, liquidTypeDictionary); } }
private void loadDataGrid() { string errorMessage = string.Empty; dataTable.Rows.Clear(); if (rotationId != null && rotationId != Guid.Empty) { PCRTestResultViewListController controller = new PCRTestResultViewListController(); controller.QueryTubesPCRTestResult(experimentId, rotationId, dataTable, liquidTypeDictionary, WindowCustomizer.redColor, WindowCustomizer.greenColor, out errorMessage); if (!string.IsNullOrEmpty(errorMessage)) { this.errorMessage_label.Content = errorMessage; } } }
private void deleteRotationPCRTest_button_Click(object sender, RoutedEventArgs e) { MessageBoxResult selectResult = MessageBox.Show("确定删除此轮次下导入的PCR检测结果么?", "系统提示", MessageBoxButton.YesNo); if (selectResult == MessageBoxResult.Yes) { Guid rotationId = pCRTestResultDataGridUserControl.RotationId; bool result = new PCRTestResultViewListController().DeleteRotationPCRTestResult(rotationId); //WanTai.Controller.LogInfoController.AddLogInfo(LogInfoLevelEnum.Operate, "O"PCR?9~S" + " " + (result == true ? "?`x" : "??"), SessionInfo.LoginName, this.GetType().ToString(), SessionInfo.ExperimentID); if (result) { pCRTestResultDataGridUserControl.RotationId = rotationId; pCRTestResultDataGridUserControl.errorMessage_label.Content = string.Empty; pCRTestResultDataGridUserControl.dataGrid_view.DataContext = DateTime.Now; } else { MessageBox.Show("删除失败"); } } }