ChristopherusHaus: QB Einzelunterschriften verknüft + Spaltenbreiten angepasst

This commit is contained in:
2024-12-13 19:01:33 +01:00
parent fe07cb4725
commit 6295633829
3 changed files with 149 additions and 98 deletions

View File

@@ -29,6 +29,7 @@ namespace BeWo.ChristopherusHaus
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.xrTableServiceRecords1 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
@@ -48,13 +49,16 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule();
this.DetailReport1 = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail2 = new DevExpress.XtraReports.UI.DetailBand();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrTable2 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -83,21 +87,19 @@ namespace BeWo.ChristopherusHaus
this.formattingRuleEmployeeName = new DevExpress.XtraReports.UI.FormattingRule();
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// Detail
//
this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTableServiceRecords1});
this.Detail.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.Detail.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.Detail.HeightF = 40F;
this.Detail.Name = "Detail";
this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
@@ -157,7 +159,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell4.StylePriority.UseTextAlignment = false;
this.xrTableCell4.Text = "Uhrzeit\r\nvon ... bis";
this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell4.Weight = 0.16964937810781916D;
this.xrTableCell4.Weight = 0.13786605273542221D;
//
// xrTableCell11
//
@@ -171,7 +173,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell11.StylePriority.UseTextAlignment = false;
this.xrTableCell11.Text = "Anzahl\r\nMinuten";
this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell11.Weight = 0.11661166892187314D;
this.xrTableCell11.Weight = 0.082719630988948939D;
//
// xrTableCell9
//
@@ -185,7 +187,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell9.StylePriority.UseTextAlignment = false;
this.xrTableCell9.Text = "Unterschrift\r\nKlient/in";
this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell9.Weight = 0.18669363771927289D;
this.xrTableCell9.Weight = 0.15403322436566888D;
//
// xrTableCell10
//
@@ -196,7 +198,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell10.StylePriority.UseTextAlignment = false;
this.xrTableCell10.Text = "Mitarbeiter / in";
this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell10.Weight = 0.18669819216252054D;
this.xrTableCell10.Weight = 0.17095391252744752D;
//
// xrTableCell14
//
@@ -207,7 +209,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell14.StylePriority.UseTextAlignment = false;
this.xrTableCell14.Text = "Kurzbeschreibung";
this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell14.Weight = 0.24953301853070115D;
this.xrTableCell14.Weight = 0.36361307482469929D;
//
// DetailReport
//
@@ -224,7 +226,7 @@ namespace BeWo.ChristopherusHaus
//
this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable1});
this.Detail1.Font = new System.Drawing.Font("Calibri", 11F);
this.Detail1.Font = new DevExpress.Drawing.DXFont("Calibri", 11F);
this.Detail1.HeightF = 25F;
this.Detail1.Name = "Detail1";
this.Detail1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
@@ -274,7 +276,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell7.StylePriority.UseTextAlignment = false;
this.xrTableCell7.Text = "[TimeRangeString]";
this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell7.Weight = 0.47948269670592969D;
this.xrTableCell7.Weight = 0.38965302786914835D;
//
// xrTableCell5
//
@@ -285,17 +287,19 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell5.StylePriority.UseTextAlignment = false;
this.xrTableCell5.Text = "[Minutes]";
this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell5.Weight = 0.32958136788325654D;
this.xrTableCell5.Weight = 0.23379182735202708D;
//
// xrTableCell6
//
this.xrTableCell6.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right)));
this.xrTableCell6.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.picSignature});
this.xrTableCell6.Name = "xrTableCell6";
this.xrTableCell6.StylePriority.UseBorders = false;
this.xrTableCell6.StylePriority.UseFont = false;
this.xrTableCell6.StylePriority.UseTextAlignment = false;
this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell6.Weight = 0.52765483803387536D;
this.xrTableCell6.Weight = 0.43534649471178788D;
//
// xrTableCell12
//
@@ -306,7 +310,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell12.StylePriority.UseBorders = false;
this.xrTableCell12.StylePriority.UseTextAlignment = false;
this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell12.Weight = 0.52766791842380978D;
this.xrTableCell12.Weight = 0.48316973902531413D;
//
// xrTableCell15
//
@@ -317,17 +321,13 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell15.StylePriority.UseBorders = false;
this.xrTableCell15.StylePriority.UseTextAlignment = false;
this.xrTableCell15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell15.Weight = 0.70525918695149692D;
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
this.xrTableCell15.Weight = 1.027684919040091D;
//
// xrTableCell16
//
this.xrTableCell16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServicesDouble.CostBearer")});
this.xrTableCell16.Font = new System.Drawing.Font("Arial", 10F);
this.xrTableCell16.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
this.xrTableCell16.Name = "xrTableCell16";
this.xrTableCell16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTableCell16.StylePriority.UseFont = false;
@@ -339,7 +339,7 @@ namespace BeWo.ChristopherusHaus
//
this.xrTableCell17.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServicesDouble.EmployeeName")});
this.xrTableCell17.Font = new System.Drawing.Font("Arial", 10F);
this.xrTableCell17.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
this.xrTableCell17.Name = "xrTableCell17";
this.xrTableCell17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTableCell17.StylePriority.UseFont = false;
@@ -388,6 +388,52 @@ namespace BeWo.ChristopherusHaus
this.Detail2.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.Detail2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel3
//
this.xrLabel3.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerSignatureDate", "{0:dd.MM.yyyy}")});
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(326.8747F, 72.4584F);
this.xrLabel3.Name = "xrLabel3";
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel3.SizeF = new System.Drawing.SizeF(81.01852F, 23F);
this.xrLabel3.StylePriority.UseBorders = false;
//
// xrLabel2
//
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeSignatureDate", "{0:dd.MM.yyyy}")});
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 72.4584F);
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(81.52954F, 23F);
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.Text = "xrLabel2";
//
// xrPictureBox2
//
this.xrPictureBox2.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrPictureBox2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("ImageSource", null, "EmployeeSignature")});
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(81.52954F, 39.125F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(168.2621F, 56.33342F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.xrPictureBox2.StylePriority.UseBorders = false;
//
// xrPictureBox1
//
this.xrPictureBox1.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrPictureBox1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("ImageSource", null, "CustomerSignature")});
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(407.8932F, 39.125F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.Scripts.OnBeforePrint = "xrPictureBox1_BeforePrint";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(168.9817F, 56.33342F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.xrPictureBox1.StylePriority.UseBorders = false;
//
// xrTable2
//
this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0.0001033147F, 0F);
@@ -407,8 +453,8 @@ namespace BeWo.ChristopherusHaus
//
// xrTableCell8
//
this.xrTableCell8.Borders = DevExpress.XtraPrinting.BorderSide.Top;
this.xrTableCell8.Font = new System.Drawing.Font("Calibri", 11F, System.Drawing.FontStyle.Bold);
this.xrTableCell8.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right)));
this.xrTableCell8.Font = new DevExpress.Drawing.DXFont("Calibri", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrTableCell8.Name = "xrTableCell8";
this.xrTableCell8.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 5, 0, 0, 100F);
this.xrTableCell8.StylePriority.UseBorders = false;
@@ -417,7 +463,7 @@ namespace BeWo.ChristopherusHaus
this.xrTableCell8.StylePriority.UseTextAlignment = false;
this.xrTableCell8.Text = "Summe";
this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell8.Weight = 0.7929436297079886D;
this.xrTableCell8.Weight = 0.70733491606438D;
//
// summeMinuten
//
@@ -427,30 +473,30 @@ namespace BeWo.ChristopherusHaus
this.summeMinuten.BorderWidth = 2F;
this.summeMinuten.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMBillable")});
this.summeMinuten.Font = new System.Drawing.Font("Calibri", 11F);
this.summeMinuten.Font = new DevExpress.Drawing.DXFont("Calibri", 11F);
this.summeMinuten.Name = "summeMinuten";
this.summeMinuten.StylePriority.UseBorders = false;
this.summeMinuten.StylePriority.UseBorderWidth = false;
this.summeMinuten.StylePriority.UseFont = false;
this.summeMinuten.StylePriority.UseTextAlignment = false;
this.summeMinuten.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.summeMinuten.Weight = 0.33510148479059976D;
this.summeMinuten.Weight = 0.23379181441456612D;
//
// xrTableCell13
//
this.xrTableCell13.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)));
this.xrTableCell13.Font = new System.Drawing.Font("Arial", 9.75F);
this.xrTableCell13.Font = new DevExpress.Drawing.DXFont("Arial", 9.75F);
this.xrTableCell13.Name = "xrTableCell13";
this.xrTableCell13.StylePriority.UseBorders = false;
this.xrTableCell13.StylePriority.UseFont = false;
this.xrTableCell13.StylePriority.UseTextAlignment = false;
this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell13.Weight = 1.7592825573253983D;
this.xrTableCell13.Weight = 1.9462009413450405D;
//
// xrLabel12
//
this.xrLabel12.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel12.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel12.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(326.8747F, 95.45841F);
this.xrLabel12.Multiline = true;
this.xrLabel12.Name = "xrLabel12";
@@ -465,7 +511,7 @@ namespace BeWo.ChristopherusHaus
// xrLabel5
//
this.xrLabel5.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel5.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel5.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0.0001033147F, 95.45841F);
this.xrLabel5.Multiline = true;
this.xrLabel5.Name = "xrLabel5";
@@ -495,7 +541,7 @@ namespace BeWo.ChristopherusHaus
this.xrLabel7,
this.xrLabel6,
this.xrLabel1});
this.ReportHeader.Font = new System.Drawing.Font("Calibri", 10F);
this.ReportHeader.Font = new DevExpress.Drawing.DXFont("Calibri", 10F);
this.ReportHeader.HeightF = 280F;
this.ReportHeader.Name = "ReportHeader";
this.ReportHeader.StylePriority.UseFont = false;
@@ -503,7 +549,7 @@ namespace BeWo.ChristopherusHaus
// xrLabel19
//
this.xrLabel19.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel19.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel19.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel19.LocationFloat = new DevExpress.Utils.PointFloat(205.4166F, 241.6667F);
this.xrLabel19.Multiline = true;
this.xrLabel19.Name = "xrLabel19";
@@ -518,7 +564,7 @@ namespace BeWo.ChristopherusHaus
// xrLabel20
//
this.xrLabel20.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel20.Font = new System.Drawing.Font("Calibri", 10F);
this.xrLabel20.Font = new DevExpress.Drawing.DXFont("Calibri", 10F);
this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(260.9044F, 241.6667F);
this.xrLabel20.Multiline = true;
this.xrLabel20.Name = "xrLabel20";
@@ -533,7 +579,7 @@ namespace BeWo.ChristopherusHaus
// xrLabel18
//
this.xrLabel18.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel18.Font = new System.Drawing.Font("Calibri", 10F);
this.xrLabel18.Font = new DevExpress.Drawing.DXFont("Calibri", 10F);
this.xrLabel18.LocationFloat = new DevExpress.Utils.PointFloat(63.82116F, 241.6667F);
this.xrLabel18.Multiline = true;
this.xrLabel18.Name = "xrLabel18";
@@ -548,7 +594,7 @@ namespace BeWo.ChristopherusHaus
// xrLabel17
//
this.xrLabel17.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel17.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel17.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 241.6667F);
this.xrLabel17.Multiline = true;
this.xrLabel17.Name = "xrLabel17";
@@ -564,7 +610,7 @@ namespace BeWo.ChristopherusHaus
//
this.bewilligteFLSW.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ApprovedFLSPerWeek", "{0:0.##} Stunden")});
this.bewilligteFLSW.Font = new System.Drawing.Font("Calibri", 11F);
this.bewilligteFLSW.Font = new DevExpress.Drawing.DXFont("Calibri", 11F);
this.bewilligteFLSW.LocationFloat = new DevExpress.Utils.PointFloat(239.9999F, 187.875F);
this.bewilligteFLSW.Multiline = true;
this.bewilligteFLSW.Name = "bewilligteFLSW";
@@ -579,7 +625,7 @@ namespace BeWo.ChristopherusHaus
//
this.aktenzeichenLV.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ReferenceNumber")});
this.aktenzeichenLV.Font = new System.Drawing.Font("Calibri", 11F);
this.aktenzeichenLV.Font = new DevExpress.Drawing.DXFont("Calibri", 11F);
this.aktenzeichenLV.LocationFloat = new DevExpress.Utils.PointFloat(239.9999F, 163.7917F);
this.aktenzeichenLV.Multiline = true;
this.aktenzeichenLV.Name = "aktenzeichenLV";
@@ -591,7 +637,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel16
//
this.xrLabel16.Font = new System.Drawing.Font("Calibri", 11F);
this.xrLabel16.Font = new DevExpress.Drawing.DXFont("Calibri", 11F);
this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(239.9999F, 139.7083F);
this.xrLabel16.Multiline = true;
this.xrLabel16.Name = "xrLabel16";
@@ -604,7 +650,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel9
//
this.xrLabel9.Font = new System.Drawing.Font("Calibri", 11F);
this.xrLabel9.Font = new DevExpress.Drawing.DXFont("Calibri", 11F);
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(239.9999F, 115.625F);
this.xrLabel9.Multiline = true;
this.xrLabel9.Name = "xrLabel9";
@@ -617,7 +663,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel15
//
this.xrLabel15.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel15.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(0F, 163.7917F);
this.xrLabel15.Multiline = true;
this.xrLabel15.Name = "xrLabel15";
@@ -630,7 +676,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel11
//
this.xrLabel11.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel11.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(0F, 187.8751F);
this.xrLabel11.Multiline = true;
this.xrLabel11.Name = "xrLabel11";
@@ -643,7 +689,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel10
//
this.xrLabel10.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel10.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(0F, 139.7083F);
this.xrLabel10.Multiline = true;
this.xrLabel10.Name = "xrLabel10";
@@ -656,7 +702,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel8
//
this.xrLabel8.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel8.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 115.625F);
this.xrLabel8.Multiline = true;
this.xrLabel8.Name = "xrLabel8";
@@ -669,7 +715,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel7
//
this.xrLabel7.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel7.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(81.52959F, 61.45833F);
this.xrLabel7.Multiline = true;
this.xrLabel7.Name = "xrLabel7";
@@ -682,7 +728,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel6
//
this.xrLabel6.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel6.Font = new DevExpress.Drawing.DXFont("Calibri", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 61.45833F);
this.xrLabel6.Multiline = true;
this.xrLabel6.Name = "xrLabel6";
@@ -695,7 +741,7 @@ namespace BeWo.ChristopherusHaus
//
// xrLabel1
//
this.xrLabel1.Font = new System.Drawing.Font("Calibri", 14F, System.Drawing.FontStyle.Bold);
this.xrLabel1.Font = new DevExpress.Drawing.DXFont("Calibri", 14F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 22.91667F);
this.xrLabel1.Multiline = true;
this.xrLabel1.Name = "xrLabel1";
@@ -737,51 +783,24 @@ namespace BeWo.ChristopherusHaus
this.bottomMarginBand1.HeightF = 30F;
this.bottomMarginBand1.Name = "bottomMarginBand1";
//
// xrPictureBox2
// picSignature
//
this.xrPictureBox2.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrPictureBox2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Image", null, "EmployeeSignature")});
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(81.52954F, 39.125F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(168.2621F, 56.33342F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.xrPictureBox2.StylePriority.UseBorders = false;
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.ImageAlignment = DevExpress.XtraPrinting.ImageAlignment.MiddleCenter;
this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(1.525879E-05F, 0F);
this.picSignature.Name = "picSignature";
this.picSignature.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 3, 0, 100F);
this.picSignature.SizeF = new System.Drawing.SizeF(111.7266F, 25.00001F);
this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.picSignature.StylePriority.UseBorders = false;
this.picSignature.StylePriority.UsePadding = false;
this.picSignature.BeforePrint += new DevExpress.XtraReports.UI.BeforePrintEventHandler(this.picSignature_BeforePrint);
//
// xrPictureBox1
// bindingSource1
//
this.xrPictureBox1.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrPictureBox1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Image", null, "CustomerSignature")});
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(407.8932F, 39.125F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.Scripts.OnBeforePrint = "xrPictureBox1_BeforePrint";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(168.9817F, 56.33342F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.xrPictureBox1.StylePriority.UseBorders = false;
//
// xrLabel2
//
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeSignatureDate", "{0:dd.MM.yyyy}")});
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 72.4584F);
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(81.52954F, 23F);
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.Text = "xrLabel2";
//
// xrLabel3
//
this.xrLabel3.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerSignatureDate", "{0:dd.MM.yyyy}")});
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(326.8747F, 72.4584F);
this.xrLabel3.Name = "xrLabel3";
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel3.SizeF = new System.Drawing.SizeF(81.01852F, 23F);
this.xrLabel3.StylePriority.UseBorders = false;
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
//
// Stundenzettel
//
@@ -798,15 +817,17 @@ namespace BeWo.ChristopherusHaus
this.formattingRuleServiceDesc,
this.formattingRuleCostBearer,
this.formattingRuleEmployeeName});
this.Margins = new System.Drawing.Printing.Margins(59, 27, 75, 30);
this.Margins = new DevExpress.Drawing.DXMargins(59F, 27F, 75F, 30F);
this.PageHeight = 1169;
this.PageWidth = 827;
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
this.Version = "17.1";
this.Version = "23.2";
xrWatermark1.Id = "Watermark1";
this.Watermarks.Add(xrWatermark1);
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
@@ -871,5 +892,6 @@ namespace BeWo.ChristopherusHaus
private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox1;
private DevExpress.XtraReports.UI.XRLabel xrLabel3;
private DevExpress.XtraReports.UI.XRLabel xrLabel2;
private DevExpress.XtraReports.UI.XRPictureBox picSignature;
}
}

View File

@@ -1,8 +1,12 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
namespace BeWo.ChristopherusHaus
@@ -30,7 +34,9 @@ namespace BeWo.ChristopherusHaus
servicesBillable.Add(s);
ServicesOverviewRO.CreateGoalList(s);
}
ServicesOverviewRO.CreateSignatureString(s);
}
pRO.Services = servicesBillable;
}
@@ -44,6 +50,32 @@ namespace BeWo.ChristopherusHaus
//bewilligteFLSW.Text = string.Format("{0:0.##}", pRO.ApprovedFLSPerWeek);
}
private void picSignature_BeforePrint(object sender, System.ComponentModel.CancelEventArgs e)
{
XRPictureBox xrBox = sender as XRPictureBox;
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);
}
}
}
}

View File

@@ -117,7 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>21, 17</value>
</metadata>
</root>