|
|
@ -33,6 +33,7 @@ namespace BBWY.Client.Views.SealBox |
|
|
|
WareName = wareName; |
|
|
|
AcceptUserName = acceptUserName; |
|
|
|
SealBoxId = sealBoxId; |
|
|
|
NowDateTime = DateTime.Now; |
|
|
|
this.UpdateLayout(); |
|
|
|
} |
|
|
|
|
|
|
@ -47,6 +48,7 @@ namespace BBWY.Client.Views.SealBox |
|
|
|
|
|
|
|
public string AcceptUserName { get; set; } |
|
|
|
|
|
|
|
public DateTime? NowDateTime { get; set; } |
|
|
|
public long SealBoxId { get; set; } |
|
|
|
|
|
|
|
public void PrintBox(string printName) |
|
|
@ -62,6 +64,8 @@ namespace BBWY.Client.Views.SealBox |
|
|
|
System.Windows.MessageBox.Show("打印机处于错误状态"); |
|
|
|
return; |
|
|
|
} |
|
|
|
NowDateTime = DateTime.Now; |
|
|
|
this.UpdateLayout(); |
|
|
|
MyPrintHelper.SetDefaultPrint(printName);//设置默认打印机
|
|
|
|
PrintDialog printDialog = new PrintDialog(); |
|
|
|
printDialog.PrintTicket.PageOrientation = PageOrientation.Portrait;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
|
|
|
|