| | |
| | | using log4net; |
| | | using PdmSwPlugin.Commmon.Control; |
| | | using PdmSwPlugin.Commmon.Util.UI; |
| | | using PdmSwPlugin.Common; |
| | | using PdmSwPlugin.Common.Entity.DrawAudit; |
| | | using PdmSwPlugin.Common.Entity.Pdm; |
| | | using PdmSwPlugin.Common.Interface; |
| | | using PdmSwPlugin.Common.Setting; |
| | | using PdmSwPlugin.Common.Util; |
| | |
| | | dataSource = new ObservableCollection<DrawAudit>(RefreshList()); |
| | | }); |
| | | } |
| | | |
| | | private void TextBlock_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) |
| | | { |
| | | // 检查是否是双击 |
| | | if (e.ClickCount == 2) |
| | | { |
| | | TextBlock textBlock = sender as TextBlock; |
| | | DrawAudit data = textBlock.DataContext as DrawAudit; |
| | | MaskAdorner.ShowMask(content, "请求中,请稍后..."); |
| | | Task.Run(() => |
| | | { |
| | | try |
| | | { |
| | | Result<List<DrawAuditHis>> res = Client.GetSyncAction<List<DrawAuditHis>>("drawAudit/listTaskHis", new DrawAudit |
| | | { |
| | | id = data.id |
| | | }); |
| | | var datas = res.HandleResult(); |
| | | Dispatcher.Invoke(() => |
| | | { |
| | | //DrawAuditHisWindow window = new DrawAuditHisWindow(this, $"【{bom.partModel}】审核详情", datas); |
| | | RichHisWindow window = new RichHisWindow(this, $"【{data.materialCode}】审核详情", datas); |
| | | |
| | | window.ShowDialog(); |
| | | }); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Logger.Error("Get draw audit history failed.", ex); |
| | | this.Error($"获取审核历史失败!{ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | MaskAdorner.HideMask(content); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |