Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightCentralizedControlManagement
This commit is contained in:
commit
927cd77b79
6 files changed
+23
-29
No files matched your search
@@ -19,7 +19,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.ConvertMoels
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string Staten = null;
|
|
||||||
string i = value.ToString();
|
string i = value.ToString();
|
||||||
|
|
||||||
if (i == "101") return "Gray";
|
if (i == "101") return "Gray";
|
||||||
|
|||||||
@@ -915,4 +915,13 @@
|
|||||||
<data name="Group" xml:space="preserve">
|
<data name="Group" xml:space="preserve">
|
||||||
<value>組</value>
|
<value>組</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="DayAfter" xml:space="preserve">
|
||||||
|
<value>後一天</value>
|
||||||
|
</data>
|
||||||
|
<data name="Before" xml:space="preserve">
|
||||||
|
<value>前一天</value>
|
||||||
|
</data>
|
||||||
|
<data name="Today" xml:space="preserve">
|
||||||
|
<value>今天</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -289,6 +289,9 @@
|
|||||||
<PackageReference Include="System.Management">
|
<PackageReference Include="System.Management">
|
||||||
<Version>8.0.0</Version>
|
<Version>8.0.0</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
<PackageReference Include="System.ObjectModel">
|
||||||
|
<Version>4.3.0</Version>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="TouchSocket">
|
<PackageReference Include="TouchSocket">
|
||||||
<Version>2.1.10</Version>
|
<Version>2.1.10</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
|||||||
+2
-9
@@ -108,15 +108,8 @@
|
|||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
|
|
||||||
<lvc:CartesianChart x:Name="OscChart" MinWidth="400" MinHeight="300" EasingFunction="{x:Null}"
|
<lvc:CartesianChart x:Name="OscChart" MinWidth="400" MinHeight="300" EasingFunction="{x:Null}" ZoomMode="X"
|
||||||
Series="{Binding Series}" YAxes="{Binding YAxes}" XAxes="{Binding XAxes}" Margin="0,500,300,60">
|
Series="{Binding Series}" YAxes="{Binding YAxes}" XAxes="{Binding XAxes}" Margin="0,500,300,60"/>
|
||||||
<lvc:CartesianChart.Style>
|
|
||||||
<Style TargetType="{x:Type lvc:CartesianChart}">
|
|
||||||
<Setter Property="ZoomMode" Value="PanX"/>
|
|
||||||
<Setter Property="ZoomMode" Value="ZoomX"/>
|
|
||||||
</Style>
|
|
||||||
</lvc:CartesianChart.Style>
|
|
||||||
</lvc:CartesianChart>
|
|
||||||
|
|
||||||
<StackPanel x:Name="s1cr" VerticalAlignment="Bottom" Height="60" Background="#FF00204E" Orientation="Horizontal">
|
<StackPanel x:Name="s1cr" VerticalAlignment="Bottom" Height="60" Background="#FF00204E" Orientation="Horizontal">
|
||||||
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
|
|||||||
Griddata.ItemsSource = MainWindowViewModel.Machines.DefaultView;
|
Griddata.ItemsSource = MainWindowViewModel.Machines.DefaultView;
|
||||||
|
|
||||||
Sdatepicker.Text = DateTime.Now.ToString("yyyy/MM/dd");
|
Sdatepicker.Text = DateTime.Now.ToString("yyyy/MM/dd");
|
||||||
|
|
||||||
|
CurveDiagramViewModel.Curve("738891980000");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void WorkOrderNumder_Click(object sender, RoutedEventArgs e)
|
private void WorkOrderNumder_Click(object sender, RoutedEventArgs e)
|
||||||
|
|||||||
@@ -25,30 +25,14 @@ using static SunlightCentralizedControlManagement_SCCM_.UserClass.SqliteHelper;
|
|||||||
using TouchSocket.Core;
|
using TouchSocket.Core;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||||
{
|
{
|
||||||
public class NotifyPropertyBase : INotifyPropertyChanged
|
|
||||||
{
|
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
|
||||||
public void Notify([CallerMemberName] string propName = "")
|
|
||||||
{
|
|
||||||
if (PropertyChanged != null)
|
|
||||||
PropertyChanged(this, new PropertyChangedEventArgs(propName));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void SetProperty<T>(ref T prop, T value, [CallerMemberName] string propertyName = null)
|
|
||||||
{
|
|
||||||
if (EqualityComparer<T>.Default.Equals(prop, value) == false)
|
|
||||||
{
|
|
||||||
prop = value;
|
|
||||||
Notify(propertyName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public partial class CurveDiagramViewModel : ObservableObject//ViewModelBase
|
public partial class CurveDiagramViewModel : ObservableObject//ViewModelBase
|
||||||
{
|
{
|
||||||
public static ISeries[] Series { get; set; }
|
public static ISeries[] Series { get; set; }
|
||||||
|
public static ObservableCollection<ObservableValue> ObservableValues { get; set; }
|
||||||
//x轴时间格式
|
//x轴时间格式
|
||||||
public Axis[] XAxes { get; set; } =
|
public Axis[] XAxes { get; set; } =
|
||||||
{
|
{
|
||||||
@@ -144,7 +128,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
|||||||
|
|
||||||
public CurveDiagramViewModel()
|
public CurveDiagramViewModel()
|
||||||
{
|
{
|
||||||
|
|
||||||
Curve("");
|
Curve("");
|
||||||
}
|
}
|
||||||
public static void Curve(string SYSWorkNumder)
|
public static void Curve(string SYSWorkNumder)
|
||||||
@@ -213,6 +196,10 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
|||||||
STTC_values = new ObservableCollection<DateTimePoint>(STTC_items);
|
STTC_values = new ObservableCollection<DateTimePoint>(STTC_items);
|
||||||
STLC_values = new ObservableCollection<DateTimePoint>(STLC_items);
|
STLC_values = new ObservableCollection<DateTimePoint>(STLC_items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Series = new ISeries[]
|
Series = new ISeries[]
|
||||||
{
|
{
|
||||||
new LineSeries<DateTimePoint>
|
new LineSeries<DateTimePoint>
|
||||||
@@ -337,6 +324,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
|||||||
ScalesYAt = 1,
|
ScalesYAt = 1,
|
||||||
}, //附缸3 液位
|
}, //附缸3 液位
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user