public AccountReportForm(AIS.SN.Model.DomainObjects.AccountReportType reportType, Account account) { this.m_Number = -1L; this.InitializeComponent(); this.m_AccountReportType = reportType; this.m_Account = account; base.m_ReportPrintedHandler = new System.EventHandler(this.CompiledReport_Printed); base.m_MakingDataSource += new BaseReportForm.StiReportDataSetMaker(this.RegisterReport); }
private void FaktLivingKomunalReport(AccountReportType accountReportType) { Account currentAccount = this.CurrentAccount; if (currentAccount.Id != Account.Null.Id) { System.Data.DataSet set = Mappers.RepReportMapper.FaktLivingKomunal(currentAccount.Id); if (((set != null) && (set.Tables.get_Count() != 0)) && (set.Tables.get_Item(0).Rows.get_Count() != 0)) { StiReport report = new StiReport(); report.Load(Resources.Rep_FaktLivingKomunal); report.Compile(); report.RegData((System.Data.DataSet) set); report.Render(true); report.Show((System.Windows.Forms.IWin32Window) this.ContentControl); } } }
private void AccountServicesNotificationReport(AccountReportType accountReportType) { Account currentAccount = this.CurrentAccount; if (currentAccount.Id != Account.Null.Id) { System.DateTime date = System.DateTime.Now.Date; System.Data.DataSet set = Mappers.SimpleReportMapper.GetAccountServicesNotification(currentAccount.Id, date, 0L, 0L); if (((set != null) && (set.Tables.get_Count() == 2)) && (set.Tables.get_Item(0).Rows.get_Count() != 0)) { set.Tables.get_Item(0).set_TableName("dataHeader"); set.Tables.get_Item(1).set_TableName("dataServices"); StiReport report = new StiReport(); if (accountReportType.Template.get_Length() > 0) { report.LoadFromString(accountReportType.Template); } report.Compile(); report.RegData((System.Data.DataSet) set); report.Render(true); if (accountReportType.Name == "Уведомление для Грозного, без долга") { StimulsoftUtilsOptions options = new StimulsoftUtilsOptions(false); report.Show((System.Windows.Forms.IWin32Window) this.ContentControl); options.RestoreValues(); } else { report.Show((System.Windows.Forms.IWin32Window) this.ContentControl); } } } }
private void AccountServicesJournalCurrentReportSR(AccountReportType accountReportType) { Account currentAccount = this.CurrentAccount; if (currentAccount.Id != Account.Null.Id) { System.DateTime period = System.DateTime.Now.Date.AddDays((double) (1 - System.DateTime.Now.get_Day())); System.Data.DataSet set = Mappers.SimpleReportMapper.GetAccountCurrentJournalReportByPeriod(currentAccount.Id, period, true, true, false); if (((set != null) && (set.Tables.get_Count() == 4)) && (set.Tables.get_Item(0).Rows.get_Count() != 0)) { set.Tables.get_Item(0).set_TableName("dataHeader"); set.Tables.get_Item(1).set_TableName("dataResidents"); set.Tables.get_Item(2).set_TableName("dataBenefits"); set.Tables.get_Item(3).set_TableName("dataAccountServices"); StiReport report = new StiReport(); report.Load(Resources.Rep_AccountServicesJournalCurrentSR); report.Compile(); report.RegData((System.Data.DataSet) set); report.Render(true); report.Show((System.Windows.Forms.IWin32Window) this.ContentControl); } } }
public AccountReportTypeChangeForm(AccountReportType accountReportType) : this() { this.m_AccountReportType = accountReportType; }
private void tsbChange_Click(object sender, System.EventArgs e) { this.m_AccountReportType = (this.bsAccountReportTypes.get_Current() == null) ? AccountReportType.Null : ((AccountReportType) this.bsAccountReportTypes.get_Current()); if (this.m_AccountReportType != AccountReportType.Null) { new AccountReportTypeChangeForm(this.m_AccountReportType).ShowDialog(this); } }