Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 56a72d0b
由
LN
编写于
2019-12-10 09:13:01 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出入库调试修改
1 个父辈
b91313f5
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
10 行删除
source/ACSingleStore/App.config
source/Common/util/LogUtil.cs
source/DeviceLibrary/store/InOrOutStoreParam.cs
source/ACSingleStore/App.config
查看文件 @
56a72d0
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<
add
key
=
"HumitureControllerType"
value
=
"0"
/>
<
add
key
=
"HumitureControllerType"
value
=
"0"
/>
<
add
key
=
"UseAIOBOX"
value
=
"1"
/>
<
add
key
=
"UseAIOBOX"
value
=
"1"
/>
<!--流水线地址和端口配置-->
<!--流水线地址和端口配置-->
<
add
key
=
"LineServerIp"
value
=
"192.168.
101.11
"
/>
<
add
key
=
"LineServerIp"
value
=
"192.168.
204.88
"
/>
<
add
key
=
"LineServerPort"
value
=
"5246"
/>
<
add
key
=
"LineServerPort"
value
=
"5246"
/>
<!--是否调试状态-->
<!--是否调试状态-->
<
add
key
=
"IsInDebug"
value
=
"1"
/>
<
add
key
=
"IsInDebug"
value
=
"1"
/>
...
...
source/Common/util/LogUtil.cs
查看文件 @
56a72d0
...
@@ -81,16 +81,22 @@ namespace OnlineStore.Common
...
@@ -81,16 +81,22 @@ namespace OnlineStore.Common
{
{
if
(
lastErrorLogTime
.
ContainsKey
(
type
))
if
(
lastErrorLogTime
.
ContainsKey
(
type
))
{
{
TimeSpan
span
=
DateTime
.
Now
-
lastErrorLogTime
[
type
];
try
if
(
span
.
TotalSeconds
<
spanSeconds
)
{
{
return
;
TimeSpan
span
=
DateTime
.
Now
-
lastErrorLogTime
[
type
];
}
if
(
span
.
TotalSeconds
<
spanSeconds
)
else
{
return
;
}
else
{
lastErrorLogTime
.
Remove
(
type
);
lastErrorLogTime
.
Add
(
type
,
DateTime
.
Now
);
error
(
log
,
errorMsg
);
}
}
catch
(
Exception
ex
)
{
{
lastErrorLogTime
.
Remove
(
type
);
lastErrorLogTime
.
Add
(
type
,
DateTime
.
Now
);
error
(
log
,
errorMsg
);
}
}
}
}
else
else
...
...
source/DeviceLibrary/store/InOrOutStoreParam.cs
查看文件 @
56a72d0
...
@@ -33,7 +33,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -33,7 +33,7 @@ namespace OnlineStore.DeviceLibrary
WareNumber
=
wareNo
;
WareNumber
=
wareNo
;
PositionNum
=
posId
;
PositionNum
=
posId
;
MoveP
=
null
;
MoveP
=
null
;
IsSolderPaste
=
false
;
IsSolderPaste
=
false
;
}
}
public
InOutStoreParam
(
string
wareNo
,
string
posId
,
string
plateH
,
string
plateW
)
public
InOutStoreParam
(
string
wareNo
,
string
posId
,
string
plateH
,
string
plateW
)
{
{
...
@@ -54,6 +54,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -54,6 +54,12 @@ namespace OnlineStore.DeviceLibrary
PositionNum
=
posId
;
PositionNum
=
posId
;
MoveP
=
linePosition
;
MoveP
=
linePosition
;
IsSolderPaste
=
false
;
IsSolderPaste
=
false
;
ACStorePosition
p
=
GetACPosition
();
if
(
p
!=
null
)
{
PlateH
=
p
.
BagHigh
.
ToString
();
PlateW
=
p
.
BagWidth
.
ToString
();
}
}
}
//public InOutStoreParam(string wareNo, string posId, ACStorePosition movep)
//public InOutStoreParam(string wareNo, string posId, ACStorePosition movep)
//{
//{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论