diff --git a/BeWo/View/Navigation/EmployeeNavigationView.xaml b/BeWo/View/Navigation/EmployeeNavigationView.xaml index 68434ded3..ea7a7a6c6 100644 --- a/BeWo/View/Navigation/EmployeeNavigationView.xaml +++ b/BeWo/View/Navigation/EmployeeNavigationView.xaml @@ -14,6 +14,7 @@ OpenObject="MainNavigationView_OpenObject" DeleteObject="MainNavigationView_DeleteObject" ExcelExport="MainNavigationView_ExcelExport" + Print="mainNavigationView_Print" DeleteDemands="DeleteAll, EmployeeView_Delete" CreateDemands="CreateAll, EmployeeView_Create" ArchiveObject="MainNavigationView_ArchiveObject" diff --git a/BeWo/View/Navigation/EmployeeNavigationView.xaml.cs b/BeWo/View/Navigation/EmployeeNavigationView.xaml.cs index e3b4c89f0..8469234a2 100644 --- a/BeWo/View/Navigation/EmployeeNavigationView.xaml.cs +++ b/BeWo/View/Navigation/EmployeeNavigationView.xaml.cs @@ -294,5 +294,20 @@ namespace BeWo.View.Navigation BeWoUtils.NavigateToReportUri(url, "Druckvorschau"); } + private void mainNavigationView_Print(object sender, EventArgs> e) + { + var oids = e.Data.Cast().Select(c => c.EmployeeOid).ToList(); + + ServiceFacade.DoReportServiceAsync(s => s.CreateEmployeeListReport(oids), r => + { + this.Dispatch(() => + { + BeWoUtils.ShowReportWindow(r, Translator.Translate("Mitarbeiter")); + }); + }); + } } + + +} } \ No newline at end of file diff --git a/Report/AbstractReportCreator.cs b/Report/AbstractReportCreator.cs index 7b6f2ca88..fe3f885fe 100644 --- a/Report/AbstractReportCreator.cs +++ b/Report/AbstractReportCreator.cs @@ -14,9 +14,9 @@ namespace BeWo.Report public string ReportPath { get; set; } public string TempPath { get; set; } - public long? TemplateOid { get; set; } + public long? TemplateOid { get; set; } - public abstract XtraReport CreateCustomerDataReport(long customerOid); + public abstract XtraReport CreateCustomerDataReport(long customerOid); public abstract XtraReport CreateCustomerInvoiceReport(long invoiceOid); @@ -28,27 +28,27 @@ namespace BeWo.Report public abstract XtraReport CreateServiceInvoiceReport(String dcIds, long? invoiceBaseOid); - public abstract XtraReport CreateServiceOverviewReportNew(int month, int year, QBFilterEnum filterType, long? customerOid, long? teamOid, long? empOid, long? orgaOid, long? serviceCategoryOid, int startDay, int endDay, bool nurFehlende); + public abstract XtraReport CreateServiceOverviewReportNew(int month, int year, QBFilterEnum filterType, long? customerOid, long? teamOid, long? empOid, long? orgaOid, long? serviceCategoryOid, int startDay, int endDay, bool nurFehlende); - public abstract XtraReport CreateServiceOverviewAllCustomersReport(int month, int year, long orgaOid, long empOid, - long? serviceCategoryOid, - int startDay, int endDay, bool nurFehlende); + public abstract XtraReport CreateServiceOverviewAllCustomersReport(int month, int year, long orgaOid, long empOid, + long? serviceCategoryOid, + int startDay, int endDay, bool nurFehlende); public abstract XtraReport CreateServiceOverviewSingleCustomerReport(long customerOid, int month, int year, - long orgaOid, long empOid, - long? serviceCategoryOid, int startDay, - int endDay); + long orgaOid, long empOid, + long? serviceCategoryOid, int startDay, + int endDay); public abstract XtraReport CreateServiceRecordListReport(long employeeOid, long customerOid, long supportConceptOid, - long costbearer2SupportConceptOid, bool isLimitedToAdditionalServices, + long costbearer2SupportConceptOid, bool isLimitedToAdditionalServices, DateTimeSpan limitingTimeSpan); public abstract XtraReport CreateSettlementReport(String dcId, long? invoiceBaseOid); - - public abstract XtraReport CreateSupportConceptReport(IList c2sOids, long? employeeOid, long? teamOid, long? catOid, int? expiredMonths, bool archivedSupportConcepts, DateTime? startDate, DateTime? endDate); - public abstract XtraReport CreateAdditionalServiceBookingReport(long addServiceRegionOid, Monat month, int year); + public abstract XtraReport CreateSupportConceptReport(IList c2sOids, long? employeeOid, long? teamOid, long? catOid, int? expiredMonths, bool archivedSupportConcepts, DateTime? startDate, DateTime? endDate); + + public abstract XtraReport CreateAdditionalServiceBookingReport(long addServiceRegionOid, Monat month, int year); public abstract XtraReport CreateEmployeeHourReport(long? employeeOid, IList teamOids, DateTime startDate, DateTime endDate, int ansicht); @@ -67,35 +67,35 @@ namespace BeWo.Report public abstract XtraReport CreateKassenbelegReport(BargeldtransaktionDC transaktion, long objectOid, TableID objectTid); - public abstract XtraReport CreateEmployeeDataReport(long oid); + public abstract XtraReport CreateEmployeeDataReport(long oid); - public abstract XtraReport CreateNotizenReport(long kategorieOid, DateTime start, DateTime end); + public abstract XtraReport CreateNotizenReport(long kategorieOid, DateTime start, DateTime end); public abstract XtraReport CreateBewertungsstatistikReport(DateTime? start, DateTime? end, SupportConceptDC supportConcept, bool inclZeiterfassung, List ziele, List scZiele); - public abstract XtraReport CreateSBDCharacteristicsReport(long customerOid); + public abstract XtraReport CreateSBDCharacteristicsReport(long customerOid); - public abstract XtraReport CreateSbdLeistungsnachweisForAllCustomers(int month, int year, long orgaOid, long empOid, long serviceCategoryOid, int startDay, int endDay, bool checkServiceRecords, string bundesland); + public abstract XtraReport CreateSbdLeistungsnachweisForAllCustomers(int month, int year, long orgaOid, long empOid, long serviceCategoryOid, int startDay, int endDay, bool checkServiceRecords, string bundesland); - public abstract XtraReport CreateSbdLeistungsnachweisForSingleCustomerReport(long customerOid, int month, int year, long orgaOid, long empOid, long serviceCategoryOid, int startDay, int endDay, bool checkServiceRecords, string bundesland); + public abstract XtraReport CreateSbdLeistungsnachweisForSingleCustomerReport(long customerOid, int month, int year, long orgaOid, long empOid, long serviceCategoryOid, int startDay, int endDay, bool checkServiceRecords, string bundesland); - public abstract XtraReport CreateCustomReport(long employeeOid, String reportName); + public abstract XtraReport CreateCustomReport(long employeeOid, String reportName); - public abstract XtraReport CreateAbsenceReport(DateTime dt, List abs, List empTypes, List teams, List feiertage); + public abstract XtraReport CreateAbsenceReport(DateTime dt, List abs, List empTypes, List teams, List feiertage); - public abstract XtraReport CreateRosterReport(long wOid, DateTime dt, List feiertage, int sortingIndex, bool aufsteigend, long creator); + public abstract XtraReport CreateRosterReport(long wOid, DateTime dt, List feiertage, int sortingIndex, bool aufsteigend, long creator); - public abstract XtraReport CreateRosterReportIst(long wOid, DateTime dt); + public abstract XtraReport CreateRosterReportIst(long wOid, DateTime dt); - public abstract XtraReport CreateKilometerauswertung(long customerOid, List serviceDescriptionOids, DateTime start, DateTime end); + public abstract XtraReport CreateKilometerauswertung(long customerOid, List serviceDescriptionOids, DateTime start, DateTime end); - public abstract XtraReport CreateKilometerauswertungForAllCustomers(List customerOids, List serviceDescriptionOids, DateTime start, DateTime end); + public abstract XtraReport CreateKilometerauswertungForAllCustomers(List customerOids, List serviceDescriptionOids, DateTime start, DateTime end); - public abstract XtraReport CreateEmployeeKilometerauswertung(long employeeOid, List serviceDescriptionOids, DateTime start, DateTime end); + public abstract XtraReport CreateEmployeeKilometerauswertung(long employeeOid, List serviceDescriptionOids, DateTime start, DateTime end); - public abstract XtraReport CreateKilometerauswertungForAllEmployees(List employeeOids, List serviceDescriptionOids, DateTime start, DateTime end); + public abstract XtraReport CreateKilometerauswertungForAllEmployees(List employeeOids, List serviceDescriptionOids, DateTime start, DateTime end); public abstract XtraReport CreateVorlagenReport(long template, List objectOids, long table); - public abstract XtraReport CreateAbwesenheitsPrintReport(List oids, string titel); + public abstract XtraReport CreateAbwesenheitsPrintReport(List oids, string titel); public abstract XtraReport CreateEmployeeCustomerListReport(long? employeeOid); @@ -111,8 +111,12 @@ namespace BeWo.Report public abstract XtraReport CreatePersonListReport(List oids); + public abstract XtraReport CreateEmployeeListReport(List oids); + public abstract XtraReport CreateUserListReport(List oids); public abstract XtraReport CreateUserGroupListReport(List oids); + } + } \ No newline at end of file diff --git a/Report/DefaultReportCreator.cs b/Report/DefaultReportCreator.cs index d2fe634f6..009492603 100644 --- a/Report/DefaultReportCreator.cs +++ b/Report/DefaultReportCreator.cs @@ -1244,6 +1244,7 @@ namespace BeWo.Report return report as XtraReport; } + public override XtraReport CreatePersonListReport(List oids) { var ro = PersonListRO.Create(oids); @@ -1252,6 +1253,7 @@ namespace BeWo.Report return report as XtraReport; } + public override XtraReport CreateUserListReport(List oids) { var queryReport = FindReportImp(null, "Benutzergruppen"); @@ -1318,6 +1320,15 @@ namespace BeWo.Report return queryReport as XtraReport; } + public override XtraReport CreateEmployeeListReport(List oids) + { + var ro = EmployeeListRO.Create(oids); + IBeWoReport report = FindReportImp(); + report.SetReportDataSource(ro); + + return report as XtraReport; + } + public override XtraReport CreateUserGroupListReport(List oids) { var queryReport = FindReportImp(null, "Benutzergruppen"); @@ -1375,5 +1386,4 @@ namespace BeWo.Report return queryReport as XtraReport; } - } } \ No newline at end of file diff --git a/Report/DefaultReports/EmployeeListReport.Designer.cs b/Report/DefaultReports/EmployeeListReport.Designer.cs new file mode 100644 index 000000000..cf97571ba --- /dev/null +++ b/Report/DefaultReports/EmployeeListReport.Designer.cs @@ -0,0 +1,335 @@ +namespace BeWo.Report.DefaultReports +{ + partial class EmployeeListReport + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); + this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.Einzahlungstextsichtbarkeitsformatierungsregel = new DevExpress.XtraReports.UI.FormattingRule(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.Auszahlungstextsichtbarkeitsformatierungsregel = new DevExpress.XtraReports.UI.FormattingRule(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable1}); + this.Detail.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Detail.HeightF = 25F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.StylePriority.UseFont = false; + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTable1 + // + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow1}); + this.xrTable1.SizeF = new System.Drawing.SizeF(700F, 25F); + this.xrTable1.StylePriority.UseFont = false; + // + // xrTableRow1 + // + this.xrTableRow1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top))); + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell9, + this.xrTableCell1, + this.xrTableCell2, + this.xrTableCell7}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.StylePriority.UseBorders = false; + this.xrTableRow1.Weight = 0.59999992675782143D; + // + // xrTableCell9 + // + this.xrTableCell9.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell9.StylePriority.UseBorders = false; + this.xrTableCell9.StylePriority.UsePadding = false; + this.xrTableCell9.StylePriority.UseTextAlignment = false; + this.xrTableCell9.Text = "Nachname"; + this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell9.Weight = 0.69230768057016234D; + // + // xrTableCell1 + // + this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell1.StylePriority.UseBorders = false; + this.xrTableCell1.StylePriority.UsePadding = false; + this.xrTableCell1.StylePriority.UseTextAlignment = false; + this.xrTableCell1.Text = "Vorname"; + this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell1.Weight = 0.69230768057016223D; + // + // xrTableCell2 + // + this.xrTableCell2.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell2.StylePriority.UseBorders = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.Text = "Rolle"; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell2.Weight = 0.69230769817645732D; + // + // xrTableCell7 + // + this.xrTableCell7.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell7.Name = "xrTableCell7"; + this.xrTableCell7.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell7.StylePriority.UseBorders = false; + this.xrTableCell7.StylePriority.UsePadding = false; + this.xrTableCell7.StylePriority.UseTextAlignment = false; + this.xrTableCell7.Text = "Notiz"; + this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell7.Weight = 1.1538461714524488D; + // + // TopMargin + // + this.TopMargin.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TopMargin.HeightF = 100F; + this.TopMargin.Name = "TopMargin"; + this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.TopMargin.StylePriority.UseFont = false; + this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel1 + // + this.xrLabel1.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(650F, 37.33331F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.Text = "[Employee.FirstName] [Employee.LastName]"; + // + // BottomMargin + // + this.BottomMargin.HeightF = 74F; + this.BottomMargin.Name = "BottomMargin"; + this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1}); + this.DetailReport.DataMember = "EmployeeList"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable2}); + this.Detail1.HeightF = 25F; + this.Detail1.Name = "Detail1"; + // + // xrTable2 + // + this.xrTable2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable2.Name = "xrTable2"; + this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow2}); + this.xrTable2.SizeF = new System.Drawing.SizeF(700F, 25F); + this.xrTable2.StylePriority.UseBorders = false; + this.xrTable2.StylePriority.UseFont = false; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell10, + this.xrTableCell4, + this.xrTableCell5, + this.xrTableCell8}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 3, 0, 100F); + this.xrTableRow2.StylePriority.UsePadding = false; + this.xrTableRow2.Weight = 1D; + // + // xrTableCell10 + // + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeList.Employee.LastName", "{0:dd.MM.yyyy}")}); + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.StylePriority.UsePadding = false; + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.Text = "xrTableCell10"; + this.xrTableCell10.Weight = 0.69230768057016234D; + // + // xrTableCell4 + // + this.xrTableCell4.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeList.Employee.FirstName", "{0:c}")}); + this.xrTableCell4.FormattingRules.Add(this.Einzahlungstextsichtbarkeitsformatierungsregel); + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.StylePriority.UsePadding = false; + this.xrTableCell4.StylePriority.UseTextAlignment = false; + this.xrTableCell4.Text = "xrTableCell4"; + this.xrTableCell4.Weight = 0.69230768057016223D; + // + // Einzahlungstextsichtbarkeitsformatierungsregel + // + this.Einzahlungstextsichtbarkeitsformatierungsregel.Condition = "[Einzahlung] == 0"; + this.Einzahlungstextsichtbarkeitsformatierungsregel.DataMember = "Transaktionen"; + this.Einzahlungstextsichtbarkeitsformatierungsregel.Formatting.ForeColor = System.Drawing.Color.Transparent; + this.Einzahlungstextsichtbarkeitsformatierungsregel.Name = "Einzahlungstextsichtbarkeitsformatierungsregel"; + // + // xrTableCell5 + // + this.xrTableCell5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeList.Rolle", "{0:c}")}); + this.xrTableCell5.FormattingRules.Add(this.Auszahlungstextsichtbarkeitsformatierungsregel); + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.StylePriority.UsePadding = false; + this.xrTableCell5.StylePriority.UseTextAlignment = false; + this.xrTableCell5.Text = "xrTableCell5"; + this.xrTableCell5.Weight = 0.69230769817645732D; + // + // Auszahlungstextsichtbarkeitsformatierungsregel + // + this.Auszahlungstextsichtbarkeitsformatierungsregel.Condition = "[Auszahlung] == 0"; + this.Auszahlungstextsichtbarkeitsformatierungsregel.DataMember = "Transaktionen"; + this.Auszahlungstextsichtbarkeitsformatierungsregel.Formatting.ForeColor = System.Drawing.Color.Transparent; + this.Auszahlungstextsichtbarkeitsformatierungsregel.Name = "Auszahlungstextsichtbarkeitsformatierungsregel"; + // + // xrTableCell8 + // + this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeList.Notiz")}); + this.xrTableCell8.Multiline = true; + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UsePadding = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.Weight = 1.1538461714524493D; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.EmployeeListRO); + // + // xrLabel2 + // + this.xrLabel2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 37.33332F); + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(650F, 25.66666F); + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.Text = "Zugeordnete Klient:innen"; + // + // GroupHeader1 + // + this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel2, + this.xrLabel1}); + this.GroupHeader1.HeightF = 70F; + this.GroupHeader1.Name = "GroupHeader1"; + // + // EmployeeListReport + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.TopMargin, + this.BottomMargin, + this.DetailReport, + this.GroupHeader1}); + this.DataSource = this.bindingSource1; + this.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.Einzahlungstextsichtbarkeitsformatierungsregel, + this.Auszahlungstextsichtbarkeitsformatierungsregel}); + this.Margins = new System.Drawing.Printing.Margins(75, 75, 100, 74); + this.Version = "17.1"; + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + #endregion + + private DevExpress.XtraReports.UI.DetailBand Detail; + private DevExpress.XtraReports.UI.TopMarginBand TopMargin; + private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTable xrTable2; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.FormattingRule Einzahlungstextsichtbarkeitsformatierungsregel; + private DevExpress.XtraReports.UI.FormattingRule Auszahlungstextsichtbarkeitsformatierungsregel; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1; + } +} diff --git a/Report/DefaultReports/EmployeeListReport.cs b/Report/DefaultReports/EmployeeListReport.cs new file mode 100644 index 000000000..8e415ba30 --- /dev/null +++ b/Report/DefaultReports/EmployeeListReport.cs @@ -0,0 +1,17 @@ +using BeWo.Report.ReportObjects; + +namespace BeWo.Report.DefaultReports +{ + public partial class EmployeeListReport : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + { + public EmployeeListReport() + { + InitializeComponent(); + } + + public void SetReportDataSource(CustomerListRO pRO) + { + bindingSource1.DataSource = pRO; + } + } +} diff --git a/Report/DefaultReports/EmployeeListReport.resx b/Report/DefaultReports/EmployeeListReport.resx new file mode 100644 index 000000000..76cdda25e --- /dev/null +++ b/Report/DefaultReports/EmployeeListReport.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/Report/Report.csproj b/Report/Report.csproj index c7ea4b32a..4a221b74c 100644 --- a/Report/Report.csproj +++ b/Report/Report.csproj @@ -136,6 +136,12 @@ BudgetnachweisAnhang.cs + + Component + + + EmployeeListReport.cs + Component @@ -443,6 +449,7 @@ + @@ -503,6 +510,10 @@ BudgetnachweisAnhang.cs Designer + + EmployeeListReport.cs + Designer + PersonListReport.cs Designer diff --git a/Report/ReportObjects/EmployeeListRO.cs b/Report/ReportObjects/EmployeeListRO.cs new file mode 100644 index 000000000..f59923dc5 --- /dev/null +++ b/Report/ReportObjects/EmployeeListRO.cs @@ -0,0 +1,29 @@ +using System.Collections.Generic; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; + +namespace BeWo.Report.ReportObjects +{ + public class EmployeeListRO : AbstractBeWoReportObject + { + public List EmployeeList { get; set; } + + public static EmployeeListRO Create(List oids) + { + var ro = new EmployeeListRO(); + ro.EmployeeList = new List(); + + var employees = DAOFactory.GenericDAO.LoadByIDs(oids); + var dclist = MapperFactory.EmployeeDC_Employee.MapToNewDCs(employees); + + foreach (var item in dclist) + { + var employeeRO = EmployeeDataRO.Create(item); + ro.EmployeeList.Add(employeeRO); + } + + return ro; + } + } +}