Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5526cea4
由
张东亮
编写于
2025-06-04 08:56:21 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
4630d900
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
13 行删除
source/ShelfPrinter/FrmShelfPrinterMain.cs
source/XLRStoreClient/inputForm/FrmRobot.Designer.cs
source/XLRStoreClient/inputForm/FrmRobot.cs
source/ShelfPrinter/FrmShelfPrinterMain.cs
查看文件 @
5526cea
...
...
@@ -85,7 +85,8 @@ namespace ShelfPrinter
text
.
Add
(
"sj"
,
label_LZ
.
shijian
);
text
.
Add
(
"zb"
,
label_LZ
.
slot
);
pictureBox1
.
Image
=
print
.
Print
(
text
);
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"printLabel"
,
ex
);
}
...
...
@@ -125,7 +126,7 @@ namespace ShelfPrinter
private
void
button2_Click
(
object
sender
,
EventArgs
e
)
{
printLabel
(
new
Label_LZ
(
textBox1
.
Text
,
textBox3
.
Text
,
textBox4
.
Text
,
textBox2
.
Text
,
textBox5
.
Text
,
textBox6
.
Text
));
printLabel
(
new
Label_LZ
(
textBox1
.
Text
,
textBox3
.
Text
,
textBox4
.
Text
,
textBox2
.
Text
,
textBox5
.
Text
,
textBox6
.
Text
));
}
string
[]
cids
=
ConfigAppSettings
.
GetValue
(
"cid"
,
"01#02"
).
Split
(
'#'
);
object
handleObj
=
new
object
();
...
...
@@ -146,12 +147,24 @@ namespace ShelfPrinter
//foreach (var item in labels)
{
lblLabelInfo
.
Text
=
$
"打印任务[{item}]:{labels.ToStr()}"
;
//printLabel(new Label_LZ(labels.pn, labels.side, labels.station, labels.line));
//while (printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Printing)
// || printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Print))
//{
// Thread.Sleep(300);
//}
var
printLbl
=
new
Label_LZ
(
labels
.
pn
,
labels
.
side
,
labels
.
station
,
labels
.
line
);
try
{
print
.
PrintPreview
(
printview
(
printLbl
));
}
catch
{
}
printLabel
(
printLbl
);
DateTime
dateTime
=
DateTime
.
Now
;
while
(
printerStatus
.
Equals
(
Asa
.
PrintLabel
.
PrinterStatus
.
Printing
)
||
printerStatus
.
Equals
(
Asa
.
PrintLabel
.
PrinterStatus
.
Print
))
{
if
((
DateTime
.
Now
-
dateTime
).
TotalSeconds
>
8
)
break
;
Thread
.
Sleep
(
300
);
}
LogUtil
.
info
(
$
"自动打印[{printerStatus.ToString()}]:{labels.ToStr()}"
);
while
(
true
)
{
...
...
source/XLRStoreClient/inputForm/FrmRobot.Designer.cs
查看文件 @
5526cea
...
...
@@ -33,18 +33,19 @@
//
// ucRobot1
//
this
.
ucRobot1
.
Location
=
new
System
.
Drawing
.
Point
(
1
3
,
13
);
this
.
ucRobot1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
ucRobot1
.
Location
=
new
System
.
Drawing
.
Point
(
1
2
,
11
);
this
.
ucRobot1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
3
,
4
,
3
);
this
.
ucRobot1
.
Name
=
"ucRobot1"
;
this
.
ucRobot1
.
Size
=
new
System
.
Drawing
.
Size
(
704
,
408
);
this
.
ucRobot1
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
340
);
this
.
ucRobot1
.
TabIndex
=
0
;
//
// FrmRobot
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
9F
,
18
F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
15
F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
759
,
463
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
675
,
386
);
this
.
Controls
.
Add
(
this
.
ucRobot1
);
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
2
,
3
,
2
);
this
.
Name
=
"FrmRobot"
;
this
.
Text
=
"机器人调试"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmRobot_Load
);
...
...
source/XLRStoreClient/inputForm/FrmRobot.cs
查看文件 @
5526cea
...
...
@@ -26,5 +26,10 @@ namespace OnlineStore.XLRStore.inputForm
JAKABean
jAKABean
=
StoreManager
.
XLRStore
.
inputEquip
.
RobotServer
.
GetJAKABean
(
ip
);
StoreManager
.
XLRStore
.
inputEquip
.
RobotServer
.
AssociateControl
(
ucRobot1
,
jAKABean
);
}
private
void
ucRobot1_Load
(
object
sender
,
EventArgs
e
)
{
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论