[feat:] frontend for running sheet details (ZKZ, KNr, AMANr, ...)
This commit is contained in:
+24
-20
@@ -639,6 +639,8 @@ public class PdfBuilder
|
||||
string amount = result.Item5?.ToString() ?? "[Anzahl]";
|
||||
string groupNo = result.Item2?.ToString() ?? "[PLZ]";
|
||||
string fraction = result.Item1?.ToString() ?? "[Fraktion]";
|
||||
|
||||
var options = Settings._instance.pdfExport;
|
||||
|
||||
int total_frac = 0;
|
||||
foreach (var item in grouped_nums)
|
||||
@@ -704,8 +706,8 @@ public class PdfBuilder
|
||||
|
||||
// Values top row
|
||||
gfx.DrawString(sender, fontText, XBrushes.Black, new XRect(x + 5, y + 20, c1 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Kunden-Nr. Absender]", fontText, XBrushes.Black, new XRect(x + c1 + 5, y + 20, c2 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[ZKZ/Titel]", fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + 20, c3 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsKNrAbs, fontText, XBrushes.Black, new XRect(x + c1 + 5, y + 20, c2 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsZKZ, fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + 20, c3 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(amount, fontText, XBrushes.Black, new XRect(x + c1 + c2 + c3 + 5, y + 20, c4 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
|
||||
// Second row labels
|
||||
@@ -716,9 +718,9 @@ public class PdfBuilder
|
||||
|
||||
// Second row values
|
||||
gfx.DrawString(customerName, fontText, XBrushes.Black, new XRect(x + 5, y + r1 + 20, c1 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Kunden-Nr. Einlieferer]", fontText, XBrushes.Black, new XRect(x + c1 + 5, y + r1 + 20, c2 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Interne Vermerke]", fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + r1 + 20, c3 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Laufzeit]", fontText, XBrushes.Black, new XRect(x + c1 + c2 + c3 + 5, y + r1 + 20, c4 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsKNrEmp, fontText, XBrushes.Black, new XRect(x + c1 + 5, y + r1 + 20, c2 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsIntVer, fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + r1 + 20, c3 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsLaufz, fontText, XBrushes.Black, new XRect(x + c1 + c2 + c3 + 5, y + r1 + 20, c4 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
|
||||
// Middle area
|
||||
gfx.DrawString(groupNo, fontBig, XBrushes.Black,
|
||||
@@ -767,23 +769,23 @@ public class PdfBuilder
|
||||
double valueX = x + leftBottomW * 0.55;
|
||||
double valueW = leftBottomW - (valueX - x) - 5;
|
||||
|
||||
gfx.DrawString("[Einlieferungsdatum]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsEinldat, fontText, XBrushes.Black,
|
||||
new XRect(valueX, y + r1 + r2 + r3 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[AM-Auftragsnummer]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsAMANr, fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY1 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[Bundgewicht]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsBundGew, fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY2 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[Paletten-Nr.]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsPalNr.ToString(), fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY3 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[Bund-Nr./Bunde auf Palette]", fontText, XBrushes.Black,
|
||||
gfx.DrawString("[Paletten-Nr.]", fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY4 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
@@ -978,6 +980,8 @@ public class PdfBuilder
|
||||
string groupNo = result.Item2?.ToString() ?? "[PLZ]";
|
||||
string fraction = result.Item1?.ToString() ?? "[Fraktion]";
|
||||
|
||||
var options = Settings._instance.pdfExport;
|
||||
|
||||
int total_frac = 0;
|
||||
foreach (var item in grouped_nums)
|
||||
{
|
||||
@@ -1042,8 +1046,8 @@ public class PdfBuilder
|
||||
|
||||
// Values top row
|
||||
gfx.DrawString(sender, fontText, XBrushes.Black, new XRect(x + 5, y + 20, c1 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Kunden-Nr. Absender]", fontText, XBrushes.Black, new XRect(x + c1 + 5, y + 20, c2 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[ZKZ/Titel]", fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + 20, c3 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsKNrAbs, fontText, XBrushes.Black, new XRect(x + c1 + 5, y + 20, c2 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsZKZ, fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + 20, c3 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(amount, fontText, XBrushes.Black, new XRect(x + c1 + c2 + c3 + 5, y + 20, c4 - 10, r1 - 22), XStringFormats.TopLeft);
|
||||
|
||||
// Second row labels
|
||||
@@ -1054,9 +1058,9 @@ public class PdfBuilder
|
||||
|
||||
// Second row values
|
||||
gfx.DrawString(customerName, fontText, XBrushes.Black, new XRect(x + 5, y + r1 + 20, c1 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Kunden-Nr. Einlieferer]", fontText, XBrushes.Black, new XRect(x + c1 + 5, y + r1 + 20, c2 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Interne Vermerke]", fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + r1 + 20, c3 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString("[Laufzeit]", fontText, XBrushes.Black, new XRect(x + c1 + c2 + c3 + 5, y + r1 + 20, c4 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsKNrEmp, fontText, XBrushes.Black, new XRect(x + c1 + 5, y + r1 + 20, c2 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsIntVer, fontText, XBrushes.Black, new XRect(x + c1 + c2 + 5, y + r1 + 20, c3 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
gfx.DrawString(options.rsLaufz, fontText, XBrushes.Black, new XRect(x + c1 + c2 + c3 + 5, y + r1 + 20, c4 - 10, r2 - 22), XStringFormats.TopLeft);
|
||||
|
||||
// Middle area
|
||||
gfx.DrawString(groupNo, fontBig, XBrushes.Black,
|
||||
@@ -1105,23 +1109,23 @@ public class PdfBuilder
|
||||
double valueX = x + leftBottomW * 0.55;
|
||||
double valueW = leftBottomW - (valueX - x) - 5;
|
||||
|
||||
gfx.DrawString("[Einlieferungsdatum]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsEinldat, fontText, XBrushes.Black,
|
||||
new XRect(valueX, y + r1 + r2 + r3 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[AM-Auftragsnummer]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsAMANr, fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY1 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[Bundgewicht]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsBundGew, fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY2 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[Paletten-Nr.]", fontText, XBrushes.Black,
|
||||
gfx.DrawString(options.rsPalNr.ToString(), fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY3 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
gfx.DrawString("[Bund-Nr./Bunde auf Palette]", fontText, XBrushes.Black,
|
||||
gfx.DrawString("[Paletten-Nr.]", fontText, XBrushes.Black,
|
||||
new XRect(valueX, blY4 + 4, valueW, 14),
|
||||
XStringFormats.TopRight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user