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
fd2f4630
Commit
fd2f4630
authored
Apr 13, 2020
by
LiGuohua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分离分析和监视数据
parent
45f4a56a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
21 deletions
+17
-21
HeatThickDetector.xaml.cs
...r.UI/UIModule/HeatThickDetector/HeatThickDetector.xaml.cs
+2
-1
Page_HeatDetector.xaml.cs
...x/FLY.HeatingHelper.UI/UIModule/Page_HeatDetector.xaml.cs
+2
-1
UC_AirRingShift.xaml.cs
...Fix/FLY.HeatingHelper.UI/UIModule/UC_AirRingShift.xaml.cs
+2
-0
ViewModel_UC_SelectData.cs
...lper.UI/UIModule/UC_SelectData/ViewModel_UC_SelectData.cs
+2
-13
IThickHeatData.cs
....ThickHeatAnalyst.Fix/FLY.HeatingHelper/IThickHeatData.cs
+2
-0
ThickHeatData.cs
...Y.ThickHeatAnalyst.Fix/FLY.HeatingHelper/ThickHeatData.cs
+4
-4
ThickHeatData4SQLite_V2.cs
...tAnalyst.Fix/FLY.HeatingHelper/ThickHeatData4SQLite_V2.cs
+3
-2
和美追边客户端容器描述.xmind
脚本/和美追边客户端容器描述.xmind
+0
-0
No files found.
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper.UI/UIModule/HeatThickDetector/HeatThickDetector.xaml.cs
View file @
fd2f4630
...
...
@@ -34,10 +34,11 @@ namespace FLY.HeatingHelper.UI.UiModule
private
IUnityContainer
container
;
[
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
,
IThickHeatData
dat
)
public
void
Init
(
IUnityContainer
container
,
[
Dependency
(
"forThread"
)]
IThickHeatData
dat
)
{
this
.
container
=
container
;
vm
=
new
ViewModel_HeatThickDetector
(
container
.
Resolve
<
FLY
.
Thick
.
Blowing
.
IService
.
IBlowingService
>(),
dat
);
dat
.
StartMonitorTask
();
this
.
DataContext
=
vm
;
}
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper.UI/UIModule/Page_HeatDetector.xaml.cs
View file @
fd2f4630
...
...
@@ -43,6 +43,7 @@ namespace FLY.HeatingHelper.UI.UiModule
public
void
Init
(
IUnityContainer
container
,
IThickHeatData
dat
)
{
Dat
=
dat
as
IThickHeatData
;
Dat
.
LoadMetaDataFromDB
();
container
.
BuildUp
(
uc_SelectData
);
container
.
BuildUp
(
uc_airRingShift
);
container
.
BuildUp
(
uc_heatBoltAnalyst
);
...
...
@@ -84,7 +85,7 @@ namespace FLY.HeatingHelper.UI.UiModule
private
void
Page_Unloaded
(
object
sender
,
RoutedEventArgs
e
)
{
Dat
.
EndUse
();
Dat
.
EndUse
();
}
}
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper.UI/UIModule/UC_AirRingShift.xaml.cs
View file @
fd2f4630
...
...
@@ -210,6 +210,8 @@ namespace FLY.HeatingHelper.UI.UiModule
//while (rb < 0) rb += cnt;
//while (rb >= cnt) rb -= cnt;
//ResetBolt = rb;
if
(
correls
is
null
)
return
;
TandH_Corel
=
correls
[
_NewResetBolt
-
1
];
}
}
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper.UI/UIModule/UC_SelectData/ViewModel_UC_SelectData.cs
View file @
fd2f4630
...
...
@@ -39,18 +39,7 @@ namespace FLY.HeatingHelper.UI.UiModule.UC_SelectData
public
DateTime
?
TotalDataFrom
{
get
;
set
;
}
=
null
;
public
int
RecordCount
{
get
{
if
(
Dat
is
null
)
return
-
1
;
return
Dat
.
Dat_Times
.
Count
();
}
set
{
}
}
public
int
RecordCount
{
get
;
set
;
}
public
double
[]
DS_thick
{
get
;
set
;
}
public
double
[]
DS_2sigma
{
get
;
set
;
}
...
...
@@ -150,7 +139,7 @@ namespace FLY.HeatingHelper.UI.UiModule.UC_SelectData
Dat
.
LoadDataFromDB
(
1
);
Dat
.
ResetCluster
();
Dat
.
ClusterOnThickMean
();
RecordCount
=
1
;
RecordCount
=
Dat
.
Dat_Times
.
Count
();
;
OnLoaded
();
//UpdateChart();
}
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper/IThickHeatData.cs
View file @
fd2f4630
...
...
@@ -180,6 +180,8 @@ namespace FLY.HeatingHelper
int
DataChanged
{
get
;
set
;
}
//bool IsDataReady { get; }
void
StartMonitorTask
();
bool
BeginUse
(
bool
isAsync
=
true
);
void
EndUse
();
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper/ThickHeatData.cs
View file @
fd2f4630
...
...
@@ -31,7 +31,7 @@ namespace FLY.HeatingHelper
{
if
(
DBName
==
dbname
)
return
;
DBName
=
dbname
;
StartDBTask
();
//
StartDBTask();
//worker.WorkerSupportsCancellation = true;
//worker.WorkerReportsProgress = true;
//worker.DoWork += new DoWorkEventHandler((o, e) =>
...
...
@@ -1541,8 +1541,9 @@ namespace FLY.HeatingHelper
#
endregion
#
region
自动更新数据的任务
private
Task
taskForDB
;
p
rivate
void
StartDB
Task
()
p
ublic
void
StartMonitor
Task
()
{
taskForDB
=
Task
.
Factory
.
StartNew
(()
=>
{
...
...
@@ -1550,10 +1551,9 @@ namespace FLY.HeatingHelper
{
if
(
BeginUse
())
{
bool
tmp
=
IsFilterUnstable
;
IsFilterUnstable
=
true
;
IsDataFilter
=
true
;
RefreshData
();
IsFilterUnstable
=
tmp
;
EndUse
();
Thread
.
Sleep
(
1000
*
60
);
}
...
...
Project.FLY.ThickHeatAnalyst.Fix/FLY.HeatingHelper/ThickHeatData4SQLite_V2.cs
View file @
fd2f4630
...
...
@@ -225,14 +225,15 @@ namespace FLY.HeatingHelper
if
((
reload
==
0
&&
_ids
.
Count
()
==
0
)
||
(
reload
==
1
))
{
clear
=
true
;
DateTime
to
=
LoadDataTo
+
new
TimeSpan
(
0
,
0
,
1
);
if
(
IsFilterUnstable
)
cmdstr
=
string
.
Format
(
"select * from [ThickHeat] where IsStable=1 and Time>=\"{0}\" and Time<=\"{1}\""
,
LoadDataFrom
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
LoadDataT
o
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
t
o
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
else
cmdstr
=
string
.
Format
(
"select * from [ThickHeat] where Time>=\"{0}\" and Time<=\"{1}\""
,
LoadDataFrom
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
LoadDataT
o
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
t
o
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
else
{
...
...
脚本/和美追边客户端容器描述.xmind
View file @
fd2f4630
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