本文整理汇总了C#中StiReport.RegData方法的典型用法代码示例。如果您正苦于以下问题:C# StiReport.RegData方法的具体用法?C# StiReport.RegData怎么用?C# StiReport.RegData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StiReport
的用法示例。
在下文中一共展示了StiReport.RegData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
System.Data.DataTable table = ds.Tables.get_Item(0);
System.Data.DataTable table2 = ds.Tables.get_Item(1);
StiReport rep = new StiReport();
this.LoadReport(rep);
rep.Compile();
rep.RegData("Header", (System.Data.DataTable) table);
rep.RegData("Data", (System.Data.DataTable) table2);
return rep;
}
示例2: ShowDialog
public static void ShowDialog(System.Windows.Forms.IWin32Window owner, PayRequest request)
{
System.Data.DataTable dataTableByRequestIdFormSpScheme;
System.Data.DataTable dataTableById;
System.Data.DataTable dataTableByRequestId = PayRequestBenefit.GetDataTableByRequestId(request);
if ((dataTableByRequestId == null) || (dataTableByRequestId.Rows.get_Count() == 0))
{
System.Data.DataRow row = dataTableByRequestId.Rows.Add((object[]) new object[0]);
row.set_Item("benefitName", "Льготы отсутствуют");
row.set_Item("PersonsCount", 0);
}
if (request.Id > 0L)
{
dataTableByRequestIdFormSpScheme = PayRequestService.GetDataTableByRequestId(request);
}
else
{
dataTableByRequestIdFormSpScheme = PayRequestService.GetDataTableByRequestIdFormSpScheme(request);
}
StiReport report = new StiReport();
string valueByName = Setting.GetValueByName("Глобальные установки", "Шаблон квитанции");
string info = "";
if (valueByName == "ReceiptReportSakhalin")
{
report.Load(Resources.ReceiptReportSakhalin);
long accountId = 0L;
if (long.TryParse(request.AccountId, ref accountId) && (accountId > 0L))
{
info = Organization.FindHouseHolderByAccountId(accountId).Info;
}
}
else
{
bool flag = (bool) ((Setting.GetValueByName("Параметры квитанций", "Печатать в кассе колонку ЕДК") ?? "").ToUpper() == "ДА");
report.Load(flag ? Resources.ReceiptReportWithEDK : Resources.ReceiptReport);
info = (Organization.CentralOffice == Organization.Null) ? ((string) "Отсутсвует ОРГАНИЗАЦИЯ в глобальных установках") : Organization.CentralOffice.Info;
}
report.Compile();
report.Dictionary.Variables.Add("orgInfo", info);
report.Dictionary.Variables.Add("diffEDKMonth", ("Да" == (Setting.GetValueByName("Параметры расчетов", "Использовать ЕДК за предыдущий период") ?? string.Empty)) ? -1 : 0);
if (request.Id > 0L)
{
dataTableById = PayRequest.GetDataTableById(request);
}
else
{
dataTableById = PayRequest.GetDataTableByIdFormSpScheme(request);
}
report.RegData("dataRequests", (System.Data.DataTable) dataTableById);
report.RegData("dataRequestBenefits", (System.Data.DataTable) dataTableByRequestId);
report.RegData("dataRequestServices", (System.Data.DataTable) dataTableByRequestIdFormSpScheme);
report.Show((System.Windows.Forms.IWin32Window) owner);
}
示例3: ShowDialog
public static void ShowDialog(System.Windows.Forms.IWin32Window owner, ObjectList<PayRequest> requests, string caption, bool byCashier)
{
StiReport report = new StiReport {
AutoLocalizeReportOnRun = true
};
report.Load(byCashier ? Resources.ReceiptTerminalReportByCashier : Resources.ReceiptTerminalReport);
report.Compile();
System.Data.DataTable table = Mappers.PayRequestMapper.ObjectListToDateTable(requests);
report.RegData("dataRequests", (System.Data.DataTable) table);
System.Data.DataTable table2 = new System.Data.DataTable("captionTable");
table2.Columns.Add("caption");
table2.Rows.Add((object[]) new object[] { caption });
report.RegData(table2.get_TableName(), (System.Data.DataTable) table2);
report.Show((System.Windows.Forms.IWin32Window) owner);
}
示例4: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.PaymentReportByJn);
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例5: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.Rep_HouseCounters);
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例6: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.ReceiptTerminalReportByParameters);
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例7: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.Rep_ResidentVacations);
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例8: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.CounterIndicationStatistics);
report.Compile();
report.RegData("ReportData", (System.Data.DataSet) ds);
report["period"] = (base.DateBeg.Date == base.DateEnd.Date) ? ("за " + base.DateBeg.Date.ToString("dd.MM.yyyy")) : ("с " + base.DateBeg.Date.ToString("dd.MM.yyyy") + " по " + base.DateEnd.Date.ToString("dd.MM.yyyy"));
return report;
}
示例9: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(this.rbTypeBySimple.get_Checked() ? Resources.Rep_AccountServicesSaldoSimpleReport : (this.rbTypeByOper.get_Checked() ? Resources.Rep_AccountServicesSaldoByOper : Resources.Rep_AccountServicesSaldo));
report.EngineVersion = StiEngineVersion.EngineV2;
report.ReportCacheMode = StiReportCacheMode.Off;
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例10: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
System.Data.DataTable table = ds.Tables.get_Item(0);
StiReport report = new StiReport();
report.Load(Resources.Rep_ObjLogOper);
report.Compile();
report.RegData("obj_log_oper", (System.Data.DataTable) table);
report["period"] = (base.DateBeg.Date == base.DateEnd.Date) ? ("за " + base.DateBeg.Date.ToString("dd.MM.yyyy")) : ("с " + base.DateBeg.Date.ToString("dd.MM.yyyy") + " по " + base.DateEnd.Date.ToString("dd.MM.yyyy"));
return report;
}
示例11: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.Rep_AccountServicesPaymentByGroupOper);
report.EngineVersion = StiEngineVersion.EngineV2;
report.ReportCacheMode = StiReportCacheMode.Off;
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例12: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
report.Load(Resources.Rep_AccountServicesPersonJnBenefitsNoDebtsReport);
report.EngineVersion = StiEngineVersion.EngineV2;
report.ReportCacheMode = StiReportCacheMode.Off;
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}
示例13: ShowCoordinationVolumesDefectsReport
public static void ShowCoordinationVolumesDefectsReport(System.Windows.Forms.IWin32Window owner, long inspectionId)
{
System.Data.DataSet ujfCoordinationVolumesDefectsReport = Mappers.SimpleReportMapper.GetUjfCoordinationVolumesDefectsReport(inspectionId);
ujfCoordinationVolumesDefectsReport.Tables.get_Item(0).set_TableName("CoordinationDefects");
StiReport report = new StiReport();
report.Load(Resources.UJFListCoordinationVolumesDefects);
report.Compile();
report.RegData((System.Data.DataSet) ujfCoordinationVolumesDefectsReport);
report.Show((System.Windows.Forms.IWin32Window) owner);
}
示例14: ShowInspectionActPystografMinReport
public static void ShowInspectionActPystografMinReport(System.Windows.Forms.IWin32Window owner, long inspectionId)
{
System.Data.DataSet ujfApartmentHouseInspectionActPystografMinReport = Mappers.SimpleReportMapper.GetUjfApartmentHouseInspectionActPystografMinReport(inspectionId);
ujfApartmentHouseInspectionActPystografMinReport.Tables.get_Item(0).set_TableName("InspectionInfo");
StiReport report = new StiReport();
report.Load(Resources.UjfApartmentHouseInspectionAct_PystografMin);
report.Compile();
report.RegData((System.Data.DataSet) ujfApartmentHouseInspectionActPystografMinReport);
report.Show((System.Windows.Forms.IWin32Window) owner);
}
示例15: MakeReport
protected override StiReport MakeReport(System.Data.DataSet ds)
{
StiReport report = new StiReport();
AccountReportType byName = AccountReportType.GetByName("Уведомление для Грозного, без долга");
report.LoadFromString(byName.Template);
report.EngineVersion = StiEngineVersion.EngineV2;
report.ReportCacheMode = StiReportCacheMode.Off;
report.Compile();
report.RegData((System.Data.DataSet) ds);
return report;
}