Ejemplo n.º 1
0
 private void MenuItem_dgmenu1_InOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.DataGrid_ProcessOut.SelectedCells.Count > 0)
     {
         Model.ProductionManagement_OutsideProcessModel d = this.DataGrid_ProcessOut.SelectedCells[0].Item as Model.ProductionManagement_OutsideProcessModel;
         PopUpEvent.OnShowPopUp(new Page_ProductionManagement_OutsideProcess(false, d.ProductName, d.ProcessorsName));
     }
 }
Ejemplo n.º 2
0
 private void MenuItem_dgmenu1_Del_Click(object sender, RoutedEventArgs e)
 {
     if (this.DataGrid_ProcessOut.SelectedCells.Count > 0)
     {
         Model.ProductionManagement_OutsideProcessModel d = this.DataGrid_ProcessOut.SelectedCells[0].Item as Model.ProductionManagement_OutsideProcessModel;
         if (MessageBox.Show("确认删除出单:" + d.Id + "?", "警告", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
         {
             new ViewModel.ProductionManagement.OutsideProcessConsole().Delete(d.Guid);
             InitializeOutsideProcessDataGrid();
         }
     }
 }