Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
0a9653b5
Commit
0a9653b5
authored
May 20, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 把基于数据库的HeatingHelper 动态区的状态框 与 自动风环的状态框合并
parent
8bde3da5
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
436 additions
and
29 deletions
+436
-29
FLY.FeedbackRenZiJia.UI.Client.csproj
...kRenZiJia.UI.Client/FLY.FeedbackRenZiJia.UI.Client.csproj
+15
-0
PgMenu.xaml
...edbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/PgMenu.xaml
+6
-2
PgMenu.xaml.cs
...ackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/PgMenu.xaml.cs
+8
-0
DynAreaAirRing.xaml
...Y.FeedbackRenZiJia.UI.Client/UiModule/DynAreaAirRing.xaml
+2
-9
DynAreaAirRing2.xaml
....FeedbackRenZiJia.UI.Client/UiModule/DynAreaAirRing2.xaml
+129
-0
DynAreaAirRing2.xaml.cs
...edbackRenZiJia.UI.Client/UiModule/DynAreaAirRing2.xaml.cs
+231
-0
ViewModel_HeatThickDetector.cs
...UIModule/HeatThickDetector/ViewModel_HeatThickDetector.cs
+19
-1
ThickHeatData.cs
...Y.ThickHeatAnalyst.Fix/FLY.HeatingHelper/ThickHeatData.cs
+24
-17
airRing.component.config
脚本/和美扫描客户端容器描述.unity/unity/airRing.component.config
+2
-0
和美扫描客户端容器描述.xmind
脚本/和美扫描客户端容器描述.xmind
+0
-0
No files found.
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/FLY.FeedbackRenZiJia.UI.Client.csproj
View file @
0a9653b5
...
@@ -68,6 +68,10 @@
...
@@ -68,6 +68,10 @@
<SubType>
Designer
</SubType>
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
<Generator>
MSBuild:Compile
</Generator>
</Page>
</Page>
<Page
Include=
"UiModule\DynAreaAirRing2.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"UiModule\MenuSetting.xaml"
>
<Page
Include=
"UiModule\MenuSetting.xaml"
>
<SubType>
Designer
</SubType>
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
<Generator>
MSBuild:Compile
</Generator>
...
@@ -116,6 +120,9 @@
...
@@ -116,6 +120,9 @@
<ItemGroup>
<ItemGroup>
<Compile
Include=
"Converter\IPEPConverter.cs"
/>
<Compile
Include=
"Converter\IPEPConverter.cs"
/>
<Compile
Include=
"HeatListHelper.cs"
/>
<Compile
Include=
"HeatListHelper.cs"
/>
<Compile
Include=
"UiModule\DynAreaAirRing2.xaml.cs"
>
<DependentUpon>
DynAreaAirRing2.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"UiModule\MenuSetting.xaml.cs"
>
<Compile
Include=
"UiModule\MenuSetting.xaml.cs"
>
<DependentUpon>
MenuSetting.xaml
</DependentUpon>
<DependentUpon>
MenuSetting.xaml
</DependentUpon>
</Compile>
</Compile>
...
@@ -179,6 +186,14 @@
...
@@ -179,6 +186,14 @@
<Resource
Include=
"Images\teachers_day.png"
/>
<Resource
Include=
"Images\teachers_day.png"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\..\Project.FLY.ThickHeatAnalyst.Fix\FLY.HeatingHelper.UI\FLY.HeatingHelper.UI.csproj"
>
<Project>
{276ee86a-0961-4c69-a38a-696f4d76e931}
</Project>
<Name>
FLY.HeatingHelper.UI
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\..\Project.FLY.ThickHeatAnalyst.Fix\FLY.HeatingHelper\FLY.HeatingHelper.csproj"
>
<Project>
{973f0eed-3181-4fb9-abd6-196a9e816b77}
</Project>
<Name>
FLY.HeatingHelper
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\..\thick_public\MultiLayout\MultiLayout.csproj"
>
<ProjectReference
Include=
"..\..\thick_public\MultiLayout\MultiLayout.csproj"
>
<Project>
{5BBE76F5-CFD7-4DFA-9EE5-0C47D77D96E6}
</Project>
<Project>
{5BBE76F5-CFD7-4DFA-9EE5-0C47D77D96E6}
</Project>
<Name>
MultiLayout
</Name>
<Name>
MultiLayout
</Name>
...
...
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/PgMenu.xaml
View file @
0a9653b5
...
@@ -66,10 +66,14 @@
...
@@ -66,10 +66,14 @@
</Grid>
</Grid>
</Button>
</Button>
<Button Click="button_heatlist_Click" >
<Button Click="button_heatlist_Click" >
<TextBlock FontWeight="Bold" FontFamily="YouYuan" VerticalAlignment="Center">
<TextBlock FontWeight="Bold" VerticalAlignment="Center" Foreground="White" Background="#C00083D7" Padding="10" FontFamily="Arial" FontSize="40" >
<Run Foreground="White" FontSize="40" Text="记录"/>
<Run Text="记录" ></Run>
<Run FontSize="20">(初级分析器)</Run>
</TextBlock>
</TextBlock>
</Button>
</Button>
<Button Click="btnHeatingHelperClick" >
<TextBlock FontWeight="Bold" VerticalAlignment="Center" Foreground="White" FontSize="40" Text="高级分析器" Background="#C00083D7" Padding="10" FontFamily="Arial"/>
</Button>
</WrapPanel>
</WrapPanel>
</Grid>
</Grid>
</ScrollViewer>
</ScrollViewer>
...
...
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/PgMenu.xaml.cs
View file @
0a9653b5
using
FLY.FeedbackRenZiJia.UI.Client.UiModule
;
using
FLY.FeedbackRenZiJia.UI.Client.UiModule
;
using
FLY.HeatingHelper.UI.UiModule
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
...
@@ -58,5 +59,12 @@ namespace FLY.FeedbackRenZiJia.UI.Client
...
@@ -58,5 +59,12 @@ namespace FLY.FeedbackRenZiJia.UI.Client
p
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
p
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
p
.
ShowDialog
();
p
.
ShowDialog
();
}
}
private
void
btnHeatingHelperClick
(
object
sender
,
RoutedEventArgs
e
)
{
Page_HeatDetector
page
=
new
Page_HeatDetector
();
container
.
BuildUp
(
page
);
MultiLayout
.
FlyLayoutManager
.
NavigationService
.
Navigate
(
page
);
}
}
}
}
}
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/UiModule/DynAreaAirRing.xaml
View file @
0a9653b5
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary.MergedDictionaries>
<client:StableConverter x:Key="stableconv"/>
<client:StableConverter x:Key="stableconv"/>
<local:DynAreaViewModelParams x:Key="unitests_props" IsError="
Tru
e" Error="报警MSG"/>
<local:DynAreaViewModelParams x:Key="unitests_props" IsError="
Fals
e" Error="报警MSG"/>
</ResourceDictionary>
</ResourceDictionary>
</UserControl.Resources>
</UserControl.Resources>
...
@@ -30,20 +30,13 @@
...
@@ -30,20 +30,13 @@
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<StackPanel
Orientation="Vertical"
>
<StackPanel >
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical" Margin="2" DataContext="{Binding DataContext,ElementName=grid_heatbuf}">
<StackPanel Orientation="Vertical" Margin="2" DataContext="{Binding DataContext,ElementName=grid_heatbuf}">
<TextBlock Text="稳定性" FontSize="12" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF3B3B3B" />
<TextBlock Text="稳定性" FontSize="12" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF3B3B3B" />
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" Foreground="{StaticResource Color_theme_activity}" Text="{Binding CurrR, StringFormat={}{0:F1}}" FontSize="24" VerticalAlignment="Center" />
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" Foreground="{StaticResource Color_theme_activity}" Text="{Binding CurrR, StringFormat={}{0:F1}}" FontSize="24" VerticalAlignment="Center" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="2" DataContext="{Binding DataContext,ElementName=grid_heatbuf}">
<TextBlock Text="打散度" FontSize="12" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF3B3B3B" />
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" Foreground="{StaticResource Color_theme_activity}" Text="{Binding CurrBreakUp, StringFormat={}{0:F0}}" FontSize="24" VerticalAlignment="Center" />
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="%" FontSize="12"/>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="2" DataContext="{Binding DataContext,ElementName=grid_feedback}">
<StackPanel Orientation="Vertical" Margin="2" DataContext="{Binding DataContext,ElementName=grid_feedback}">
...
...
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/UiModule/DynAreaAirRing2.xaml
0 → 100644
View file @
0a9653b5
<UserControl x:Class="FLY.FeedbackRenZiJia.UI.Client.UiModule.DynAreaAirRing2"
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:FLY.FeedbackRenZiJia.UI.Client.UiModule"
xmlns:client="clr-namespace:FLY.FeedbackRenZiJia.UI.Client"
mc:Ignorable="d"
d:DesignWidth="292">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
<client:StableConverter x:Key="stableconv"/>
<local:DynAreaViewModelParams x:Key="unitests_props" IsError="False" Error="报警MSG"/>
</ResourceDictionary>
</UserControl.Resources>
<Button Style="{StaticResource ButtonStyle_empty}" Background="Transparent" Click="Button_Click">
<Grid>
<Grid x:Name="grid_heatbuf"/>
<Grid x:Name="grid_feedback"/>
<Grid x:Name="grid_error" d:DataContext="{StaticResource unitests_props}"/>
<Border Style="{StaticResource BorderStyle_module}">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel >
<StackPanel Orientation="Horizontal">
<StackPanel Margin="2" DataContext="{Binding DataContext,ElementName=grid_heatbuf}">
<TextBlock Text="稳定性" FontSize="12" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF3B3B3B" />
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" Foreground="{StaticResource Color_theme_activity}" Text="{Binding CurrR, StringFormat={}{0:F1}}" FontSize="24" VerticalAlignment="Center" />
</StackPanel>
<StackPanel Orientation="Horizontal" x:Name="spHeatThickDectector">
<StackPanel Margin="2" >
<TextBlock FontSize="12" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF3B3B3B" Text="复位区号"/>
<Grid>
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" FontSize="24" VerticalAlignment="Center" Foreground="{StaticResource Color_theme_activity}" >
<Run Text="{Binding NewResetBolt }"/>
</TextBlock>
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" FontSize="24" VerticalAlignment="Center" Background="Red" Foreground="Yellow">
<Run Text="{Binding NewResetBolt }"/>
<Run Text="!= " FontSize="18" />
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Visibility" Value="Hidden"/>
<Setter Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsDifferent}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard RepeatBehavior="Forever" >
<DoubleAnimation BeginTime="0:0:0" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="00:00:01" />
<DoubleAnimation BeginTime="0:0:1" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="00:00:01" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<Setter Property="Visibility" Value="Visible"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Grid>
</StackPanel>
<StackPanel Margin="2" VerticalAlignment="Bottom">
<TextBlock FontSize="12" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF8B8B8B" Text="当前"/>
<TextBlock FontWeight="Bold" FontFamily="Microsoft Sans Serif" Foreground="{StaticResource Color_theme_static}" Text="{Binding CurrentResetBolt }" FontSize="18" VerticalAlignment="Center" />
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="2" DataContext="{Binding DataContext,ElementName=grid_feedback}">
<TextBlock Text="加热时间" FontSize="10" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Left" Foreground="#FF3B3B3B" />
<TextBlock Text="{Binding LastChangedTime,StringFormat={}{0:HH:mm:ss}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" Foreground="White" Background="Black" Margin="5,0"/>
</StackPanel>
</StackPanel>
<Viewbox Name="view_stability" Margin="2" Grid.Column="1" Visibility="{Binding IsHideStable, Converter={StaticResource ResourceKey=visbilityconv}, ConverterParameter=HiddenWhenTrue}">
<Grid DataContext="{Binding DataContext,ElementName=grid_heatbuf}">
<TextBlock Text="{Binding Stability, Converter={StaticResource ResourceKey=stableconv}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Left" HorizontalAlignment="Left" Foreground="{StaticResource Color_theme_static}" VerticalAlignment="Bottom" MaxWidth="120" TextWrapping="Wrap" />
</Grid>
</Viewbox>
</Grid>
</Border>
<Border Style="{StaticResource BorderStyle_module}" Background="Red"
DataContext="{Binding DataContext,ElementName=grid_error}"
Visibility="{Binding IsError,Converter={StaticResource visbilityconv}}">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Path Margin="5" Fill="White" Stretch="Uniform" Width="60" Height="60" SnapsToDevicePixels="True" Data="{StaticResource Geometry_alert-circle-outline}" >
<Path.Style>
<Style TargetType="Path">
<Style.Triggers>
<DataTrigger Binding="{Binding IsError}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard RepeatBehavior="Forever" >
<DoubleAnimation BeginTime="0:0:0" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="00:00:01" />
<DoubleAnimation BeginTime="0:0:1" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="00:00:01" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Path.Style>
</Path>
<TextBlock Grid.Column="1" Margin="5" VerticalAlignment="Center" TextWrapping="Wrap" FontSize="30" Foreground="White" Text="{Binding Error}"/>
</Grid>
</Border>
</Grid>
</Button>
</UserControl>
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Client/UiModule/DynAreaAirRing2.xaml.cs
0 → 100644
View file @
0a9653b5
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
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
;
using
System.Net
;
using
System.ComponentModel
;
using
FLY.FeedbackRenZiJia.Client
;
using
FLY.OBJComponents.Client
;
using
FLY.OBJComponents.Common
;
using
System.Windows.Threading
;
using
MultiLayout.UiModule
;
using
Unity
;
using
FLY.Thick.Base.UI
;
using
FLY.FeedbackRenZiJia.IService
;
using
FObjBase
;
using
MultiLayout
;
using
FLY.OBJComponents.IService
;
using
FLY.HeatingHelper
;
using
FLY.HeatingHelper.UI.UiModule
;
namespace
FLY.FeedbackRenZiJia.UI.Client.UiModule
{
/// <summary>
/// Page_DynArea.xaml 的交互逻辑
/// </summary>
public
partial
class
DynAreaAirRing2
:
UserControl
{
#
region
延时推送
MARKNO
const
int
MARKNO_UPDATEERROR
=
1
;
#
endregion
IFeedbackHeatService
mFeedback
;
IHeatBufService
mHeatBuf
;
GraphAirRingParams
graphAirRingParams
;
IUnityContainer
container
;
WarningReasonWindow
warningReasonWindow
;
IWarningService
warningService
;
DispatcherTimer
timer_error
;
DynAreaViewModelParams
props
=
new
DynAreaViewModelParams
();
ViewModel_HeatThickDetector
htdViewModel
;
public
DynAreaAirRing2
()
{
InitializeComponent
();
}
[
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
,
[
Dependency
(
"airRingWarningReasonWindow"
)]
WarningReasonWindow
warningReasonWindow
,
[
Dependency
(
"airRingWarningService"
)]
IWarningService
warningService
,
IFeedbackHeatService
feedbackHeatService
,
IHeatBufService
heatBufService
,
[
Dependency
(
"forThread"
)]
IThickHeatData
dat
)
{
//获取设备
graphAirRingParams
=
GraphAirRingParams
.
Current
;
this
.
container
=
container
;
mFeedback
=
feedbackHeatService
;
mHeatBuf
=
heatBufService
;
this
.
warningReasonWindow
=
warningReasonWindow
;
this
.
warningService
=
warningService
;
view_stability
.
DataContext
=
graphAirRingParams
;
grid_feedback
.
DataContext
=
mFeedback
;
grid_heatbuf
.
DataContext
=
mHeatBuf
;
htdViewModel
=
new
ViewModel_HeatThickDetector
(
container
.
Resolve
<
FLY
.
Thick
.
Blowing
.
IService
.
IBlowingService
>(),
dat
);
dat
.
StartMonitorTask
();
spHeatThickDectector
.
DataContext
=
htdViewModel
;
//报警原因轮流显示
timer_error
=
new
DispatcherTimer
();
timer_error
.
Interval
=
TimeSpan
.
FromSeconds
(
3
);
timer_error
.
Tick
+=
(
s
,
e
)
=>
{
reason_list_index
--;
if
(
reason_list_index
<
0
)
reason_list_index
=
this
.
warningReasonWindow
.
Record
.
Count
();
updateError
();
};
this
.
warningReasonWindow
.
Record
.
CollectionChanged
+=
Record_CollectionChanged
;
grid_error
.
DataContext
=
props
;
mFeedback
.
PropertyChanged
+=
(
s
,
e
)
=>
{
if
(
e
.
PropertyName
==
"IsConnected"
)
{
updateError
();
}
};
updateError
();
}
private
void
Record_CollectionChanged
(
object
sender
,
System
.
Collections
.
Specialized
.
NotifyCollectionChangedEventArgs
e
)
{
FObjBase
.
PollModule
.
Current
.
Poll_JustOnce
(
new
FObjBase
.
PollModule
.
PollHandler
(
delegate
()
{
reason_list_index
=
warningReasonWindow
.
Record
.
Count
()
-
1
;
updateError
();
}),
this
,
MARKNO_UPDATEERROR
);
}
void
updateError
()
{
if
(
mFeedback
is
FObjServiceClient
)
{
var
objClient
=
(
mFeedback
as
FObjServiceClient
);
if
(!
objClient
.
IsConnected
)
{
props
.
Error
=
"风环服务器连接断开"
;
props
.
IsError
=
true
;
reason_list_index
=
-
1
;
timer_error
.
Stop
();
return
;
}
}
if
(
warningReasonWindow
.
Record
.
Count
==
0
)
{
props
.
IsError
=
false
;
props
.
Error
=
""
;
reason_list_index
=
-
1
;
timer_error
.
Stop
();
return
;
}
if
(
reason_list_index
>=
warningReasonWindow
.
Record
.
Count
)
reason_list_index
=
warningReasonWindow
.
Record
.
Count
-
1
;
else
if
(
reason_list_index
<
0
)
reason_list_index
=
0
;
props
.
Error
=
warningReasonWindow
.
Record
[
reason_list_index
].
Description
;
props
.
IsError
=
true
;
timer_error
.
Start
();
}
private
int
reason_list_index
=
-
1
;
private
void
Button_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
props
.
IsError
)
{
PgErrorTable2
p
=
new
PgErrorTable2
();
//var p = container.Resolve<PgErrorTable2>(new );
p
.
Init
(
container
,
warningService
,
warningReasonWindow
);
FlyLayoutManager
.
NavigationService
.
Navigate
(
p
);
}
else
{
//if (!htdViewModel.HasData) return;
//if (htdViewModel._dat.BeginUse())
{
Page_HeatDetector
page
=
new
Page_HeatDetector
();
container
.
BuildUp
(
page
);
FlyLayoutManager
.
NavigationService
.
Navigate
(
page
);
}
}
}
}
public
class
UiModule2_DynAreaAirRing2
:
IUiModule2
{
/// <summary>
/// 控件标题
/// 它的值取决于culture
/// </summary>
public
string
Title
=>
"自动风环状态2"
;
public
ComponentType
Type
=>
ComponentType
.
DynArea
;
public
bool
IsUnique
=>
true
;
/// <summary>
/// 控件
/// 创建时,需要给它唯一ID,让加载自己的数据
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public
FrameworkElement
GetComponent
(
int
id
,
IUnityContainer
container
)
{
return
container
.
Resolve
<
DynAreaAirRing2
>();
}
/// <summary>
/// 控件缩略图,用于编辑界面时,大致看看
/// 创建时,需要给它唯一ID,让加载自己的数据
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public
FrameworkElement
GetThumbnail
()
{
return
new
System
.
Windows
.
Controls
.
Grid
();
}
/// <summary>
/// 给出全部控件ID, 控件自行删除没有的参数
/// </summary>
/// <param name="IDs"></param>
public
void
MatchParam
(
int
[]
IDs
)
{
}
}
}
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper.UI/UIModule/HeatThickDetector/ViewModel_HeatThickDetector.cs
View file @
0a9653b5
...
@@ -31,9 +31,26 @@ namespace FLY.HeatingHelper.UI.UiModule
...
@@ -31,9 +31,26 @@ namespace FLY.HeatingHelper.UI.UiModule
{
{
CurrentResetBolt
=
blowing
.
OrgBoltNo
;
CurrentResetBolt
=
blowing
.
OrgBoltNo
;
NewResetBolt
=
CurrentResetBolt
;
NewResetBolt
=
CurrentResetBolt
;
});
});
IsDifferent
=
(
CurrentResetBolt
!=
NewResetBolt
);
this
.
PropertyChanged
+=
(
s
,
e
)
=>
{
if
((
e
.
PropertyName
==
"CurrentResetBolt"
)
||
(
e
.
PropertyName
==
"NewResetBolt"
))
{
IsDifferent
=
(
CurrentResetBolt
!=
NewResetBolt
);
}
};
//CurrentResetBolt = 55;
//NewResetBolt = 30;
//IsDifferent = true;
}
}
public
bool
HasData
public
bool
HasData
{
{
get
get
...
@@ -47,7 +64,8 @@ namespace FLY.HeatingHelper.UI.UiModule
...
@@ -47,7 +64,8 @@ namespace FLY.HeatingHelper.UI.UiModule
public
int
NewResetBolt
{
get
;
set
;
}
public
int
NewResetBolt
{
get
;
set
;
}
public
int
CurrentResetBolt
{
get
;
set
;
}
public
int
CurrentResetBolt
{
get
;
set
;
}
public
bool
IsDifferent
{
get
;
private
set
;
}
public
event
PropertyChangedEventHandler
PropertyChanged
;
public
event
PropertyChangedEventHandler
PropertyChanged
;
}
}
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper/ThickHeatData.cs
View file @
0a9653b5
...
@@ -189,16 +189,16 @@ namespace FLY.HeatingHelper
...
@@ -189,16 +189,16 @@ namespace FLY.HeatingHelper
public
bool
BeginUse
(
bool
isAsync
=
true
)
public
bool
BeginUse
(
bool
isAsync
=
true
)
{
{
if
(
isAsync
)
//
if(isAsync)
{
//
{
return
Monitor
.
TryEnter
(
_sync
);
//
return Monitor.TryEnter(_sync);
}
//
}
Monitor
.
Enter
(
_sync
);
//
Monitor.Enter(_sync);
return
true
;
return
true
;
}
}
public
void
EndUse
()
public
void
EndUse
()
{
{
Monitor
.
Exit
(
_sync
);
//
Monitor.Exit(_sync);
}
}
public
void
CalculateAirRingShift
()
public
void
CalculateAirRingShift
()
...
@@ -1551,21 +1551,28 @@ namespace FLY.HeatingHelper
...
@@ -1551,21 +1551,28 @@ namespace FLY.HeatingHelper
{
{
taskForDB
=
Task
.
Factory
.
StartNew
(()
=>
taskForDB
=
Task
.
Factory
.
StartNew
(()
=>
{
{
while
(
true
)
try
{
{
if
(
BeginUse
()
)
while
(
true
)
{
{
IsFilterUnstable
=
true
;
if
(
BeginUse
())
IsDataFilter
=
true
;
{
RefreshData
();
IsFilterUnstable
=
true
;
EndUse
();
IsDataFilter
=
true
;
Thread
.
Sleep
(
1000
*
60
);
RefreshData
();
}
EndUse
();
else
Thread
.
Sleep
(
1000
*
60
);
{
}
Thread
.
Sleep
(
1000
*
2
);
else
{
Thread
.
Sleep
(
1000
*
2
);
}
}
}
}
}
catch
(
Exception
e
)
{
throw
e
;
}
});
});
}
}
#
endregion
#
endregion
...
...
脚本/和美扫描客户端容器描述.unity/unity/airRing.component.config
View file @
0a9653b5
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_MenuSetting"
name
=
"airRing_ms"
/>
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_MenuSetting"
name
=
"airRing_ms"
/>
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_DynAreaAirRing"
name
=
"airRing_da"
/>
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_DynAreaAirRing"
name
=
"airRing_da"
/>
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_GraphAirRing"
name
=
"airRing_g"
/>
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_GraphAirRing"
name
=
"airRing_g"
/>
<
register
type
=
"IUiModule2"
mapTo
=
"UiModule2_DynAreaAirRing2"
name
=
"airRing_da2"
/>
</
container
>
</
container
>
</
unity
>
</
unity
>
</
configuration
>
</
configuration
>
\ No newline at end of file
脚本/和美扫描客户端容器描述.xmind
View file @
0a9653b5
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment