Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 185b5c10
由
张东亮
编写于
2026-03-11 13:22:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
指定7*16归类高度改为7*20
1 个父辈
93047e7c
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
3 行删除
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
查看文件 @
185b5c1
...
@@ -597,7 +597,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -597,7 +597,7 @@ namespace OnlineStore.DeviceLibrary
//如果检测出<=15,都按照8计算
//如果检测出<=15,都按照8计算
var
minHeight
=
ConfigHelper
.
Config
.
Get
(
$
"指定厚度以下的归类为8mm"
,
11
);
var
minHeight
=
ConfigHelper
.
Config
.
Get
(
$
"指定厚度以下的归类为8mm"
,
11
);
var
minHeight2
=
ConfigHelper
.
Config
.
Get
(
$
"最大厚度归类为12mm"
,
14
);
var
minHeight2
=
ConfigHelper
.
Config
.
Get
(
$
"最大厚度归类为12mm"
,
14
);
if
(
height
<
minHeight
)
if
(
height
<
=
minHeight
)
{
{
LastHeight
=
8
;
LastHeight
=
8
;
LastTotalHeight
=
8
;
LastTotalHeight
=
8
;
...
@@ -630,7 +630,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -630,7 +630,8 @@ namespace OnlineStore.DeviceLibrary
foreach
(
int
h
in
heightList
)
foreach
(
int
h
in
heightList
)
{
{
//取差值最小的接近值
//取差值最小的接近值
float
cha
=
Math
.
Abs
(
h
-
(
height
-
4
));
var
realH
=
width
==
13
?
height
:
(
height
-
4
);
float
cha
=
Math
.
Abs
(
h
-
realH
);
if
(
cha
<
minCha
)
if
(
cha
<
minCha
)
{
{
LastHeight
=
h
;
LastHeight
=
h
;
...
@@ -645,8 +646,16 @@ namespace OnlineStore.DeviceLibrary
...
@@ -645,8 +646,16 @@ namespace OnlineStore.DeviceLibrary
var
height24MaxActualHeight
=
ConfigHelper
.
Config
.
Get
(
$
"7寸高度归类为24mm的最大实际高度"
,
24
);
var
height24MaxActualHeight
=
ConfigHelper
.
Config
.
Get
(
$
"7寸高度归类为24mm的最大实际高度"
,
24
);
if
(
LastTotalHeight
>=
height24MinActualHeight
&&
LastTotalHeight
<=
height24MaxActualHeight
)
if
(
LastTotalHeight
>=
height24MinActualHeight
&&
LastTotalHeight
<=
height24MaxActualHeight
)
{
{
LastTotalHeight
=
24
;
LogUtil
.
info
(
$
"实际高度在{height24MinActualHeight}与{height24MaxActualHeight},实际高度归类为24"
);
}
var
height20MinActualHeight
=
ConfigHelper
.
Config
.
Get
(
$
"7寸高度归类为20mm的最小实际高度"
,
15
);
var
height20MaxActualHeight
=
ConfigHelper
.
Config
.
Get
(
$
"7寸高度归类为20mm的最大实际高度"
,
20
);
if
(
LastTotalHeight
>=
height20MinActualHeight
&&
LastTotalHeight
<=
height20MaxActualHeight
)
{
LastTotalHeight
=
20
;
LastTotalHeight
=
20
;
LogUtil
.
info
(
$
"实际高度在{height2
4MinActualHeight}与{height24
MaxActualHeight},实际高度归类为20"
);
LogUtil
.
info
(
$
"实际高度在{height2
0MinActualHeight}与{height20
MaxActualHeight},实际高度归类为20"
);
}
}
}
}
else
if
(
width
>
7
)
else
if
(
width
>
7
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论