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); }
protected override StiReport MakeReport(System.Data.DataSet ds) { System.DateTime dateBeg = base.DateBeg; System.DateTime time6 = new System.DateTime(base.DateEnd.get_Year(), base.DateEnd.get_Month(), base.DateEnd.get_Day()); System.DateTime time2 = time6.AddDays((double) 1.0).AddMilliseconds((double) -1.0); StiReport report = new StiReport { AutoLocalizeReportOnRun = true }; report.Load(this.m_OnlyByProvider ? Resources.ReceiptTerminalReportOnlyByProvider : Resources.ReceiptTerminalReportByProvider); report.Compile(); report["DateBegin"] = dateBeg; report["DateEnd"] = time2; report.RegData("dataRequests", (System.Data.DataTable) this.m_DtRequests); System.Data.DataTable table = new System.Data.DataTable("captionTable"); table.Columns.Add("caption"); table.Rows.Add((object[]) new object[] { this.m_Caption }); report.RegData(table.get_TableName(), (System.Data.DataTable) table); return report; }
internal FrameDataTable(DataTable table) : base(table.get_TableName()) { if (table.get_CaseSensitive() != table.get_DataSet().get_CaseSensitive()) { base.set_CaseSensitive(table.get_CaseSensitive()); } if (table.get_Locale().ToString() != table.get_DataSet().get_Locale().ToString()) { base.set_Locale(table.get_Locale()); } if (table.get_Namespace() != table.get_DataSet().get_Namespace()) { base.set_Namespace(table.get_Namespace()); } base.set_Prefix(table.get_Prefix()); base.set_MinimumCapacity(table.get_MinimumCapacity()); base.set_DisplayExpression(table.get_DisplayExpression()); }