CustomerListReport
This commit is contained in:
@@ -9031,6 +9031,38 @@ namespace BeWo.ServiceProxy
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateInvoiceListReport", ReplyAction="http://tempuri.org/IReportService/CreateInvoiceListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateInvoiceListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateInvoiceListReport(System.Collections.Generic.List<long> invoiceBaseOids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateCustomerListReport", ReplyAction="http://tempuri.org/IReportService/CreateCustomerListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateCustomerListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateCustomerListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateSupportConceptListReport", ReplyAction="http://tempuri.org/IReportService/CreateSupportConceptListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateSupportConceptListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateSupportConceptListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreatePersonListReport", ReplyAction="http://tempuri.org/IReportService/CreatePersonListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreatePersonListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreatePersonListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateEmployeeListReport", ReplyAction="http://tempuri.org/IReportService/CreateEmployeeListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateEmployeeListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateEmployeeListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateOrganisationListReport", ReplyAction="http://tempuri.org/IReportService/CreateOrganisationListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateOrganisationListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateOrganisationListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateTeamListReport", ReplyAction="http://tempuri.org/IReportService/CreateTeamListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateTeamListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateTeamListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateUserListReport", ReplyAction="http://tempuri.org/IReportService/CreateUserListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateUserListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateUserListReport(System.Collections.Generic.List<long> oids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateUSerGroupListReport", ReplyAction="http://tempuri.org/IReportService/CreateUSerGroupListReportResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateUSerGroupListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
|
||||
System.IO.MemoryStream CreateUSerGroupListReport(System.Collections.Generic.List<long> oids);
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
@@ -9151,6 +9183,46 @@ namespace BeWo.ServiceProxy
|
||||
{
|
||||
return base.Channel.CreateInvoiceListReport(invoiceBaseOids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateCustomerListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateCustomerListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateSupportConceptListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateSupportConceptListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreatePersonListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreatePersonListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateEmployeeListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateEmployeeListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateOrganisationListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateOrganisationListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateTeamListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateTeamListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateUserListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateUserListReport(oids);
|
||||
}
|
||||
|
||||
public System.IO.MemoryStream CreateUSerGroupListReport(System.Collections.Generic.List<long> oids)
|
||||
{
|
||||
return base.Channel.CreateUSerGroupListReport(oids);
|
||||
}
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace BeWo.View.Controls
|
||||
c.Foreground = Brushes.Red;
|
||||
c.Text = "ÜS";
|
||||
c.ToolTip = (dc == null) ? string.Format("Überstunden:\t{0:0.00}\nAuszahlung:\t{1}\nBemerkung:\t{2}",
|
||||
info.OverTime.Betrag, info.OverTime.Auszahlungsart.Name, info.OverTime.Notice) : null;
|
||||
info.OverTime.Betrag, info.OverTime.Auszahlungsart?.Name, info.OverTime.Notice) : null;
|
||||
|
||||
if (info.DayOfWeek == DayOfWeek.Saturday || info.DayOfWeek == DayOfWeek.Sunday)
|
||||
c.Background = new SolidColorBrush(ColorExtensions.FromHexString("EFEFEF"));
|
||||
|
||||
@@ -168,6 +168,7 @@
|
||||
DeleteObject="mainNavigationView_DeleteObject"
|
||||
ArchiveObject="mainNavigationView_ArchiveObject"
|
||||
ExcelExport="mainNavigationView_ExcelExport"
|
||||
Print="mainNavigationView_Print"
|
||||
DeleteDemands="DeleteAll, CustomerView_Delete"
|
||||
CreateDemands="CreateAll, CustomerView_Create"
|
||||
ShowDetailsPanel="True"
|
||||
|
||||
@@ -454,5 +454,18 @@ namespace BeWo.View.Navigation
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private void mainNavigationView_Print(object sender, EventArgs<IEnumerable<IFilterableDC>> e)
|
||||
{
|
||||
var oids = e.Data.Cast<CompactCustomerDC>().Select(c => c.CustomerOid).ToList();
|
||||
|
||||
ServiceFacade.DoReportServiceAsync(s => s.CreateCustomerListReport(oids), r =>
|
||||
{
|
||||
this.Dispatch(() =>
|
||||
{
|
||||
BeWoUtils.ShowReportWindow(r, Translator.Translate("Klienten"));
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,6 +105,9 @@
|
||||
<TextBlock x:Name="textblock_link" VerticalAlignment="Center" Margin="20 0 0 0" FontSize="16">
|
||||
<Hyperlink x:Name="linkExcelExport" TargetName="newWindow" Foreground="White" RequestNavigate="linkExcelExport_RequestNavigate">Excel Export</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock x:Name="textblock_print" VerticalAlignment="Center" Margin="20 0 0 0" FontSize="16">
|
||||
<Hyperlink x:Name="linkPrint" TargetName="newWindow" Foreground="White" RequestNavigate="linkPrint_RequestNavigate" NavigateUri="http://www.ownsoft.de">Liste drucken</Hyperlink>
|
||||
</TextBlock>
|
||||
<!-- ###CB SERIENBRIEF<Button x:Name="MailMergeButton" Content="Serienbrief drucken" Style="{StaticResource NavigationToolbarButtonStyle}" Margin="10,0,0,0" Click="btnMailMerge_Click" /> -->
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -108,6 +108,8 @@ namespace BeWo.View.Navigation
|
||||
|
||||
public event EventHandler<EventArgs<IEnumerable<IFilterableDC>>> ExcelExport;
|
||||
|
||||
public event EventHandler<EventArgs<IEnumerable<IFilterableDC>>> Print;
|
||||
|
||||
public event OpenObjectDelegate OpenObject;
|
||||
|
||||
public event ReloadDataDelegate OnReloadData;
|
||||
@@ -610,6 +612,13 @@ namespace BeWo.View.Navigation
|
||||
ExcelExport(this, new EventArgs<IEnumerable<IFilterableDC>>(objectListBox.ItemsSource as IEnumerable<IFilterableDC>));
|
||||
}
|
||||
|
||||
private void linkPrint_RequestNavigate(object sender, RequestNavigateEventArgs e)
|
||||
{
|
||||
if (Print != null)
|
||||
Print(this, new EventArgs<IEnumerable<IFilterableDC>>(objectListBox.ItemsSource as IEnumerable<IFilterableDC>));
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void objectHistoryListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
OnOpenObject();
|
||||
|
||||
@@ -104,5 +104,7 @@ namespace BeWo.Report
|
||||
public abstract XtraReport CreateVertretungsPlanungReport(DateTime start, int ansicht);
|
||||
|
||||
public abstract XtraReport CreateValidationMessageListReport(DateTime startDate, DateTime endDate);
|
||||
|
||||
public abstract XtraReport CreateCustomerListReport(List<long> oids);
|
||||
}
|
||||
}
|
||||
@@ -1193,6 +1193,15 @@ namespace BeWo.Report
|
||||
report.SetReportDataSource(ValidationMessageListRO.Create(startDate, endDate, DAOFactory.SearchDAO.GetValidationMessagesForMonth(startDate, endDate).ToList()));
|
||||
|
||||
|
||||
return report as XtraReport;
|
||||
}
|
||||
|
||||
public override XtraReport CreateCustomerListReport(List<long> oids)
|
||||
{
|
||||
var ro = CustomerListRO.Create(oids);
|
||||
IBeWoReport<CustomerListRO> report = FindReportImp<CustomerListRO>();
|
||||
report.SetReportDataSource(ro);
|
||||
|
||||
return report as XtraReport;
|
||||
}
|
||||
}
|
||||
|
||||
335
Report/DefaultReports/CustomerListReport.Designer.cs
generated
Normal file
335
Report/DefaultReports/CustomerListReport.Designer.cs
generated
Normal file
@@ -0,0 +1,335 @@
|
||||
namespace BeWo.Report.DefaultReports
|
||||
{
|
||||
partial class CustomerListReport
|
||||
{
|
||||
/// <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.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 = "CustomerList";
|
||||
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, "CustomerList.Customer.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, "CustomerList.Customer.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, "CustomerList.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, "CustomerList.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.CustomerListRO);
|
||||
//
|
||||
// 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";
|
||||
//
|
||||
// EmployeeCustomerListReport
|
||||
//
|
||||
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;
|
||||
}
|
||||
}
|
||||
23
Report/DefaultReports/CustomerListReport.cs
Normal file
23
Report/DefaultReports/CustomerListReport.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Linq;
|
||||
using BeWo.Report.ReportObjects;
|
||||
|
||||
namespace BeWo.Report.DefaultReports
|
||||
{
|
||||
public partial class CustomerListReport : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<CustomerListRO>
|
||||
{
|
||||
public CustomerListReport()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(CustomerListRO pRO)
|
||||
{
|
||||
//if (pRO.Transaktionen != null)
|
||||
//{
|
||||
// pRO.Transaktionen = pRO.Transaktionen.OrderBy(o => o.Belegdatum).ToList();
|
||||
//}
|
||||
|
||||
bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
123
Report/DefaultReports/CustomerListReport.resx
Normal file
123
Report/DefaultReports/CustomerListReport.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>
|
||||
@@ -148,6 +148,7 @@ namespace BeWo.Report.DefaultReports
|
||||
// xrTableCell5
|
||||
//
|
||||
this.xrTableCell5.Name = "xrTableCell5";
|
||||
this.xrTableCell5.Text = " ";
|
||||
this.xrTableCell5.Weight = 1D;
|
||||
//
|
||||
// bindingSource1
|
||||
|
||||
@@ -136,6 +136,12 @@
|
||||
<Compile Include="DefaultReports\BudgetnachweisAnhang.Designer.cs">
|
||||
<DependentUpon>BudgetnachweisAnhang.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\CustomerListReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\CustomerListReport.Designer.cs">
|
||||
<DependentUpon>CustomerListReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\RatingReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
@@ -431,6 +437,7 @@
|
||||
<Compile Include="DefaultReportCreator.cs" />
|
||||
<Compile Include="ReportObjects\AbwesenheitsPrintRO.cs" />
|
||||
<Compile Include="ReportObjects\BudgetnachweisAnhangRO.cs" />
|
||||
<Compile Include="ReportObjects\CustomerListRO.cs" />
|
||||
<Compile Include="ReportObjects\RatingRO.cs" />
|
||||
<Compile Include="ReportObjects\EmployeeCustomerListRO.cs" />
|
||||
<Compile Include="ReportObjects\FlsAuslastungsauswertungRO.cs" />
|
||||
@@ -489,6 +496,10 @@
|
||||
<DependentUpon>BudgetnachweisAnhang.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="DefaultReports\CustomerListReport.resx">
|
||||
<DependentUpon>CustomerListReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="DefaultReports\RatingReport.resx">
|
||||
<DependentUpon>RatingReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
35
Report/ReportObjects/CustomerListRO.cs
Normal file
35
Report/ReportObjects/CustomerListRO.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
|
||||
namespace BeWo.Report.ReportObjects
|
||||
{
|
||||
public class CustomerListRO : AbstractBeWoReportObject<CustomerListRO>
|
||||
{
|
||||
public List<CustomerDataRO> CustomerList { get; set; }
|
||||
|
||||
public static CustomerListRO Create(List<long> oids)
|
||||
{
|
||||
var ro = new CustomerListRO();
|
||||
ro.CustomerList = new List<CustomerDataRO>();
|
||||
|
||||
var customers = DAOFactory.GenericDAO.LoadByIDs<Customer>(oids);
|
||||
var dclist = MapperFactory.CustomerDC_Customer.MapToNewDCs(customers);
|
||||
|
||||
foreach (var item in dclist)
|
||||
{
|
||||
var customerRO = CustomerDataRO.Create(item);
|
||||
ro.CustomerList.Add(customerRO);
|
||||
}
|
||||
return ro;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -111,6 +111,7 @@ namespace AkggMid
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override MitarbeiterstundenkontoRO.DayDetail CreateDayDetail(DateTime date, MitarbeiterstundenkontoRO.EmployeeDetail ed)
|
||||
{
|
||||
var dd = base.CreateDayDetail(date, ed);
|
||||
@@ -122,6 +123,7 @@ namespace AkggMid
|
||||
return dd;
|
||||
}
|
||||
|
||||
|
||||
public override MitarbeiterstundenkontoRO.EmployeeDetail BerechneUeberstundenBis(MitarbeiterstundenkontoRO.EmployeeDetail edOrig, IList<ServiceRecord> records, DateTime monat, out decimal? ueberstunden, out decimal alteExtraUeberstunden)
|
||||
{
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
|
||||
@@ -24,7 +25,11 @@ namespace AkggMid
|
||||
|
||||
foreach (var ed in pRO.EmployeeDetailList)
|
||||
{
|
||||
var c = ed.Employee.GetValidContractForDate(pRO.ReportStartDate);
|
||||
var c = ed.Employee.GetValidContractForDate(pRO.ReportEndDate);
|
||||
if (c == null)
|
||||
{
|
||||
c = ed.Employee.GetValidContractForDate(pRO.ReportStartDate);
|
||||
}
|
||||
if (c != null)
|
||||
{
|
||||
if (c.MonthlyTotalHours.HasValue)
|
||||
@@ -42,8 +47,40 @@ namespace AkggMid
|
||||
// Alles in Custom6 / 7 / 8 / 9 schreiben
|
||||
foreach (var empDetail in pRO.EmployeeDetailList)
|
||||
{
|
||||
var newDayList = new List<MitarbeiterstundenkontoRO.DayDetail>();
|
||||
|
||||
foreach (var day in empDetail.Days)
|
||||
{
|
||||
|
||||
if (day.AbsenceTimes != null && day.AbsenceTimes.Count > 0)
|
||||
{
|
||||
var hours = day.HoursSick + day.HoursInVacation;
|
||||
|
||||
empDetail.StundenGesamtIst += hours;
|
||||
}
|
||||
|
||||
if (day.ServiceRecords != null && day.ServiceRecords.Count > 0)
|
||||
{
|
||||
foreach (var sr in day.ServiceRecords)
|
||||
{
|
||||
var dd = new MitarbeiterstundenkontoRO.DayDetail();
|
||||
dd.Date = day.Date;
|
||||
dd.ServiceRecords = new List<ServiceRecord>();
|
||||
dd.ServiceRecords.Add(sr);
|
||||
newDayList.Add(dd);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
newDayList.Add(day);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
empDetail.Days = newDayList;
|
||||
foreach (var day in empDetail.Days)
|
||||
{
|
||||
|
||||
string custom6 = "";
|
||||
string custom7 = "";
|
||||
string custom8 = "";
|
||||
@@ -52,36 +89,64 @@ namespace AkggMid
|
||||
if (day.AbsenceTimes != null && day.AbsenceTimes.Count > 0)
|
||||
{
|
||||
var hours = day.HoursSick + day.HoursInVacation;
|
||||
custom7 = day.AbsenceTimes[0].AbsenceReason.Description + "\n";
|
||||
custom9 += string.Format("{0:0.00}\n", hours);
|
||||
empDetail.StundenGesamtIst += hours;
|
||||
custom7 = day.AbsenceTimes[0].AbsenceReason.Description;
|
||||
custom9 += string.Format("{0:0.00}", hours);
|
||||
}
|
||||
if (day.ServiceRecords != null)
|
||||
{
|
||||
if (day.IstFeiertag)
|
||||
{
|
||||
custom6 += "keine*r\n";
|
||||
custom7 += day.Feiertag.Name + "\n";
|
||||
custom8 += "-\n";
|
||||
}
|
||||
custom6 = "keine*r";
|
||||
|
||||
if (custom7.Length > 0)
|
||||
{
|
||||
custom7 += "\n";
|
||||
}
|
||||
custom7 += day.Feiertag.Name;
|
||||
custom8 = "-";
|
||||
}
|
||||
if (day.ServiceRecords != null && day.ServiceRecords.Count > 0)
|
||||
{
|
||||
foreach (var sr in day.ServiceRecords)
|
||||
{
|
||||
if (custom7.Length > 0)
|
||||
{
|
||||
custom7 += "\n";
|
||||
}
|
||||
custom7 += sr.ServiceDescription.ServiceCategory.Name + "\n";
|
||||
|
||||
if (custom8.Length > 0)
|
||||
{
|
||||
custom8 += "\n";
|
||||
}
|
||||
custom8 += sr.ServiceDescription.Name + "\n";
|
||||
|
||||
if (sr.Group != null && sr.GroupRoundedDuration.HasValue && sr.GroupPersonCount.HasValue && sr.GroupPersonCount.Value > 1)
|
||||
{
|
||||
foreach (var gsr in sr.Group.ServiceRecordList)
|
||||
{
|
||||
if (custom6.Length > 0)
|
||||
{
|
||||
custom6 += "\n";
|
||||
}
|
||||
custom6 += gsr.SupportConcept != null ? gsr.SupportConcept.Customer.Person.FirstNameLastName + "\n" : "";
|
||||
}
|
||||
|
||||
if (custom9.Length > 0)
|
||||
{
|
||||
custom9 += "\n";
|
||||
}
|
||||
custom9 += string.Format("{0:0.00}\n", sr.GroupRoundedDuration / 60);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (custom6.Length > 0)
|
||||
{
|
||||
custom6 += "\n";
|
||||
}
|
||||
custom6 += sr.SupportConcept != null ? sr.SupportConcept.Customer.Person.FirstNameLastName + "\n" : "keine*r\n";
|
||||
|
||||
if (custom9.Length > 0)
|
||||
{
|
||||
custom9 += "\n";
|
||||
}
|
||||
custom9 += string.Format("{0:0.00}\n", sr.RoundedDuration / 60);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,5 +82,38 @@ namespace ReportingService.ServiceContracts
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateInvoiceListReport(List<long> invoiceBaseOids);
|
||||
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateCustomerListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateSupportConceptListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreatePersonListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateEmployeeListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateOrganisationListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateTeamListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateUserListReport(List<long> oids);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
MemoryStream CreateUSerGroupListReport(List<long> oids);
|
||||
}
|
||||
}
|
||||
@@ -131,6 +131,9 @@ namespace ReportingService.ServiceImplementations
|
||||
|
||||
private static MemoryStream CreateReportStream(XtraReport pReport)
|
||||
{
|
||||
if (pReport == null)
|
||||
return null;
|
||||
|
||||
pReport.CreateDocument();
|
||||
|
||||
var resultStream = new MemoryStream();
|
||||
@@ -333,5 +336,46 @@ namespace ReportingService.ServiceImplementations
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreateCustomerListReport(List<long> oids)
|
||||
{
|
||||
var reportCreator = GetReportCreator();
|
||||
return CreateReportStream(reportCreator.CreateCustomerListReport(oids));
|
||||
}
|
||||
|
||||
public MemoryStream CreateSupportConceptListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreatePersonListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreateEmployeeListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreateOrganisationListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreateTeamListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreateUserListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public MemoryStream CreateUSerGroupListReport(List<long> oids)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user