Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3185ffb8
由
LN
编写于
2020-06-08 15:41:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改BUG: 托盘一直显示有料
1 个父辈
5bd88572
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
18 行删除
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/记录.txt
source/Common/util/MyWebClient.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
3185ffb
...
@@ -466,7 +466,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -466,7 +466,7 @@ namespace OnlineStore.AssemblyLine
StringBuilder
sbResult
=
new
StringBuilder
();
StringBuilder
sbResult
=
new
StringBuilder
();
PerformanceCounter
pf1
=
new
PerformanceCounter
(
"Process"
,
"Working Set - Private"
,
process
.
ProcessName
);
PerformanceCounter
pf1
=
new
PerformanceCounter
(
"Process"
,
"Working Set - Private"
,
process
.
ProcessName
);
sbResult
.
AppendFormat
(
DateTime
.
Now
.
ToLongTimeString
()
+
", 名称:{0} 内存:{1}M "
,
process
.
ProcessName
,
Math
.
Round
(
pf1
.
NextValue
()
/
1024
/
1024F
,
2
));
sbResult
.
AppendFormat
(
DateTime
.
Now
.
ToLongTimeString
()
+
", 名称:{0} 内存:{1}M "
,
process
.
ProcessName
,
Math
.
Round
(
pf1
.
NextValue
()
/
1024
/
1024F
,
2
));
sbResult
.
AppendFormat
(
", CPU : {0} %"
,
curtime
.
NextValue
());
sbResult
.
AppendFormat
(
", CPU : {0} %"
,
curtime
.
NextValue
()
/
Environment
.
ProcessorCount
);
LogUtil
.
info
(
sbResult
.
ToString
());
LogUtil
.
info
(
sbResult
.
ToString
());
}
}
}
}
...
...
source/AssemblyLineClient/记录.txt
查看文件 @
3185ffb
20200529
20200603
入库时。料仓正好复位,导致未开始入库,入库信息丢失。
20200529
1.上料模块料架号增加缓存
1.上料模块料架号增加缓存
...
...
source/Common/util/MyWebClient.cs
查看文件 @
3185ffb
...
@@ -77,23 +77,22 @@ namespace OnlineStore.Common
...
@@ -77,23 +77,22 @@ namespace OnlineStore.Common
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
string
Post
(
string
url
,
string
paramData
,
int
timeOut
=
5000
)
public
static
string
Post
(
string
url
,
string
paramData
,
int
timeOut
=
5000
)
{
{
return
Post
(
url
,
paramData
,
Encoding
.
UTF8
,
timeOut
);
bool
IsTimeOut
=
false
;
return
Post
(
url
,
paramData
,
Encoding
.
UTF8
,
timeOut
,
out
IsTimeOut
);
}
}
private
static
int
isLog
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
Server_Log_Open
);
private
static
int
isLog
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
Server_Log_Open
);
public
static
string
Post
(
string
url
,
string
paramData
,
Encoding
encoding
,
int
timeOut
=
5000
)
public
static
string
Post
(
string
url
,
string
paramData
,
Encoding
encoding
,
int
timeOut
,
out
bool
IsTimeOut
)
{
{
//if (PingURLIP(url, 100).Equals(false))
IsTimeOut
=
false
;
//{
// return "";
//}
if
(
isLog
==
1
)
if
(
isLog
==
1
)
{
{
LOGGER
.
Info
(
"给服务器发送数据【"
+
paramData
+
"】 "
);
LOGGER
.
Info
(
"给服务器发送数据【"
+
paramData
+
"】 "
);
}
}
if
(
paramData
!=
"null"
&&
paramData
!=
null
)
//
if (paramData != "null" && paramData != null)
{
//
{
// LogUtil.debug(LOGGER, "HTTP POST to " + url + " \n\t >> " + paramData);
// LogUtil.debug(LOGGER, "HTTP POST to " + url + " \n\t >> " + paramData);
}
//
}
string
result
=
""
;
string
result
=
""
;
if
(
url
.
ToLower
().
IndexOf
(
"https"
,
System
.
StringComparison
.
Ordinal
)
>
-
1
)
if
(
url
.
ToLower
().
IndexOf
(
"https"
,
System
.
StringComparison
.
Ordinal
)
>
-
1
)
...
@@ -112,6 +111,11 @@ namespace OnlineStore.Common
...
@@ -112,6 +111,11 @@ namespace OnlineStore.Common
result
=
wc
.
UploadString
(
url
,
"POST"
,
paramData
);
result
=
wc
.
UploadString
(
url
,
"POST"
,
paramData
);
//LogUtil.info(result);
//LogUtil.info(result);
}
}
catch
(
WebException
ex
)
{
IsTimeOut
=
true
;
LogUtil
.
error
(
"POST WebException :"
+
ex
.
ToString
(),
101
);
}
catch
(
Exception
e
)
catch
(
Exception
e
)
{
{
LogUtil
.
error
(
"POST ERROR:"
+
e
.
ToString
(),
101
);
LogUtil
.
error
(
"POST ERROR:"
+
e
.
ToString
(),
101
);
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
3185ffb
...
@@ -910,28 +910,29 @@ namespace OnlineStore.DeviceLibrary
...
@@ -910,28 +910,29 @@ namespace OnlineStore.DeviceLibrary
TrayManager
.
UpdateTrayInfo
(
currTrayNum
,
true
,
ReelType
.
InStore
,
new
InOutParam
(
currTrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
false
),
""
);
TrayManager
.
UpdateTrayInfo
(
currTrayNum
,
true
,
ReelType
.
InStore
,
new
InOutParam
(
currTrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
false
),
""
);
getPosTask
=
Task
.
Factory
.
StartNew
(
delegate
getPosTask
=
Task
.
Factory
.
StartNew
(
delegate
{
{
int
sTrayNum
=
currTrayNum
;
//更新托盘条码信息
//更新托盘条码信息
try
try
{
{
if
(
code
.
Equals
(
""
))
if
(
code
.
Equals
(
""
))
{
{
InOutParam
param
=
new
InOutParam
(
curr
TrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
InOutParam
param
=
new
InOutParam
(
s
TrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
TrayManager
.
UpdateTrayInfo
(
curr
TrayNum
,
true
,
ReelType
.
InStore
,
param
,
"扫码失败"
);
TrayManager
.
UpdateTrayInfo
(
s
TrayNum
,
true
,
ReelType
.
InStore
,
param
,
"扫码失败"
);
}
}
//从服务器获取库位号
//从服务器获取库位号
string
result
=
SServerManager
.
CodeReceived
(
Name
,
curr
TrayNum
,
LastCodeList
,
LastHeight
,
LastWidth
,
CurrShelfId
,
DeviceID
);
string
result
=
SServerManager
.
CodeReceived
(
Name
,
s
TrayNum
,
LastCodeList
,
LastHeight
,
LastWidth
,
CurrShelfId
,
DeviceID
);
if
(!
result
.
Equals
(
""
))
if
(!
result
.
Equals
(
""
))
{
{
InOutParam
param
=
new
InOutParam
(
curr
TrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
InOutParam
param
=
new
InOutParam
(
s
TrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
param
.
rfid
=
CurrShelfId
;
param
.
rfid
=
CurrShelfId
;
TrayManager
.
UpdateTrayInfo
(
curr
TrayNum
,
true
,
ReelType
.
InStore
,
param
,
result
);
TrayManager
.
UpdateTrayInfo
(
s
TrayNum
,
true
,
ReelType
.
InStore
,
param
,
result
);
// TrayManager.UpdateInStoreNG(currTrayNum, true, result);
// TrayManager.UpdateInStoreNG(currTrayNum, true, result);
LogUtil
.
error
(
Name
+
"托盘【"
+
curr
TrayNum
+
"】"
+
result
);
LogUtil
.
error
(
Name
+
"托盘【"
+
s
TrayNum
+
"】"
+
result
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
Name
+
"托盘【"
+
curr
TrayNum
+
"】【"
+
code
+
"】获取库位号报错:"
+
ex
.
ToString
());
LogUtil
.
error
(
Name
+
"托盘【"
+
s
TrayNum
+
"】【"
+
code
+
"】获取库位号报错:"
+
ex
.
ToString
());
}
}
});
});
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论