Re: PreCompiled Report
Posted: Tue May 14, 2013 9:54 am
Hello,
Let us know if you need any additional help.
Thank you.
Let us know if you need any additional help.
Thank you.
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
report[varname] = value;
Code: Select all
Script = Script.Replace(" : Stimulsoft.Report.StiReport", " : reportingInXanthos.XanthosReport");
Code: Select all
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
using Grz.Xanthos.Services.Report;
namespace Reports
{
public class Befund : reportingInXanthos.XanthosReport
{
public Befund()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify
#endregion StiReport Designer generated code - do not modify
public string SetKopfDaten(){
try{
return StimulsoftReportHelper.FormatInstitutsDaten(Zuweisung.MandantKopf,Zuweisung.BereichKopf);
}catch{
return Zuweisung.MandantKopf.Replace("[{Bereich.BereichKopf}]", Zuweisung.BereichKopf);
}
}
private void AnforderungenSichtbar(){
if(string.IsNullOrEmpty(Zuweisung.Anforderungsnummer)){
PanelAnforderung.SelectAll();
PanelAnforderung.RemoveAllSelected();
}
}
public string SetENummer(){
try{
string enummer = StimulsoftReportHelper.FormatENummer(Zuweisung.BereichKuerzel,MaterialEingang.ENummer,MaterialEingang.ENummerBis,MaterialEingang.SubNummer, Zuweisung.MandantId);
if(Zuweisung.laufendeNr > 0){
enummer += "-" + Zuweisung.laufendeNr;
}
return enummer;
}catch{
return MaterialEingang.ENummer.ToString();
}
}
private FontStyle DiagnoseStyle {get{return FontStyle.Bold | FontStyle.Underline;}}
public void FormatDiagnoseText(){
if(ZuweisungTexteFooter.Kategorie == 2)
this.txtZuweisungFooterText.Font = new Font(this.txtZuweisungFooterText.Font, DiagnoseStyle);
else
this.txtZuweisungFooterText.Font = new Font(this.txtZuweisungFooterText.Font, FontStyle.Regular);
}
public string AusgangsDatumUndOrt(){
string datum = Zuweisung["Ausgangsdatum"] == DBNull.Value ? string.Empty : ((DateTime)(StiReport.ChangeType(Zuweisung["Ausgangsdatum"], typeof(DateTime), true))).ToShortDateString();
return "Wien, am " + datum;
}
public string MatZusatzKuerzel(){
return "MZ";
}
public string FormatText(string text){
try{
return StimulsoftReportHelper.FormatHTMLText(text);
}catch{
return text;
}
}
public string GetBefundStatus(){
try{
string befundStatus = string.Empty;
befundStatus = StimulsoftReportHelper.GetBefundStatus(Zuweisung.ZuweisungStatus);
if (Zuweisung.Ausgangsdatum.HasValue){
befundStatus += " (" + Format("{0:dd.MM.yyyy}", Zuweisung.Ausgangsdatum.Value) + ")";
}
return befundStatus;
}catch{
return Zuweisung.ZuweisungStatus.ToString();
}
}
public string FormatPatientName(){
string s = Zuweisung.PatientName;
bool beistrich = false;
if(!string.IsNullOrEmpty(Zuweisung.PatientAkademischVor)){
s = string.Format("{0}, {1}",s, Zuweisung.PatientAkademischVor);
beistrich = true;
}
if(!string.IsNullOrEmpty(Zuweisung.PatientTitel)){
s = string.Format("{0}{1} {2}",s,beistrich ? string.Empty : ",",Zuweisung.PatientTitel);
}
s = string.Format ("{0} {1}",s,Zuweisung.PatientVorname);
if(!string.IsNullOrEmpty(Zuweisung.PatientAkademischNach)){
s = string.Format("{0} {1}",s,Zuweisung.PatientAkademischNach);
}
return s;
}
public string FormatZuweiserAdresse(){
string s = string.Empty;
if(!string.IsNullOrEmpty(Zuweiser.Land)){
s = Zuweiser.Land + "-";
}
s = string.Format("{0}{1} {2} {3}",s,Zuweiser.PLZ,Zuweiser.Ort,Zuweiser.Ortsteil);
return s;
}
}
}
Code: Select all
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : reportingInXanthos.XanthosReport
{
public Report() {
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify
#endregion StiReport Designer generated code - do not modify
}
}