Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0818bd99
由
刘韬
编写于
2024-05-28 11:08:31 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
启用调试需要密码Config_AdminPwd
1 个父辈
265d3dda
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
2 行删除
source/ACSingleStore/FrmPwd.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/Properties/AssemblyInfo.cs
source/Common/Setting_Init.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/FrmPwd.cs
查看文件 @
0818bd9
...
@@ -17,8 +17,10 @@ namespace OnlineStore.ACSingleStore
...
@@ -17,8 +17,10 @@ namespace OnlineStore.ACSingleStore
public
delegate
void
PwdOK
(
int
type
);
public
delegate
void
PwdOK
(
int
type
);
public
event
PwdOK
PwdOKFun
;
public
event
PwdOK
PwdOKFun
;
private
int
OpenType
=
0
;
private
int
OpenType
=
0
;
public
FrmPwd
(
int
type
)
bool
needadmin
;
public
FrmPwd
(
int
type
,
bool
_needadmin
=
false
)
{
{
needadmin
=
_needadmin
;
OpenType
=
type
;
OpenType
=
type
;
InitializeComponent
();
InitializeComponent
();
}
}
...
@@ -28,6 +30,10 @@ namespace OnlineStore.ACSingleStore
...
@@ -28,6 +30,10 @@ namespace OnlineStore.ACSingleStore
this
.
DialogResult
=
DialogResult
.
None
;
this
.
DialogResult
=
DialogResult
.
None
;
//txtPwd.Text = ConfigAppSettings.GetValue(Setting_Init.DefaultPWD);
//txtPwd.Text = ConfigAppSettings.GetValue(Setting_Init.DefaultPWD);
string
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_Pwd
);
string
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_Pwd
);
if
(
needadmin
)
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_AdminPwd
);
if
(
string
.
IsNullOrEmpty
(
configPwd
))
{
if
(
string
.
IsNullOrEmpty
(
configPwd
))
{
this
.
DialogResult
=
DialogResult
.
OK
;
this
.
DialogResult
=
DialogResult
.
OK
;
this
.
Close
();
this
.
Close
();
...
@@ -38,6 +44,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -38,6 +44,8 @@ namespace OnlineStore.ACSingleStore
{
{
string
pwd
=
txtPwd
.
Text
;
string
pwd
=
txtPwd
.
Text
;
string
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_Pwd
);
string
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_Pwd
);
if
(
needadmin
)
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_AdminPwd
);
//if (configPwd.Equals(""))
//if (configPwd.Equals(""))
//{
//{
// configPwd = "123456";
// configPwd = "123456";
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
0818bd9
...
@@ -939,6 +939,10 @@ namespace OnlineStore.ACSingleStore
...
@@ -939,6 +939,10 @@ namespace OnlineStore.ACSingleStore
{
{
if
(
btnDebug
.
Text
.
Equals
(
ResourceCulture
.
GetString
(
"启用调试"
)))
if
(
btnDebug
.
Text
.
Equals
(
ResourceCulture
.
GetString
(
"启用调试"
)))
{
{
FrmPwd
fw
=
new
FrmPwd
(
10
,
true
);
DialogResult
result
=
fw
.
ShowDialog
(
this
);
if
(
result
.
Equals
(
DialogResult
.
OK
))
DebugStatus
(
true
);
DebugStatus
(
true
);
}
}
else
else
...
@@ -1175,6 +1179,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -1175,6 +1179,7 @@ namespace OnlineStore.ACSingleStore
if
(
this
.
WindowState
==
FormWindowState
.
Minimized
)
if
(
this
.
WindowState
==
FormWindowState
.
Minimized
)
{
{
needpwd
=
true
;
needpwd
=
true
;
DebugStatus
(
false
);
return
;
return
;
}
}
if
(!
needpwd
)
if
(!
needpwd
)
...
...
source/ACSingleStore/Properties/AssemblyInfo.cs
查看文件 @
0818bd9
...
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
...
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
026fb23c8d6a3c677432a5f7ceefa5e2aa659fde
")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
265d3ddac1ce7d5cc5deb01dc23b0a8c1768a1f2
")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCulture("")]
...
...
source/Common/Setting_Init.cs
查看文件 @
0818bd9
...
@@ -68,6 +68,7 @@ namespace OnlineStore.Common
...
@@ -68,6 +68,7 @@ namespace OnlineStore.Common
public
static
string
InOutDefaultPosition
=
"InOutDefaultPosition"
;
public
static
string
InOutDefaultPosition
=
"InOutDefaultPosition"
;
public
static
string
Config_Pwd
=
"Config_Pwd"
;
public
static
string
Config_Pwd
=
"Config_Pwd"
;
public
static
string
Config_AdminPwd
=
"Config_AdminPwd"
;
/// <summary>
/// <summary>
/// 出库等待料盘拿走的时间,秒
/// 出库等待料盘拿走的时间,秒
/// </summary>
/// </summary>
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
0818bd9
...
@@ -2245,6 +2245,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -2245,6 +2245,10 @@ namespace OnlineStore.DeviceLibrary
{
{
boxStatus
.
status
=
(
int
)
StoreStatus
.
InStoreError
;
boxStatus
.
status
=
(
int
)
StoreStatus
.
InStoreError
;
}
}
if
(!
alarmType
.
Equals
(
StoreAlarmType
.
None
))
{
boxStatus
.
status
=
(
int
)
StoreStatus
.
InTrouble
;
}
}
}
//温湿度
//温湿度
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论