Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer
This commit is contained in:
commit
f9146d662d
11 files changed
+123
-7
No files matched your search
@@ -98,6 +98,9 @@
|
|||||||
<Compile Include="ViewModel\MainWindowViewModel.cs" />
|
<Compile Include="ViewModel\MainWindowViewModel.cs" />
|
||||||
<Compile Include="ViewModel\ViewModelLocator.cs" />
|
<Compile Include="ViewModel\ViewModelLocator.cs" />
|
||||||
<Compile Include="ViewModel\WorkOrderViewModel.cs" />
|
<Compile Include="ViewModel\WorkOrderViewModel.cs" />
|
||||||
|
<Compile Include="ViewWorkstep\TemperatureControl.xaml.cs">
|
||||||
|
<DependentUpon>TemperatureControl.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="View\CurveDiagramView.xaml.cs">
|
<Compile Include="View\CurveDiagramView.xaml.cs">
|
||||||
<DependentUpon>CurveDiagramView.xaml</DependentUpon>
|
<DependentUpon>CurveDiagramView.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -149,6 +152,10 @@
|
|||||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Page Include="ViewWorkstep\TemperatureControl.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="View\CurveDiagramView.xaml">
|
<Page Include="View\CurveDiagramView.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -277,7 +284,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Model\" />
|
<Folder Include="Model\" />
|
||||||
<Folder Include="ViewWorkstep\" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommonServiceLocator">
|
<PackageReference Include="CommonServiceLocator">
|
||||||
|
|||||||
Generated
+18
@@ -375,6 +375,15 @@ namespace DyeingComputer.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 NO 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string NO {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("NO", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 NotExecuted 的本地化字符串。
|
/// 查找类似 NotExecuted 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -716,5 +725,14 @@ namespace DyeingComputer.Properties {
|
|||||||
return ResourceManager.GetString("WorkOrderNumder", resourceCulture);
|
return ResourceManager.GetString("WorkOrderNumder", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 YES 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string YES {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("YES", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -336,4 +336,10 @@
|
|||||||
<data name="Function" xml:space="preserve">
|
<data name="Function" xml:space="preserve">
|
||||||
<value>Function</value>
|
<value>Function</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="NO" xml:space="preserve">
|
||||||
|
<value>NO</value>
|
||||||
|
</data>
|
||||||
|
<data name="YES" xml:space="preserve">
|
||||||
|
<value>YES</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -336,4 +336,10 @@
|
|||||||
<data name="Invalidfeatures" xml:space="preserve">
|
<data name="Invalidfeatures" xml:space="preserve">
|
||||||
<value>Invalid features</value>
|
<value>Invalid features</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="NO" xml:space="preserve">
|
||||||
|
<value>NO</value>
|
||||||
|
</data>
|
||||||
|
<data name="YES" xml:space="preserve">
|
||||||
|
<value>YES</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -336,4 +336,10 @@
|
|||||||
<data name="Function" xml:space="preserve">
|
<data name="Function" xml:space="preserve">
|
||||||
<value>功能</value>
|
<value>功能</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="NO" xml:space="preserve">
|
||||||
|
<value>否</value>
|
||||||
|
</data>
|
||||||
|
<data name="YES" xml:space="preserve">
|
||||||
|
<value>是</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -336,4 +336,10 @@
|
|||||||
<data name="Function" xml:space="preserve">
|
<data name="Function" xml:space="preserve">
|
||||||
<value>機能</value>
|
<value>機能</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="NO" xml:space="preserve">
|
||||||
|
<value>否</value>
|
||||||
|
</data>
|
||||||
|
<data name="YES" xml:space="preserve">
|
||||||
|
<value>是</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<UserControl x:Class="DyeingComputer.ViewWorkstep.TemperatureControl"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:DyeingComputer.ViewWorkstep"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="345" d:DesignWidth="390">
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
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.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace DyeingComputer.ViewWorkstep
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TemperatureControl.xaml 的交互逻辑
|
||||||
|
/// </summary>
|
||||||
|
public partial class TemperatureControl : UserControl
|
||||||
|
{
|
||||||
|
public TemperatureControl()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DyeingComputer.Windows"
|
xmlns:local="clr-namespace:DyeingComputer.Windows"
|
||||||
|
xmlns:lang="clr-namespace:DyeingComputer.Properties"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
ResizeMode ="NoResize"
|
ResizeMode ="NoResize"
|
||||||
@@ -12,7 +13,7 @@
|
|||||||
<Grid FocusManager.FocusedElement="{Binding ElementName=Boxx}">
|
<Grid FocusManager.FocusedElement="{Binding ElementName=Boxx}">
|
||||||
<TextBox x:Name="Boxx" Height="40" Margin="20,10,20,0" VerticalAlignment="Top" FontSize="26"
|
<TextBox x:Name="Boxx" Height="40" Margin="20,10,20,0" VerticalAlignment="Top" FontSize="26"
|
||||||
MaxLines="1" BorderThickness="3,3,3,3" ClipToBounds="True"/>
|
MaxLines="1" BorderThickness="3,3,3,3" ClipToBounds="True"/>
|
||||||
<Button Content="YES" HorizontalAlignment="Left" Height="35" Margin="50,70,0,5" VerticalAlignment="Bottom" Width="80" Click="YES_Click"/>
|
<Button Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Left" Height="35" Margin="50,70,0,5" VerticalAlignment="Bottom" Width="80" Click="YES_Click"/>
|
||||||
<Button Content="NO" HorizontalAlignment="Right" Height="35" Margin="0,70,50,5" VerticalAlignment="Bottom" Width="80" Click="NO_Click"/>
|
<Button Content="{x:Static lang:Resources.NO}" HorizontalAlignment="Right" Height="35" Margin="0,70,50,5" VerticalAlignment="Bottom" Width="80" Click="NO_Click"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
+21
-4
@@ -8,15 +8,32 @@
|
|||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
ResizeMode="NoResize"
|
ResizeMode="NoResize"
|
||||||
Title="SUNLIGHT 800" Height="450" Width="400">
|
Title="SUNLIGHT 800" Height="400" Width="400">
|
||||||
<Grid FocusManager.FocusedElement="{Binding ElementName=box}">
|
<Grid FocusManager.FocusedElement="{Binding ElementName=box}">
|
||||||
<TextBlock Text="{x:Static lang:Resources.Code}" HorizontalAlignment="Left" Height="30" Margin="10,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
<TextBlock Text="{x:Static lang:Resources.Code}" HorizontalAlignment="Left" Height="30" Margin="10,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
<TextBlock Text="{x:Static lang:Resources.Function}" HorizontalAlignment="Left" Height="30" Margin="10,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
<TextBlock Text="{x:Static lang:Resources.Function}" HorizontalAlignment="Left" Height="30" Margin="10,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
<ComboBox x:Name="boxID" HorizontalAlignment="Right" Height="30" Margin="0,60,10,0" VerticalAlignment="Top" Width="230" FontSize="20" Text="12345125" SelectionChanged="BoxID_SelectionChanged"/>
|
<ComboBox x:Name="boxID" HorizontalAlignment="Right" Height="30" Margin="0,60,10,0" VerticalAlignment="Top" Width="230" FontSize="20" Text="12345125" SelectionChanged="BoxID_SelectionChanged"/>
|
||||||
<TextBox x:Name="boxNAME" HorizontalAlignment="Right" Height="30" Margin="0,20,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
<TextBox x:Name="boxNAME" HorizontalAlignment="Right" Height="30" Margin="0,20,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||||
TextChanged="TextBox_TextChanged" PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
TextChanged="TextBox_TextChanged" PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
||||||
<Grid Margin="5,100,5,5">
|
|
||||||
<ContentControl x:Name="container"/>
|
<TextBlock x:Name="P1N" HorizontalAlignment="Left" Height="30" Margin="10,120,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
</Grid>
|
<TextBox x:Name="P1" HorizontalAlignment="Right" Height="30" Margin="0,120,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||||
|
PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
||||||
|
<TextBlock x:Name="P2N" HorizontalAlignment="Left" Height="30" Margin="10,155,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
|
<TextBox x:Name="P2" HorizontalAlignment="Right" Height="30" Margin="0,155,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||||
|
PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
||||||
|
<TextBlock x:Name="P3N" HorizontalAlignment="Left" Height="30" Margin="10,190,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
|
<TextBox x:Name="P3" HorizontalAlignment="Right" Height="30" Margin="0,190,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||||
|
PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
||||||
|
<TextBlock x:Name="P4N" HorizontalAlignment="Left" Height="30" Margin="10,225,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
|
<TextBox x:Name="P4" HorizontalAlignment="Right" Height="30" Margin="0,225,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||||
|
PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
||||||
|
<TextBlock x:Name="P5N" HorizontalAlignment="Left" Height="30" Margin="10,260,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
|
||||||
|
<TextBox x:Name="P5" HorizontalAlignment="Right" Height="30" Margin="0,260,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
||||||
|
PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
||||||
|
|
||||||
|
<Button Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Left" Height="35" Margin="50,70,0,5" VerticalAlignment="Bottom" Width="80" Click="YES_Click"/>
|
||||||
|
<Button Content="{x:Static lang:Resources.NO}" HorizontalAlignment="Right" Height="35" Margin="0,70,50,5" VerticalAlignment="Bottom" Width="80" Click="NO_Click"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -94,5 +94,15 @@ namespace DyeingComputer.Windows
|
|||||||
boxNAME.Text = a.ElementAt(i);
|
boxNAME.Text = a.ElementAt(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void YES_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void NO_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
this.Close(); //关闭窗口
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user