Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 25a17196
由
张东亮
编写于
2023-05-29 14:22:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
3b364888
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
7 行删除
source/ShelfPrinter/FrmShelfPrinterMain.cs
source/ShelfPrinter/Program.cs
source/ShelfPrinter/SServerManager.cs
source/ShelfPrinter/FrmShelfPrinterMain.cs
查看文件 @
25a1719
...
@@ -146,12 +146,12 @@ namespace ShelfPrinter
...
@@ -146,12 +146,12 @@ namespace ShelfPrinter
//foreach (var item in labels)
//foreach (var item in labels)
{
{
lblLabelInfo
.
Text
=
$
"打印任务[{item}]:{labels.ToStr()}"
;
lblLabelInfo
.
Text
=
$
"打印任务[{item}]:{labels.ToStr()}"
;
printLabel
(
new
Label_LZ
(
labels
.
pn
,
labels
.
side
,
labels
.
station
,
labels
.
line
));
//
printLabel(new Label_LZ(labels.pn, labels.side, labels.station, labels.line));
while
(
printerStatus
.
Equals
(
Asa
.
PrintLabel
.
PrinterStatus
.
Printing
)
//
while (printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Printing)
||
printerStatus
.
Equals
(
Asa
.
PrintLabel
.
PrinterStatus
.
Print
))
//
|| printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Print))
{
//
{
Thread
.
Sleep
(
300
);
//
Thread.Sleep(300);
}
//
}
LogUtil
.
info
(
$
"自动打印[{printerStatus.ToString()}]:{labels.ToStr()}"
);
LogUtil
.
info
(
$
"自动打印[{printerStatus.ToString()}]:{labels.ToStr()}"
);
while
(
true
)
while
(
true
)
{
{
...
...
source/ShelfPrinter/Program.cs
查看文件 @
25a1719
...
@@ -91,11 +91,13 @@ namespace ShelfPrinter
...
@@ -91,11 +91,13 @@ namespace ShelfPrinter
}
}
if
(!
isShow
)
if
(!
isShow
)
{
{
LogUtil
.
info
(
"启动程序"
);
System
.
Net
.
ServicePointManager
.
DefaultConnectionLimit
=
512
;
System
.
Net
.
ServicePointManager
.
DefaultConnectionLimit
=
512
;
XmlConfigurator
.
Configure
();
XmlConfigurator
.
Configure
();
Application
.
EnableVisualStyles
();
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
Application
.
SetCompatibleTextRenderingDefault
(
false
);
Application
.
Run
(
new
FrmShelfPrinterMain
());
Application
.
Run
(
new
FrmShelfPrinterMain
());
LogUtil
.
info
(
"退出程序"
);
}
}
//Application.EnableVisualStyles();
//Application.EnableVisualStyles();
...
...
source/ShelfPrinter/SServerManager.cs
查看文件 @
25a1719
...
@@ -252,6 +252,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -252,6 +252,8 @@ namespace OnlineStore.DeviceLibrary
if
(
serverResult
==
null
)
if
(
serverResult
==
null
)
{
{
msg
=
$
"FinishPrint"
+
"没有收到服务器反馈"
;
msg
=
$
"FinishPrint"
+
"没有收到服务器反馈"
;
LogUtil
.
error
(
msg
);
return
false
;
}
}
else
if
(
serverResult
.
code
.
Equals
(
0
))
else
if
(
serverResult
.
code
.
Equals
(
0
))
{
{
...
@@ -263,7 +265,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -263,7 +265,7 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
msg
=
$
" FinishPrint【{resultStr}】"
;
msg
=
$
" FinishPrint【{resultStr}】"
;
LogUtil
.
debug
(
msg
);
LogUtil
.
error
(
msg
);
return
false
;
return
false
;
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论