MH: LH Stade Rechnung, Export, QB

This commit is contained in:
2025-04-08 17:22:59 +02:00
parent e53008d468
commit e3f4de1161
6 changed files with 45 additions and 35 deletions

View File

@@ -97,13 +97,13 @@ Bsp. LK Stade - Mustermann, Max - 11.2019
*/
long? c2sOid = (long?)row[5];
string kostenstelle = "";
if (c2sOid.HasValue)
{
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(c2sOid.Value);
var c = c2s.SupportConcept.Customer;
kostenstelle = c.CostCenter.IsNullOrEmpty() ? "" : c.CostCenter;
String firma = c2s.CostBearer.Organisation.Name;
buchungstext = String.Format("{0} - {1}, {2} - {3:MM.yyyy}", firma, c.Person.LastName, c.Person.FirstName, date);
@@ -117,7 +117,7 @@ Bsp. LK Stade - Mustermann, Max - 11.2019
sb.Append(buchungstext);
sb.Append(";;;;;;;;;;;;;;;;;;;;;;;639;;0");
sb.Append(";;;;;;;;;;;;;;;;;;;;;;;" + kostenstelle +";;0");
}
return sb.ToString();

View File

@@ -92,6 +92,8 @@ namespace LebenshilfeStadeMID
this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel();
this.fieldKontaktArt = new DevExpress.XtraReports.UI.CalculatedField();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.Hours = new DevExpress.XtraReports.UI.CalculatedField();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTableDetail)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
@@ -248,7 +250,7 @@ namespace LebenshilfeStadeMID
//
this.xrTableCell39.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell39.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Minutes")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Hours")});
this.xrTableCell39.Font = new DevExpress.Drawing.DXFont("Calibri", 12F);
this.xrTableCell39.Name = "xrTableCell39";
this.xrTableCell39.StylePriority.UseBorders = false;
@@ -256,7 +258,7 @@ namespace LebenshilfeStadeMID
this.xrTableCell39.StylePriority.UsePadding = false;
this.xrTableCell39.StylePriority.UseTextAlignment = false;
this.xrTableCell39.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell39.TextFormatString = "{0:0}";
this.xrTableCell39.TextFormatString = "{0:0.00}";
this.xrTableCell39.Weight = 0.19535019972141485D;
//
// GroupHeader1
@@ -472,7 +474,7 @@ namespace LebenshilfeStadeMID
this.xrTableCell37.StylePriority.UseBorders = false;
this.xrTableCell37.StylePriority.UsePadding = false;
this.xrTableCell37.StylePriority.UseTextAlignment = false;
this.xrTableCell37.Text = "Industrieminuten";
this.xrTableCell37.Text = "Stunden";
this.xrTableCell37.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell37.Weight = 0.29464525204373659D;
//
@@ -640,6 +642,7 @@ namespace LebenshilfeStadeMID
// GroupFooter1
//
this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrPictureBox1,
this.xrTable3,
this.xrLabel1,
this.xrLabel8,
@@ -721,14 +724,13 @@ namespace LebenshilfeStadeMID
// xrTableCell23
//
this.xrTableCell23.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Minutes")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Hours")});
this.xrTableCell23.Name = "xrTableCell23";
this.xrTableCell23.StylePriority.UseTextAlignment = false;
xrSummary1.FormatString = "{0:0}";
xrSummary1.Running = DevExpress.XtraReports.UI.SummaryRunning.Group;
this.xrTableCell23.Summary = xrSummary1;
this.xrTableCell23.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell23.TextFormatString = "{0:0}";
this.xrTableCell23.TextFormatString = "{0:0.00}";
this.xrTableCell23.Weight = 0.25014617138708067D;
//
// xrLabel1
@@ -775,6 +777,20 @@ namespace LebenshilfeStadeMID
this.fieldKontaktArt.FieldType = DevExpress.XtraReports.UI.FieldType.String;
this.fieldKontaktArt.Name = "fieldKontaktArt";
//
// xrPictureBox1
//
this.xrPictureBox1.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("xrPictureBox1.ImageSource"));
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(401.3133F, 34.6165F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(211.5F, 25F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// Hours
//
this.Hours.DataMember = "Services";
this.Hours.Expression = "[Minutes] / 60";
this.Hours.Name = "Hours";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
@@ -789,7 +805,8 @@ namespace LebenshilfeStadeMID
this.bottomMarginBand1,
this.GroupFooter1});
this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] {
this.fieldKontaktArt});
this.fieldKontaktArt,
this.Hours});
this.DataSource = this.bindingSource1;
this.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
@@ -874,5 +891,7 @@ namespace LebenshilfeStadeMID
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
private DevExpress.XtraReports.UI.XRLabel xrLabel8;
private DevExpress.XtraReports.UI.XRLabel xrLabel10;
private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox1;
private DevExpress.XtraReports.UI.CalculatedField Hours;
}
}

View File

