sc 2 years ago
parent
commit
656f120984
  1. 3
      MainWindow.xaml.cs
  2. 2
      ViewModel/MainWindowViewModel.cs

3
MainWindow.xaml.cs

@ -545,6 +545,9 @@ namespace formula_manage
private void CP_PRODUCT_CODE_LostFocus(object sender, RoutedEventArgs e) private void CP_PRODUCT_CODE_LostFocus(object sender, RoutedEventArgs e)
{ {
System.Windows.Controls.ComboBox curComboBox = sender as System.Windows.Controls.ComboBox;
string a = curComboBox.Text;
MainWindowViewModel.STUFFdatatemp.Select("ProductCode ='"+ a +"'");
} }
} }

2
ViewModel/MainWindowViewModel.cs

@ -44,6 +44,8 @@ namespace formula_manage.ViewModel
DataTable RRODUCTdataTable = new DataTable(); //建立RRODUCT缓存 DataTable RRODUCTdataTable = new DataTable(); //建立RRODUCT缓存
DataTable RecipedataTable = new DataTable(); //建立Recipe缓存 DataTable RecipedataTable = new DataTable(); //建立Recipe缓存
public static DataTable STUFFdatatemp = new DataTable(); //建立STUFF缓存
public string INIPath = Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "formula.ini"; //配置文件路径 public string INIPath = Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "formula.ini"; //配置文件路径
public string sys_Time; //显示系统时间 public string sys_Time; //显示系统时间
public string Sys_Time //通知UI控件参数改变 public string Sys_Time //通知UI控件参数改变

Loading…
Cancel
Save