Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b12ff5ef
由
LN
编写于
2019-09-17 15:20:31 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
238863fb
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
18 行删除
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
b12ff5e
...
@@ -171,7 +171,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -171,7 +171,8 @@ namespace OnlineStore.ACSingleStore
{
{
return
;
return
;
}
}
// button6_Click(null, null);
// timer1.Interval = 300;
if
(
chbDebug
.
Checked
.
Equals
(
store
.
IsDebug
).
Equals
(
false
))
if
(
chbDebug
.
Checked
.
Equals
(
store
.
IsDebug
).
Equals
(
false
))
{
{
LoadOk
=
false
;
LoadOk
=
false
;
...
@@ -1371,15 +1372,18 @@ namespace OnlineStore.ACSingleStore
...
@@ -1371,15 +1372,18 @@ namespace OnlineStore.ACSingleStore
}
}
private
void
button6_Click
(
object
sender
,
EventArgs
e
)
private
void
button6_Click
(
object
sender
,
EventArgs
e
)
{
{
int
hasTray
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
if
(
LineConnect
.
IsConnect
())
StoreStatus
ss
=
StoreStatus
.
StoreOnline
;
if
(
store
.
IsDebug
)
{
{
ss
=
StoreStatus
.
Debugging
;
int
hasTray
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
StoreStatus
ss
=
StoreStatus
.
StoreOnline
;
if
(
store
.
IsDebug
)
{
ss
=
StoreStatus
.
Debugging
;
}
StoreSendBean
bean
=
new
StoreSendBean
(
StoreManager
.
Config
.
Id
,
StoreManager
.
Config
.
CID
,
(
int
)
ss
,
(
int
)
StoreRunStatus
.
Runing
,
hasTray
,
(
int
)
StoreAlarmType
.
None
);
LineConnect
.
SendHeart
(
bean
);
}
}
StoreSendBean
bean
=
new
StoreSendBean
(
StoreManager
.
Config
.
Id
,
StoreManager
.
Config
.
CID
,
(
int
)
ss
,
(
int
)
StoreRunStatus
.
Runing
,
hasTray
,
(
int
)
StoreAlarmType
.
None
);
LineConnect
.
SendHeart
(
bean
);
}
}
private
void
chbDebug_CheckedChanged
(
object
sender
,
EventArgs
e
)
private
void
chbDebug_CheckedChanged
(
object
sender
,
EventArgs
e
)
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
b12ff5e
...
@@ -865,7 +865,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -865,7 +865,7 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
private
IO_VALUE
lastAutoRun
=
IO_VALUE
.
LOW
;
private
IO_VALUE
lastAutoRun
=
IO_VALUE
.
LOW
;
private
IO_VALUE
lastAirValue
=
IO_VALUE
.
LOW
;
//
private IO_VALUE lastAirValue = IO_VALUE.LOW;
public
void
IoCheckProcess
()
public
void
IoCheckProcess
()
{
{
DateTime
time
=
DateTime
.
Now
;
DateTime
time
=
DateTime
.
Now
;
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
b12ff5e
...
@@ -88,15 +88,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -88,15 +88,15 @@ namespace OnlineStore.DeviceLibrary
return
JsonHelper
.
SerializeObject
(
store
)+
"\r"
;
return
JsonHelper
.
SerializeObject
(
store
)+
"\r"
;
}
}
private
static
string
ToParamStr
(
List
<
object
>
paramList
)
//
private static string ToParamStr(List<object> paramList)
{
//
{
string
result
=
""
;
//
string result = "";
foreach
(
object
str
in
paramList
)
//
foreach (object str in paramList)
{
//
{
result
+=
str
+
cmd_spilt
.
ToString
();
//
result += str + cmd_spilt.ToString();
}
//
}
return
result
+
"\r"
;
//
return result + "\r";
}
//
}
private
static
void
HandlerMsg
(
string
message
)
private
static
void
HandlerMsg
(
string
message
)
{
{
try
try
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论