SprungbrettReports und SprungbrettTheresia
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using BeWo.Report.ReportObjects;
|
||||
namespace BeWo.SprungbrettReports.Neu
|
||||
namespace BeWo.SprungbrettReports
|
||||
{
|
||||
partial class Spitzabrechnung
|
||||
partial class Budgetnachweis
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@@ -30,7 +30,7 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Spitzabrechnung));
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Budgetnachweis));
|
||||
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.xrLabel52 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
@@ -40,7 +40,7 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
|
||||
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
@@ -84,20 +84,10 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.cellStundensatz1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellFLS1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.cellStart2 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellEnde2 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellStundensatz2 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellFLS2 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow5 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.cellStart3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellEnde3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellStundensatz3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellFLS3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
|
||||
this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand();
|
||||
this.xrSubreport1 = new DevExpress.XtraReports.UI.XRSubreport();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tableRechnungspositionen)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
@@ -120,7 +110,7 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.xrLabel14,
|
||||
this.xrLabel17,
|
||||
this.xrLabel13,
|
||||
this.xrLabel12,
|
||||
this.lblAdresse,
|
||||
this.xrLabel11,
|
||||
this.xrPictureBox2,
|
||||
this.xrLabel1,
|
||||
@@ -149,7 +139,7 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.xrLabel42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceDate", "{0:dd.MM.yyyy}")});
|
||||
this.xrLabel42.Font = new System.Drawing.Font("Arial", 10F);
|
||||
this.xrLabel42.LocationFloat = new DevExpress.Utils.PointFloat(557.9997F, 87.37501F);
|
||||
this.xrLabel42.LocationFloat = new DevExpress.Utils.PointFloat(551F, 294.6667F);
|
||||
this.xrLabel42.Name = "xrLabel42";
|
||||
this.xrLabel42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel42.SizeF = new System.Drawing.SizeF(132.9999F, 23F);
|
||||
@@ -223,16 +213,16 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.xrLabel13.Text = "Ambulant Betreutes Wohnen - Budgetnachweis";
|
||||
this.xrLabel13.WordWrap = false;
|
||||
//
|
||||
// xrLabel12
|
||||
// lblAdresse
|
||||
//
|
||||
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 145.8333F);
|
||||
this.xrLabel12.Multiline = true;
|
||||
this.xrLabel12.Name = "xrLabel12";
|
||||
this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel12.ProcessNullValues = DevExpress.XtraReports.UI.ValueSuppressType.SuppressAndShrink;
|
||||
this.xrLabel12.SizeF = new System.Drawing.SizeF(401.0004F, 131.5834F);
|
||||
this.xrLabel12.StylePriority.UseFont = false;
|
||||
this.xrLabel12.Text = "[RecipientOrganisation]\r\n[RecipientDivision]\r\n[RecipientContactPerson]\r\n[Recipien" +
|
||||
this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 145.8333F);
|
||||
this.lblAdresse.Multiline = true;
|
||||
this.lblAdresse.Name = "lblAdresse";
|
||||
this.lblAdresse.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblAdresse.ProcessNullValues = DevExpress.XtraReports.UI.ValueSuppressType.SuppressAndShrink;
|
||||
this.lblAdresse.SizeF = new System.Drawing.SizeF(401.0004F, 131.5834F);
|
||||
this.lblAdresse.StylePriority.UseFont = false;
|
||||
this.lblAdresse.Text = "[RecipientOrganisation]\r\n[RecipientDivision]\r\n[RecipientContactPerson]\r\n[Recipien" +
|
||||
"tStreet]\r\n[RecipientPostCodeAndTown]";
|
||||
//
|
||||
// xrLabel11
|
||||
@@ -267,7 +257,7 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
//
|
||||
// xrLabel2
|
||||
//
|
||||
this.xrLabel2.Font = new System.Drawing.Font("Bauhaus 93", 14F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 10.00001F);
|
||||
this.xrLabel2.Multiline = true;
|
||||
this.xrLabel2.Name = "xrLabel2";
|
||||
@@ -373,14 +363,14 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
//
|
||||
this.chkBeendet.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 25F);
|
||||
this.chkBeendet.Name = "chkBeendet";
|
||||
this.chkBeendet.SizeF = new System.Drawing.SizeF(324.9999F, 21.875F);
|
||||
this.chkBeendet.SizeF = new System.Drawing.SizeF(337F, 21.88F);
|
||||
this.chkBeendet.Text = " Die Betreuung wurde am beendet.";
|
||||
//
|
||||
// chkNichtBeendet
|
||||
//
|
||||
this.chkNichtBeendet.LocationFloat = new DevExpress.Utils.PointFloat(365.9998F, 25F);
|
||||
this.chkNichtBeendet.LocationFloat = new DevExpress.Utils.PointFloat(402.9996F, 25F);
|
||||
this.chkNichtBeendet.Name = "chkNichtBeendet";
|
||||
this.chkNichtBeendet.SizeF = new System.Drawing.SizeF(358.9999F, 21.875F);
|
||||
this.chkNichtBeendet.SizeF = new System.Drawing.SizeF(296.0001F, 21.875F);
|
||||
this.chkNichtBeendet.Text = " Die Betreuung dauert an.";
|
||||
//
|
||||
// xrLabel3
|
||||
@@ -437,10 +427,8 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.tableRechnungspositionen.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow1,
|
||||
this.xrTableRow2,
|
||||
this.xrTableRow3,
|
||||
this.xrTableRow4,
|
||||
this.xrTableRow5});
|
||||
this.tableRechnungspositionen.SizeF = new System.Drawing.SizeF(590F, 90F);
|
||||
this.xrTableRow3});
|
||||
this.tableRechnungspositionen.SizeF = new System.Drawing.SizeF(590F, 54F);
|
||||
this.tableRechnungspositionen.StylePriority.UsePadding = false;
|
||||
//
|
||||
// xrTableRow1
|
||||
@@ -596,113 +584,33 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.xrTableCell15.StylePriority.UseBorders = false;
|
||||
this.xrTableCell15.Weight = 0.50769221379206719D;
|
||||
//
|
||||
// xrTableRow4
|
||||
//
|
||||
this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellStart2,
|
||||
this.cellEnde2,
|
||||
this.cellStundensatz2,
|
||||
this.cellFLS2,
|
||||
this.xrTableCell20});
|
||||
this.xrTableRow4.Name = "xrTableRow4";
|
||||
this.xrTableRow4.Weight = 0.69119905500129186D;
|
||||
//
|
||||
// cellStart2
|
||||
//
|
||||
this.cellStart2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellStart2.Name = "cellStart2";
|
||||
this.cellStart2.StylePriority.UseBorders = false;
|
||||
this.cellStart2.Weight = 0.60000001173753015D;
|
||||
//
|
||||
// cellEnde2
|
||||
//
|
||||
this.cellEnde2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellEnde2.Name = "cellEnde2";
|
||||
this.cellEnde2.StylePriority.UseBorders = false;
|
||||
this.cellEnde2.Weight = 0.59999994131234935D;
|
||||
//
|
||||
// cellStundensatz2
|
||||
//
|
||||
this.cellStundensatz2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellStundensatz2.Name = "cellStundensatz2";
|
||||
this.cellStundensatz2.StylePriority.UseBorders = false;
|
||||
this.cellStundensatz2.Weight = 0.50769257765549891D;
|
||||
//
|
||||
// cellFLS2
|
||||
//
|
||||
this.cellFLS2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellFLS2.Name = "cellFLS2";
|
||||
this.cellFLS2.StylePriority.UseBorders = false;
|
||||
this.cellFLS2.Weight = 0.50769231942983784D;
|
||||
//
|
||||
// xrTableCell20
|
||||
//
|
||||
this.xrTableCell20.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell20.Name = "xrTableCell20";
|
||||
this.xrTableCell20.StylePriority.UseBorders = false;
|
||||
this.xrTableCell20.Weight = 0.50769207294170671D;
|
||||
//
|
||||
// xrTableRow5
|
||||
//
|
||||
this.xrTableRow5.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellStart3,
|
||||
this.cellEnde3,
|
||||
this.cellStundensatz3,
|
||||
this.cellFLS3,
|
||||
this.xrTableCell25});
|
||||
this.xrTableRow5.Name = "xrTableRow5";
|
||||
this.xrTableRow5.Weight = 0.69119905500129186D;
|
||||
//
|
||||
// cellStart3
|
||||
//
|
||||
this.cellStart3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellStart3.Name = "cellStart3";
|
||||
this.cellStart3.StylePriority.UseBorders = false;
|
||||
this.cellStart3.Weight = 0.60000001173753015D;
|
||||
//
|
||||
// cellEnde3
|
||||
//
|
||||
this.cellEnde3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellEnde3.Name = "cellEnde3";
|
||||
this.cellEnde3.StylePriority.UseBorders = false;
|
||||
this.cellEnde3.Weight = 0.59999994131234935D;
|
||||
//
|
||||
// cellStundensatz3
|
||||
//
|
||||
this.cellStundensatz3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellStundensatz3.Name = "cellStundensatz3";
|
||||
this.cellStundensatz3.StylePriority.UseBorders = false;
|
||||
this.cellStundensatz3.Weight = 0.50769271850585951D;
|
||||
//
|
||||
// cellFLS3
|
||||
//
|
||||
this.cellFLS3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellFLS3.Name = "cellFLS3";
|
||||
this.cellFLS3.StylePriority.UseBorders = false;
|
||||
this.cellFLS3.Weight = 0.50769231942983772D;
|
||||
//
|
||||
// xrTableCell25
|
||||
//
|
||||
this.xrTableCell25.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell25.Name = "xrTableCell25";
|
||||
this.xrTableCell25.StylePriority.UseBorders = false;
|
||||
this.xrTableCell25.Weight = 0.50769193209134611D;
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.SettlementRO);
|
||||
//
|
||||
// GroupHeader1
|
||||
//
|
||||
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.tableRechnungspositionen});
|
||||
this.GroupHeader1.Font = new System.Drawing.Font("Arial", 11F);
|
||||
this.GroupHeader1.HeightF = 90F;
|
||||
this.GroupHeader1.HeightF = 54F;
|
||||
this.GroupHeader1.Name = "GroupHeader1";
|
||||
this.GroupHeader1.StylePriority.UseFont = false;
|
||||
//
|
||||
// GroupFooter2
|
||||
//
|
||||
this.GroupFooter2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrSubreport1});
|
||||
this.GroupFooter2.HeightF = 11.45833F;
|
||||
this.GroupFooter2.Level = 1;
|
||||
this.GroupFooter2.Name = "GroupFooter2";
|
||||
//
|
||||
// xrSubreport1
|
||||
//
|
||||
this.xrSubreport1.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 0F);
|
||||
this.xrSubreport1.Name = "xrSubreport1";
|
||||
this.xrSubreport1.SizeF = new System.Drawing.SizeF(683.9999F, 10F);
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.SettlementRO);
|
||||
//
|
||||
// Spitzabrechnung
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
@@ -711,7 +619,8 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
this.topMarginBand1,
|
||||
this.bottomMarginBand1,
|
||||
this.GroupFooter1,
|
||||
this.GroupHeader1});
|
||||
this.GroupHeader1,
|
||||
this.GroupFooter2});
|
||||
this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] {
|
||||
this.ZwischensummeI,
|
||||
this.ZwischensummeII,
|
||||
@@ -761,7 +670,7 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox2;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel2;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel12;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblAdresse;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel15;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel14;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel17;
|
||||
@@ -795,18 +704,8 @@ namespace BeWo.SprungbrettReports.Neu
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStundensatz1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellFLS1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell15;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRow4;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStart2;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellEnde2;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStundensatz2;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellFLS2;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell20;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRow5;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStart3;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellEnde3;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStundensatz3;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellFLS3;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell25;
|
||||
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
|
||||
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter2;
|
||||
private DevExpress.XtraReports.UI.XRSubreport xrSubreport1;
|
||||
}
|
||||
}
|
||||
102
ReportImp/SprungbrettReports/Budgetnachweis.cs
Normal file
102
ReportImp/SprungbrettReports/Budgetnachweis.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Text;
|
||||
|
||||
namespace BeWo.SprungbrettReports
|
||||
{
|
||||
public partial class Budgetnachweis : DevExpress.XtraReports.UI.XtraReport//, IBeWoReport<SettlementRO>
|
||||
{
|
||||
public Budgetnachweis()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(SettlementRO pRO)
|
||||
{
|
||||
chkNichtBeendet.Checked = true;
|
||||
DateTime? terminationDate = null;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientOrganisation);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientContactPerson))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientContactPerson);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientDivision))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientDivision);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientStreet))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientStreet);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown))
|
||||
{
|
||||
sb.Append(pRO.RecipientPostCodeAndTown);
|
||||
}
|
||||
lblAdresse.Text = sb.ToString();
|
||||
|
||||
if (pRO.Approvals != null && pRO.Approvals.Count > 0)
|
||||
{
|
||||
pRO.ApprovedFLSWeekly = pRO.Approvals[0].ApprovedPerUnit ?? 0;
|
||||
|
||||
pRO.ApprovedFLSWeeklyString = String.Format("{0:0.00}", pRO.ApprovedFLSWeekly);
|
||||
}
|
||||
|
||||
chkNichtBeendet.Checked = true;
|
||||
if (pRO.CostBearer2SupportConceptOid > 0)
|
||||
{
|
||||
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(pRO.CostBearer2SupportConceptOid);
|
||||
|
||||
if (c2s.SupportConcept.Customer.TerminationDate.HasValue)
|
||||
{
|
||||
chkBeendet.Text = String.Format(" Die Betreuung wurde am {0:dd.MM.yyyy} beendet.",
|
||||
c2s.SupportConcept.Customer.TerminationDate);
|
||||
chkNichtBeendet.Checked = false;
|
||||
chkBeendet.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
ErstelleRechnungspositionen(pRO, terminationDate);
|
||||
|
||||
var anhang = new SpitzabrechnungSeite2();
|
||||
xrSubreport1.ReportSource = anhang;
|
||||
anhang.SetReportDataSource(pRO);
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
private void ErstelleRechnungspositionen(SettlementRO pRO, DateTime? terminationDate)
|
||||
{
|
||||
if (pRO.InvoiceItems != null)
|
||||
{
|
||||
XRTableRow newRow = null;
|
||||
int rowIndex = 2;
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
if (rowIndex > 2)
|
||||
newRow = tableRechnungspositionen.InsertRowBelow(tableRechnungspositionen.Rows[tableRechnungspositionen.Rows.Count - 1]);
|
||||
|
||||
newRow = tableRechnungspositionen.Rows[rowIndex];
|
||||
newRow.Cells[0].Text = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodStart);
|
||||
newRow.Cells[1].Text = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodEnd);
|
||||
newRow.Cells[2].Text = String.Format("{0:0.00}", ii.AmountPerUnit);
|
||||
newRow.Cells[3].Text = String.Format("{0:0.00}", ii.UnitCount);
|
||||
rowIndex += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1741
ReportImp/SprungbrettReports/BudgetnachweisSeite2.Designer.cs
generated
Normal file
1741
ReportImp/SprungbrettReports/BudgetnachweisSeite2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
23
ReportImp/SprungbrettReports/BudgetnachweisSeite2.cs
Normal file
23
ReportImp/SprungbrettReports/BudgetnachweisSeite2.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
|
||||
namespace BeWo.SprungbrettReports
|
||||
{
|
||||
public partial class SpitzabrechnungSeite2 : DevExpress.XtraReports.UI.XtraReport //, IBeWoReport<SettlementRO>
|
||||
{
|
||||
public SpitzabrechnungSeite2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(SettlementRO pRO)
|
||||
{
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
4670
ReportImp/SprungbrettReports/BudgetnachweisSeite2.resx
Normal file
4670
ReportImp/SprungbrettReports/BudgetnachweisSeite2.resx
Normal file
File diff suppressed because it is too large
Load Diff
76
ReportImp/SprungbrettReports/CustomReportCreator.cs
Normal file
76
ReportImp/SprungbrettReports/CustomReportCreator.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using DevExpress.XtraReports.Design;
|
||||
using DevExpress.XtraReports.UI;
|
||||
|
||||
namespace BeWo.SprungbrettReports
|
||||
{
|
||||
public class CustomReportCreator : DefaultReportCreator
|
||||
{
|
||||
public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid)
|
||||
{
|
||||
XtraReport report = null;
|
||||
|
||||
Settlement2DC lSettlementDC;
|
||||
|
||||
long result;
|
||||
|
||||
if (string.IsNullOrEmpty(dcId) && invoiceBaseOid.HasValue)
|
||||
lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.SearchDAO.GetSettlementInvoiceByInvoiceBaseOid(invoiceBaseOid.Value));
|
||||
|
||||
else if (Int64.TryParse(dcId, out result))
|
||||
lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID<SettlementInvoice>(result)); // = Utils.XMLDeserialize<SettlementDC>(lPath);
|
||||
|
||||
else
|
||||
{
|
||||
string lPath = BS.Shared.Core.Utils.CreateSavePath(TempPath, dcId);
|
||||
lSettlementDC = Utils.XMLDeserialize<Settlement2DC>(lPath);
|
||||
}
|
||||
if (lSettlementDC.RecordedBillableFLSNetto == 0)
|
||||
{
|
||||
lSettlementDC.RecordedBillableFLSNetto = lSettlementDC.RecordedBillableFLSBrutto ?? 0;
|
||||
}
|
||||
String reportId = null;
|
||||
if (lSettlementDC.CostBearer2SupportConceptOid.HasValue)
|
||||
{
|
||||
CostBearer2SupportConcept c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(lSettlementDC.CostBearer2SupportConceptOid.Value);
|
||||
reportId = c2s.CostBearer.ID;
|
||||
}
|
||||
|
||||
if (lSettlementDC.DifferentHourlyRateCount > 0 && lSettlementDC.DifferentHourlyRateCount < 4)
|
||||
{
|
||||
IBeWoReport<SettlementRO> lSettlementReport = FindReportImp<SettlementRO>(reportId);
|
||||
var ro = SettlementRO.Create(lSettlementDC);
|
||||
lSettlementReport.SetReportDataSource(ro);
|
||||
|
||||
report = lSettlementReport as XtraReport;
|
||||
}
|
||||
else
|
||||
{
|
||||
//IBeWoReport<SettlementRO> lSettlementReport = FindReportImp<SettlementRO>(reportId);
|
||||
//var ro = SettlementRO.Create(lSettlementDC);
|
||||
//lSettlementReport.SetReportDataSource(ro);
|
||||
|
||||
//report = lSettlementReport as XtraReport;
|
||||
//IBeWoReport<SettlementRO> lSettlementReport = new Budgetnachweis();
|
||||
var ro = new Budgetnachweis();
|
||||
ro.SetReportDataSource(SettlementRO.Create(lSettlementDC));
|
||||
ro.CreateDocument();
|
||||
report = ro as XtraReport;
|
||||
}
|
||||
|
||||
|
||||
return report;
|
||||
}
|
||||
//return base.CreateSettlementReport(dcId, invoiceBaseOid, true);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
using BeWo.Report.ReportObjects;
|
||||
namespace BeWo.SprungbrettReports
|
||||
namespace BeWo.SprungbrettReports.Alt
|
||||
{
|
||||
partial class Spitzabrechnung
|
||||
{
|
||||
@@ -70,8 +70,8 @@ namespace BeWo.SprungbrettReports
|
||||
this.xrLabel36 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel35 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel34 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrCheckBox2 = new DevExpress.XtraReports.UI.XRCheckBox();
|
||||
this.xrCheckBox1 = new DevExpress.XtraReports.UI.XRCheckBox();
|
||||
this.chkNichtBeendet = new DevExpress.XtraReports.UI.XRCheckBox();
|
||||
this.chkBeendet = new DevExpress.XtraReports.UI.XRCheckBox();
|
||||
this.xrLabel33 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
@@ -306,8 +306,8 @@ namespace BeWo.SprungbrettReports
|
||||
this.xrLabel36,
|
||||
this.xrLabel35,
|
||||
this.xrLabel34,
|
||||
this.xrCheckBox2,
|
||||
this.xrCheckBox1,
|
||||
this.chkNichtBeendet,
|
||||
this.chkBeendet,
|
||||
this.xrLabel33,
|
||||
this.xrLabel15,
|
||||
this.xrLabel14,
|
||||
@@ -658,19 +658,19 @@ namespace BeWo.SprungbrettReports
|
||||
this.xrLabel34.SizeF = new System.Drawing.SizeF(666.0001F, 89.58337F);
|
||||
this.xrLabel34.Text = resources.GetString("xrLabel34.Text");
|
||||
//
|
||||
// xrCheckBox2
|
||||
// chkNichtBeendet
|
||||
//
|
||||
this.xrCheckBox2.LocationFloat = new DevExpress.Utils.PointFloat(366F, 619.7917F);
|
||||
this.xrCheckBox2.Name = "xrCheckBox2";
|
||||
this.xrCheckBox2.SizeF = new System.Drawing.SizeF(358.9999F, 21.875F);
|
||||
this.xrCheckBox2.Text = "Die Betreuung dauert an.";
|
||||
this.chkNichtBeendet.LocationFloat = new DevExpress.Utils.PointFloat(402.9998F, 619.7917F);
|
||||
this.chkNichtBeendet.Name = "chkNichtBeendet";
|
||||
this.chkNichtBeendet.SizeF = new System.Drawing.SizeF(296.0001F, 21.875F);
|
||||
this.chkNichtBeendet.Text = "Die Betreuung dauert an.";
|
||||
//
|
||||
// xrCheckBox1
|
||||
// chkBeendet
|
||||
//
|
||||
this.xrCheckBox1.LocationFloat = new DevExpress.Utils.PointFloat(32.99993F, 619.7917F);
|
||||
this.xrCheckBox1.Name = "xrCheckBox1";
|
||||
this.xrCheckBox1.SizeF = new System.Drawing.SizeF(324.9999F, 21.875F);
|
||||
this.xrCheckBox1.Text = "Die Betreuung wurde am beendet.";
|
||||
this.chkBeendet.LocationFloat = new DevExpress.Utils.PointFloat(32.99993F, 619.7917F);
|
||||
this.chkBeendet.Name = "chkBeendet";
|
||||
this.chkBeendet.SizeF = new System.Drawing.SizeF(337F, 21.88F);
|
||||
this.chkBeendet.Text = "Die Betreuung wurde am beendet.";
|
||||
//
|
||||
// xrLabel33
|
||||
//
|
||||
@@ -3808,8 +3808,8 @@ namespace BeWo.SprungbrettReports
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel36;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel35;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel34;
|
||||
private DevExpress.XtraReports.UI.XRCheckBox xrCheckBox2;
|
||||
private DevExpress.XtraReports.UI.XRCheckBox xrCheckBox1;
|
||||
private DevExpress.XtraReports.UI.XRCheckBox chkNichtBeendet;
|
||||
private DevExpress.XtraReports.UI.XRCheckBox chkBeendet;
|
||||
private DevExpress.XtraReports.UI.XRRichText xrRichText2;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel42;
|
||||
private DevExpress.XtraReports.UI.XRTable xrTable1;
|
||||
|
||||
@@ -5,8 +5,10 @@ using System.ComponentModel;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Data.Access;
|
||||
|
||||
namespace BeWo.SprungbrettReports
|
||||
namespace BeWo.SprungbrettReports.Alt
|
||||
{
|
||||
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<SettlementRO>
|
||||
{
|
||||
@@ -28,6 +30,21 @@ namespace BeWo.SprungbrettReports
|
||||
// lblClaimText2.Text = "Betrag:";
|
||||
//}
|
||||
|
||||
|
||||
chkNichtBeendet.Checked = true;
|
||||
if (pRO.CostBearer2SupportConceptOid > 0)
|
||||
{
|
||||
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(pRO.CostBearer2SupportConceptOid);
|
||||
|
||||
if (c2s.SupportConcept.Customer.TerminationDate.HasValue)
|
||||
{
|
||||
chkBeendet.Text = String.Format(" Die Betreuung wurde am {0:dd.MM.yyyy} beendet.",
|
||||
c2s.SupportConcept.Customer.TerminationDate);
|
||||
chkNichtBeendet.Checked = false;
|
||||
chkBeendet.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
xrPanel1Amount.Location = xrPanel2Amounts.Location;
|
||||
xrPanel3Amounts.Location = xrPanel2Amounts.Location;
|
||||
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BS.Shared.DataContracts;
|
||||
|
||||
namespace BeWo.SprungbrettReports.Neu
|
||||
{
|
||||
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<Settlement2RO>
|
||||
{
|
||||
public Spitzabrechnung()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(Settlement2RO pRO)
|
||||
{
|
||||
chkNichtBeendet.Checked = true;
|
||||
DateTime? terminationDate = null;
|
||||
|
||||
if (pRO.InvoiceBaseOid.HasValue)
|
||||
{
|
||||
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(pRO.InvoiceBaseOid.Value);
|
||||
|
||||
var c2s = ib.CostBearer2SupportConcept;
|
||||
|
||||
if (c2s != null && c2s.SupportConcept.Customer.TerminationDate.HasValue)
|
||||
{
|
||||
terminationDate = c2s.SupportConcept.Customer.TerminationDate;
|
||||
chkBeendet.Text = String.Format(" Die Betreuung wurde am {0:dd.MM.yyyy} beendet.",
|
||||
c2s.SupportConcept.Customer.TerminationDate);
|
||||
chkNichtBeendet.Checked = false;
|
||||
chkBeendet.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ErstelleRechnungspositionen(pRO, terminationDate);
|
||||
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
private void ErstelleRechnungspositionen(Settlement2RO pRO, DateTime? terminationDate)
|
||||
{
|
||||
if (pRO.InvoiceItems != null)
|
||||
{
|
||||
int rowIndex = 0;
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
AddRechnungsposition(ii, rowIndex++);
|
||||
//if (ii.UnitCount.HasValue && ii.UnitCount.Value > 0)
|
||||
//{
|
||||
// AddRechnungsposition(ii, rowIndex++);
|
||||
//}
|
||||
}
|
||||
//if (pRO.InvoiceItems.Count == 3)
|
||||
//{
|
||||
// SetzeRechnungsTexte(pRO.InvoiceItems[0], cellStart1, cellEnd1, cellHourlyRate1, cellFLS1);
|
||||
// SetzeRechnungsTexte(pRO.InvoiceItems[1], cellStart2, cellEnd2, cellHourlyRate2, cellFLS2);
|
||||
// SetzeRechnungsTexte(pRO.InvoiceItems[2], cellStart3, cellEnd3, cellHourlyRate3, cellFLS3);
|
||||
//}
|
||||
//else if (pRO.InvoiceItems.Count == 2)
|
||||
//{
|
||||
// SetzeRechnungsTexte(pRO.InvoiceItems[0], cellStart1, cellEnd1, cellHourlyRate1, cellFLS1);
|
||||
// SetzeRechnungsTexte(pRO.InvoiceItems[1], cellStart2, cellEnd2, cellHourlyRate2, cellFLS2);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// SetzeRechnungsTexte(pRO.InvoiceItems[0], cellStart1, cellEnd1, cellHourlyRate1, cellFLS1);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
private void AddRechnungsposition(Settlement2RO.SettlementInvoiceItemRO ii, int rowIndex)
|
||||
{
|
||||
|
||||
XRTableRow newRow = null;
|
||||
if (rowIndex > 2)
|
||||
{
|
||||
newRow = tableRechnungspositionen.InsertRowBelow(tableRechnungspositionen.Rows[tableRechnungspositionen.Rows.Count - 1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
newRow = tableRechnungspositionen.Rows[rowIndex + 2];
|
||||
}
|
||||
newRow.Cells[0].Text = String.Format("{0:dd.MM.yyyy}", ii.PeriodStartDate);
|
||||
newRow.Cells[1].Text = String.Format("{0:dd.MM.yyyy}", ii.PeriodEndDate);
|
||||
newRow.Cells[2].Text = String.Format("{0:0.00}", ii.AmountPerUnit);
|
||||
|
||||
if (ii.RateFactor.HasValue && ii.RateFactor > 0)
|
||||
{
|
||||
ii.UnitCount *= (ii.RateFactor + 100) / 100;
|
||||
}
|
||||
newRow.Cells[3].Text = String.Format("{0:0.00}", ii.UnitCount);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -104,6 +104,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CustomReportCreator.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ServicesOverviewReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
@@ -111,11 +112,17 @@
|
||||
<Compile Include="ServicesOverviewReport.designer.cs">
|
||||
<DependentUpon>ServicesOverviewReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SettlementReport2.cs">
|
||||
<Compile Include="BudgetnachweisSeite2.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SettlementReport2.Designer.cs">
|
||||
<DependentUpon>SettlementReport2.cs</DependentUpon>
|
||||
<Compile Include="BudgetnachweisSeite2.Designer.cs">
|
||||
<DependentUpon>BudgetnachweisSeite2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Budgetnachweis.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Budgetnachweis.Designer.cs">
|
||||
<DependentUpon>Budgetnachweis.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SettlementReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
@@ -129,8 +136,12 @@
|
||||
<EmbeddedResource Include="ServicesOverviewReport.resx">
|
||||
<DependentUpon>ServicesOverviewReport.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SettlementReport2.resx">
|
||||
<DependentUpon>SettlementReport2.cs</DependentUpon>
|
||||
<EmbeddedResource Include="BudgetnachweisSeite2.resx">
|
||||
<DependentUpon>BudgetnachweisSeite2.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Budgetnachweis.resx">
|
||||
<DependentUpon>Budgetnachweis.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SettlementReport.resx">
|
||||
@@ -139,6 +150,10 @@
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\BeWo\BeWo.csproj">
|
||||
<Project>{3febb560-9275-413a-9767-bb68c44eebc3}</Project>
|
||||
<Name>BeWo</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Data\Data.csproj">
|
||||
<Project>{B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE}</Project>
|
||||
<Name>Data</Name>
|
||||
@@ -147,6 +162,10 @@
|
||||
<Project>{40D8B312-EA64-49E3-A31A-5E57ED4D5654}</Project>
|
||||
<Name>Report</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Service\Service.csproj">
|
||||
<Project>{094331c3-ecee-4c89-bbfd-4c9ded89f0ef}</Project>
|
||||
<Name>Service</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Shared\Shared.csproj">
|
||||
<Project>{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}</Project>
|
||||
<Name>Shared</Name>
|
||||
|
||||
656
ReportImp/SprungbrettTheresia/Budgetnachweis.Designer.cs
generated
Normal file
656
ReportImp/SprungbrettTheresia/Budgetnachweis.Designer.cs
generated
Normal file
@@ -0,0 +1,656 @@
|
||||
using BeWo.Report.ReportObjects;
|
||||
namespace BeWo.SprungbrettTheresia
|
||||
{
|
||||
partial class Budgetnachweis
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Budgetnachweis));
|
||||
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.xrLabel52 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel42 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel33 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.ruleRateFactorNotNull = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.ruleOldAmountNotNull = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.ruleOldAmountNull = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.ZwischensummeI = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.ZwischensummeII = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.fieldSenderEMail = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.fieldApprovedAmountWithOldFLS = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.fieldApprovedAmountWithNewFLS = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.fieldApprovedTotal = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.fieldApprovedTotalMinusEigenbeteiligun = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.fieldApprovedWithNewMinusEigenbeteiligung = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
|
||||
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
|
||||
this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand();
|
||||
this.chkBeendet = new DevExpress.XtraReports.UI.XRCheckBox();
|
||||
this.chkNichtBeendet = new DevExpress.XtraReports.UI.XRCheckBox();
|
||||
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.tableRechnungspositionen = new DevExpress.XtraReports.UI.XRTable();
|
||||
this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.cellStart1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellEnde1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellStundensatz1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.cellFLS1 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
|
||||
this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand();
|
||||
this.xrSubreport1 = new DevExpress.XtraReports.UI.XRSubreport();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tableRechnungspositionen)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
//
|
||||
// Detail
|
||||
//
|
||||
this.Detail.HeightF = 0F;
|
||||
this.Detail.Name = "Detail";
|
||||
this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
|
||||
this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
|
||||
//
|
||||
// ReportHeader
|
||||
//
|
||||
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrLabel52,
|
||||
this.xrLabel42,
|
||||
this.xrLabel33,
|
||||
this.xrLabel15,
|
||||
this.xrLabel14,
|
||||
this.xrLabel17,
|
||||
this.xrLabel13,
|
||||
this.lblAdresse});
|
||||
this.ReportHeader.Font = new System.Drawing.Font("Arial", 11F);
|
||||
this.ReportHeader.HeightF = 505.205F;
|
||||
this.ReportHeader.Name = "ReportHeader";
|
||||
this.ReportHeader.StylePriority.UseFont = false;
|
||||
//
|
||||
// xrLabel52
|
||||
//
|
||||
this.xrLabel52.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel52.CanShrink = true;
|
||||
this.xrLabel52.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel52.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 366.875F);
|
||||
this.xrLabel52.Name = "xrLabel52";
|
||||
this.xrLabel52.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel52.SizeF = new System.Drawing.SizeF(650F, 18F);
|
||||
this.xrLabel52.StylePriority.UseBackColor = false;
|
||||
this.xrLabel52.StylePriority.UseFont = false;
|
||||
this.xrLabel52.Text = "Aktenzeichen der Einrichtung: 60-33/01-03/40 N 15";
|
||||
this.xrLabel52.WordWrap = false;
|
||||
//
|
||||
// xrLabel42
|
||||
//
|
||||
this.xrLabel42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceDate", "{0:dd.MM.yyyy}")});
|
||||
this.xrLabel42.Font = new System.Drawing.Font("Arial", 10F);
|
||||
this.xrLabel42.LocationFloat = new DevExpress.Utils.PointFloat(551F, 294.6667F);
|
||||
this.xrLabel42.Name = "xrLabel42";
|
||||
this.xrLabel42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel42.SizeF = new System.Drawing.SizeF(132.9999F, 23F);
|
||||
this.xrLabel42.StylePriority.UseFont = false;
|
||||
this.xrLabel42.StylePriority.UseTextAlignment = false;
|
||||
this.xrLabel42.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
//
|
||||
// xrLabel33
|
||||
//
|
||||
this.xrLabel33.LocationFloat = new DevExpress.Utils.PointFloat(32.9998F, 465.625F);
|
||||
this.xrLabel33.Name = "xrLabel33";
|
||||
this.xrLabel33.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel33.SizeF = new System.Drawing.SizeF(580.54F, 39.58F);
|
||||
this.xrLabel33.Text = "Im Bewilligungszeitraum tatsächlich geleistete Fachleistungsstunden (FLS)";
|
||||
//
|
||||
// xrLabel15
|
||||
//
|
||||
this.xrLabel15.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel15.CanShrink = true;
|
||||
this.xrLabel15.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(32.9998F, 419.875F);
|
||||
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(650F, 17F);
|
||||
this.xrLabel15.StylePriority.UseBackColor = false;
|
||||
this.xrLabel15.StylePriority.UseFont = false;
|
||||
this.xrLabel15.Text = "Bewilligungszeitraum [AccountingPeriod]";
|
||||
this.xrLabel15.WordWrap = false;
|
||||
//
|
||||
// xrLabel14
|
||||
//
|
||||
this.xrLabel14.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel14.CanShrink = true;
|
||||
this.xrLabel14.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(32.9998F, 402.875F);
|
||||
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(650F, 17F);
|
||||
this.xrLabel14.StylePriority.UseBackColor = false;
|
||||
this.xrLabel14.StylePriority.UseFont = false;
|
||||
this.xrLabel14.Text = "Aktenzeichen LWL: [CustomerReferenceNumber]";
|
||||
this.xrLabel14.WordWrap = false;
|
||||
//
|
||||
// xrLabel17
|
||||
//
|
||||
this.xrLabel17.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel17.CanShrink = true;
|
||||
this.xrLabel17.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(32.9998F, 384.875F);
|
||||
this.xrLabel17.Name = "xrLabel17";
|
||||
this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel17.SizeF = new System.Drawing.SizeF(650F, 18F);
|
||||
this.xrLabel17.StylePriority.UseBackColor = false;
|
||||
this.xrLabel17.StylePriority.UseFont = false;
|
||||
this.xrLabel17.Text = "für [Salutation2] [CustomerName], geb. [CustomerBirthday!dd.MM.yyyy]";
|
||||
this.xrLabel17.WordWrap = false;
|
||||
//
|
||||
// xrLabel13
|
||||
//
|
||||
this.xrLabel13.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel13.CanShrink = true;
|
||||
this.xrLabel13.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(33.99989F, 333.3333F);
|
||||
this.xrLabel13.Name = "xrLabel13";
|
||||
this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel13.SizeF = new System.Drawing.SizeF(650F, 20F);
|
||||
this.xrLabel13.StylePriority.UseBackColor = false;
|
||||
this.xrLabel13.StylePriority.UseFont = false;
|
||||
this.xrLabel13.Text = "Ambulant Betreutes Wohnen - Budgetnachweis";
|
||||
this.xrLabel13.WordWrap = false;
|
||||
//
|
||||
// lblAdresse
|
||||
//
|
||||
this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 145.8333F);
|
||||
this.lblAdresse.Multiline = true;
|
||||
this.lblAdresse.Name = "lblAdresse";
|
||||
this.lblAdresse.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblAdresse.ProcessNullValues = DevExpress.XtraReports.UI.ValueSuppressType.SuppressAndShrink;
|
||||
this.lblAdresse.SizeF = new System.Drawing.SizeF(401.0004F, 131.5834F);
|
||||
this.lblAdresse.StylePriority.UseFont = false;
|
||||
this.lblAdresse.Text = "[RecipientOrganisation]\r\n[RecipientDivision]\r\n[RecipientContactPerson]\r\n[Recipien" +
|
||||
"tStreet]\r\n[RecipientPostCodeAndTown]";
|
||||
//
|
||||
// ruleRateFactorNotNull
|
||||
//
|
||||
this.ruleRateFactorNotNull.Condition = "[RateFactorText2] == ?";
|
||||
this.ruleRateFactorNotNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.ruleRateFactorNotNull.Name = "ruleRateFactorNotNull";
|
||||
//
|
||||
// ruleOldAmountNotNull
|
||||
//
|
||||
this.ruleOldAmountNotNull.Condition = "[HourlyRateOld] == 0";
|
||||
this.ruleOldAmountNotNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.ruleOldAmountNotNull.Name = "ruleOldAmountNotNull";
|
||||
//
|
||||
// ruleOldAmountNull
|
||||
//
|
||||
this.ruleOldAmountNull.Condition = "[HourlyRateOld] != 0";
|
||||
this.ruleOldAmountNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.ruleOldAmountNull.Name = "ruleOldAmountNull";
|
||||
//
|
||||
// ZwischensummeI
|
||||
//
|
||||
this.ZwischensummeI.Expression = "[AmountTotalWithOldHourlyRate] - [AmountTotalAdvancedPaidWithOldHourlyRate]";
|
||||
this.ZwischensummeI.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.ZwischensummeI.Name = "ZwischensummeI";
|
||||
//
|
||||
// ZwischensummeII
|
||||
//
|
||||
this.ZwischensummeII.Expression = "[AmountTotalWithNewHourlyRate] - [AmountTotalAdvancedPaidWithNewHourlyRate]";
|
||||
this.ZwischensummeII.Name = "ZwischensummeII";
|
||||
//
|
||||
// fieldSenderEMail
|
||||
//
|
||||
this.fieldSenderEMail.Expression = "Substring([SenderContactPersonMail], 7)";
|
||||
this.fieldSenderEMail.FieldType = DevExpress.XtraReports.UI.FieldType.String;
|
||||
this.fieldSenderEMail.Name = "fieldSenderEMail";
|
||||
//
|
||||
// fieldApprovedAmountWithOldFLS
|
||||
//
|
||||
this.fieldApprovedAmountWithOldFLS.Expression = "[ApprovedFLSWeekly] * [WeeksWithOldHourlyRate] * [HourlyRateOld]";
|
||||
this.fieldApprovedAmountWithOldFLS.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.fieldApprovedAmountWithOldFLS.Name = "fieldApprovedAmountWithOldFLS";
|
||||
//
|
||||
// fieldApprovedAmountWithNewFLS
|
||||
//
|
||||
this.fieldApprovedAmountWithNewFLS.Expression = "[ApprovedFLSWeekly] * [WeeksWithNewHourlyRate] * [HourlyRateNew]";
|
||||
this.fieldApprovedAmountWithNewFLS.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.fieldApprovedAmountWithNewFLS.Name = "fieldApprovedAmountWithNewFLS";
|
||||
//
|
||||
// fieldApprovedTotal
|
||||
//
|
||||
this.fieldApprovedTotal.Expression = "([ApprovedFLSWeekly] * [WeeksWithNewHourlyRate] * [HourlyRateNew]) + ([ApprovedFL" +
|
||||
"SWeekly] * [WeeksWithOldHourlyRate] * [HourlyRateOld])";
|
||||
this.fieldApprovedTotal.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.fieldApprovedTotal.Name = "fieldApprovedTotal";
|
||||
//
|
||||
// fieldApprovedTotalMinusEigenbeteiligun
|
||||
//
|
||||
this.fieldApprovedTotalMinusEigenbeteiligun.Expression = "[AmountRecordedFLS] - [Eigenbeteiligung]";
|
||||
this.fieldApprovedTotalMinusEigenbeteiligun.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.fieldApprovedTotalMinusEigenbeteiligun.Name = "fieldApprovedTotalMinusEigenbeteiligun";
|
||||
//
|
||||
// fieldApprovedWithNewMinusEigenbeteiligung
|
||||
//
|
||||
this.fieldApprovedWithNewMinusEigenbeteiligung.Expression = "([ApprovedFLSWeekly] * [WeeksWithNewHourlyRate] * [HourlyRateNew]) - [Eigenbeteil" +
|
||||
"igung]";
|
||||
this.fieldApprovedWithNewMinusEigenbeteiligung.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.fieldApprovedWithNewMinusEigenbeteiligung.Name = "fieldApprovedWithNewMinusEigenbeteiligung";
|
||||
//
|
||||
// topMarginBand1
|
||||
//
|
||||
this.topMarginBand1.HeightF = 75F;
|
||||
this.topMarginBand1.Name = "topMarginBand1";
|
||||
//
|
||||
// bottomMarginBand1
|
||||
//
|
||||
this.bottomMarginBand1.HeightF = 50F;
|
||||
this.bottomMarginBand1.Name = "bottomMarginBand1";
|
||||
//
|
||||
// GroupFooter1
|
||||
//
|
||||
this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.chkBeendet,
|
||||
this.chkNichtBeendet,
|
||||
this.xrLabel3,
|
||||
this.xrLabel4,
|
||||
this.xrLabel5,
|
||||
this.xrRichText1});
|
||||
this.GroupFooter1.Font = new System.Drawing.Font("Arial", 11F);
|
||||
this.GroupFooter1.HeightF = 291.5694F;
|
||||
this.GroupFooter1.Name = "GroupFooter1";
|
||||
this.GroupFooter1.StylePriority.UseFont = false;
|
||||
//
|
||||
// chkBeendet
|
||||
//
|
||||
this.chkBeendet.LocationFloat = new DevExpress.Utils.PointFloat(32.99968F, 25F);
|
||||
this.chkBeendet.Name = "chkBeendet";
|
||||
this.chkBeendet.SizeF = new System.Drawing.SizeF(337F, 21.88F);
|
||||
this.chkBeendet.Text = " Die Betreuung wurde am beendet.";
|
||||
//
|
||||
// chkNichtBeendet
|
||||
//
|
||||
this.chkNichtBeendet.LocationFloat = new DevExpress.Utils.PointFloat(402.9995F, 25F);
|
||||
this.chkNichtBeendet.Name = "chkNichtBeendet";
|
||||
this.chkNichtBeendet.SizeF = new System.Drawing.SizeF(296.0002F, 21.875F);
|
||||
this.chkNichtBeendet.Text = " Die Betreuung dauert an.";
|
||||
//
|
||||
// xrLabel3
|
||||
//
|
||||
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 67.70834F);
|
||||
this.xrLabel3.Name = "xrLabel3";
|
||||
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel3.SizeF = new System.Drawing.SizeF(666.0001F, 89.58337F);
|
||||
this.xrLabel3.Text = resources.GetString("xrLabel3.Text");
|
||||
//
|
||||
// xrLabel4
|
||||
//
|
||||
this.xrLabel4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel4.Borders = DevExpress.XtraPrinting.BorderSide.Top;
|
||||
this.xrLabel4.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 211.4583F);
|
||||
this.xrLabel4.Multiline = true;
|
||||
this.xrLabel4.Name = "xrLabel4";
|
||||
this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel4.SizeF = new System.Drawing.SizeF(324.9999F, 17F);
|
||||
this.xrLabel4.StylePriority.UseBackColor = false;
|
||||
this.xrLabel4.StylePriority.UseBorders = false;
|
||||
this.xrLabel4.StylePriority.UseFont = false;
|
||||
this.xrLabel4.Text = "Stempel / Unterschrift";
|
||||
this.xrLabel4.WordWrap = false;
|
||||
//
|
||||
// xrLabel5
|
||||
//
|
||||
this.xrLabel5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.xrLabel5.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
|
||||
this.xrLabel5.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 247.9167F);
|
||||
this.xrLabel5.Multiline = true;
|
||||
this.xrLabel5.Name = "xrLabel5";
|
||||
this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel5.SizeF = new System.Drawing.SizeF(324.9999F, 17F);
|
||||
this.xrLabel5.StylePriority.UseBackColor = false;
|
||||
this.xrLabel5.StylePriority.UseBorders = false;
|
||||
this.xrLabel5.StylePriority.UseFont = false;
|
||||
this.xrLabel5.WordWrap = false;
|
||||
//
|
||||
// xrRichText1
|
||||
//
|
||||
this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 264.9167F);
|
||||
this.xrRichText1.Name = "xrRichText1";
|
||||
this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString");
|
||||
this.xrRichText1.SizeF = new System.Drawing.SizeF(683.9998F, 23.875F);
|
||||
//
|
||||
// tableRechnungspositionen
|
||||
//
|
||||
this.tableRechnungspositionen.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 0F);
|
||||
this.tableRechnungspositionen.Name = "tableRechnungspositionen";
|
||||
this.tableRechnungspositionen.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F);
|
||||
this.tableRechnungspositionen.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow1,
|
||||
this.xrTableRow2,
|
||||
this.xrTableRow3});
|
||||
this.tableRechnungspositionen.SizeF = new System.Drawing.SizeF(590F, 54F);
|
||||
this.tableRechnungspositionen.StylePriority.UsePadding = false;
|
||||
//
|
||||
// xrTableRow1
|
||||
//
|
||||
this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.xrTableCell1,
|
||||
this.xrTableCell2,
|
||||
this.xrTableCell3,
|
||||
this.xrTableCell7,
|
||||
this.xrTableCell9});
|
||||
this.xrTableRow1.Name = "xrTableRow1";
|
||||
this.xrTableRow1.Weight = 0.691199055001292D;
|
||||
//
|
||||
// xrTableCell1
|
||||
//
|
||||
this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)));
|
||||
this.xrTableCell1.Name = "xrTableCell1";
|
||||
this.xrTableCell1.StylePriority.UseBorders = false;
|
||||
this.xrTableCell1.Text = "Zeitraum";
|
||||
this.xrTableCell1.Weight = 0.60000001173753015D;
|
||||
//
|
||||
// xrTableCell2
|
||||
//
|
||||
this.xrTableCell2.Borders = DevExpress.XtraPrinting.BorderSide.Top;
|
||||
this.xrTableCell2.Name = "xrTableCell2";
|
||||
this.xrTableCell2.StylePriority.UseBorders = false;
|
||||
this.xrTableCell2.Weight = 0.59999994131234935D;
|
||||
//
|
||||
// xrTableCell3
|
||||
//
|
||||
this.xrTableCell3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)));
|
||||
this.xrTableCell3.Name = "xrTableCell3";
|
||||
this.xrTableCell3.StylePriority.UseBorders = false;
|
||||
this.xrTableCell3.Text = "Vergütung pro";
|
||||
this.xrTableCell3.Weight = 0.50769229595477772D;
|
||||
//
|
||||
// xrTableCell7
|
||||
//
|
||||
this.xrTableCell7.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)));
|
||||
this.xrTableCell7.Name = "xrTableCell7";
|
||||
this.xrTableCell7.StylePriority.UseBorders = false;
|
||||
this.xrTableCell7.Text = "anz FLS";
|
||||
this.xrTableCell7.Weight = 0.50769231942983772D;
|
||||
//
|
||||
// xrTableCell9
|
||||
//
|
||||
this.xrTableCell9.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)));
|
||||
this.xrTableCell9.Font = new System.Drawing.Font("Arial", 9F);
|
||||
this.xrTableCell9.Name = "xrTableCell9";
|
||||
this.xrTableCell9.StylePriority.UseBorders = false;
|
||||
this.xrTableCell9.StylePriority.UseFont = false;
|
||||
this.xrTableCell9.Text = "davon gesondert ";
|
||||
this.xrTableCell9.Weight = 0.50769235464242779D;
|
||||
//
|
||||
// xrTableRow2
|
||||
//
|
||||
this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.xrTableCell4,
|
||||
this.xrTableCell5,
|
||||
this.xrTableCell6,
|
||||
this.xrTableCell8,
|
||||
this.xrTableCell10});
|
||||
this.xrTableRow2.Name = "xrTableRow2";
|
||||
this.xrTableRow2.Weight = 0.69119905500129186D;
|
||||
//
|
||||
// xrTableCell4
|
||||
//
|
||||
this.xrTableCell4.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell4.Name = "xrTableCell4";
|
||||
this.xrTableCell4.StylePriority.UseBorders = false;
|
||||
this.xrTableCell4.Text = "von";
|
||||
this.xrTableCell4.Weight = 0.60000001173753015D;
|
||||
//
|
||||
// xrTableCell5
|
||||
//
|
||||
this.xrTableCell5.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
|
||||
this.xrTableCell5.Name = "xrTableCell5";
|
||||
this.xrTableCell5.StylePriority.UseBorders = false;
|
||||
this.xrTableCell5.Text = "bis";
|
||||
this.xrTableCell5.Weight = 0.59999994131234935D;
|
||||
//
|
||||
// xrTableCell6
|
||||
//
|
||||
this.xrTableCell6.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell6.Name = "xrTableCell6";
|
||||
this.xrTableCell6.StylePriority.UseBorders = false;
|
||||
this.xrTableCell6.Text = "Stunde";
|
||||
this.xrTableCell6.Weight = 0.50769243680513831D;
|
||||
//
|
||||
// xrTableCell8
|
||||
//
|
||||
this.xrTableCell8.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell8.Name = "xrTableCell8";
|
||||
this.xrTableCell8.StylePriority.UseBorders = false;
|
||||
this.xrTableCell8.Weight = 0.50769231942983784D;
|
||||
//
|
||||
// xrTableCell10
|
||||
//
|
||||
this.xrTableCell10.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell10.Font = new System.Drawing.Font("Arial", 9F);
|
||||
this.xrTableCell10.Name = "xrTableCell10";
|
||||
this.xrTableCell10.StylePriority.UseBorders = false;
|
||||
this.xrTableCell10.StylePriority.UseFont = false;
|
||||
this.xrTableCell10.Text = "bewilligt*";
|
||||
this.xrTableCell10.Weight = 0.50769221379206719D;
|
||||
//
|
||||
// xrTableRow3
|
||||
//
|
||||
this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellStart1,
|
||||
this.cellEnde1,
|
||||
this.cellStundensatz1,
|
||||
this.cellFLS1,
|
||||
this.xrTableCell15});
|
||||
this.xrTableRow3.Name = "xrTableRow3";
|
||||
this.xrTableRow3.Weight = 0.69119905500129186D;
|
||||
//
|
||||
// cellStart1
|
||||
//
|
||||
this.cellStart1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellStart1.Name = "cellStart1";
|
||||
this.cellStart1.StylePriority.UseBorders = false;
|
||||
this.cellStart1.Weight = 0.60000001173753015D;
|
||||
//
|
||||
// cellEnde1
|
||||
//
|
||||
this.cellEnde1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellEnde1.Name = "cellEnde1";
|
||||
this.cellEnde1.StylePriority.UseBorders = false;
|
||||
this.cellEnde1.Weight = 0.59999994131234935D;
|
||||
//
|
||||
// cellStundensatz1
|
||||
//
|
||||
this.cellStundensatz1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellStundensatz1.Name = "cellStundensatz1";
|
||||
this.cellStundensatz1.StylePriority.UseBorders = false;
|
||||
this.cellStundensatz1.Weight = 0.50769243680513831D;
|
||||
//
|
||||
// cellFLS1
|
||||
//
|
||||
this.cellFLS1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.cellFLS1.Name = "cellFLS1";
|
||||
this.cellFLS1.StylePriority.UseBorders = false;
|
||||
this.cellFLS1.Weight = 0.50769231942983784D;
|
||||
//
|
||||
// xrTableCell15
|
||||
//
|
||||
this.xrTableCell15.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableCell15.Name = "xrTableCell15";
|
||||
this.xrTableCell15.StylePriority.UseBorders = false;
|
||||
this.xrTableCell15.Weight = 0.50769221379206719D;
|
||||
//
|
||||
// GroupHeader1
|
||||
//
|
||||
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.tableRechnungspositionen});
|
||||
this.GroupHeader1.Font = new System.Drawing.Font("Arial", 11F);
|
||||
this.GroupHeader1.HeightF = 54F;
|
||||
this.GroupHeader1.Name = "GroupHeader1";
|
||||
this.GroupHeader1.StylePriority.UseFont = false;
|
||||
//
|
||||
// GroupFooter2
|
||||
//
|
||||
this.GroupFooter2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrSubreport1});
|
||||
this.GroupFooter2.HeightF = 11.45833F;
|
||||
this.GroupFooter2.Level = 1;
|
||||
this.GroupFooter2.Name = "GroupFooter2";
|
||||
//
|
||||
// xrSubreport1
|
||||
//
|
||||
this.xrSubreport1.LocationFloat = new DevExpress.Utils.PointFloat(32.99955F, 0F);
|
||||
this.xrSubreport1.Name = "xrSubreport1";
|
||||
this.xrSubreport1.SizeF = new System.Drawing.SizeF(683.9999F, 10F);
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.SettlementRO);
|
||||
//
|
||||
// Spitzabrechnung
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
this.Detail,
|
||||
this.ReportHeader,
|
||||
this.topMarginBand1,
|
||||
this.bottomMarginBand1,
|
||||
this.GroupFooter1,
|
||||
this.GroupHeader1,
|
||||
this.GroupFooter2});
|
||||
this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] {
|
||||
this.ZwischensummeI,
|
||||
this.ZwischensummeII,
|
||||
this.fieldSenderEMail,
|
||||
this.fieldApprovedAmountWithOldFLS,
|
||||
this.fieldApprovedAmountWithNewFLS,
|
||||
this.fieldApprovedTotal,
|
||||
this.fieldApprovedTotalMinusEigenbeteiligun,
|
||||
this.fieldApprovedWithNewMinusEigenbeteiligung});
|
||||
this.DataSource = this.bindingSource1;
|
||||
this.ExportOptions.PrintPreview.DefaultFileName = "Spitzabrechnung";
|
||||
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
|
||||
this.ruleRateFactorNotNull,
|
||||
this.ruleOldAmountNotNull,
|
||||
this.ruleOldAmountNull});
|
||||
this.Margins = new System.Drawing.Printing.Margins(50, 50, 75, 50);
|
||||
this.PageHeight = 1169;
|
||||
this.PageWidth = 827;
|
||||
this.PaperKind = System.Drawing.Printing.PaperKind.A4;
|
||||
this.Version = "17.1";
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tableRechnungspositionen)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraReports.UI.DetailBand Detail;
|
||||
private System.Windows.Forms.BindingSource bindingSource1;
|
||||
private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader;
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleRateFactorNotNull;
|
||||
private DevExpress.XtraReports.UI.CalculatedField ZwischensummeI;
|
||||
private DevExpress.XtraReports.UI.CalculatedField ZwischensummeII;
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleOldAmountNotNull;
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleOldAmountNull;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldSenderEMail;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldApprovedAmountWithOldFLS;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldApprovedAmountWithNewFLS;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldApprovedTotal;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldApprovedTotalMinusEigenbeteiligun;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldApprovedWithNewMinusEigenbeteiligung;
|
||||
private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
|
||||
private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblAdresse;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel15;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel14;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel17;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel13;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel33;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel42;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel52;
|
||||
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1;
|
||||
private DevExpress.XtraReports.UI.XRCheckBox chkBeendet;
|
||||
private DevExpress.XtraReports.UI.XRCheckBox chkNichtBeendet;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel3;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel4;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel5;
|
||||
private DevExpress.XtraReports.UI.XRRichText xrRichText1;
|
||||
private DevExpress.XtraReports.UI.XRTable tableRechnungspositionen;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRow1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell2;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell3;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell7;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell9;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRow2;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell4;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell5;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell6;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell8;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell10;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRow3;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStart1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellEnde1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellStundensatz1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellFLS1;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell15;
|
||||
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
|
||||
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter2;
|
||||
private DevExpress.XtraReports.UI.XRSubreport xrSubreport1;
|
||||
}
|
||||
}
|
||||
102
ReportImp/SprungbrettTheresia/Budgetnachweis.cs
Normal file
102
ReportImp/SprungbrettTheresia/Budgetnachweis.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Text;
|
||||
|
||||
namespace BeWo.SprungbrettTheresia
|
||||
{
|
||||
public partial class Budgetnachweis : DevExpress.XtraReports.UI.XtraReport//, IBeWoReport<SettlementRO>
|
||||
{
|
||||
public Budgetnachweis()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(SettlementRO pRO)
|
||||
{
|
||||
chkNichtBeendet.Checked = true;
|
||||
DateTime? terminationDate = null;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientOrganisation);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientContactPerson))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientContactPerson);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientDivision))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientDivision);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientStreet))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientStreet);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown))
|
||||
{
|
||||
sb.Append(pRO.RecipientPostCodeAndTown);
|
||||
}
|
||||
lblAdresse.Text = sb.ToString();
|
||||
|
||||
if (pRO.Approvals != null && pRO.Approvals.Count > 0)
|
||||
{
|
||||
pRO.ApprovedFLSWeekly = pRO.Approvals[0].ApprovedPerUnit ?? 0;
|
||||
|
||||
pRO.ApprovedFLSWeeklyString = String.Format("{0:0.00}", pRO.ApprovedFLSWeekly);
|
||||
}
|
||||
|
||||
chkNichtBeendet.Checked = true;
|
||||
if (pRO.CostBearer2SupportConceptOid > 0)
|
||||
{
|
||||
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(pRO.CostBearer2SupportConceptOid);
|
||||
|
||||
if (c2s.SupportConcept.Customer.TerminationDate.HasValue)
|
||||
{
|
||||
chkBeendet.Text = String.Format(" Die Betreuung wurde am {0:dd.MM.yyyy} beendet.",
|
||||
c2s.SupportConcept.Customer.TerminationDate);
|
||||
chkNichtBeendet.Checked = false;
|
||||
chkBeendet.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
ErstelleRechnungspositionen(pRO, terminationDate);
|
||||
|
||||
var anhang = new BudgetnachweisSeite2();
|
||||
xrSubreport1.ReportSource = anhang;
|
||||
anhang.SetReportDataSource(pRO);
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
private void ErstelleRechnungspositionen(SettlementRO pRO, DateTime? terminationDate)
|
||||
{
|
||||
if (pRO.InvoiceItems != null)
|
||||
{
|
||||
XRTableRow newRow = null;
|
||||
int rowIndex = 2;
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
if (rowIndex > 2)
|
||||
newRow = tableRechnungspositionen.InsertRowBelow(tableRechnungspositionen.Rows[tableRechnungspositionen.Rows.Count - 1]);
|
||||
|
||||
newRow = tableRechnungspositionen.Rows[rowIndex];
|
||||
newRow.Cells[0].Text = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodStart);
|
||||
newRow.Cells[1].Text = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodEnd);
|
||||
newRow.Cells[2].Text = String.Format("{0:0.00}", ii.AmountPerUnit);
|
||||
newRow.Cells[3].Text = String.Format("{0:0.00}", ii.UnitCount);
|
||||
rowIndex += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
129
ReportImp/SprungbrettTheresia/Budgetnachweis.resx
Normal file
129
ReportImp/SprungbrettTheresia/Budgetnachweis.resx
Normal file
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="xrLabel3.Text" xml:space="preserve">
|
||||
<value>Hiermit wird erklärt, dass die Verpflichtungen aus der Leistungs-, Prüfungs- und Vergütungsvereinbarung nach §§ 75 ff. SGB XII eingehalten wurden und alle hier gemachten Angaben anhand der vorgehaltenen Quittierungsbelege sowie der Betreuungsdokumentation jederzeit nachgewiesen werden können.</value>
|
||||
</data>
|
||||
<data name="xrRichText1.SerializableRtfString" xml:space="preserve">
|
||||
<value>ewBcAHIAdABmADEAXABhAG4AcwBpAFwAYQBuAHMAaQBjAHAAZwAxADIANQAyAFwAZABlAGYAZgAwAHsAXABmAG8AbgB0AHQAYgBsAHsAXABmADAAXABmAHMAdwBpAHMAcwBcAGYAcAByAHEAMgBcAGYAYwBoAGEAcgBzAGUAdAAwACAAQQByAGkAYQBsADsAfQB7AFwAZgAxAFwAZgBuAGkAbAAgAFQAaQBtAGUAcwAgAE4AZQB3ACAAUgBvAG0AYQBuADsAfQB9AA0ACgBcAHYAaQBlAHcAawBpAG4AZAA0AFwAdQBjADEAXABwAGEAcgBkAFwAbABhAG4AZwAxADAAMwAxAFwAZgAwAFwAZgBzADIAMgAgACoAIAB2AG8AbQAgAEwAVwBMACAAZwBlAHMAbwBuAGQAZQByAHQAIABiAGUAdwBpAGwAbABpAGcAdABlACAATABlAGkAcwB0AHUAbgBnAGUAbgAgAHoAdQByACAARABlAGMAawB1AG4AZwAgAGUAaQBuAGUAcwAgAGUAaQBuAG0AYQBsAGkAZwBlAG4AIABCAGUAZABhAHIAZgBzAFwAZgAxAFwAZgBzADIANABcAHAAYQByAA0ACgB9AA0ACgA=</value>
|
||||
</data>
|
||||
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
1686
ReportImp/SprungbrettTheresia/BudgetnachweisSeite2.Designer.cs
generated
Normal file
1686
ReportImp/SprungbrettTheresia/BudgetnachweisSeite2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
23
ReportImp/SprungbrettTheresia/BudgetnachweisSeite2.cs
Normal file
23
ReportImp/SprungbrettTheresia/BudgetnachweisSeite2.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
|
||||
namespace BeWo.SprungbrettTheresia
|
||||
{
|
||||
public partial class BudgetnachweisSeite2 : DevExpress.XtraReports.UI.XtraReport //, IBeWoReport<SettlementRO>
|
||||
{
|
||||
public BudgetnachweisSeite2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(SettlementRO pRO)
|
||||
{
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
129
ReportImp/SprungbrettTheresia/BudgetnachweisSeite2.resx
Normal file
129
ReportImp/SprungbrettTheresia/BudgetnachweisSeite2.resx
Normal file
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="xrRichText1.SerializableRtfString" xml:space="preserve">
|
||||
<value>ewBcAHIAdABmADEAXABhAG4AcwBpAFwAYQBuAHMAaQBjAHAAZwAxADIANQAyAFwAZABlAGYAZgAwAHsAXABmAG8AbgB0AHQAYgBsAHsAXABmADAAXABmAG4AaQBsAFwAZgBjAGgAYQByAHMAZQB0ADAAIABBAHIAaQBhAGwAOwB9AH0ADQAKAFwAdgBpAGUAdwBrAGkAbgBkADQAXAB1AGMAMQBcAHAAYQByAGQAXABsAGEAbgBnADEAMAAzADEAXABmAHMAMQA4ACAAZwBlAG4AZQByAGUAbABsAC4AIABBAGsAdABlAG4AegBlAGkAYwBoAGUAbgAgAGQAZQBzACAATABXAEwAOgBcAHAAYQByAA0ACgB9AA0ACgA=</value>
|
||||
</data>
|
||||
<data name="xrRichText15.SerializableRtfString" xml:space="preserve">
|
||||
<value>ewBcAHIAdABmADEAXABhAG4AcwBpAFwAYQBuAHMAaQBjAHAAZwAxADIANQAyAFwAZABlAGYAZgAwAHsAXABmAG8AbgB0AHQAYgBsAHsAXABmADAAXABmAG4AaQBsAFwAZgBjAGgAYQByAHMAZQB0ADAAIABBAHIAaQBhAGwAOwB9AHsAXABmADEAXABmAG4AaQBsACAAVABpAG0AZQBzACAATgBlAHcAIABSAG8AbQBhAG4AOwB9AH0ADQAKAFwAdgBpAGUAdwBrAGkAbgBkADQAXAB1AGMAMQBcAHAAYQByAGQAXABsAGEAbgBnADEAMAAzADEAXAB1AGwAXABiAFwAZgBzADIAMAAgAEUAcgBrAGwAXAAnAGUANAByAHUAbgBnACAAZABlAHMAIABBAG4AYgBpAGUAdABlAHIAcwA6AFwAdQBsAG4AbwBuAGUAXABiADAAXABwAGEAcgANAAoASABpAGUAcgBtAGkAdAAgAHcAaQByAGQAIABlAHIAawBsAFwAJwBlADQAcgB0ACwAIABkAGEAcwBzACAAZABpAGUAIABWAGUAcgBwAGYAbABpAGMAaAB0AHUAbgBnAGUAbgAgAGEAdQBzACAAZABlAHIAIABMAGUAaQBzAHQAdQBuAGcAcwAtACwAIABQAHIAXAAnAGYAYwBmAHUAbgBnAHMALQAgAHUAbgBkACAAVgBlAHIAZwBcACcAZgBjAHQAdQBuAGcAcwB2AGUAcgBlAGkAbgBiAGEAcgB1AG4AZwAgAG4AYQBjAGgAIABcACcAYQA3AFwAJwBhADcAIAA5ADMAIABmAGYAIABCAFMASABHACAAYgB6AHcALgAgAFwAJwBhADcAXAAnAGEANwAgADcANQAgAGYAZgAgAFMARwBCACAAWABJAEkAIABlAGkAbgBnAGUAaABhAGwAdABlAG4AIAB3AHUAcgBkAGUAbgAgAHUAbgBkACAAZABpAGUAIAB2AG8AcgBnAGUAbgBhAG4AbgB0AGUAbgAgAEEAbgBnAGEAYgBlAG4AIABhAG4AaABhAG4AZAAgAGQAZQByACAAdgBvAHIAZwBlAGgAYQBsAHQAZQBuAGUAbgAgAFEAdQBpAHQAdABpAGUAcgB1AG4AZwBzAGIAZQBsAGUAZwBlACAAcwBvAHcAaQBlACAAZABlAHIAIABCAGUAdAByAGUAdQB1AG4AZwBzAGQAbwBrAHUAbQBlAG4AdABhAHQAaQBvAG4AIABuAGEAYwBoAGcAZQB3AGkAZQBzAGUAbgAgAHcAZQByAGQAZQBuACAAawBcACcAZgA2AG4AbgBlAG4ALgBcAGYAMQBcAGYAcwAyADQAXABwAGEAcgANAAoAfQANAAoA</value>
|
||||
</data>
|
||||
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
76
ReportImp/SprungbrettTheresia/CustomReportCreator.cs
Normal file
76
ReportImp/SprungbrettTheresia/CustomReportCreator.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using DevExpress.XtraReports.Design;
|
||||
using DevExpress.XtraReports.UI;
|
||||
|
||||
namespace BeWo.SprungbrettTheresia
|
||||
{
|
||||
public class CustomReportCreator : DefaultReportCreator
|
||||
{
|
||||
public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid)
|
||||
{
|
||||
XtraReport report = null;
|
||||
|
||||
Settlement2DC lSettlementDC;
|
||||
|
||||
long result;
|
||||
|
||||
if (string.IsNullOrEmpty(dcId) && invoiceBaseOid.HasValue)
|
||||
lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.SearchDAO.GetSettlementInvoiceByInvoiceBaseOid(invoiceBaseOid.Value));
|
||||
|
||||
else if (Int64.TryParse(dcId, out result))
|
||||
lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID<SettlementInvoice>(result)); // = Utils.XMLDeserialize<SettlementDC>(lPath);
|
||||
|
||||
else
|
||||
{
|
||||
string lPath = BS.Shared.Core.Utils.CreateSavePath(TempPath, dcId);
|
||||
lSettlementDC = Utils.XMLDeserialize<Settlement2DC>(lPath);
|
||||
}
|
||||
if (lSettlementDC.RecordedBillableFLSNetto == 0)
|
||||
{
|
||||
lSettlementDC.RecordedBillableFLSNetto = lSettlementDC.RecordedBillableFLSBrutto ?? 0;
|
||||
}
|
||||
String reportId = null;
|
||||
if (lSettlementDC.CostBearer2SupportConceptOid.HasValue)
|
||||
{
|
||||
CostBearer2SupportConcept c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(lSettlementDC.CostBearer2SupportConceptOid.Value);
|
||||
reportId = c2s.CostBearer.ID;
|
||||
}
|
||||
|
||||
if (lSettlementDC.DifferentHourlyRateCount > 0 && lSettlementDC.DifferentHourlyRateCount < 4)
|
||||
{
|
||||
IBeWoReport<SettlementRO> lSettlementReport = FindReportImp<SettlementRO>(reportId);
|
||||
var ro = SettlementRO.Create(lSettlementDC);
|
||||
lSettlementReport.SetReportDataSource(ro);
|
||||
|
||||
report = lSettlementReport as XtraReport;
|
||||
}
|
||||
else
|
||||
{
|
||||
//IBeWoReport<SettlementRO> lSettlementReport = FindReportImp<SettlementRO>(reportId);
|
||||
//var ro = SettlementRO.Create(lSettlementDC);
|
||||
//lSettlementReport.SetReportDataSource(ro);
|
||||
|
||||
//report = lSettlementReport as XtraReport;
|
||||
//IBeWoReport<SettlementRO> lSettlementReport = new Budgetnachweis();
|
||||
var ro = new Budgetnachweis();
|
||||
ro.SetReportDataSource(SettlementRO.Create(lSettlementDC));
|
||||
ro.CreateDocument();
|
||||
report = ro as XtraReport;
|
||||
}
|
||||
|
||||
|
||||
return report;
|
||||
}
|
||||
//return base.CreateSettlementReport(dcId, invoiceBaseOid, true);
|
||||
}
|
||||
}
|
||||
6297
ReportImp/SprungbrettTheresia/SettlementReport.Designer.cs
generated
6297
ReportImp/SprungbrettTheresia/SettlementReport.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,10 @@ using System.Text;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
|
||||
namespace BeWo.SprungbrettTheresia
|
||||
namespace BeWo.SprungbrettTheresia.Alt
|
||||
{
|
||||
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<SettlementRO>
|
||||
{
|
||||
@@ -59,6 +61,20 @@ namespace BeWo.SprungbrettTheresia
|
||||
pRO.ApprovedFLSWeeklyString = String.Format("{0:0.00}", pRO.ApprovedFLSWeekly);
|
||||
}
|
||||
|
||||
chkNichtBeendet.Checked = true;
|
||||
if (pRO.CostBearer2SupportConceptOid > 0)
|
||||
{
|
||||
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(pRO.CostBearer2SupportConceptOid);
|
||||
|
||||
if (c2s.SupportConcept.Customer.TerminationDate.HasValue)
|
||||
{
|
||||
chkBeendet.Text = String.Format(" Die Betreuung wurde am {0:dd.MM.yyyy} beendet.",
|
||||
c2s.SupportConcept.Customer.TerminationDate);
|
||||
chkNichtBeendet.Checked = false;
|
||||
chkBeendet.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
xrPanel1Amount.Location = xrPanel2Amounts.Location;
|
||||
xrPanel3Amounts.Location = xrPanel2Amounts.Location;
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
<Compile Include="CustomerDataReport.Designer.cs">
|
||||
<DependentUpon>CustomerDataReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomReportCreator.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ServiceInvoiceReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
@@ -80,6 +81,18 @@
|
||||
<Compile Include="SettlementReport.Designer.cs">
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Budgetnachweis.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Budgetnachweis.Designer.cs">
|
||||
<DependentUpon>Budgetnachweis.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BudgetnachweisSeite2.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BudgetnachweisSeite2.Designer.cs">
|
||||
<DependentUpon>BudgetnachweisSeite2.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="CustomerDataReport.resx">
|
||||
@@ -95,6 +108,14 @@
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Budgetnachweis.resx">
|
||||
<DependentUpon>Budgetnachweis.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="BudgetnachweisSeite2.resx">
|
||||
<DependentUpon>BudgetnachweisSeite2.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Data\Data.csproj">
|
||||
@@ -105,6 +126,10 @@
|
||||
<Project>{40d8b312-ea64-49e3-a31a-5e57ed4d5654}</Project>
|
||||
<Name>Report</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Service\Service.csproj">
|
||||
<Project>{094331c3-ecee-4c89-bbfd-4c9ded89f0ef}</Project>
|
||||
<Name>Service</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Shared\Shared.csproj">
|
||||
<Project>{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}</Project>
|
||||
<Name>Shared</Name>
|
||||
|
||||
Reference in New Issue
Block a user