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
8b73bece
Commit
8b73bece
authored
Aug 24, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 报警系统支持数据库
parent
81ff36f4
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
157 additions
and
172 deletions
+157
-172
FLY.Thick.Blowing.UI.Fix.Client.csproj
...wing.UI.Fix.Client/FLY.Thick.Blowing.UI.Fix.Client.csproj
+27
-27
MainWindow.xaml.cs
...lowing/FLY.Thick.Blowing.UI.Fix.Client/MainWindow.xaml.cs
+2
-2
PgBlowing.xaml
...ck.Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgBlowing.xaml
+1
-1
PgBlowing.xaml.cs
...Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgBlowing.xaml.cs
+2
-2
PgCustom.xaml
...ick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgCustom.xaml
+1
-1
PgCustom.xaml.cs
....Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgCustom.xaml.cs
+2
-2
PgErrorTable.xaml
...Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgErrorTable.xaml
+1
-1
PgErrorTable.xaml.cs
...wing/FLY.Thick.Blowing.UI.Fix.Client/PgErrorTable.xaml.cs
+3
-3
PgMain.xaml
...Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgMain.xaml
+1
-1
PgMain.xaml.cs
...ck.Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgMain.xaml.cs
+5
-5
PgMenu.xaml
...Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgMenu.xaml
+2
-2
PgMenu.xaml.cs
...ck.Blowing/FLY.Thick.Blowing.UI.Fix.Client/PgMenu.xaml.cs
+6
-6
PgProfileBlowing.xaml
...ing/FLY.Thick.Blowing.UI.Fix.Client/PgProfileBlowing.xaml
+1
-1
PgProfileBlowing.xaml.cs
.../FLY.Thick.Blowing.UI.Fix.Client/PgProfileBlowing.xaml.cs
+3
-3
PgScanWarning.xaml
...lowing/FLY.Thick.Blowing.UI.Fix.Client/PgScanWarning.xaml
+1
-1
PgScanWarning.xaml.cs
...ing/FLY.Thick.Blowing.UI.Fix.Client/PgScanWarning.xaml.cs
+2
-2
DynAreaIO.xaml.cs
...LY.Thick.Blowing.UI.Fix.Client/UIModule/DynAreaIO.xaml.cs
+2
-2
WdIOTip.xaml
...hick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/WdIOTip.xaml
+1
-1
WdIOTip.xaml.cs
...k.Blowing/FLY.Thick.Blowing.UI.Fix.Client/WdIOTip.xaml.cs
+2
-2
WdProfileLegend.xaml
...wing/FLY.Thick.Blowing.UI.Fix.Client/WdProfileLegend.xaml
+1
-1
WdProfileLegend.xaml.cs
...g/FLY.Thick.Blowing.UI.Fix.Client/WdProfileLegend.xaml.cs
+2
-2
DBModel.cs
...Y.Thick.Blowing/FLY.Thick.Blowing/Server/Model/DBModel.cs
+3
-2
DBTable.cs
...Y.Thick.Blowing/FLY.Thick.Blowing/Server/Model/DBTable.cs
+0
-40
HistoryDB.cs
...Thick.Blowing/FLY.Thick.Blowing/Server/Model/HistoryDB.cs
+1
-0
ScanWarning.cs
...FLY.Thick.Blowing/FLY.Thick.Blowing/Server/ScanWarning.cs
+33
-32
TDGage.cs
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/TDGage.cs
+30
-12
TDGage.cs
....Thick.BlowingScan/FLY.Thick.BlowingScan/Server/TDGage.cs
+14
-11
WeightSystem.cs
Project.FLY.Weight/FLY.Weight/Server/WeightSystem.cs
+7
-6
thick_public
thick_public
+1
-1
No files found.
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/FLY.Thick.Blowing.UI.Fix.Client.csproj
View file @
8b73bece
...
...
@@ -91,26 +91,26 @@
</Compile>
<Compile
Include=
"BlowingDetectCore.cs"
/>
<Compile
Include=
"CalFilmLen.cs"
/>
<Compile
Include=
"P
age_
Blowing.xaml.cs"
>
<DependentUpon>
P
age_
Blowing.xaml
</DependentUpon>
<Compile
Include=
"P
g
Blowing.xaml.cs"
>
<DependentUpon>
P
g
Blowing.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"P
age_
Custom.xaml.cs"
>
<DependentUpon>
P
age_
Custom.xaml
</DependentUpon>
<Compile
Include=
"P
g
Custom.xaml.cs"
>
<DependentUpon>
P
g
Custom.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"P
age_
ErrorTable.xaml.cs"
>
<DependentUpon>
P
age_
ErrorTable.xaml
</DependentUpon>
<Compile
Include=
"P
g
ErrorTable.xaml.cs"
>
<DependentUpon>
P
g
ErrorTable.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"P
age_
Main.xaml.cs"
>
<DependentUpon>
P
age_
Main.xaml
</DependentUpon>
<Compile
Include=
"P
g
Main.xaml.cs"
>
<DependentUpon>
P
g
Main.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"P
age_
Menu.xaml.cs"
>
<DependentUpon>
P
age_
Menu.xaml
</DependentUpon>
<Compile
Include=
"P
g
Menu.xaml.cs"
>
<DependentUpon>
P
g
Menu.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"P
age_
ProfileBlowing.xaml.cs"
>
<DependentUpon>
P
age_
ProfileBlowing.xaml
</DependentUpon>
<Compile
Include=
"P
g
ProfileBlowing.xaml.cs"
>
<DependentUpon>
P
g
ProfileBlowing.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"P
age_
ScanWarning.xaml.cs"
>
<DependentUpon>
P
age_
ScanWarning.xaml
</DependentUpon>
<Compile
Include=
"P
g
ScanWarning.xaml.cs"
>
<DependentUpon>
P
g
ScanWarning.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"PgBlowingExt.xaml.cs"
>
<DependentUpon>
PgBlowingExt.xaml
</DependentUpon>
...
...
@@ -148,11 +148,11 @@
<Compile
Include=
"UIModule\ScanGraphCircular\ScanGraphCircularConfig.xaml.cs"
>
<DependentUpon>
ScanGraphCircularConfig.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"W
indow_
IOTip.xaml.cs"
>
<DependentUpon>
W
indow_
IOTip.xaml
</DependentUpon>
<Compile
Include=
"W
d
IOTip.xaml.cs"
>
<DependentUpon>
W
d
IOTip.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"W
indow_
ProfileLegend.xaml.cs"
>
<DependentUpon>
W
indow_
ProfileLegend.xaml
</DependentUpon>
<Compile
Include=
"W
d
ProfileLegend.xaml.cs"
>
<DependentUpon>
W
d
ProfileLegend.xaml
</DependentUpon>
</Compile>
<Page
Include=
"Culture\StringResource.en-US.xaml"
>
<SubType>
Designer
</SubType>
...
...
@@ -162,23 +162,23 @@
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
</Page>
<Page
Include=
"P
age_
Blowing.xaml"
>
<Page
Include=
"P
g
Blowing.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"P
age_
Custom.xaml"
>
<Page
Include=
"P
g
Custom.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"P
age_
ErrorTable.xaml"
>
<Page
Include=
"P
g
ErrorTable.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"P
age_
Main.xaml"
>
<Page
Include=
"P
g
Main.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"P
age_
Menu.xaml"
>
<Page
Include=
"P
g
Menu.xaml"
>
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
</Page>
...
...
@@ -186,11 +186,11 @@
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
</Page>
<Page
Include=
"P
age_
ProfileBlowing.xaml"
>
<Page
Include=
"P
g
ProfileBlowing.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"P
age_
ScanWarning.xaml"
>
<Page
Include=
"P
g
ScanWarning.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
...
...
@@ -230,11 +230,11 @@
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"W
indow_
IOTip.xaml"
>
<Page
Include=
"W
d
IOTip.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"W
indow_
ProfileLegend.xaml"
>
<Page
Include=
"W
d
ProfileLegend.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/MainWindow.xaml.cs
View file @
8b73bece
...
...
@@ -61,7 +61,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
}
LoadingProgress
lp
;
P
age_
Main
pMain
;
P
g
Main
pMain
;
void
Init
()
{
System
.
Windows
.
Application
.
Current
.
Dispatcher
.
Invoke
(
new
Action
(()
=>
...
...
@@ -115,7 +115,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
System
.
Windows
.
Application
.
Current
.
Dispatcher
.
Invoke
(
new
Action
(()
=>
{
pMain
=
new
P
age_
Main
();
pMain
=
new
P
g
Main
();
lp
.
Progress
+=
10
;
}));
System
.
Threading
.
Thread
.
Sleep
(
10
);
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Blowing.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Blowing.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
Blowing"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
Blowing"
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"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Blowing.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Blowing.xaml.cs
View file @
8b73bece
...
...
@@ -26,11 +26,11 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_Blowing.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
Blowing
:
Page
public
partial
class
P
g
Blowing
:
Page
{
PgBlowingViewModel
viewModel
;
public
P
age_
Blowing
()
public
P
g
Blowing
()
{
InitializeComponent
();
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Custom.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Custom.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
Custom"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
Custom"
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"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Custom.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Custom.xaml.cs
View file @
8b73bece
...
...
@@ -22,11 +22,11 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_Custom.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
Custom
:
Page
public
partial
class
P
g
Custom
:
Page
{
SysParam
msysparam
;
TDGage
gage
;
public
P
age_
Custom
()
public
P
g
Custom
()
{
InitializeComponent
();
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
ErrorTable.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
ErrorTable.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
ErrorTable"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
ErrorTable"
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"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
ErrorTable.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
ErrorTable.xaml.cs
View file @
8b73bece
...
...
@@ -18,13 +18,13 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_ErrorTable.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
ErrorTable
:
Page
public
partial
class
P
g
ErrorTable
:
Page
{
FLY
.
OBJComponents
.
Client
.
WarningServiceClient
mWarningService
;
FLY
.
OBJComponents
.
Client
.
BufferWindow
<
FLY
.
OBJComponents
.
Common
.
FlyData_WarningHistory
>
mWindow
;
TDGage
gage
;
public
P
age_
ErrorTable
()
public
P
g
ErrorTable
()
{
InitializeComponent
();
Init
();
...
...
@@ -54,7 +54,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
void
button_iotip_click
(
object
sender
,
RoutedEventArgs
e
)
{
W
indow_IOTip
w
=
new
Window_
IOTip
();
W
dIOTip
w
=
new
Wd
IOTip
();
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
w
.
ShowDialog
();
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Main.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Main.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
Main"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
Main"
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"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Main.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Main.xaml.cs
View file @
8b73bece
...
...
@@ -28,13 +28,13 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_Main.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
Main
:
Page
public
partial
class
P
g
Main
:
Page
{
private
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
mLayout
;
private
FLYLayoutManager
mManager
;
TDGage
gage
;
public
P
age_
Main
()
public
P
g
Main
()
{
InitializeComponent
();
...
...
@@ -200,14 +200,14 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
}
private
void
button_menu_click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_Menu
p
=
new
Page_
Menu
();
P
gMenu
p
=
new
Pg
Menu
();
p
.
Init
(
gage
);
NavigationService
.
Navigate
(
p
);
}
private
void
button_profile_click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_ProfileBlowing
p
=
new
Page_
ProfileBlowing
();
P
gProfileBlowing
p
=
new
Pg
ProfileBlowing
();
p
.
Init
(
gage
.
mSysParam
.
ServerIPEP
);
NavigationService
.
Navigate
(
p
);
...
...
@@ -220,7 +220,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
void
Border_Blowing_Click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_Blowing
p
=
new
Page_
Blowing
();
P
gBlowing
p
=
new
Pg
Blowing
();
p
.
Init
(
gage
.
mSysParam
.
ServerIPEP
);
NavigationService
.
Navigate
(
p
);
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Menu.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Menu.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
Menu"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
Menu"
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"
...
...
@@ -15,7 +15,7 @@
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
<misc:Ver x:Key="version" SrcType="{x:Type local:P
age_
Menu}"/>
<misc:Ver x:Key="version" SrcType="{x:Type local:P
g
Menu}"/>
</ResourceDictionary>
</Page.Resources>
<Grid >
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
Menu.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
Menu.xaml.cs
View file @
8b73bece
...
...
@@ -18,10 +18,10 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_Menu.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
Menu
:
Page
public
partial
class
P
g
Menu
:
Page
{
TDGage
gage
;
public
P
age_
Menu
()
public
P
g
Menu
()
{
InitializeComponent
();
}
...
...
@@ -33,7 +33,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
void
button_custom_Click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_Custom
p
=
new
Page_
Custom
();
P
gCustom
p
=
new
Pg
Custom
();
p
.
Init
(
gage
);
NavigationService
.
Navigate
(
p
);
}
...
...
@@ -51,7 +51,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
void
button_warning_Click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_ErrorTable
p
=
new
Page_
ErrorTable
();
P
gErrorTable
p
=
new
Pg
ErrorTable
();
p
.
Init
();
NavigationService
.
Navigate
(
p
);
}
...
...
@@ -90,14 +90,14 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
void
button_blowing_Click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_Blowing
p
=
new
Page_
Blowing
();
P
gBlowing
p
=
new
Pg
Blowing
();
p
.
Init
(
gage
.
mSysParam
.
ServerIPEP
);
NavigationService
.
Navigate
(
p
);
}
private
void
button_scanwarning_Click
(
object
sender
,
RoutedEventArgs
e
)
{
P
age_ScanWarning
p
=
new
Page_
ScanWarning
();
P
gScanWarning
p
=
new
Pg
ScanWarning
();
p
.
Init
(
gage
.
mSysParam
.
ServerIPEP
);
NavigationService
.
Navigate
(
p
);
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
ProfileBlowing.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
ProfileBlowing.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
ProfileBlowing"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
ProfileBlowing"
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"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
ProfileBlowing.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
ProfileBlowing.xaml.cs
View file @
8b73bece
...
...
@@ -28,12 +28,12 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_ProfileBlowing.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
ProfileBlowing
:
Page
,
INotifyPropertyChanged
public
partial
class
P
g
ProfileBlowing
:
Page
,
INotifyPropertyChanged
{
public
ObservableCollection
<
string
>
mList
=
new
ObservableCollection
<
string
>();
public
BlowingFixProfileServiceClient
mProfile
=
null
;
public
P
age_
ProfileBlowing
()
public
P
g
ProfileBlowing
()
{
InitializeComponent
();
}
...
...
@@ -209,7 +209,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
void
button_legend_Click
(
object
sender
,
RoutedEventArgs
e
)
{
W
indow_ProfileLegend
w
=
new
Window_
ProfileLegend
();
W
dProfileLegend
w
=
new
Wd
ProfileLegend
();
w
.
DataContext
=
mProfile
.
Param
;
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
w
.
ShowDialog
();
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
ScanWarning.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
ScanWarning.xaml
View file @
8b73bece
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
age_
ScanWarning"
<Page x:Class="FLY.Thick.Blowing.UI.Fix.Client.P
g
ScanWarning"
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"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
age_
ScanWarning.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/P
g
ScanWarning.xaml.cs
View file @
8b73bece
...
...
@@ -20,11 +20,11 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Page_ScanWarning.xaml 的交互逻辑
/// </summary>
public
partial
class
P
age_
ScanWarning
:
Page
public
partial
class
P
g
ScanWarning
:
Page
{
ScanWarningServiceClient
mScanWarning
;
public
P
age_
ScanWarning
()
public
P
g
ScanWarning
()
{
InitializeComponent
();
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/UIModule/DynAreaIO.xaml.cs
View file @
8b73bece
...
...
@@ -48,7 +48,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client.UIModule
// w.Owner = FLY.ControlLibrary.COMMON.GetWindow(this);
// w.ShowDialog();
//}
P
age_ErrorTable
p
=
new
Page_
ErrorTable
();
P
gErrorTable
p
=
new
Pg
ErrorTable
();
p
.
Init
();
(
Application
.
Current
.
Properties
[
"NavigationService"
]
as
NavigationService
).
Navigate
(
p
);
...
...
@@ -262,7 +262,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client.UIModule
public
DynAreaIOParams
()
{
IODespWindowType
=
typeof
(
W
indow_
IOTip
);
IODespWindowType
=
typeof
(
W
d
IOTip
);
}
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
indow_
IOTip.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
d
IOTip.xaml
View file @
8b73bece
<flyctrllib:WindowBigClose x:Class="FLY.Thick.Blowing.UI.Fix.Client.W
indow_
IOTip"
<flyctrllib:WindowBigClose x:Class="FLY.Thick.Blowing.UI.Fix.Client.W
d
IOTip"
xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
indow_
IOTip.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
d
IOTip.xaml.cs
View file @
8b73bece
...
...
@@ -16,9 +16,9 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Window_IOTip.xaml 的交互逻辑
/// </summary>
public
partial
class
W
indow_
IOTip
:
FLY
.
ControlLibrary
.
WindowBigClose
public
partial
class
W
d
IOTip
:
FLY
.
ControlLibrary
.
WindowBigClose
{
public
W
indow_
IOTip
()
public
W
d
IOTip
()
{
InitializeComponent
();
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
indow_
ProfileLegend.xaml
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
d
ProfileLegend.xaml
View file @
8b73bece
<flyctrllib:WindowBigClose x:Class="FLY.Thick.Blowing.UI.Fix.Client.W
indow_
ProfileLegend"
<flyctrllib:WindowBigClose x:Class="FLY.Thick.Blowing.UI.Fix.Client.W
d
ProfileLegend"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
indow_
ProfileLegend.xaml.cs
→
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/W
d
ProfileLegend.xaml.cs
View file @
8b73bece
...
...
@@ -16,9 +16,9 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// <summary>
/// Window_ProfileLegend.xaml 的交互逻辑
/// </summary>
public
partial
class
W
indow_
ProfileLegend
:
FLY
.
ControlLibrary
.
WindowBigClose
public
partial
class
W
d
ProfileLegend
:
FLY
.
ControlLibrary
.
WindowBigClose
{
public
W
indow_
ProfileLegend
()
public
W
d
ProfileLegend
()
{
InitializeComponent
();
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/Model/DBModel.cs
View file @
8b73bece
using
SQLite
;
using
FLY.OBJComponents.Server.Model
;
using
SQLite
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
...
...
@@ -7,7 +8,7 @@ using System.Threading.Tasks;
namespace
FLY.Thick.Blowing.Server.Model
{
public
class
DBModel
:
SQLiteDbContext
public
class
DBModel
:
SQLiteDbContext
,
IErrorDBModel
{
public
DBTable
<
DB_Profile
>
TbProfile
{
get
;
}
=
new
DBTable
<
DB_Profile
>();
public
DBTable
<
DB_ScanData
>
TbScanData
{
get
;
}
=
new
DBTable
<
DB_ScanData
>();
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/Model/DBTable.cs
View file @
8b73bece
...
...
@@ -153,45 +153,5 @@ namespace FLY.Thick.Blowing.Server.Model
public
string
Boltmap
{
get
;
set
;
}
}
/// <summary>
/// 异常记录
/// </summary>
[
Table
(
"Error"
)]
public
class
DB_Error
{
[
Key
]
[
PropertyIndex
(
0
)]
public
Int64
ID
{
get
;
set
;
}
/// <summary>
/// 发生的时间
/// </summary>
[
PropertyIndex
(
1
)]
public
DateTime
Time
{
get
;
set
;
}
/// <summary>
/// 异常代码
/// </summary>
[
PropertyIndex
(
2
)]
public
int
ErrCode
{
get
;
set
;
}
/// <summary>
/// true=异常是发生了,false=异常关闭
/// </summary>
[
PropertyIndex
(
3
)]
public
bool
IsOn
{
get
;
set
;
}
/// <summary>
/// 异常描述
/// </summary>
[
PropertyIndex
(
4
)]
public
string
Descrption
{
get
;
set
;
}
/// <summary>
/// 其它附加信息,json
/// </summary>
[
PropertyIndex
(
5
)]
public
string
Accessory
{
get
;
set
;
}
}
}
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/Model/HistoryDB.cs
View file @
8b73bece
using
FLY.OBJComponents.Server.Model
;
using
FLY.Thick.Blowing.IService
;
using
FLY.Thick.Blowing.IService.IShareDBServicePack
;
using
FObjBase
;
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/ScanWarning.cs
View file @
8b73bece
...
...
@@ -144,43 +144,44 @@ namespace FLY.Thick.Blowing.Server
void
GetFrameCB
(
object
AyncContext
,
object
retData
)
{
Pack_GetFrameReponse
reponse
=
retData
as
Pack_GetFrameReponse
;
Pack_GetFrameReponse
reponse
=
retData
as
Pack_GetFrameReponse
;
CheckResult
result
;
if
(
reponse
.
Values
!=
null
&&
reponse
.
Values
.
Count
()
>
0
)
{
Model
.
LC_ScanData
lc_ScanData
=
reponse
.
Values
.
First
();
result
=
Check
(
lc_ScanData
.
Thicks
);
}
else
{
result
=
CheckResult
.
Idle
;
}
CheckResult
result
;
string
accessory
=
""
;
switch
(
result
)
{
case
CheckResult
.
ToleranceWarning
:
//报警
if
(
reponse
.
Values
!=
null
&&
reponse
.
Values
.
Count
()
>
0
)
{
Model
.
LC_ScanData
lc_ScanData
=
reponse
.
Values
.
First
();
result
=
Check
(
lc_ScanData
.
Thicks
);
if
(
result
!=
CheckResult
.
Idle
)
accessory
=
Newtonsoft
.
Json
.
JsonConvert
.
SerializeObject
(
lc_ScanData
.
ID
);
}
else
{
result
=
CheckResult
.
Idle
;
}
switch
(
result
)
{
case
CheckResult
.
ToleranceWarning
:
//报警
mWarning
.
Add
(
ERRNOs
.
SCAN_ERRNO_OVERTOL
.
Code
,
ERRNOs
.
SCAN_ERRNO_OVERTOL
.
Descrption
,
ERR_STATE
.
ON
,
accessory
);
break
;
case
CheckResult
.
Idle
:
{
//报警解除
mWarning
.
Add
(
ERRNOs
.
SCAN_ERRNO_OVERTOL
.
Code
,
ERRNOs
.
SCAN_ERRNO_OVERTOL
.
Descrption
,
ERR_STATE
.
ON
);
break
;
case
CheckResult
.
Idle
:
{
//报警解除
mWarning
.
Add
(
ERRNOs
.
SCAN_ERRNO_OVERCTRL
.
Code
,
ERRNOs
.
SCAN_ERRNO_OVERCTRL
.
Descrption
,
ERR_STATE
.
OFF
);
//报警解除
mWarning
.
Add
(
ERRNOs
.
SCAN_ERRNO_OVERTOL
.
Code
,
ERRNOs
.
SCAN_ERRNO_OVERTOL
.
Descrption
,
ERR_STATE
.
OFF
);
}
break
;
}
ERR_STATE
.
OFF
);
}
break
;
}
}
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/TDGage.cs
View file @
8b73bece
...
...
@@ -89,6 +89,9 @@ namespace FLY.Thick.Blowing.Server
/// </summary>
public
GM_BlowingFix
mGMRenZiJiaFix
;
/// <summary>
/// 扫描报警系统
/// </summary>
public
ScanWarning
mScanWarning
;
...
...
@@ -216,19 +219,34 @@ namespace FLY.Thick.Blowing.Server
//---------------------------------------------------------------------------------------------------------------
//Warning_Create
mWarning
=
new
OBJComponents
.
Server
.
WarningSystem
();
mWarning
.
RingEvent
+=
()
=>
OBJComponents
.
Server
.
BufferError
bufferError
=
new
OBJComponents
.
Server
.
BufferError
();
bufferError
.
Init
(
mDBModel
);
mWarning
=
new
OBJComponents
.
Server
.
WarningSystem
(
bufferError
);
Misc
.
BindingOperations
.
SetBinding
(
mWarning
,
"IsRinging"
,
()
=>
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)~
Misc
.
MyBase
.
BIT
(
4
-
1
));
};
mWarning
.
ResetEvent
+=
()
=>
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
));
};
if
(
mWarning
.
IsRinging
)
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)~
Misc
.
MyBase
.
BIT
(
4
-
1
));
}
else
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
));
}
});
//---------------------------------------------------------------------------------------------------------------
//ScanWarning_Create
mScanWarning
=
new
ScanWarning
();
mScanWarning
.
Init
(
mWarning
,
mProfile
.
Param
,
mBulkDB
);
//---------------------------------------------------------------------------------------------------------------
//GM_Fix_Create
...
...
Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan/Server/TDGage.cs
View file @
8b73bece
...
...
@@ -346,18 +346,21 @@ namespace FLY.Thick.BlowingScan.Server
//---------------------------------------------------------------------------------------------------------------
//Warning_Create
mWarning
=
new
OBJComponents
.
Server
.
WarningSystem
();
mWarning
.
RingEvent
+=
()
=>
Misc
.
BindingOperations
.
SetBinding
(
mWarning
,
"IsRinging"
,
()
=>
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)~
Misc
.
MyBase
.
BIT
(
4
-
1
));
};
mWarning
.
ResetEvent
+=
()
=>
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
));
};
if
(
mWarning
.
IsRinging
)
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)~
Misc
.
MyBase
.
BIT
(
4
-
1
));
}
else
{
mFlyAD
.
SetOutput
(
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
),
(
UInt16
)
Misc
.
MyBase
.
BIT
(
4
-
1
));
}
});
//---------------------------------------------------------------------------------------------------------------
//GM_Fix_Create
mGMFix
=
new
GM_Fix
(
mFlyAD
);
...
...
Project.FLY.Weight/FLY.Weight/Server/WeightSystem.cs
View file @
8b73bece
...
...
@@ -148,15 +148,16 @@ namespace FLY.Weight.Server
Items
[
i
].
AlarmIsOn
=
!
mWarning
.
Enable
;
}
});
mWarning
.
ResetEvent
=
()
=>
//复位事件
Misc
.
BindingOperations
.
SetBinding
(
mWarning
,
"IsRinging"
,
()
=>
{
for
(
int
i
=
0
;
i
<
ItemsCnt
;
i
++
)
if
(!
mWarning
.
IsRinging
)
{
Items
[
i
].
IsAlarmReseted
=
false
;
for
(
int
i
=
0
;
i
<
ItemsCnt
;
i
++)
{
Items
[
i
].
IsAlarmReseted
=
false
;
}
}
};
});
//--------------------------------------------------------------------------------
//流量记录
FlowList
=
new
BufferStorage
<
FlyData_Flow
>(
"flowlist.csv"
,
5
,
FlowListSize
);
...
...
thick_public
@
b42aa275
Subproject commit
3afe9982506cd9532f479849c25a711ef82eea0f
Subproject commit
b42aa2756c91edc717a67ac8c52906e7f95dff27
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