Ejemplo n.º 1
0
 private void Button_删除_Click(object sender, RoutedEventArgs e)
 {
     if (this.DataGrid_ProcessIn.SelectedCells.Count > 0)
     {
         if (MessageBox.Show("确认删除订单?", "警告", MessageBoxButton.YesNo) == MessageBoxResult.No)
         {
             return;
         }
         ProductManagement_PickingModel m = this.DataGrid_ProcessIn.SelectedCells[0].Item as ProductManagement_PickingModel;
         if (new ViewModel.ProductionManagement.DeliveryProcessInConsole().DeleteOrder(m.Guid))
         {
             InitializeDataGrid();
             HalfProductEvent.OnUpdateDataGrid();
             SparePartsInventoryEvent.OnUpdateDataGrid();
             DeliveryProcessInEvent.OnUpdateDataGrid();
         }
     }
 }
Ejemplo n.º 2
0
 private void RefreshPage()
 {
     HalfProductEvent.OnUpdateDataGrid();
     SparePartsInventoryEvent.OnUpdateDataGrid();
     DeliveryProcessInEvent.OnUpdateDataGrid();
 }