|
@ -67,7 +67,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
dyelot= MainWindowViewModel.dyelot; |
|
|
dyelot= MainWindowViewModel.dyelot; |
|
|
machin_LOG.Text = MainWindowViewModel.machin_LOG; |
|
|
machin_LOG.Text = MainWindowViewModel.machin_LOG; |
|
|
IsInteractive = false; |
|
|
IsInteractive = false; |
|
|
DATA_view(); |
|
|
DATA_view(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private string machine; |
|
|
private string machine; |
|
@ -75,6 +75,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
private string dyelot; |
|
|
private string dyelot; |
|
|
private int machines_info=0; |
|
|
private int machines_info=0; |
|
|
public static string Sys_log; |
|
|
public static string Sys_log; |
|
|
|
|
|
public static DataTable Product_DAT = new DataTable(); |
|
|
|
|
|
public static bool Product_bool = false; |
|
|
|
|
|
|
|
|
private void Griddata_SelectionChanged(object sender, SelectionChangedEventArgs e)//设备列表
|
|
|
private void Griddata_SelectionChanged(object sender, SelectionChangedEventArgs e)//设备列表
|
|
|
{ |
|
|
{ |
|
@ -122,7 +124,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void Gridstep_SelectionChanged(object sender, SelectionChangedEventArgs e) |
|
|
private void Gridstep_SelectionChanged(object sender, SelectionChangedEventArgs e)//步骤定位
|
|
|
{ |
|
|
{ |
|
|
TechnologicalProcess_bool = false; |
|
|
TechnologicalProcess_bool = false; |
|
|
int rownum = Gridstep.SelectedIndex;//获取鼠标选中行并定义变量
|
|
|
int rownum = Gridstep.SelectedIndex;//获取鼠标选中行并定义变量
|
|
@ -145,7 +147,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
rdp.Visibility = Visibility.Collapsed; |
|
|
rdp.Visibility = Visibility.Collapsed; |
|
|
Picture.Visibility = Visibility.Collapsed; |
|
|
Picture.Visibility = Visibility.Collapsed; |
|
|
}//信息
|
|
|
}//信息
|
|
|
|
|
|
|
|
|
private async Task<bool> PingTest(string ip) |
|
|
private async Task<bool> PingTest(string ip) |
|
|
{ |
|
|
{ |
|
|
bool result = false; |
|
|
bool result = false; |
|
@ -210,12 +211,19 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int index = Convert.ToInt16(drEmployee.Field<object>("ID")); |
|
|
|
|
|
MainWindowViewModel.stringQueue.Enqueue(new MainWindowViewModel.QueueString |
|
|
|
|
|
{ |
|
|
|
|
|
ID = index, |
|
|
|
|
|
DAT = "SC833" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", "ID='" + index + "'") |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
machines_info = 2; |
|
|
machines_info = 2; |
|
|
log.Visibility = Visibility.Visible; |
|
|
log.Visibility = Visibility.Collapsed; |
|
|
rdp.Visibility = Visibility.Collapsed; |
|
|
rdp.Visibility = Visibility.Collapsed; |
|
|
Picture.Visibility = Visibility.Collapsed; |
|
|
Picture.Visibility = Visibility.Visible; |
|
|
DyelotView dyelotView = new DyelotView(); |
|
|
DyelotView dyelotView = new DyelotView(); |
|
|
dyelotView.Dyelot(workOrder); |
|
|
dyelotView.DyelotDatatable(Product_DAT); |
|
|
Picture.Content = dyelotView; |
|
|
Picture.Content = dyelotView; |
|
|
}//单据
|
|
|
}//单据
|
|
|
private void ListViewItem_LOCK_XML(object sender, MouseButtonEventArgs e) |
|
|
private void ListViewItem_LOCK_XML(object sender, MouseButtonEventArgs e) |
|
@ -249,7 +257,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
MessageBox.Show(machine + Properties.Resources.user_unlock, "800", MessageBoxButton.OK, MessageBoxImage.Information); |
|
|
MessageBox.Show(machine + Properties.Resources.user_unlock, "800", MessageBoxButton.OK, MessageBoxImage.Information); |
|
|
} |
|
|
} |
|
|
}//锁定
|
|
|
}//锁定
|
|
|
|
|
|
|
|
|
private void ListViewItem_Curve(object sender, MouseButtonEventArgs e) |
|
|
private void ListViewItem_Curve(object sender, MouseButtonEventArgs e) |
|
|
{ |
|
|
{ |
|
|
log.Visibility = Visibility.Collapsed; |
|
|
log.Visibility = Visibility.Collapsed; |
|
@ -258,6 +265,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
Picture.Content = new View.CurveDiagram(true, "", "", "", workOrder); |
|
|
Picture.Content = new View.CurveDiagram(true, "", "", "", workOrder); |
|
|
machines_info = 3; |
|
|
machines_info = 3; |
|
|
}//曲线
|
|
|
}//曲线
|
|
|
|
|
|
|
|
|
private void ListViewItem_Resume(object sender, MouseButtonEventArgs e) |
|
|
private void ListViewItem_Resume(object sender, MouseButtonEventArgs e) |
|
|
{ |
|
|
{ |
|
|
IsInteractive = false; |
|
|
IsInteractive = false; |
|
@ -356,7 +364,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
|
|
|
|
|
|
TechnologicalProcess_bool = true; |
|
|
TechnologicalProcess_bool = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ListViewItem_Jump(object sender, MouseButtonEventArgs e) |
|
|
private void ListViewItem_Jump(object sender, MouseButtonEventArgs e) |
|
|
{ |
|
|
{ |
|
|
Dictionary<string, object> dat_821 = new Dictionary<string, object>(); |
|
|
Dictionary<string, object> dat_821 = new Dictionary<string, object>(); |
|
@ -541,13 +548,12 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
}//输送状态
|
|
|
}//输送状态
|
|
|
else if (machines_info == 2) |
|
|
else if (machines_info == 2 && Product_bool) |
|
|
{ |
|
|
{ |
|
|
MainWindowViewModel.stringQueue.Enqueue(new MainWindowViewModel.QueueString |
|
|
Product_bool = false; |
|
|
{ |
|
|
DyelotView dyelotView = new DyelotView(); |
|
|
ID = index, |
|
|
dyelotView.DyelotDatatable(Product_DAT); |
|
|
DAT = "SC833" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", "ID='" + index + "'") |
|
|
Picture.Content = dyelotView; |
|
|
}); |
|
|
|
|
|
}//单据
|
|
|
}//单据
|
|
|
|
|
|
|
|
|
MainWindowViewModel.stringQueue.Enqueue(new MainWindowViewModel.QueueString |
|
|
MainWindowViewModel.stringQueue.Enqueue(new MainWindowViewModel.QueueString |
|
@ -626,8 +632,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
technologicalProcess_View = value; |
|
|
technologicalProcess_View = value; |
|
|
RaisePropertyChanged("TechnologicalProcess_View"); |
|
|
RaisePropertyChanged("TechnologicalProcess_View"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ObservableCollection<TechnologicalM> TechnologicalMachine_View |
|
|
public ObservableCollection<TechnologicalM> TechnologicalMachine_View |
|
|
{ |
|
|
{ |
|
|
get { return technologicalMachine_View; } |
|
|
get { return technologicalMachine_View; } |
|
|