Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bb31ab79
由
LN
编写于
2020-06-22 13:04:36 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
日志修改
1 个父辈
b458d215
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
8 行删除
RC1266-AutoCountMachine/source/Common/util/LogUtil.cs
RC1266-AutoCountMachine/source/DeviceLibrary/model/WorkParam.cs
RC1266-AutoCountMachine/source/Common/util/LogUtil.cs
查看文件 @
bb31ab7
...
@@ -12,7 +12,7 @@ namespace OnlineStore.Common
...
@@ -12,7 +12,7 @@ namespace OnlineStore.Common
{
{
public
class
LogUtil
public
class
LogUtil
{
{
public
static
readonly
ILog
AIOLog
=
LogManager
.
GetLogger
(
"AIOBOX
Log
"
);
public
static
readonly
ILog
AIOLog
=
LogManager
.
GetLogger
(
"AIOBOX"
);
private
static
LogUtil
instance
=
new
LogUtil
();
private
static
LogUtil
instance
=
new
LogUtil
();
public
delegate
void
ShowLog
(
string
msg
,
Color
color
);
public
delegate
void
ShowLog
(
string
msg
,
Color
color
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
"RollingLogFileAppender"
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
"RollingLogFileAppender"
);
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/model/WorkParam.cs
查看文件 @
bb31ab7
...
@@ -15,7 +15,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -15,7 +15,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
class
WorkParam
public
class
WorkParam
{
{
public
WorkParam
(
int
inPosType
=
1
,
int
tPosType
=
0
,
string
barcode
=
""
,
int
plateH
=
0
,
int
plateW
=
0
,
bool
test
=
false
)
public
WorkParam
(
int
inPosType
=
1
,
int
tPosType
=
0
,
string
barcode
=
""
,
int
plateH
=
0
,
int
plateW
=
0
,
bool
test
=
false
)
{
{
this
.
InPosType
=
inPosType
;
this
.
InPosType
=
inPosType
;
this
.
TargetPosType
=
tPosType
;
this
.
TargetPosType
=
tPosType
;
...
@@ -75,7 +75,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -75,7 +75,7 @@ namespace OnlineStore.DeviceLibrary
{
{
tP
=
"电阻测值"
;
tP
=
"电阻测值"
;
}
}
return
" ["
+
WareCode
+
"] "
+
"["
+
PlateW
+
" X "
+
PlateH
+
"] "
+
"["
+
(
InPosType
.
Equals
(
1
)
?
"左侧入口"
:
"右侧入口"
)
+
"-->"
+
tP
+
"]"
;
return
" ["
+
WareCode
+
"] "
+
"["
+
PlateW
+
" X "
+
PlateH
+
"] "
+
"["
+
(
InPosType
.
Equals
(
1
)
?
"左侧入口"
:
"右侧入口"
)
+
"-->"
+
tP
+
"]"
;
}
}
public
string
OutStr
()
public
string
OutStr
()
{
{
...
@@ -150,7 +150,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -150,7 +150,7 @@ namespace OnlineStore.DeviceLibrary
public
class
ReelInfo
public
class
ReelInfo
{
{
public
ReelInfo
(
string
code
=
""
,
int
plateW
=
0
,
int
plateH
=
0
,
int
count
=
0
,
bool
IsNg
=
false
,
string
msg
=
""
)
public
ReelInfo
(
string
code
=
""
,
int
plateW
=
0
,
int
plateH
=
0
,
int
count
=
0
,
bool
IsNg
=
false
,
string
msg
=
""
)
{
{
this
.
WareCode
=
code
;
this
.
WareCode
=
code
;
this
.
PlateH
=
plateH
;
this
.
PlateH
=
plateH
;
...
@@ -183,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -183,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
public
string
ToStr
()
public
string
ToStr
()
{
{
return
"["
+
WareCode
+
"] ["
+
PlateW
+
"X"
+
PlateH
+
"] [数量:"
+
WareCount
+
"]"
+(
IsNgReel
?
"[NG料:"
+
NgMsg
+
"]"
:
""
)+
""
;
return
"["
+
WareCode
+
"] ["
+
PlateW
+
"X"
+
PlateH
+
"] [数量:"
+
WareCount
+
"]"
+
(
IsNgReel
?
"[NG料:"
+
NgMsg
+
"]"
:
""
)
+
""
;
}
}
public
ReelInfo
GetReelInfo
()
public
ReelInfo
GetReelInfo
()
...
@@ -202,15 +202,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -202,15 +202,15 @@ namespace OnlineStore.DeviceLibrary
if
(
codeArray
.
Length
==
2
)
if
(
codeArray
.
Length
==
2
)
{
{
string
pnStr
=
codeArray
[
0
];
string
pnStr
=
codeArray
[
0
];
if
(
pnStr
.
Length
>
3
)
if
(
pnStr
.
Length
>
=
5
)
{
{
pn
=
pnStr
.
Substring
(
pnStr
.
Length
-
3
,
3
);
pn
=
pnStr
.
Substring
(
0
,
2
)
+
pnStr
.
Substring
(
pnStr
.
Length
-
3
,
3
);
}
}
else
else
{
{
pn
=
pnStr
;
pn
=
pnStr
;
}
}
reald
=
codeArray
[
1
];
reald
=
codeArray
[
1
];
}
}
return
pn
+
"-"
+
reald
+
timeName
;
return
pn
+
"-"
+
reald
+
timeName
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论