40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report;
|
|
using DevExpress.XtraReports.UI;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Service.DCEntityMapper;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace HphBersenbrueck
|
|
{
|
|
public partial class AufnahmeUndEntlassungsbogen : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<QueryRO>
|
|
{
|
|
public AufnahmeUndEntlassungsbogen()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(QueryRO pRO)
|
|
{
|
|
long oid = 0;
|
|
|
|
|
|
Int64.TryParse(pRO.Rows[0].Field1.ToString(), out oid);
|
|
|
|
if (oid > 0)
|
|
{
|
|
var c = DAOFactory.GenericDAO.LoadByID<Customer>(oid);
|
|
CustomerDC custDc = MapperFactory.CustomerDC_Customer.MapToNewDC(c);
|
|
|
|
CustomerDataRO cro = CustomerDataRO.Create(custDc);
|
|
this.bindingSource1.DataSource = cro;
|
|
}
|
|
}
|
|
}
|
|
}
|