BeWoAmrath/ServicesOverviewReport - Unterschriften ergänzt

This commit is contained in:
2025-08-04 10:51:58 +02:00
parent b41eff9d27
commit 61b0b6ad41
2 changed files with 172 additions and 50 deletions

View File

@@ -51,8 +51,10 @@ namespace BeWo.BeWoAmrath
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrLabel26 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel21 = new DevExpress.XtraReports.UI.XRLabel();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.xrLabel24 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel28 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel29 = new DevExpress.XtraReports.UI.XRLabel();
@@ -88,8 +90,12 @@ namespace BeWo.BeWoAmrath
this.MinutesAsHours = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldTotalFSLBillable = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldAbrechenbarFK = new DevExpress.XtraReports.UI.CalculatedField();
this.xrLabel24 = new DevExpress.XtraReports.UI.XRLabel();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel25 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel27 = new DevExpress.XtraReports.UI.XRLabel();
this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
@@ -110,10 +116,10 @@ namespace BeWo.BeWoAmrath
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel20.CanGrow = false;
this.xrLabel20.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(512.5F, 3.178914E-05F);
this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(477.9167F, 3.178914E-05F);
this.xrLabel20.Name = "xrLabel20";
this.xrLabel20.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel20.SizeF = new System.Drawing.SizeF(100F, 42F);
this.xrLabel20.SizeF = new System.Drawing.SizeF(65F, 42F);
this.xrLabel20.StylePriority.UseBackColor = false;
this.xrLabel20.StylePriority.UseBorders = false;
this.xrLabel20.StylePriority.UseFont = false;
@@ -130,7 +136,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel19.LocationFloat = new DevExpress.Utils.PointFloat(100F, 3.178914E-05F);
this.xrLabel19.Name = "xrLabel19";
this.xrLabel19.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel19.SizeF = new System.Drawing.SizeF(140F, 21F);
this.xrLabel19.SizeF = new System.Drawing.SizeF(120F, 21F);
this.xrLabel19.StylePriority.UseBackColor = false;
this.xrLabel19.StylePriority.UseBorders = false;
this.xrLabel19.StylePriority.UseFont = false;
@@ -146,7 +152,7 @@ namespace BeWo.BeWoAmrath
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel18.CanGrow = false;
this.xrLabel18.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel18.LocationFloat = new DevExpress.Utils.PointFloat(240F, 0F);
this.xrLabel18.LocationFloat = new DevExpress.Utils.PointFloat(220F, 0F);
this.xrLabel18.Name = "xrLabel18";
this.xrLabel18.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel18.SizeF = new System.Drawing.SizeF(72.49997F, 42F);
@@ -163,10 +169,10 @@ namespace BeWo.BeWoAmrath
this.xrLabel17.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel17.CanGrow = false;
this.xrLabel17.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(170F, 21.00004F);
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(160F, 21.00004F);
this.xrLabel17.Name = "xrLabel17";
this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(70F, 21F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(60F, 21F);
this.xrLabel17.StylePriority.UseBackColor = false;
this.xrLabel17.StylePriority.UseBorders = false;
this.xrLabel17.StylePriority.UseFont = false;
@@ -185,7 +191,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(100F, 21.00004F);
this.xrLabel16.Name = "xrLabel16";
this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel16.SizeF = new System.Drawing.SizeF(70F, 21F);
this.xrLabel16.SizeF = new System.Drawing.SizeF(60F, 21F);
this.xrLabel16.StylePriority.UseBackColor = false;
this.xrLabel16.StylePriority.UseBorders = false;
this.xrLabel16.StylePriority.UseFont = false;
@@ -227,7 +233,7 @@ namespace BeWo.BeWoAmrath
//
this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable3});
this.Detail1.HeightF = 21F;
this.Detail1.HeightF = 25F;
this.Detail1.Name = "Detail1";
this.Detail1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.Detail1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
@@ -243,7 +249,7 @@ namespace BeWo.BeWoAmrath
this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRow6});
this.xrTable3.SizeF = new System.Drawing.SizeF(712.5F, 21F);
this.xrTable3.SizeF = new System.Drawing.SizeF(738F, 25F);
this.xrTable3.StylePriority.UseFont = false;
this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
@@ -256,11 +262,12 @@ namespace BeWo.BeWoAmrath
this.xrTableCell16,
this.xrTableCell3,
this.xrTableCell1,
this.xrTableCell4});
this.xrTableCell4,
this.xrTableCell5});
this.xrTableRow6.Name = "xrTableRow6";
this.xrTableRow6.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.xrTableRow6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
this.xrTableRow6.Weight = 1D;
this.xrTableRow6.Weight = 1.1904761904761905D;
//
// xrTableCell13
//
@@ -287,7 +294,7 @@ namespace BeWo.BeWoAmrath
this.xrTableCell6.StylePriority.UseTextAlignment = false;
this.xrTableCell6.Text = "xrTableCell6";
this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell6.Weight = 0.08812273458573569D;
this.xrTableCell6.Weight = 0.076875603585621177D;
this.xrTableCell6.XlsxFormatString = "{0:HH:mm}";
//
// xrTableCell2
@@ -302,7 +309,7 @@ namespace BeWo.BeWoAmrath
this.xrTableCell2.StylePriority.UseTextAlignment = false;
this.xrTableCell2.Text = "xrTableCell2";
this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell2.Weight = 0.088122734813400536D;
this.xrTableCell2.Weight = 0.076037065310627053D;
this.xrTableCell2.XlsxFormatString = "{0:HH:mm}";
//
// xrTableCell16
@@ -319,7 +326,7 @@ namespace BeWo.BeWoAmrath
this.xrTableCell16.StylePriority.UseTextAlignment = false;
this.xrTableCell16.Text = "xrTableCell16";
this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell16.Weight = 0.091269913483684545D;
this.xrTableCell16.Weight = 0.091877951785187068D;
//
// xrTableCell3
//
@@ -332,7 +339,7 @@ namespace BeWo.BeWoAmrath
this.xrTableCell3.StylePriority.UseFont = false;
this.xrTableCell3.StylePriority.UseTextAlignment = false;
this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell3.Weight = 0.2517791805305446D;
this.xrTableCell3.Weight = 0.23497526039325309D;
//
// xrTableCell1
//
@@ -346,7 +353,7 @@ namespace BeWo.BeWoAmrath
this.xrTableCell1.StylePriority.UseTextAlignment = false;
this.xrTableCell1.Text = "xrTableCell1";
this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell1.Weight = 0.12588958947378576D;
this.xrTableCell1.Weight = 0.082373421142158593D;
//
// xrTableCell4
//
@@ -358,11 +365,12 @@ namespace BeWo.BeWoAmrath
this.xrTableCell4.StylePriority.UseFont = false;
this.xrTableCell4.StylePriority.UseTextAlignment = false;
this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell4.Weight = 0.12588958947378576D;
this.xrTableCell4.Weight = 0.12672827771177711D;
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrLabel27,
this.xrLabel26,
this.xrLabel21,
this.xrLabel15,
@@ -380,12 +388,11 @@ namespace BeWo.BeWoAmrath
// xrLabel26
//
this.xrLabel26.BackColor = System.Drawing.Color.Silver;
this.xrLabel26.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Right)
this.xrLabel26.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel26.CanGrow = false;
this.xrLabel26.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel26.LocationFloat = new DevExpress.Utils.PointFloat(612.5F, 0F);
this.xrLabel26.LocationFloat = new DevExpress.Utils.PointFloat(542.9166F, 3.178914E-05F);
this.xrLabel26.Name = "xrLabel26";
this.xrLabel26.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel26.SizeF = new System.Drawing.SizeF(100F, 42F);
@@ -402,10 +409,10 @@ namespace BeWo.BeWoAmrath
this.xrLabel21.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel21.CanGrow = false;
this.xrLabel21.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel21.LocationFloat = new DevExpress.Utils.PointFloat(312.5F, 0F);
this.xrLabel21.LocationFloat = new DevExpress.Utils.PointFloat(292.5F, 0F);
this.xrLabel21.Name = "xrLabel21";
this.xrLabel21.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel21.SizeF = new System.Drawing.SizeF(200F, 42F);
this.xrLabel21.SizeF = new System.Drawing.SizeF(185.4167F, 42F);
this.xrLabel21.StylePriority.UseBackColor = false;
this.xrLabel21.StylePriority.UseBorders = false;
this.xrLabel21.StylePriority.UseFont = false;
@@ -413,6 +420,10 @@ namespace BeWo.BeWoAmrath
this.xrLabel21.Text = "Fehlkontakt";
this.xrLabel21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter;
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
//
// formattingRuleStartDate
//
this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]";
@@ -439,6 +450,22 @@ namespace BeWo.BeWoAmrath
this.ReportHeader.Name = "ReportHeader";
this.ReportHeader.StylePriority.UseFont = false;
//
// xrLabel24
//
this.xrLabel24.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel24.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CostBearer2SupportConceptList.CostBearer.Organisation.BusinessPartnerId")});
this.xrLabel24.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel24.LocationFloat = new DevExpress.Utils.PointFloat(501.9583F, 78.125F);
this.xrLabel24.Name = "xrLabel24";
this.xrLabel24.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel24.SizeF = new System.Drawing.SizeF(210.5415F, 22.625F);
this.xrLabel24.StylePriority.UseBorders = false;
this.xrLabel24.StylePriority.UseFont = false;
this.xrLabel24.StylePriority.UseTextAlignment = false;
this.xrLabel24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrLabel24.TextFormatString = "GP-Nr.: {0}";
//
// xrLabel13
//
this.xrLabel13.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
@@ -612,6 +639,9 @@ namespace BeWo.BeWoAmrath
// ReportFooter
//
this.ReportFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrPictureBox1,
this.xrLabel25,
this.xrPictureBox2,
this.xrLabel22,
this.xrLabel23,
this.xrLabel14,
@@ -635,7 +665,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel22.LocationFloat = new DevExpress.Utils.PointFloat(0F, 120.625F);
this.xrLabel22.Multiline = true;
this.xrLabel22.Name = "xrLabel22";
this.xrLabel22.SizeF = new System.Drawing.SizeF(240F, 25F);
this.xrLabel22.SizeF = new System.Drawing.SizeF(220F, 25F);
this.xrLabel22.StylePriority.UseBorders = false;
this.xrLabel22.StylePriority.UseFont = false;
this.xrLabel22.StylePriority.UsePadding = false;
@@ -652,7 +682,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel23.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLSFehlkontakte", "{0:0.00}")});
this.xrLabel23.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel23.LocationFloat = new DevExpress.Utils.PointFloat(239.9998F, 120.625F);
this.xrLabel23.LocationFloat = new DevExpress.Utils.PointFloat(219.9998F, 120.625F);
this.xrLabel23.Multiline = true;
this.xrLabel23.Name = "xrLabel23";
this.xrLabel23.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 5, 0, 0, 100F);
@@ -693,7 +723,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 59.99997F);
this.xrLabel8.Multiline = true;
this.xrLabel8.Name = "xrLabel8";
this.xrLabel8.SizeF = new System.Drawing.SizeF(240F, 60.62501F);
this.xrLabel8.SizeF = new System.Drawing.SizeF(220F, 60.62501F);
this.xrLabel8.StylePriority.UseBorders = false;
this.xrLabel8.StylePriority.UseFont = false;
this.xrLabel8.StylePriority.UsePadding = false;
@@ -707,7 +737,7 @@ namespace BeWo.BeWoAmrath
| DevExpress.XtraPrinting.BorderSide.Right)));
this.xrLabel2.BorderWidth = 1F;
this.xrLabel2.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(240F, 59.99997F);
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(220F, 59.99997F);
this.xrLabel2.Multiline = true;
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 5, 0, 0, 100F);
@@ -738,7 +768,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrLabel3.Multiline = true;
this.xrLabel3.Name = "xrLabel3";
this.xrLabel3.SizeF = new System.Drawing.SizeF(240F, 60F);
this.xrLabel3.SizeF = new System.Drawing.SizeF(220F, 60F);
this.xrLabel3.StylePriority.UseBorders = false;
this.xrLabel3.StylePriority.UseFont = false;
this.xrLabel3.StylePriority.UsePadding = false;
@@ -752,7 +782,7 @@ namespace BeWo.BeWoAmrath
this.xrLabel4.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)));
this.xrLabel4.BorderWidth = 1F;
this.xrLabel4.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(240F, 0F);
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(220F, 0F);
this.xrLabel4.Name = "xrLabel4";
this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 5, 0, 0, 100F);
this.xrLabel4.SizeF = new System.Drawing.SizeF(72.49997F, 59.99997F);
@@ -831,25 +861,78 @@ namespace BeWo.BeWoAmrath
this.fieldAbrechenbarFK.Expression = "Round([TotalFLSFehlkontakte]*0.8,2)";
this.fieldAbrechenbarFK.Name = "fieldAbrechenbarFK";
//
// xrLabel24
// xrPictureBox1
//
this.xrLabel24.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel24.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CostBearer2SupportConceptList.CostBearer.Organisation.BusinessPartnerId")});
this.xrLabel24.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel24.LocationFloat = new DevExpress.Utils.PointFloat(501.9583F, 78.125F);
this.xrLabel24.Name = "xrLabel24";
this.xrLabel24.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel24.SizeF = new System.Drawing.SizeF(210.5415F, 22.625F);
this.xrLabel24.StylePriority.UseBorders = false;
this.xrLabel24.StylePriority.UseFont = false;
this.xrLabel24.StylePriority.UseTextAlignment = false;
this.xrLabel24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrLabel24.TextFormatString = "GP-Nr.: {0}";
this.xrPictureBox1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("ImageSource", null, "EmployeeSignature")});
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(122.2612F, 197.7085F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(174.0721F, 31.95833F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// bindingSource1
// xrLabel25
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
this.xrLabel25.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerSignatureDate", "{0:dd.MM.yyyy}")});
this.xrLabel25.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 197.7085F);
this.xrLabel25.Name = "xrLabel25";
this.xrLabel25.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel25.SizeF = new System.Drawing.SizeF(79.49995F, 31.95833F);
this.xrLabel25.StylePriority.UseTextAlignment = false;
this.xrLabel25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter;
//
// xrPictureBox2
//
this.xrPictureBox2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("ImageSource", null, "CustomerSignature")});
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(349.8748F, 197.7085F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(174.0834F, 31.95833F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrLabel27
//
this.xrLabel27.BackColor = System.Drawing.Color.Silver;
this.xrLabel27.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel27.CanGrow = false;
this.xrLabel27.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.xrLabel27.LocationFloat = new DevExpress.Utils.PointFloat(642.9166F, 3.178914E-05F);
this.xrLabel27.Multiline = true;
this.xrLabel27.Name = "xrLabel27";
this.xrLabel27.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel27.SizeF = new System.Drawing.SizeF(95.08337F, 42F);
this.xrLabel27.StylePriority.UseBackColor = false;
this.xrLabel27.StylePriority.UseBorders = false;
this.xrLabel27.StylePriority.UseFont = false;
this.xrLabel27.StylePriority.UseTextAlignment = false;
this.xrLabel27.Text = "Unterschrift\r\nKlient/-in";
this.xrLabel27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter;
//
// xrTableCell5
//
this.xrTableCell5.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.picSignature});
this.xrTableCell5.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
this.xrTableCell5.Multiline = true;
this.xrTableCell5.Name = "xrTableCell5";
this.xrTableCell5.StylePriority.UseFont = false;
this.xrTableCell5.StylePriority.UseTextAlignment = false;
this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell5.Weight = 0.12049752705909265D;
//
// picSignature
//
this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")});
this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.picSignature.Name = "picSignature";
this.picSignature.SizeF = new System.Drawing.SizeF(95.08337F, 25F);
this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.picSignature.StylePriority.UseBorders = false;
this.picSignature.BeforePrint += new DevExpress.XtraReports.UI.BeforePrintEventHandler(this.picSignature_BeforePrint);
//
// Stundenzettel
//
@@ -876,7 +959,7 @@ namespace BeWo.BeWoAmrath
this.formattingRuleServiceDesc,
this.formattingRuleCostBearer,
this.formattingRuleEmployeeName});
this.Margins = new DevExpress.Drawing.DXMargins(73F, 39F, 99F, 36.41669F);
this.Margins = new DevExpress.Drawing.DXMargins(50F, 39F, 99F, 36.41669F);
this.PageHeight = 1169;
this.PageWidth = 827;
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
@@ -952,5 +1035,11 @@ namespace BeWo.BeWoAmrath
private DevExpress.XtraReports.UI.XRTableCell xrTableCell4;
private DevExpress.XtraReports.UI.XRLabel xrLabel26;
private DevExpress.XtraReports.UI.XRLabel xrLabel24;
private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox1;
private DevExpress.XtraReports.UI.XRLabel xrLabel25;
private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox2;
private DevExpress.XtraReports.UI.XRLabel xrLabel27;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell5;
private DevExpress.XtraReports.UI.XRPictureBox picSignature;
}
}

