| | |
| | | GetAuditHisDetailAndOpen(da); |
| | | } |
| | | |
| | | private void Reback_Click(object sender, RoutedEventArgs e) |
| | | { |
| | | Button btn = sender as Button; |
| | | DrawAudit da = btn.DataContext as DrawAudit; |
| | | MessageBoxResult mr = MessageBox.Show($"确定撤销物料【{da.materialCode}】的图纸审批吗?", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
| | | if (mr == MessageBoxResult.OK) |
| | | { |
| | | MaskAdorner.ShowMask(content, "请求中,请稍后..."); |
| | | Task.Run(() => |
| | | { |
| | | try |
| | | { |
| | | Result<List<DrawAuditHis>> res = Client.PostSyncAction<List<DrawAuditHis>>(new DrawAudit |
| | | { |
| | | id = da.id, |
| | | requestUserId = PdmUser.LoginUser.id |
| | | }, "drawAudit/back"); |
| | | res.HandleResult(); |
| | | Dispatcher.Invoke(() => |
| | | { |
| | | dataSource = new ObservableCollection<DrawAudit>(RefreshList()); |
| | | }); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Logger.Error("Reback Draw Audit Failed.", ex); |
| | | this.Error($"撤销申请失败!{ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | MaskAdorner.HideMask(content); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | private string GetRealFilePath(string dbPath) |
| | | { |
| | | string fileName = Path.GetFileName(dbPath); |