using ScottPlot.TickGenerators.TimeUnits;
using SunlightCentralizedControlManagement_SCCM_.ViewModel;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Threading;
using System.Xml.Linq;
using TouchSocket.Core;
using static SunlightCentralizedControlManagement_SCCM_.UserClass.SqliteHelper;
using static SunlightCentralizedControlManagement_SCCM_.ViewModel.MainWindowViewModel;
namespace SunlightCentralizedControlManagement_SCCM_.WindowsView
{
///
/// ViewProgram.xaml 的交互逻辑
///
public partial class UserWorkOrder : Window
{
public DataTable WorkOrderTable = new DataTable();//信息
private string WorkOrder_=null;
private string machine_ = null;
public UserWorkOrder()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
WorkOrder.ItemsSource = WorkOrderTable.DefaultView;
}
private void Start_Click(object sender, RoutedEventArgs e)//确认
{
Dictionary dat_821 = new Dictionary();
dat_821.Clear();
dat_821.Add("INSTRUCTION", "START");
dat_821.Add("WorkOrder", WorkOrder_);
DataRow drEmployee = MainWindowViewModel.Machines.Select("NAME='" + machine_ + "'").First();
int index = Convert.ToInt16(drEmployee.Field