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
15c94173
Commit
15c94173
authored
Nov 14, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IBC 支持数据库
parent
60ec0326
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
142 deletions
+1
-142
FlyData_IBCCtrl.cs
Project.FLY.IBC/FLY.IBC/Common/FlyData_IBCCtrl.cs
+0
-112
IBCCtrlData.cs
Project.FLY.IBC/FLY.IBC/Common/IBCCtrlData.cs
+0
-24
FLY.IBC.csproj
Project.FLY.IBC/FLY.IBC/FLY.IBC.csproj
+0
-2
IBCSystem.cs
Project.FLY.IBC/FLY.IBC/Server/IBCSystem.cs
+1
-4
No files found.
Project.FLY.IBC/FLY.IBC/Common/FlyData_IBCCtrl.cs
deleted
100644 → 0
View file @
60ec0326
using
FLY.Thick.RemoteHistory
;
using
FObjBase
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
FLY.IBC.Common
{
public
class
FlyData_IBCCtrl
:
IFlyData
,
INotifyPropertyChanged
{
/// <summary>
/// 时间点
/// </summary>
public
DateTime
Time
{
get
;
set
;
}
/// <summary>
/// 折径显示(mm)
/// </summary>
public
float
FilmWidth
{
get
;
set
;
}
/// <summary>
/// 进风运行频率(Hz)(自动调节)
/// </summary>
public
float
InletAirFreq
{
get
;
set
;
}
/// <summary>
/// 出风运行频率(Hz)(手动调节)
/// </summary>
public
float
OutletAirFreq
{
get
;
set
;
}
/// <summary>
/// 进风-出风
/// </summary>
public
float
DFreq
{
get
{
return
InletAirFreq
-
OutletAirFreq
;
}
}
public
event
PropertyChangedEventHandler
PropertyChanged
;
#
region
IFlyData
public
string
GetHeader
()
{
string
header
=
"时间"
;
header
+=
",折径(mm)"
;
header
+=
",进风频率"
;
header
+=
",出风频率"
;
return
header
;
}
public
override
string
ToString
()
{
string
str
;
str
=
Time
.
ToString
();
//时间
str
+=
","
+
FilmWidth
.
ToString
(
"F1"
);
//折径(mm)
str
+=
","
+
InletAirFreq
.
ToString
(
"F1"
);
//进风频率
str
+=
","
+
OutletAirFreq
.
ToString
(
"F1"
);
//出风频率
return
str
;
}
public
bool
TryParse
(
string
header_str
,
string
str
)
{
string
[]
items
=
header_str
.
Split
(
new
char
[]
{
','
});
if
(
items
.
Length
<
4
)
return
false
;
items
=
str
.
Split
(
new
char
[]
{
','
});
if
(
items
.
Length
<
4
)
return
false
;
int
idx
=
0
;
DateTime
t
;
float
f
;
//时间
if
(!
DateTime
.
TryParse
(
items
[
idx
],
out
t
))
return
false
;
Time
=
t
;
idx
++;
//折径(mm)
if
(!
float
.
TryParse
(
items
[
idx
],
out
f
))
return
false
;
FilmWidth
=
f
;
idx
++;
//进风频率
if
(!
float
.
TryParse
(
items
[
idx
],
out
f
))
return
false
;
InletAirFreq
=
f
;
idx
++;
//出风频率
if
(!
float
.
TryParse
(
items
[
idx
],
out
f
))
return
false
;
OutletAirFreq
=
f
;
idx
++;
return
true
;
}
#
endregion
}
}
Project.FLY.IBC/FLY.IBC/Common/IBCCtrlData.cs
deleted
100644 → 0
View file @
60ec0326
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
FLY.IBC.Common
{
public
class
IBCCtrlListData
:
INotifyPropertyChanged
{
/// <summary>
/// 数据间隔,单位s
/// </summary>
public
int
Interval
{
get
;
set
;
}
public
IBCCtrlListData
()
{
Interval
=
2
;
}
public
event
PropertyChangedEventHandler
PropertyChanged
;
}
}
Project.FLY.IBC/FLY.IBC/FLY.IBC.csproj
View file @
15c94173
...
...
@@ -48,8 +48,6 @@
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Client\IBCSystemClient.cs"
/>
<Compile
Include=
"Common\FlyData_IBCCtrl.cs"
/>
<Compile
Include=
"Common\IBCCtrlData.cs"
/>
<Compile
Include=
"Common\ERRNOs.cs"
/>
<Compile
Include=
"Common\IBCData.cs"
/>
<Compile
Include=
"IService\IIBCSystemService.cs"
/>
...
...
Project.FLY.IBC/FLY.IBC/Server/IBCSystem.cs
View file @
15c94173
...
...
@@ -60,10 +60,7 @@ namespace FLY.IBC.Server
HistoryDb
historyDb
;
WarningSystem
warning
;
static
IBCSystem
()
{
Misc
.
SaveToXmlHepler
.
Regist
(
typeof
(
IBCCtrlListData
));
}
public
IBCSystem
()
{
Load
();
...
...
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