将定时任务操作者改为,当前系统管理员

This commit is contained in:
alex
2023-09-24 13:58:17 +08:00
parent 9d07e7c068
commit 8cb934c3b0
8 changed files with 36 additions and 30 deletions

View File

@@ -153,7 +153,8 @@ namespace Tnb.WarehouseMgr
/// </summary>
/// <param name="barCodes">条码</param>
/// <returns></returns>
protected Task BarCodePrint(List<string> barCodes)
[NonAction]
protected void BarCodePrint(List<string> barCodes)
{
var tcs = new TaskCompletionSource();
// open port.
@@ -226,14 +227,20 @@ namespace Tnb.WarehouseMgr
}
}
if (0 != ret)
return null;
return ;
// sample setting.
PPLBUtility.B_Set_Originpoint(0, 0);
PPLBUtility.B_Select_Option(2);
PPLBUtility.B_Set_Darkness(8);
PPLBUtility.B_Del_Pcx("*");// delete all picture.
PPLBUtility.B_Set_LabelForSmartPrint(254 * 3, 30);//label information: length= 3 * 25.4 mm, gap= 3 mm.
//PPLBUtility.B_Set_LabelForSmartPrint(254 * 3, 30);//label information: length= 3 * 25.4 mm, gap= 3 mm. 254 * 3, 30
PPLBUtility.B_Set_Labwidth(80 * 8);
//var labelWidth = 640; //254 * 3; // 标签宽度
//var barcodeWidth = 320; // 条码宽度
//var barcodeX = (labelWidth - barcodeWidth) / 2;
//B_Prn_Barcode(barcodeX, 100, 0, "QRcode", 1, 0, 2, 2, "YourBarcodeData"); 8
foreach (var code in barCodes)
@@ -241,8 +248,8 @@ namespace Tnb.WarehouseMgr
//print text, true type text.
PPLBUtility.B_Prn_Text(200, 50, 0, 2, 2, 2, 'N', code);
//barcode.
PPLBUtility.B_Prn_Barcode(160, 100, 0, "E80", 8, 500, 70, 'N', code);//have a counter
// output.
PPLBUtility.B_Prn_Barcode(50, 100, 0, "1", 3, 5, 70, 'B', code);//have a counter
// output.
PPLBUtility.B_Print_Out(1);// copy 2.
}
}
@@ -254,9 +261,8 @@ namespace Tnb.WarehouseMgr
finally
{
// close port.
//PPLBUtility.B_ClosePrn();
PPLBUtility.B_ClosePrn();
}
return tcs.Task;
}
#region