View File

@@ -1,7 +1,13 @@
using System.Linq;
using BeWo.Report;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Text.RegularExpressions;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
using BeWo.Report;
namespace BeWo.BeWoAmrath
{
@@ -20,7 +26,8 @@ namespace BeWo.BeWoAmrath
foreach (var sd in servicesBillable)
{
if(sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
ServicesOverviewRO.CreateSignatureString(sd);
if (sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
{
sd.Notice5 = "F - " + sd.Notice;
}
@@ -31,5 +38,31 @@ namespace BeWo.BeWoAmrath
bindingSource1.DataSource = pRO;
}
private void picSignature_BeforePrint(object sender, System.ComponentModel.CancelEventArgs e)
{
XRPictureBox xrBox = sender as XRPictureBox;
//var test = this.GetCurrent
string base64String = xrBox.Tag as string;
if (!String.IsNullOrWhiteSpace(base64String))
{
var base64Data = Regex.Match(base64String, @"data:image/(?<type>.+?),(?<data>.+)").Groups["data"].Value;
var binData = Convert.FromBase64String(base64Data);
Image img = ByteArrayToImage(binData);
xrBox.Image = Utils.CropImage(img);
}
else
{
xrBox.Image = null;
}
}
public Image ByteArrayToImage(byte[] byteArrayIn)
{
using (var memoryStream = new MemoryStream(byteArrayIn))
{
return Image.FromStream(memoryStream);
}
}
}
}