MH: AWO Muenser Recklinghausen eigenes, alles wissendes RO
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="KannAllesWeissAllesRO" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>AWOMuensterlandRecklinghausen.Reporting.KannAllesWeissAllesRO, 3522103738_Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,30 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen.Reporting
|
||||
{
|
||||
public class CustomerRelations
|
||||
{
|
||||
public OrganisationDC Schule { get; set; } // Klientenorganisation, bei der Rolle "Schule" enthält
|
||||
public OrganisationDC Kostentraeger { get; set; } // Klientenorganisation, bei der Rolle "KT" enthält
|
||||
public SupportConceptDC Hilfeplan { get; set; }
|
||||
public string Bewilligungsbezeichnungen { get; set; }
|
||||
public Dictionary<SupportConceptCostBearerRelDC, List<SupportConceptApprovalPeriodDC>> Bewilligungen { get; set; }
|
||||
public List<TeamDC> Kliententeams { get; set; }
|
||||
|
||||
public EmployeeDC Schulbegleitung { get; set; } // Hauptbetreuuer
|
||||
public string VertragsartDerSchulbegleitung { get; set; } // Mitarbeiter-Vertragsart
|
||||
|
||||
public KlientKontaktdaten KlientKontaktdaten { get; set; } // Person des Klienten + Anschrift & Kontaktinfos
|
||||
public SchulleitungKontaktdaten SchulleitungKontaktdaten { get; set; } // Person der Schulleitung + Anschrift & Kontaktinfos
|
||||
public SchulbegleitungKontaktdaten SchulbegleitungKontaktdaten { get; set; } // Person der Schulbegleitung + Anschrift & Kontaktinfos
|
||||
public KostentraegerAnsprechpartnerKontaktdaten KostentraegerAnsprechpartnerKontaktdaten { get; set; } // Person des Ansprechpartners beim Kostenträger + Anschrift & Kontaktinfos
|
||||
|
||||
public string Klienteninfo { get; set; } // Klientenkommentar
|
||||
public string Schulbegleiterinfo { get; set; } // Mitarbeiterkommentar
|
||||
public string Hilfeplaninfo { get; set; } // Hilfeplankommentar
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.ServiceImplementations;
|
||||
using BS.Shared.DataContracts;
|
||||
using DevExpress.XtraReports.UI;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen.Reporting
|
||||
{
|
||||
public class KannAllesWeissAllesRO
|
||||
{
|
||||
public DateTime Berichtsdatum { get; set; }
|
||||
public Dictionary<CustomerDC, CustomerRelations> AllCustomerRelationsDict { get; set; }
|
||||
|
||||
public static KannAllesWeissAllesRO Create()
|
||||
{
|
||||
KannAllesWeissAllesRO ro = new KannAllesWeissAllesRO()
|
||||
{
|
||||
Berichtsdatum = DateTime.Now,
|
||||
AllCustomerRelationsDict = new Dictionary<CustomerDC, CustomerRelations>()
|
||||
};
|
||||
|
||||
// Alle Customer holen und für Perfomance auch direkt alle Hilfepläne
|
||||
var allCustomers = MapperFactory.CustomerDC_Customer.MapToNewDCs(DAOFactory.GenericDAO.GetAllActive<Customer>());
|
||||
List<long> allCustomerOids = new List<long>();
|
||||
foreach (var c in allCustomers)
|
||||
{
|
||||
if (c.CustomerOid.HasValue)
|
||||
allCustomerOids.Add(c.CustomerOid.Value);
|
||||
}
|
||||
var allSupportConcepts = MapperFactory.SupportConceptDC_SupportConcept.MapToNewDCs(DAOFactory.SearchDAO.GetAllActiveSupportConceptsByCustomers(allCustomerOids, false));
|
||||
|
||||
// Für jeden einzelnen Customer alle Infos suchen und ins Dictionary speichern
|
||||
foreach (var customer in allCustomers)
|
||||
{
|
||||
CustomerRelations cr = new CustomerRelations();
|
||||
|
||||
#region Klientenkontaktdaten
|
||||
if (customer.PersonOid.HasValue)
|
||||
{
|
||||
var klientPerson = MapperFactory.PersonDC_Person.MapToNewDC(DAOFactory.GenericDAO.GetByID<Person>(customer.PersonOid.Value));
|
||||
ContactDC mail = null;
|
||||
ContactDC telefon = null;
|
||||
ContactDC mobil = null;
|
||||
ContactDC fax = null;
|
||||
if (klientPerson.ContactInformations != null && klientPerson.ContactInformations.Count > 0)
|
||||
{
|
||||
mail = klientPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.business_Mail);
|
||||
telefon = klientPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.business_Phone);
|
||||
mobil = klientPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.business_MobilePhone);
|
||||
fax = klientPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.business_Fax);
|
||||
}
|
||||
cr.KlientKontaktdaten = new KlientKontaktdaten()
|
||||
{
|
||||
Person = klientPerson,
|
||||
Strasse = klientPerson.Street,
|
||||
Ort = klientPerson.Town,
|
||||
Postleitzahl = klientPerson.PostalCode,
|
||||
Mailadresse = mail != null && mail.ContactValue != null ? mail.ContactValue : "",
|
||||
Telefonnummer = telefon != null && telefon.ContactValue != null ? telefon.ContactValue : "",
|
||||
Handynummer = mobil != null && mobil.ContactValue != null ? mobil.ContactValue : "",
|
||||
Fax = fax != null && fax.ContactValue != null ? fax.ContactValue : "",
|
||||
};
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
cr.Bewilligungen = new Dictionary<SupportConceptCostBearerRelDC, List<SupportConceptApprovalPeriodDC>>();
|
||||
cr.Kliententeams = new List<TeamDC>();
|
||||
|
||||
// Kliententeams setzen
|
||||
if (customer.RelatedTeams != null && customer.RelatedTeams.Count > 0)
|
||||
{
|
||||
List<long> teamOids = new List<long>();
|
||||
foreach (var team in customer.RelatedTeams)
|
||||
teamOids.Add(team.Team.TeamOid);
|
||||
|
||||
cr.Kliententeams = MapperFactory.TeamDC_Team.MapToNewDCs(DAOFactory.GenericDAO.GetActiveByIDs<Team>(teamOids));
|
||||
}
|
||||
// Hauptbetreuung bzw. Schulbegleitung setzen
|
||||
if (customer.RelatedEmployees != null && customer.RelatedEmployees.Count > 0)
|
||||
{
|
||||
var betreuung = customer.RelatedEmployees.FirstOrDefault(e => e.RelationRole != null && e.RelationRole.DisplayName == "Hauptbetreuung");
|
||||
if (betreuung != null)
|
||||
{
|
||||
if (betreuung.Employee != null)
|
||||
{
|
||||
cr.Schulbegleitung = MapperFactory.EmployeeDC_Employee.MapToNewDC(DAOFactory.GenericDAO.GetByID<Employee>(betreuung.Employee.EmployeeOid));
|
||||
cr.Schulbegleiterinfo = cr.Schulbegleitung.Notice2;
|
||||
// Richtigen Vetrag raussuchen
|
||||
if (cr.Schulbegleitung.Contracts != null && cr.Schulbegleitung.Contracts.Count > 0)
|
||||
{
|
||||
foreach (var c in cr.Schulbegleitung.Contracts)
|
||||
{
|
||||
if (c.EntryDate != null && c.ContractTypeValueListEntry != null)
|
||||
{
|
||||
if (c.ContractEndDate == null)
|
||||
{
|
||||
if (c.EntryDate.Value.Date <= ro.Berichtsdatum.Date)
|
||||
cr.VertragsartDerSchulbegleitung = c.ContractTypeValueListEntry.DisplayName;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (c.EntryDate.Value.Date <= ro.Berichtsdatum.Date && c.ContractEndDate.Value.Date >= ro.Berichtsdatum.Date)
|
||||
cr.VertragsartDerSchulbegleitung = c.ContractTypeValueListEntry.DisplayName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region Schulbegleitungkontaktdaten
|
||||
var schulbegleitungPerson = MapperFactory.PersonDC_Person.MapToNewDC(DAOFactory.GenericDAO.GetByID<Person>(betreuung.Employee.PersonOid));
|
||||
ContactDC mail = null;
|
||||
ContactDC telefon = null;
|
||||
ContactDC mobil = null;
|
||||
ContactDC fax = null;
|
||||
|
||||
if (schulbegleitungPerson.ContactInformations != null && schulbegleitungPerson.ContactInformations.Count > 0)
|
||||
{
|
||||
mail = schulbegleitungPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_Mail);
|
||||
telefon = schulbegleitungPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_Phone);
|
||||
mobil = schulbegleitungPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_MobilePhone);
|
||||
fax = schulbegleitungPerson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_Fax);
|
||||
|
||||
}
|
||||
cr.SchulbegleitungKontaktdaten = new SchulbegleitungKontaktdaten()
|
||||
{
|
||||
Person = schulbegleitungPerson,
|
||||
Strasse = schulbegleitungPerson.Street,
|
||||
Ort = schulbegleitungPerson.Town,
|
||||
Postleitzahl = schulbegleitungPerson.PostalCode,
|
||||
Mailadresse = mail != null && mail.ContactValue != null ? mail.ContactValue : "",
|
||||
Telefonnummer = telefon != null && telefon.ContactValue != null ? telefon.ContactValue : "",
|
||||
Handynummer = mobil != null && mobil.ContactValue != null ? mobil.ContactValue : "",
|
||||
Fax = fax != null && fax.ContactValue != null ? fax.ContactValue : "",
|
||||
};
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
if (customer.OrganisationRelations != null && customer.OrganisationRelations.Count > 0)
|
||||
{
|
||||
// Schule setzen
|
||||
var compactSchule = customer.OrganisationRelations.FirstOrDefault(o => o.RolleInOrganisation != null && o.RolleInOrganisation.DisplayName.ToLower().Contains("schule"));
|
||||
if (compactSchule != null && compactSchule.Organisation != null)
|
||||
{
|
||||
var schule = MapperFactory.OrganisationDC_OrganisationMapper.MapToNewDC(DAOFactory.GenericDAO.GetByID<Organisation>(compactSchule.Organisation.OrganisationOid));
|
||||
cr.Schule = schule;
|
||||
}
|
||||
// Kostenträger setzen
|
||||
var orga2person = customer.OrganisationRelations.FirstOrDefault(o => o.RolleInOrganisation != null && o.RolleInOrganisation.DisplayName.Contains("KT"));
|
||||
if (orga2person != null && orga2person.Organisation != null)
|
||||
{
|
||||
var kostentrager = MapperFactory.OrganisationDC_OrganisationMapper.MapToNewDC(DAOFactory.GenericDAO.GetByID<Organisation>(orga2person.Organisation.OrganisationOid));
|
||||
cr.Kostentraeger = kostentrager;
|
||||
}
|
||||
}
|
||||
|
||||
// Hilfeplan und Bewilligungen setzen
|
||||
var hp = allSupportConcepts.FirstOrDefault(sc => sc.Customer.Oid == customer.CustomerOid);
|
||||
if (hp != null)
|
||||
{
|
||||
cr.Hilfeplan = hp;
|
||||
cr.Hilfeplaninfo = hp.Notice;
|
||||
cr.Bewilligungsbezeichnungen = "";
|
||||
|
||||
// Bewilligungen setzen und den Ansprechpartner raussuchen
|
||||
if (hp.CostBearerRelations != null && hp.CostBearerRelations.Count > 0)
|
||||
{
|
||||
// Ansprechpartner aus der ersten Bewilligung ziehen
|
||||
var compactContactPerson = hp.CostBearerRelations[0].CostBearerContactPerson;
|
||||
if (compactContactPerson != null)
|
||||
{
|
||||
#region Kontaktperson Kontaktdaten
|
||||
var kostentraegerKontaktperson = MapperFactory.PersonDC_Person.MapToNewDC(DAOFactory.GenericDAO.GetByID<Person>(compactContactPerson.PersonOid));
|
||||
|
||||
ContactDC mail = null;
|
||||
ContactDC telefon = null;
|
||||
ContactDC mobil = null;
|
||||
ContactDC fax = null;
|
||||
if (kostentraegerKontaktperson.ContactInformations != null && kostentraegerKontaktperson.ContactInformations.Count > 0)
|
||||
{
|
||||
mail = kostentraegerKontaktperson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_Mail);
|
||||
telefon = kostentraegerKontaktperson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_Phone);
|
||||
mobil = kostentraegerKontaktperson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_MobilePhone);
|
||||
fax = kostentraegerKontaktperson.ContactInformations.FirstOrDefault(c => c.ContactType == BS.Shared.ContactType.private_Fax);
|
||||
|
||||
}
|
||||
cr.KostentraegerAnsprechpartnerKontaktdaten = new KostentraegerAnsprechpartnerKontaktdaten()
|
||||
{
|
||||
Person = kostentraegerKontaktperson,
|
||||
Strasse = kostentraegerKontaktperson.Street,
|
||||
Ort = kostentraegerKontaktperson.Town,
|
||||
Postleitzahl = kostentraegerKontaktperson.PostalCode,
|
||||
Mailadresse = mail != null && mail.ContactValue != null ? mail.ContactValue : "",
|
||||
Telefonnummer = telefon != null && telefon.ContactValue != null ? telefon.ContactValue : "",
|
||||
Handynummer = mobil != null && mobil.ContactValue != null ? mobil.ContactValue : "",
|
||||
Fax = fax != null && fax.ContactValue != null ? fax.ContactValue : "",
|
||||
};
|
||||
#endregion
|
||||
}
|
||||
|
||||
// Für jeden Kostenträger alle Bewilligungen raussuchen
|
||||
foreach (var costBearerRelation in hp.CostBearerRelations)
|
||||
{
|
||||
List<SupportConceptApprovalPeriodDC> apList = new List<SupportConceptApprovalPeriodDC>();
|
||||
cr.Bewilligungsbezeichnungen += costBearerRelation.AuswahlBezeichnung + "; ";
|
||||
|
||||
if (costBearerRelation.ApprovalPeriodList != null && costBearerRelation.ApprovalPeriodList.Count > 0)
|
||||
{
|
||||
foreach (var ap in costBearerRelation.ApprovalPeriodList)
|
||||
apList.Add(ap);
|
||||
}
|
||||
|
||||
cr.Bewilligungen.Add(costBearerRelation, apList);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cr.Klienteninfo = customer.Notice;
|
||||
|
||||
ro.AllCustomerRelationsDict.Add(customer, cr);
|
||||
}
|
||||
|
||||
return ro;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen.Reporting
|
||||
{
|
||||
public class KlientKontaktdaten
|
||||
{
|
||||
public PersonDC Person { get; set; }
|
||||
public string Strasse { get; set; }
|
||||
public string Postleitzahl { get; set; }
|
||||
public string Ort { get; set; }
|
||||
public string Telefonnummer { get; set; }
|
||||
public string Handynummer { get; set; }
|
||||
public string Fax { get; set; }
|
||||
public string Mailadresse { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen.Reporting
|
||||
{
|
||||
public class KostentraegerAnsprechpartnerKontaktdaten
|
||||
{
|
||||
public PersonDC Person { get; set; }
|
||||
public string Rolle { get => "Kontakt beim Kostenträger"; }
|
||||
public string Strasse { get; set; }
|
||||
public string Postleitzahl { get; set; }
|
||||
public string Ort { get; set; }
|
||||
public string Telefonnummer { get; set; }
|
||||
public string Handynummer { get; set; }
|
||||
public string Fax { get; set; }
|
||||
public string Mailadresse { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen.Reporting
|
||||
{
|
||||
public class SchulbegleitungKontaktdaten
|
||||
{
|
||||
public PersonDC Person { get; set; }
|
||||
public string Rolle { get => "Schulbegleitung"; }
|
||||
public string Strasse { get; set; }
|
||||
public string Postleitzahl { get; set; }
|
||||
public string Ort { get; set; }
|
||||
public string Telefonnummer { get; set; }
|
||||
public string Handynummer { get; set; }
|
||||
public string Fax { get; set; }
|
||||
public string Mailadresse { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen.Reporting
|
||||
{
|
||||
public class SchulleitungKontaktdaten
|
||||
{
|
||||
public PersonDC Person { get; set; }
|
||||
public string Rolle { get => "Schulleitung"; }
|
||||
public string Strasse { get; set; }
|
||||
public string Postleitzahl { get; set; }
|
||||
public string Ort { get; set; }
|
||||
public string Telefonnummer { get; set; }
|
||||
public string Handynummer { get; set; }
|
||||
public string Fax { get; set; }
|
||||
public string Mailadresse { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
318
ReportImp/AWOMuensterlandRecklinghausen/SBUebersicht.Designer.cs
generated
Normal file
318
ReportImp/AWOMuensterlandRecklinghausen/SBUebersicht.Designer.cs
generated
Normal file
@@ -0,0 +1,318 @@
|
||||
using BeWo.Report.ReportObjects;
|
||||
namespace AWOMuensterlandRecklinghausen
|
||||
{
|
||||
partial class SBUebersicht
|
||||
{
|
||||
/// <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();
|
||||
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
|
||||
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
|
||||
this.xrTableDetail = new DevExpress.XtraReports.UI.XRTable();
|
||||
this.xrTableRowDetail = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
|
||||
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
|
||||
this.xrTableHeader = new DevExpress.XtraReports.UI.XRTable();
|
||||
this.xrTableRowHeader = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.pageFooterBand1 = new DevExpress.XtraReports.UI.PageFooterBand();
|
||||
this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo();
|
||||
this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo();
|
||||
this.Title = new DevExpress.XtraReports.UI.XRControlStyle();
|
||||
this.FieldCaption = new DevExpress.XtraReports.UI.XRControlStyle();
|
||||
this.PageInfo = new DevExpress.XtraReports.UI.XRControlStyle();
|
||||
this.DataField = new DevExpress.XtraReports.UI.XRControlStyle();
|
||||
this.fieldFLS = new DevExpress.XtraReports.UI.CalculatedField();
|
||||
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
|
||||
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTableDetail)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTableHeader)).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;
|
||||
//
|
||||
// Detail1
|
||||
//
|
||||
this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrTableDetail});
|
||||
this.Detail1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Detail1.HeightF = 25F;
|
||||
this.Detail1.Name = "Detail1";
|
||||
this.Detail1.StylePriority.UseFont = false;
|
||||
//
|
||||
// xrTableDetail
|
||||
//
|
||||
this.xrTableDetail.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableDetail.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.xrTableDetail.Name = "xrTableDetail";
|
||||
this.xrTableDetail.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 100F);
|
||||
this.xrTableDetail.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRowDetail});
|
||||
this.xrTableDetail.SizeF = new System.Drawing.SizeF(1018F, 25F);
|
||||
this.xrTableDetail.StylePriority.UseBorders = false;
|
||||
this.xrTableDetail.StylePriority.UsePadding = false;
|
||||
//
|
||||
// xrTableRowDetail
|
||||
//
|
||||
this.xrTableRowDetail.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.xrTableCell3});
|
||||
this.xrTableRowDetail.Name = "xrTableRowDetail";
|
||||
this.xrTableRowDetail.Weight = 1D;
|
||||
//
|
||||
// xrTableCell3
|
||||
//
|
||||
this.xrTableCell3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Rows.Field1")});
|
||||
this.xrTableCell3.Multiline = true;
|
||||
this.xrTableCell3.Name = "xrTableCell3";
|
||||
this.xrTableCell3.StylePriority.UseFont = false;
|
||||
this.xrTableCell3.Text = "xrTableCell3";
|
||||
this.xrTableCell3.Weight = 1D;
|
||||
//
|
||||
// DetailReport
|
||||
//
|
||||
this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
this.Detail1,
|
||||
this.GroupHeader1});
|
||||
this.DetailReport.DataMember = "Rows";
|
||||
this.DetailReport.DataSource = this.bindingSource1;
|
||||
this.DetailReport.Level = 0;
|
||||
this.DetailReport.Name = "DetailReport";
|
||||
//
|
||||
// GroupHeader1
|
||||
//
|
||||
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrTableHeader});
|
||||
this.GroupHeader1.HeightF = 25F;
|
||||
this.GroupHeader1.Name = "GroupHeader1";
|
||||
this.GroupHeader1.RepeatEveryPage = true;
|
||||
//
|
||||
// xrTableHeader
|
||||
//
|
||||
this.xrTableHeader.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTableHeader.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.xrTableHeader.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.xrTableHeader.Name = "xrTableHeader";
|
||||
this.xrTableHeader.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 100F);
|
||||
this.xrTableHeader.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRowHeader});
|
||||
this.xrTableHeader.SizeF = new System.Drawing.SizeF(1018F, 25F);
|
||||
this.xrTableHeader.StylePriority.UseBorders = false;
|
||||
this.xrTableHeader.StylePriority.UseFont = false;
|
||||
this.xrTableHeader.StylePriority.UsePadding = false;
|
||||
//
|
||||
// xrTableRowHeader
|
||||
//
|
||||
this.xrTableRowHeader.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.xrTableCell5});
|
||||
this.xrTableRowHeader.Name = "xrTableRowHeader";
|
||||
this.xrTableRowHeader.Weight = 1D;
|
||||
//
|
||||
// xrTableCell5
|
||||
//
|
||||
this.xrTableCell5.Name = "xrTableCell5";
|
||||
this.xrTableCell5.Weight = 1D;
|
||||
//
|
||||
// ReportHeader
|
||||
//
|
||||
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrLabel1});
|
||||
this.ReportHeader.HeightF = 35F;
|
||||
this.ReportHeader.Name = "ReportHeader";
|
||||
//
|
||||
// xrLabel1
|
||||
//
|
||||
this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Name")});
|
||||
this.xrLabel1.Font = new System.Drawing.Font("Arial", 14F);
|
||||
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.xrLabel1.Multiline = true;
|
||||
this.xrLabel1.Name = "xrLabel1";
|
||||
this.xrLabel1.SizeF = new System.Drawing.SizeF(1018F, 25F);
|
||||
this.xrLabel1.StyleName = "Title";
|
||||
this.xrLabel1.StylePriority.UseFont = false;
|
||||
//
|
||||
// pageFooterBand1
|
||||
//
|
||||
this.pageFooterBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrPageInfo2,
|
||||
this.xrPageInfo1});
|
||||
this.pageFooterBand1.HeightF = 48F;
|
||||
this.pageFooterBand1.Name = "pageFooterBand1";
|
||||
//
|
||||
// xrPageInfo2
|
||||
//
|
||||
this.xrPageInfo2.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.xrPageInfo2.Format = "Seite {0} von {1}";
|
||||
this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(924.0834F, 25F);
|
||||
this.xrPageInfo2.Name = "xrPageInfo2";
|
||||
this.xrPageInfo2.SizeF = new System.Drawing.SizeF(93.91663F, 23F);
|
||||
this.xrPageInfo2.StyleName = "PageInfo";
|
||||
this.xrPageInfo2.StylePriority.UseFont = false;
|
||||
this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
//
|
||||
// xrPageInfo1
|
||||
//
|
||||
this.xrPageInfo1.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 25F);
|
||||
this.xrPageInfo1.Name = "xrPageInfo1";
|
||||
this.xrPageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime;
|
||||
this.xrPageInfo1.SizeF = new System.Drawing.SizeF(924.0834F, 23F);
|
||||
this.xrPageInfo1.StyleName = "PageInfo";
|
||||
this.xrPageInfo1.StylePriority.UseFont = false;
|
||||
//
|
||||
// Title
|
||||
//
|
||||
this.Title.BackColor = System.Drawing.Color.White;
|
||||
this.Title.BorderColor = System.Drawing.SystemColors.ControlText;
|
||||
this.Title.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.Title.BorderWidth = 1F;
|
||||
this.Title.Font = new System.Drawing.Font("Times New Roman", 24F);
|
||||
this.Title.ForeColor = System.Drawing.Color.Black;
|
||||
this.Title.Name = "Title";
|
||||
//
|
||||
// FieldCaption
|
||||
//
|
||||
this.FieldCaption.BackColor = System.Drawing.Color.White;
|
||||
this.FieldCaption.BorderColor = System.Drawing.SystemColors.ControlText;
|
||||
this.FieldCaption.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.FieldCaption.BorderWidth = 1F;
|
||||
this.FieldCaption.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.FieldCaption.ForeColor = System.Drawing.Color.Black;
|
||||
this.FieldCaption.Name = "FieldCaption";
|
||||
//
|
||||
// PageInfo
|
||||
//
|
||||
this.PageInfo.BackColor = System.Drawing.Color.White;
|
||||
this.PageInfo.BorderColor = System.Drawing.SystemColors.ControlText;
|
||||
this.PageInfo.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.PageInfo.BorderWidth = 1F;
|
||||
this.PageInfo.Font = new System.Drawing.Font("Times New Roman", 8F);
|
||||
this.PageInfo.ForeColor = System.Drawing.Color.Black;
|
||||
this.PageInfo.Name = "PageInfo";
|
||||
//
|
||||
// DataField
|
||||
//
|
||||
this.DataField.BackColor = System.Drawing.Color.White;
|
||||
this.DataField.BorderColor = System.Drawing.SystemColors.ControlText;
|
||||
this.DataField.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.DataField.BorderWidth = 1F;
|
||||
this.DataField.Font = new System.Drawing.Font("Times New Roman", 8F);
|
||||
this.DataField.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.DataField.Name = "DataField";
|
||||
//
|
||||
// fieldFLS
|
||||
//
|
||||
this.fieldFLS.DataMember = "FLSReportGroups";
|
||||
this.fieldFLS.Expression = "[TotalFLM] / 60";
|
||||
this.fieldFLS.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
|
||||
this.fieldFLS.Name = "fieldFLS";
|
||||
//
|
||||
// topMarginBand1
|
||||
//
|
||||
this.topMarginBand1.HeightF = 50F;
|
||||
this.topMarginBand1.Name = "topMarginBand1";
|
||||
//
|
||||
// bottomMarginBand1
|
||||
//
|
||||
this.bottomMarginBand1.HeightF = 50F;
|
||||
this.bottomMarginBand1.Name = "bottomMarginBand1";
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(AWOMuensterlandRecklinghausen.Reporting.KannAllesWeissAllesRO);
|
||||
//
|
||||
// SBUebersicht
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
this.Detail,
|
||||
this.DetailReport,
|
||||
this.ReportHeader,
|
||||
this.pageFooterBand1,
|
||||
this.topMarginBand1,
|
||||
this.bottomMarginBand1});
|
||||
this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] {
|
||||
this.fieldFLS});
|
||||
this.DataSource = this.bindingSource1;
|
||||
this.Landscape = true;
|
||||
this.Margins = new System.Drawing.Printing.Margins(75, 75, 50, 50);
|
||||
this.PageHeight = 827;
|
||||
this.PageWidth = 1169;
|
||||
this.PaperKind = System.Drawing.Printing.PaperKind.A4;
|
||||
this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] {
|
||||
this.Title,
|
||||
this.FieldCaption,
|
||||
this.PageInfo,
|
||||
this.DataField});
|
||||
this.Version = "17.1";
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTableDetail)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTableHeader)).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.DetailBand Detail1;
|
||||
private DevExpress.XtraReports.UI.DetailReportBand DetailReport;
|
||||
private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
|
||||
private DevExpress.XtraReports.UI.PageFooterBand pageFooterBand1;
|
||||
private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo2;
|
||||
private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo1;
|
||||
private DevExpress.XtraReports.UI.XRControlStyle Title;
|
||||
private DevExpress.XtraReports.UI.XRControlStyle FieldCaption;
|
||||
private DevExpress.XtraReports.UI.XRControlStyle PageInfo;
|
||||
private DevExpress.XtraReports.UI.XRControlStyle DataField;
|
||||
private DevExpress.XtraReports.UI.XRTable xrTableHeader;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRowHeader;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell5;
|
||||
private DevExpress.XtraReports.UI.XRTable xrTableDetail;
|
||||
private DevExpress.XtraReports.UI.XRTableRow xrTableRowDetail;
|
||||
private DevExpress.XtraReports.UI.XRTableCell xrTableCell3;
|
||||
private DevExpress.XtraReports.UI.CalculatedField fieldFLS;
|
||||
private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
|
||||
private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1;
|
||||
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
|
||||
}
|
||||
}
|
||||
25
ReportImp/AWOMuensterlandRecklinghausen/SBUebersicht.cs
Normal file
25
ReportImp/AWOMuensterlandRecklinghausen/SBUebersicht.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using System.Data;
|
||||
using AWOMuensterlandRecklinghausen.Reporting;
|
||||
|
||||
namespace AWOMuensterlandRecklinghausen
|
||||
{
|
||||
public partial class SBUebersicht : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<QueryRO>
|
||||
{
|
||||
public SBUebersicht()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
|
||||
public void SetReportDataSource(QueryRO pRO)
|
||||
{
|
||||
KannAllesWeissAllesRO ro = KannAllesWeissAllesRO.Create();
|
||||
|
||||
this.bindingSource1.DataSource = ro;
|
||||
}
|
||||
}
|
||||
}
|
||||
123
ReportImp/AWOMuensterlandRecklinghausen/SBUebersicht.resx
Normal file
123
ReportImp/AWOMuensterlandRecklinghausen/SBUebersicht.resx
Normal file
@@ -0,0 +1,123 @@
|
||||
<?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>
|
||||
<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>
|
||||
Reference in New Issue
Block a user