Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
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
潘栩锋
Thick-Common
Commits
ee92836d
Commit
ee92836d
authored
Apr 17, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
???
parent
e0a9f888
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
41 additions
and
39 deletions
+41
-39
AppJustOne.cs
Project.FLY.AppHelper/FLY.AppHelper/AppJustOne.cs
+1
-1
ControllerStateConverter.cs
...e/FLY.Thick.Base.UI/Converter/ControllerStateConverter.cs
+1
-1
Page_Boltmap.xaml.cs
...ect.FLY.Thick.Base/FLY.Thick.Base.UI/Page_Boltmap.xaml.cs
+2
-2
Page_Curve.xaml.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_Curve.xaml.cs
+1
-1
Page_CurveModify.xaml.cs
...FLY.Thick.Base/FLY.Thick.Base.UI/Page_CurveModify.xaml.cs
+1
-1
Page_FlyAD.xaml.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_FlyAD.xaml.cs
+1
-1
Page_GageInfo.xaml.cs
...ct.FLY.Thick.Base/FLY.Thick.Base.UI/Page_GageInfo.xaml.cs
+1
-1
Page_GetSample.xaml.cs
...t.FLY.Thick.Base/FLY.Thick.Base.UI/Page_GetSample.xaml.cs
+1
-1
Page_Initparam.xaml.cs
...t.FLY.Thick.Base/FLY.Thick.Base.UI/Page_Initparam.xaml.cs
+1
-1
Page_ScanWarning.xaml.cs
...FLY.Thick.Base/FLY.Thick.Base.UI/Page_ScanWarning.xaml.cs
+1
-1
Page_WarningSystem.xaml.cs
...Y.Thick.Base/FLY.Thick.Base.UI/Page_WarningSystem.xaml.cs
+1
-1
Window_Password.xaml.cs
....FLY.Thick.Base/FLY.Thick.Base.UI/Window_Password.xaml.cs
+16
-12
Window_PasswordEdit.xaml.cs
....Thick.Base/FLY.Thick.Base.UI/Window_PasswordEdit.xaml.cs
+9
-11
GM_Fix.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GM_Fix.cs
+4
-4
No files found.
Project.FLY.AppHelper/FLY.AppHelper/AppJustOne.cs
View file @
ee92836d
...
...
@@ -25,7 +25,7 @@ namespace FLY.AppHelper
(
p
.
ProcessName
==
process
.
ProcessName
)
&&
(
p
.
Id
!=
process
.
Id
)
&&
(
p
.
MainModule
.
FileName
==
process
.
MainModule
.
FileName
)
&&
(
p
.
HasExited
)
(
!
p
.
HasExited
)
select
p
;
try
{
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Converter/ControllerStateConverter.cs
View file @
ee92836d
...
...
@@ -32,7 +32,7 @@ namespace ThickTcpUiInWindow.Converter
case
CTRL_STATE
.
CORR
:
return
Application
.
Current
.
FindResource
(
"strCSCorr"
);
case
CTRL_STATE
.
GETSAMPLE
:
return
Application
.
Current
.
FindResource
(
"strCSGetSampl"
);
return
Application
.
Current
.
FindResource
(
"strCSGetSampl
e
"
);
case
CTRL_STATE
.
RUNNING
:
return
Application
.
Current
.
FindResource
(
"strCSRunning"
);
case
CTRL_STATE
.
DISCONNECTED
:
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_Boltmap.xaml.cs
View file @
ee92836d
...
...
@@ -81,7 +81,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mBoltMapService
.
ApplyBorder
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
@@ -92,7 +92,7 @@ namespace ThickTcpUiInWindow
private
void
button_createimg_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
Window_BoltCreate
w
=
new
Window_BoltCreate
();
w
.
Init
(
mBoltMapService
,
mInitParamService
);
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_Curve.xaml.cs
View file @
ee92836d
...
...
@@ -95,7 +95,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mCurveService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_CurveModify.xaml.cs
View file @
ee92836d
...
...
@@ -312,7 +312,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mCurveService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_FlyAD.xaml.cs
View file @
ee92836d
...
...
@@ -60,7 +60,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
2
))
if
(
Window_Password
.
Authorize
(
10
))
{
mFlyADService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_GageInfo.xaml.cs
View file @
ee92836d
...
...
@@ -414,7 +414,7 @@ namespace ThickTcpUiInWindow
}
void
button_start_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
if
(
mGageInfoService
.
IsRunning
)
mGageInfoService
.
Stop
();
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_GetSample.xaml.cs
View file @
ee92836d
...
...
@@ -65,7 +65,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mGetSampleService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_Initparam.xaml.cs
View file @
ee92836d
...
...
@@ -45,7 +45,7 @@ namespace ThickTcpUiInWindow
}
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mInitParamService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_ScanWarning.xaml.cs
View file @
ee92836d
...
...
@@ -47,7 +47,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mScanWarningService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Page_WarningSystem.xaml.cs
View file @
ee92836d
...
...
@@ -30,7 +30,7 @@ namespace ThickTcpUiInWindow
private
void
button_apply_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
Window_Password
.
Authorize
(
1
))
if
(
Window_Password
.
Authorize
(
2
))
{
mWarningService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Window_Password.xaml.cs
View file @
ee92836d
...
...
@@ -66,21 +66,25 @@ namespace ThickTcpUiInWindow
switch
(
r
)
{
case
AUTHORIZE_RESULT
.
OK
:
this
.
DialogResult
=
true
;
mPwKeep
.
SetPSK
(
PSK
);
break
;
{
mPwKeep
.
SetPSK
(
PSK
);
this
.
DialogResult
=
true
;
this
.
Close
();
return
;
}
case
AUTHORIZE_RESULT
.
ERR_LEVEL
:
FLY
.
ControlLibrary
.
Window_WarningTip
.
Show
(
"错误"
,
"权限不足"
,
TimeSpan
.
FromSeconds
(
2
));
this
.
DialogResult
=
false
;
break
;
{
FLY
.
ControlLibrary
.
Window_WarningTip
.
Show
(
"错误"
,
$"权限不足 需要Lv
{
Level
}
以上密码"
,
TimeSpan
.
FromSeconds
(
2
));
return
;
}
case
AUTHORIZE_RESULT
.
ERR_PW
:
FLY
.
ControlLibrary
.
Window_WarningTip
.
Show
(
"错误"
,
"密码错误"
,
TimeSpan
.
FromSeconds
(
2
));
this
.
DialogResult
=
false
;
break
;
{
FLY
.
ControlLibrary
.
Window_WarningTip
.
Show
(
"错误"
,
"密码错误"
,
TimeSpan
.
FromSeconds
(
2
));
return
;
}
}
this
.
Close
();
return
;
}
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/Window_PasswordEdit.xaml.cs
View file @
ee92836d
...
...
@@ -81,7 +81,7 @@ namespace ThickTcpUiInWindow
public
int
Level
{
get
;
set
;
}
public
int
[]
Levels
{
get
;
}
=
new
int
[]
{
0
,
1
};
public
int
[]
Levels
{
get
;
}
=
new
int
[]
{
0
,
1
,
2
};
PasswordService
mPasswordService
=
null
;
...
...
@@ -106,17 +106,15 @@ namespace ThickTcpUiInWindow
}
else
if
(
mPasswordService
.
PWs
.
Exists
(
pw
=>
pw
.
Password
==
PSK
))
{
FLY
.
ControlLibrary
.
Window_WarningTip
.
Show
(
"错误"
,
"此密码已经存在"
,
TimeSpan
.
FromSeconds
(
2
));
return
false
;
//此密码已经存在
//把它改级别
PasswordCell
pc
=
mPasswordService
.
PWs
.
Find
(
pw
=>
pw
.
Password
==
PSK
);
if
(
pc
!=
null
)
pc
.
Level
=
Level
;
mPasswordService
.
Apply
();
return
true
;
}
//else if (Level)
//{
// FLY.ControlLibrary.Window_WarningTip.Show("错误", "请选择密码级别",
// TimeSpan.FromSeconds(2));
// return false;
//}
//else
else
{
//删除全部level=1的密码
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GM_Fix.cs
View file @
ee92836d
...
...
@@ -85,8 +85,8 @@ namespace FLY.Thick.Base.Server
while
(
data
.
Count
()>
0
)
{
int
cnt
=
(
data
.
Count
()
>
size
)
?
size
:
data
.
Count
();
var
ADs2
=
data
.
Take
(
cnt
);
var
thicks2
=
thicks
.
Take
(
cnt
);
int
[]
ADs2
=
data
.
Take
(
cnt
).
ToArray
(
);
double
[]
thicks2
=
thicks
.
Take
(
cnt
).
ToArray
(
);
data
.
RemoveRange
(
0
,
cnt
);
thicks
.
RemoveRange
(
0
,
cnt
);
...
...
@@ -96,8 +96,8 @@ namespace FLY.Thick.Base.Server
{
time
=
dt
,
ts
=
ts
,
ADs
=
ADs2
.
ToArray
()
,
thicks
=
thicks2
.
ToArray
()
ADs
=
ADs2
,
thicks
=
thicks2
});
dt
+=
TimeSpan
.
FromTicks
(
cnt
*
ts
.
Ticks
);
}
...
...
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