|
|
|
using MaterialDesignThemes.Wpf;
|
|
|
|
using OpenTK.Graphics.ES11;
|
|
|
|
using SunlightCentralizedControlManagement_SCCM_.ViewModel;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Data;
|
|
|
|
using System.Linq;
|
|
|
|
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.Input;
|
|
|
|
using System.Windows.Markup;
|
|
|
|
using System.Windows.Media;
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
using System.Xaml;
|
|
|
|
|
|
|
|
namespace SunlightCentralizedControlManagement_SCCM_.View
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// CurveView.xaml 的交互逻辑
|
|
|
|
/// </summary>
|
|
|
|
public partial class CurveView : UserControl
|
|
|
|
{
|
|
|
|
private readonly UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "SCCM.ini");
|
|
|
|
|
|
|
|
public CurveView()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
DataContext = new CurveDiagramViewModel();
|
|
|
|
|
|
|
|
Sdatepicker.Language = XmlLanguage.GetLanguage(Configini.IniReadvalue("SYS", "Language"));
|
|
|
|
}
|
|
|
|
|
|
|
|
public static object Selet_Machines(DataTable DB, string name, int key)//查询
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
lock (DB)
|
|
|
|
{
|
|
|
|
DataRow drEmployee = DB.Rows[key];
|
|
|
|
object index = drEmployee.Field<object>(name);
|
|
|
|
return index;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception)
|
|
|
|
{
|
|
|
|
// LogGing.LogGingDATA("SDTD:" + ex.ToString());
|
|
|
|
return "ERR";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private void UserControl_Loaded(object sender, RoutedEventArgs e)
|
|
|
|
{
|
|
|
|
Griddata.ItemsSource = MainWindowViewModel.Machines.DefaultView;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void WorkOrderNumder_Click(object sender, RoutedEventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void ListViewItem_Before(object sender, MouseButtonEventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void ListViewItem_Today(object sender, MouseButtonEventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void ListViewItem_DayAfter(object sender, MouseButtonEventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Griddata_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void GridWorkOrder_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|