功能图标添加
No files matched your search
@@ -413,6 +413,12 @@
|
|||||||
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.css" />
|
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.css" />
|
||||||
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.min.css" />
|
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.min.css" />
|
||||||
<Content Include="Fonts\font-awesome-4.7.0\fonts\fontawesome-webfont.svg" />
|
<Content Include="Fonts\font-awesome-4.7.0\fonts\fontawesome-webfont.svg" />
|
||||||
|
<Resource Include="Lmage\IconParkPauseOne.png" />
|
||||||
|
<Resource Include="Lmage\IconParkPlay.png" />
|
||||||
|
<Resource Include="Lmage\IconParkStopwatch.png" />
|
||||||
|
<Resource Include="Lmage\IconParkLock.png" />
|
||||||
|
<Resource Include="Lmage\Manual.png" />
|
||||||
|
<Resource Include="Lmage\Hand.png" />
|
||||||
<Resource Include="Lmage\link.png" />
|
<Resource Include="Lmage\link.png" />
|
||||||
<Resource Include="Lmage\LOCK.png" />
|
<Resource Include="Lmage\LOCK.png" />
|
||||||
<Resource Include="Lmage\inf.png" />
|
<Resource Include="Lmage\inf.png" />
|
||||||
|
|||||||
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
@@ -58,52 +58,90 @@
|
|||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Rectangle Margin="0,0,0,0" Fill="#FFCCCCCC" VerticalAlignment="Bottom" Height="40"/>
|
<Rectangle Margin="0,0,0,0" Fill="#FFCCCCCC" VerticalAlignment="Bottom" Height="40"/>
|
||||||
<RadioButton Content="{x:Static lang:Resources.WorkOrder}" x:Name="Work_Order" Tag=""
|
<RadioButton Content="{x:Static lang:Resources.WorkOrder}"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="0,0,0,0"
|
x:Name="Work_Order" Tag=""
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page"/>
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
<RadioButton Content="{x:Static lang:Resources.TechnologicalProcess}" x:Name="Technological_Process" Tag=""
|
HorizontalAlignment="Left" Height="40" Margin="0,0,0,0"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="200,0,0,0"
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page"/>
|
Checked="RadioButton_Page"/>
|
||||||
<RadioButton Content="{x:Static lang:Resources.CurveDiagram}" x:Name="Curve_Diagram" Tag=""
|
<RadioButton Content="{x:Static lang:Resources.TechnologicalProcess}"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="400,0,0,0"
|
x:Name="Technological_Process" Tag=""
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page"/>
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
<RadioButton Content="{x:Static lang:Resources.EquipmentSimulation}" x:Name="Equipment_Simulation" Tag=""
|
HorizontalAlignment="Left" Height="40" Margin="200,0,0,0"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="600,0,0,0"
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page"/>
|
Checked="RadioButton_Page"/>
|
||||||
<RadioButton Content="{x:Static lang:Resources.HistoryRecords}" x:Name="History_Records" Tag=""
|
<RadioButton Content="{x:Static lang:Resources.CurveDiagram}"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="800,0,0,0"
|
x:Name="Curve_Diagram" Tag=""
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page"/>
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
<RadioButton Content="{x:Static lang:Resources.Next}" x:Name="Next" Tag=""
|
HorizontalAlignment="Left" Height="40" Margin="400,0,0,0"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Right" Height="40" Margin="0,0,0,0"
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_toolbar" GroupName="toolbar"/>
|
Checked="RadioButton_Page"/>
|
||||||
|
<RadioButton Content="{x:Static lang:Resources.EquipmentSimulation}"
|
||||||
|
x:Name="Equipment_Simulation" Tag=""
|
||||||
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
|
HorizontalAlignment="Left" Height="40" Margin="600,0,0,0"
|
||||||
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
|
Checked="RadioButton_Page"/>
|
||||||
|
<RadioButton Content="{x:Static lang:Resources.HistoryRecords}"
|
||||||
|
x:Name="History_Records" Tag=""
|
||||||
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
|
HorizontalAlignment="Left" Height="40" Margin="800,0,0,0"
|
||||||
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
|
Checked="RadioButton_Page"/>
|
||||||
|
<RadioButton Content="{x:Static lang:Resources.Next}"
|
||||||
|
x:Name="Next" Tag=""
|
||||||
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
|
HorizontalAlignment="Right" Height="40" Margin="0,0,0,0"
|
||||||
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
|
Checked="RadioButton_toolbar" GroupName="toolbar"/>
|
||||||
|
|
||||||
<RadioButton Content="{x:Static lang:Resources.InOut}" x:Name="In_Out" Tag=""
|
<RadioButton Content="{x:Static lang:Resources.InOut}"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="0,0,0,0"
|
x:Name="In_Out" Tag=""
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page" Visibility="Hidden"/>
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
<RadioButton Content="{x:Static lang:Resources.SysSet}" x:Name="Sys_Set" Tag=""
|
HorizontalAlignment="Left" Height="40" Margin="0,0,0,0"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="200,0,0,0"
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page" Visibility="Hidden"/>
|
Checked="RadioButton_Page" Visibility="Hidden"/>
|
||||||
<RadioButton Content="{x:Static lang:Resources.ParameterSet}" x:Name="Parameter_Set" Tag=""
|
<RadioButton Content="{x:Static lang:Resources.SysSet}"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="400,0,0,0"
|
x:Name="Sys_Set" Tag=""
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page" Visibility="Hidden"/>
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
<RadioButton Content="{x:Static lang:Resources.Programgroup}" x:Name="Program_group" Tag=""
|
HorizontalAlignment="Left" Height="40" Margin="200,0,0,0"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="600,0,0,0"
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page" Visibility="Hidden"/>
|
Checked="RadioButton_Page" Visibility="Hidden"/>
|
||||||
<RadioButton Content="{x:Static lang:Resources.EngineerSet}" x:Name="Engineer_Set" Tag=""
|
<RadioButton Content="{x:Static lang:Resources.ParameterSet}"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="800,0,0,0"
|
x:Name="Parameter_Set" Tag=""
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_Page" Visibility="Hidden"/>
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
<RadioButton Content="{x:Static lang:Resources.Previous}" x:Name="Previous" Tag=""
|
HorizontalAlignment="Left" Height="40" Margin="400,0,0,0"
|
||||||
Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Right" Height="40" Margin="0,0,0,0"
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="RadioButton_toolbar" GroupName="toolbar" Visibility="Hidden"/>
|
Checked="RadioButton_Page" Visibility="Hidden"/>
|
||||||
|
<RadioButton Content="{x:Static lang:Resources.Programgroup}"
|
||||||
|
x:Name="Program_group" Tag=""
|
||||||
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
|
HorizontalAlignment="Left" Height="40" Margin="600,0,0,0"
|
||||||
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
|
Checked="RadioButton_Page" Visibility="Hidden"/>
|
||||||
|
<RadioButton Content="{x:Static lang:Resources.EngineerSet}"
|
||||||
|
x:Name="Engineer_Set" Tag=""
|
||||||
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
|
HorizontalAlignment="Left" Height="40" Margin="800,0,0,0"
|
||||||
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
|
Checked="RadioButton_Page" Visibility="Hidden"/>
|
||||||
|
<RadioButton Content="{x:Static lang:Resources.Previous}"
|
||||||
|
x:Name="Previous" Tag=""
|
||||||
|
Style="{DynamicResource RadioButtonStyle}"
|
||||||
|
HorizontalAlignment="Right" Height="40" Margin="0,0,0,0"
|
||||||
|
VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC"
|
||||||
|
Checked="RadioButton_toolbar" GroupName="toolbar" Visibility="Hidden"/>
|
||||||
|
|
||||||
<ContentControl x:Name="container" Margin="0,50,0,40"/>
|
<ContentControl x:Name="container" Margin="0,50,0,40"/>
|
||||||
|
|
||||||
<Grid Margin="0,0,0,0" VerticalAlignment="Top" Height="50" Background="#FFD2D2D2">
|
<Grid Margin="0,0,0,0" VerticalAlignment="Top" Height="50" Background="#FFD2D2D2">
|
||||||
<TextBox Text="{x:Static lang:Resources.Temperature}" HorizontalAlignment="Left" Height="20" Margin="0,0,0,0"
|
<TextBox Text="{x:Static lang:Resources.Temperature}"
|
||||||
|
HorizontalAlignment="Left" Height="20" Margin="0,0,0,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="100" FontSize="12"
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="100" FontSize="12"
|
||||||
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
||||||
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
||||||
<TextBox Text="{x:Static lang:Resources.WorkOrderNumder}" HorizontalAlignment="Left" Height="20" Margin="100,0,5,0"
|
<TextBox Text="{x:Static lang:Resources.WorkOrderNumder}"
|
||||||
|
HorizontalAlignment="Left" Height="20" Margin="100,0,5,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="100" FontSize="12"
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="100" FontSize="12"
|
||||||
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
||||||
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
||||||
@@ -117,17 +155,37 @@
|
|||||||
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
||||||
<TextBox Text="{Binding Status_Str}" HorizontalAlignment="Center" Height="50" Margin="0,0,0,0"
|
<TextBox Text="{Binding Status_Str}" HorizontalAlignment="Center" Height="50" Margin="0,0,0,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="700" FontSize="35"
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="700" FontSize="35"
|
||||||
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}" Foreground="{Binding Status_Str_coloer}"
|
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
||||||
|
Foreground="{Binding Status_Str_coloer}"
|
||||||
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
||||||
<TextBox Text="{Binding Sys_Time}" HorizontalAlignment="Right" Height="50" Margin="0,0,5,0"
|
<TextBox Text="{Binding Sys_Time}" HorizontalAlignment="Right" Height="50" Margin="0,0,5,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
||||||
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
Background="{x:Null}" BorderBrush="{x:Null}" SelectionBrush="{x:Null}"
|
||||||
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" IsEnabled="False"/>
|
||||||
<Image HorizontalAlignment="Right" Height="40" VerticalAlignment="Top" Width="40" Margin="0,5,220,5"
|
<StackPanel Margin="0,0,170,0" HorizontalAlignment="Right"
|
||||||
Source="/Lmage/link.png" Visibility="{Binding Link_bool}"/>
|
Orientation="Horizontal" FlowDirection="RightToLeft">
|
||||||
<Image HorizontalAlignment="Right" Height="40" VerticalAlignment="Top" Width="40" Margin="0,5,270,5"
|
<Image Height="40" VerticalAlignment="Top" Width="40">
|
||||||
Source="/Lmage/LOCK.png" Visibility="{Binding Lock_bool}" MouseLeftButtonDown="Image_MouseLeftButtonDown"
|
<Image.Style>
|
||||||
MouseLeftButtonUp="Image_MouseLeftButtonUp"/>
|
<Style TargetType="Image">
|
||||||
|
<Setter Property="Source" Value="/Lmage/IconParkStopwatch.png"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding WORK_run}" Value="1">
|
||||||
|
<Setter Property="Source" Value="/Lmage/IconParkPauseOne.png"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding WORK_run}" Value="2">
|
||||||
|
<Setter Property="Source" Value="/Lmage/IconParkPlay.png"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Image.Style>
|
||||||
|
</Image>
|
||||||
|
<Image Height="40" VerticalAlignment="Top" Width="40" Source="/Lmage/IconParkLock.png"
|
||||||
|
Visibility="{Binding Lock_bool}" MouseLeftButtonDown="Image_MouseLeftButtonDown"
|
||||||
|
MouseLeftButtonUp="Image_MouseLeftButtonUp"/>
|
||||||
|
<Image Height="40" VerticalAlignment="Top" Width="40" Source="/Lmage/link.png"
|
||||||
|
Visibility="{Binding Link_bool}"/>
|
||||||
|
<Image Height="40" VerticalAlignment="Top" Width="40" Source="/Lmage/Manual.png"/>
|
||||||
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -135,6 +135,12 @@ namespace DyeingComputer.ViewModel
|
|||||||
OnPropertyChanged("Status_Str_coloer");
|
OnPropertyChanged("Status_Str_coloer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public int wORK_run; //显示状态
|
||||||
|
public int WORK_run //通知UI控件参数改变
|
||||||
|
{
|
||||||
|
get { return wORK_run; }
|
||||||
|
set { wORK_run = value; OnPropertyChanged("WORK_run"); }
|
||||||
|
}
|
||||||
public string work_Temp; //显示温度
|
public string work_Temp; //显示温度
|
||||||
public string Work_Temp //通知UI控件参数改变
|
public string Work_Temp //通知UI控件参数改变
|
||||||
{
|
{
|
||||||
@@ -790,7 +796,6 @@ namespace DyeingComputer.ViewModel
|
|||||||
break;//PH温度控制
|
break;//PH温度控制
|
||||||
case "093":
|
case "093":
|
||||||
STEP_TIME = Convert.ToInt16(P1);
|
STEP_TIME = Convert.ToInt16(P1);
|
||||||
WORK_RUN = 2;
|
|
||||||
SETP_runtime = true;
|
SETP_runtime = true;
|
||||||
STEP_finish = false;
|
STEP_finish = false;
|
||||||
break;//PH检测
|
break;//PH检测
|
||||||
@@ -826,6 +831,7 @@ namespace DyeingComputer.ViewModel
|
|||||||
private int TANK1_REDYE,TANK1_STEP, TANK2_REDYE, TANK2_STEP, TANK3_REDYE, TANK3_STEP;
|
private int TANK1_REDYE,TANK1_STEP, TANK2_REDYE, TANK2_STEP, TANK3_REDYE, TANK3_STEP;
|
||||||
void STEP_RUN()
|
void STEP_RUN()
|
||||||
{
|
{
|
||||||
|
WORK_run = WORK_RUN;
|
||||||
if (WORK_RUN == 2)
|
if (WORK_RUN == 2)
|
||||||
{
|
{
|
||||||
if (SETP_runtime && (!STEP_finish))//
|
if (SETP_runtime && (!STEP_finish))//
|
||||||
|
|||||||