Thiết lập gần hết giấy cho in tối đa 20 lần
This commit is contained in:
@@ -451,7 +451,7 @@ namespace SafeBagDE70
|
||||
var strPrinterMessage = "";
|
||||
if (status != null)
|
||||
{
|
||||
if (status.StsNOPAPER)
|
||||
if (status.StsNOPAPER|| AppData.IsStopPrinting())
|
||||
{
|
||||
AppData.DeviceStatus.PrinterStatus = (int)PrinterStatusCode.PAPEROUT;
|
||||
StopTimers();
|
||||
@@ -461,6 +461,7 @@ namespace SafeBagDE70
|
||||
}
|
||||
else if (status.StsNEARENDPAP)
|
||||
{
|
||||
AppData.UpdatePrinterStatus(true);
|
||||
strPrinterMessage = "MÁY IN: GẦN HẾT GIẤY";
|
||||
AppData.DeviceStatus.PrinterStatus = (int)PrinterStatusCode.NEARPAPEROUT;
|
||||
AppData.ADMINDEVICESTATUS.PrinterStatus = strPrinterMessage;
|
||||
@@ -473,6 +474,8 @@ namespace SafeBagDE70
|
||||
}
|
||||
else
|
||||
{
|
||||
AppData.UpdatePrinterStatus(false);
|
||||
|
||||
strPrinterMessage = "MÁY IN: OK";
|
||||
AppData.DeviceStatus.PrinterStatus = (int)PrinterStatusCode.NORMAL;
|
||||
AppData.ADMINDEVICESTATUS.PrinterStatus = strPrinterMessage;
|
||||
@@ -1471,8 +1474,7 @@ namespace SafeBagDE70
|
||||
// or for more complex scenarios, directly manipulate the byte stream sent to the printer.
|
||||
};
|
||||
printDocument.Print();
|
||||
|
||||
|
||||
AppData.UpdatePrintingCountToStatusFile();
|
||||
}
|
||||
|
||||
private void UserControl_Unloaded(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user