@@ -61,7 +61,7 @@ namespace LebenshilfeStadeMID
var zl = zusatzleistungen.FirstOrDefault(s => s.StartDate.Date == sd.StartDate.Date);
if (vz != null)
{
sd.Notice = string.Format("{0:0}", vz.Minutes);
sd.Notice = string.Format("{0:0.00}", vz.Minutes / 60);
sd.Minutes += vz.Minutes;
summeVerfuegungszeit += vz.Minutes;
verfuegungszeiten.Remove(vz);
@@ -69,7 +69,7 @@ namespace LebenshilfeStadeMID
// Zusatzleistung in eigentlichen ServiceRecord eintragen und aus Liste entfernen, dass der nicht mehrfach übertragen wird
if (zl != null)
{
sd.Notice2 = string.Format("{0:0}", zl.Minutes);
sd.Notice2 = string.Format("{0:0.00}", zl.Minutes / 60);
sd.Minutes += zl.Minutes;
summeZusatzleistung += zl.Minutes;
zusatzleistungen.Remove(zl);
@@ -83,8 +83,8 @@ namespace LebenshilfeStadeMID
pRO.Services = servicesBillable;
}
tcSumVerfuegungszeit.Text = string.Format("{0:0}", summeVerfuegungszeit);
tcSumZusatzleistung.Text = string.Format("{0:0}", summeZusatzleistung);
tcSumVerfuegungszeit.Text = string.Format("{0:0.00}", summeVerfuegungszeit / 60);
tcSumZusatzleistung.Text = string.Format("{0:0.00}", summeZusatzleistung / 60);
bindingSource1.DataSource = pRO;
}

File diff suppressed because one or more lines are too long

View File

@@ -43,7 +43,6 @@ namespace LebenshilfeStadeMID
this.lblBetragEinheitZuschlag = new DevExpress.XtraReports.UI.XRLabel();
this.lblAnzahlZuschlag = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.lblKlient = new DevExpress.XtraReports.UI.XRLabel();
@@ -225,27 +224,17 @@ namespace LebenshilfeStadeMID
this.xrLabel7.Text = "Betreuungseinsätze";
this.xrLabel7.Visible = false;
//
// xrLabel15
//
this.xrLabel15.Font = new DevExpress.Drawing.DXFont("Arial", 11F);
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(0F, 46.54465F);
this.xrLabel15.Multiline = true;
this.xrLabel15.Name = "xrLabel15";
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(260.4167F, 15.95834F);
this.xrLabel15.StylePriority.UseFont = false;
this.xrLabel15.Text = "Mit freundlichen Grüßen";
//
// xrLabel14
//
this.xrLabel14.Font = new DevExpress.Drawing.DXFont("Arial", 11F);
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0.0001271566F, 96.54465F);
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0F, 96.54465F);
this.xrLabel14.Multiline = true;
this.xrLabel14.Name = "xrLabel14";
this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel14.SizeF = new System.Drawing.SizeF(332.7916F, 115.8543F);
this.xrLabel14.SizeF = new System.Drawing.SizeF(332.7916F, 148.0981F);
this.xrLabel14.StylePriority.UseFont = false;
this.xrLabel14.Text = "[CreatorName]\r\n\r\n\r\n\r\n\r\nAnlage: Stundennachweis";
this.xrLabel14.Text = "[CreatorName]\r\n\r\n\r\n\r\nDieses Schreiben wurde maschinell erstellt und ist ohne Unte" +
"rschrift gültig\r\n\r\nAnlage: Stundennachweis";
//
// xrLabel2
//
@@ -519,7 +508,7 @@ namespace LebenshilfeStadeMID
this.xrLabel9.StylePriority.UseBorders = false;
this.xrLabel9.StylePriority.UseFont = false;
this.xrLabel9.StylePriority.UseTextAlignment = false;
this.xrLabel9.Text = "Stade, den [InvoiceDate!dd.MM.yyyy]";
this.xrLabel9.Text = "Stade, [InvoiceDate!dd.MM.yyyy]";
this.xrLabel9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft;
//
// lblAdresse
@@ -538,10 +527,9 @@ namespace LebenshilfeStadeMID
this.GroupFooter3.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.lblGesamtBetrag,
this.xrLabel17,
this.xrLabel15,
this.xrLabel14});
this.GroupFooter3.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
this.GroupFooter3.HeightF = 212.399F;
this.GroupFooter3.HeightF = 244.6427F;
this.GroupFooter3.Name = "GroupFooter3";
this.GroupFooter3.StylePriority.UseFont = false;
//
@@ -565,10 +553,11 @@ namespace LebenshilfeStadeMID
this.xrLabel17.Multiline = true;
this.xrLabel17.Name = "xrLabel17";
this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(249.084F, 115.8543F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(249.084F, 148.0981F);
this.xrLabel17.StylePriority.UseFont = false;
this.xrLabel17.Text = "Sparkasse Stade-Altes-Land\r\nIBAN: DE98 2415 1005 0000 0139 95\r\nBIC:NOLADE21STS\r\n\r" +
"\nGeschäftsführer: Niko Lampio\r\nVereinsregister VR 1000054\r\nAmtsgericht Tostedt";
"\nGeschäftsführer: Niko Lampio\r\nVereinsregister VR 1000054\r\nAmtsgericht Tostedt\r\n" +
"USt-ID-Nr.: DE 325 128 090";
//
// GroupFooter1
//
@@ -729,7 +718,6 @@ namespace LebenshilfeStadeMID
private System.Windows.Forms.BindingSource bindingSource1;
private DevExpress.XtraReports.UI.FormattingRule ruleRateFactorNull;
private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
private DevExpress.XtraReports.UI.XRLabel xrLabel15;
private DevExpress.XtraReports.UI.XRLabel xrLabel14;
private DevExpress.XtraReports.UI.XRLabel xrLabel2;
private DevExpress.XtraReports.UI.XRLabel lblKlient;

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB