Esempio n. 1
0
 public void HandleEvent(KeyValuePair <OutStockInfo, CreateOutStockResult> args)
 {
     this.Dispatcher.Invoke((Action)(() => {
         TaskItemControl taskControl = new TaskItemControl(new WCSOutStockTaskItemViewModel(args.Key, args.Value));
         ctlWCSTasks.Children.Add(taskControl);
     }));
 }
Esempio n. 2
0
 public void HandleEvent(KeyValuePair <OutsideLogisticsControlArg, OutsideLogisticsControlResult> args)
 {
     this.Dispatcher.BeginInvoke((Action)(() => {
         TaskItemControl taskControl = new TaskItemControl(new WCSLogisticsTaskItemViewModel(args.Key, args.Value));
         ctlWCSTasks.Children.Add(taskControl);
     }));
 }
Esempio n. 3
0
        private void NewStockOut_Click(object sender, RoutedEventArgs e)
        {
            MesStockoutCreateWindow window = new MesStockoutCreateWindow();

            if (window.ShowDialog() != true)
            {
                return;
            }
            TaskItemControl taskControl = new TaskItemControl(new MesStockoutTaskItemViewModel(window.Data));

            ctlMESTasks.Children.Add(taskControl);
        }
Esempio n. 4
0
 private void MesLogisticsControl_Click(object sender, RoutedEventArgs e)
 {
     this.Dispatcher.BeginInvoke((Action)(() => {
         OutsideLogisticsControlArg data = new OutsideLogisticsControlArg()
         {
             LogisticsId = "L" + DateTime.Now.Ticks.ToString(),
             StartPoint = "Start1",
             Destination1 = "Dest1",
             Destination2 = "Dest1",
             InventoryBoxSize = "2"
         };
         TaskItemControl taskControl = new TaskItemControl(new MesLogisticsTaskItemViewModel(data));
         ctlMESTasks.Children.Add(taskControl);
     }));
 }