本文整理汇总了C#中StiReport.Load方法的典型用法代码示例。如果您正苦于以下问题:C# StiReport.Load方法的具体用法?C# StiReport.Load怎么用?C# StiReport.Load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StiReport
的用法示例。
在下文中一共展示了StiReport.Load方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: 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;
}
示例3: 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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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);
}
示例8: 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;
}
示例9: 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;
}
示例10: 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;
}
示例11: 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);
}
示例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: ShowDefectsDelayWorkReport
public static void ShowDefectsDelayWorkReport(System.Windows.Forms.IWin32Window owner, long inspectionId)
{
System.Data.DataSet ujfApartmentHouseDefectsDelayWorkReport = Mappers.SimpleReportMapper.GetUjfApartmentHouseDefectsDelayWorkReport(inspectionId);
ujfApartmentHouseDefectsDelayWorkReport.Tables.get_Item(0).set_TableName("DefectsInfo");
ujfApartmentHouseDefectsDelayWorkReport.Tables.get_Item(1).set_TableName("HouseInfo");
StiReport report = new StiReport();
report.Load(Resources.UjfApartmentHouseInspectionDefectsDelayWorksByInspection);
report.Compile();
report.RegData((System.Data.DataSet) ujfApartmentHouseDefectsDelayWorkReport);
report.Show((System.Windows.Forms.IWin32Window) owner);
}
示例14: ShowDialog
public static void ShowDialog(System.Windows.Forms.IWin32Window owner, System.DateTime date, ObjectList<LocalAddress> addresses)
{
System.Data.DataSet accountServiceByAddressesReport = GroupOperation.GetAccountServiceByAddressesReport(date, addresses);
accountServiceByAddressesReport.Tables.get_Item(0).set_TableName("dataAccountServices");
accountServiceByAddressesReport.Tables.get_Item(1).set_TableName("date");
StiReport report = new StiReport();
report.Load(Resources.Rep_AccountServicesByAddresses);
report.Compile();
report.RegData((System.Data.DataSet) accountServiceByAddressesReport);
report.Show((System.Windows.Forms.IWin32Window) owner);
}
示例15: ShowExpiredAndCurrentDefectsReport
public static void ShowExpiredAndCurrentDefectsReport(System.Windows.Forms.IWin32Window owner, long inspectionId, System.DateTime period)
{
System.Data.DataSet ujfListExpiredAndCurrentDefectsReport = Mappers.SimpleReportMapper.GetUjfListExpiredAndCurrentDefectsReport(inspectionId, period);
ujfListExpiredAndCurrentDefectsReport.Tables.get_Item(0).set_TableName("CurentDefects");
ujfListExpiredAndCurrentDefectsReport.Tables.get_Item(1).set_TableName("ExpiredDefects");
ujfListExpiredAndCurrentDefectsReport.Tables.get_Item(2).set_TableName("Period");
StiReport report = new StiReport();
report.Load(Resources.ListExpiredAndCurrentDefects);
report.Compile();
report.RegData((System.Data.DataSet) ujfListExpiredAndCurrentDefectsReport);
report.Show((System.Windows.Forms.IWin32Window) owner);
}