[feat:] BundNrPal = 0 => no details
This commit is contained in:
+5
-1
@@ -803,6 +803,7 @@ public class PdfBuilder
|
|||||||
new XRect(valueX, blY1 + 4, valueW, 14),
|
new XRect(valueX, blY1 + 4, valueW, 14),
|
||||||
XStringFormats.TopRight);
|
XStringFormats.TopRight);
|
||||||
|
|
||||||
|
if (options.rsBundNrPal == null) goto nopal;
|
||||||
gfx.DrawString(pal_nr.ToString(), fontText, XBrushes.Black,
|
gfx.DrawString(pal_nr.ToString(), fontText, XBrushes.Black,
|
||||||
new XRect(valueX, blY3 + 4, valueW, 14),
|
new XRect(valueX, blY3 + 4, valueW, 14),
|
||||||
XStringFormats.TopRight);
|
XStringFormats.TopRight);
|
||||||
@@ -815,7 +816,7 @@ public class PdfBuilder
|
|||||||
new XRect(valueX, blY4 + 4, valueW, 14),
|
new XRect(valueX, blY4 + 4, valueW, 14),
|
||||||
XStringFormats.TopRight);
|
XStringFormats.TopRight);
|
||||||
|
|
||||||
|
nopal:
|
||||||
gfx.DrawString(
|
gfx.DrawString(
|
||||||
$"{totalBundleNumber}/{grouped_nums.Count}",
|
$"{totalBundleNumber}/{grouped_nums.Count}",
|
||||||
fontText,
|
fontText,
|
||||||
@@ -1179,10 +1180,12 @@ public class PdfBuilder
|
|||||||
new XRect(valueX, blY2 + 4, valueW, 14),
|
new XRect(valueX, blY2 + 4, valueW, 14),
|
||||||
XStringFormats.TopRight);
|
XStringFormats.TopRight);
|
||||||
|
|
||||||
|
if (options.rsBundNrPal == 0) goto nopal;
|
||||||
gfx.DrawString(pal_nr.ToString(), fontText, XBrushes.Black,
|
gfx.DrawString(pal_nr.ToString(), fontText, XBrushes.Black,
|
||||||
new XRect(valueX, blY3 + 4, valueW, 14),
|
new XRect(valueX, blY3 + 4, valueW, 14),
|
||||||
XStringFormats.TopRight);
|
XStringFormats.TopRight);
|
||||||
|
|
||||||
|
|
||||||
gfx.DrawString(
|
gfx.DrawString(
|
||||||
$"{bundleOnPallet}/{Settings._instance.pdfExport.rsBundNrPal}",
|
$"{bundleOnPallet}/{Settings._instance.pdfExport.rsBundNrPal}",
|
||||||
fontText,
|
fontText,
|
||||||
@@ -1190,6 +1193,7 @@ public class PdfBuilder
|
|||||||
new XRect(valueX, blY4 + 4, valueW, 14),
|
new XRect(valueX, blY4 + 4, valueW, 14),
|
||||||
XStringFormats.TopRight);
|
XStringFormats.TopRight);
|
||||||
|
|
||||||
|
nopal:
|
||||||
gfx.DrawString(
|
gfx.DrawString(
|
||||||
$"{totalBundleNumber}/{grouped_nums.Count}",
|
$"{totalBundleNumber}/{grouped_nums.Count}",
|
||||||
fontText,
|
fontText,
|
||||||
|
|||||||
Reference in New Issue
Block a user