Beispiel #1
0
 /// <summary>
 /// 生产线边空料架返回
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnNullCartBack_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("是否要开始生产线边空料架返回?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.Yes)
     {
         GeelyPTL.Dialogs.SelectWorkStationlWindow dlg = new GeelyPTL.Dialogs.SelectWorkStationlWindow(2);
         dlg.ShowDialog();
         if (dlg.InitWorkStationIds.Count > 0)
         {
             string result = DistributingTaskGenerator.Instance.GeneratePTLNullCartBackTask(dlg.InitWorkStationIds);
             MessageBox.Show(result);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 生产线边清线
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnProductAreaClear_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("是否要开始生产线边清线?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.Yes)
     {
         GeelyPTL.Dialogs.SelectWorkStationlWindow dlg = new GeelyPTL.Dialogs.SelectWorkStationlWindow(1);
         dlg.ShowDialog();
         if (dlg.InitWorkStationIds.Count > 0)
         {
             string result = DistributingTaskGenerator.Instance.GenerateBatchProductInToOutTask(dlg.InitWorkStationIds, true);
             MessageBox.Show(result);
         }
     }
 }