本文整理匯總了C#中System.Data.DataTable.get_TableName方法的典型用法代碼示例。如果您正苦於以下問題:C# DataTable.get_TableName方法的具體用法?C# DataTable.get_TableName怎麽用?C# DataTable.get_TableName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Data.DataTable
的用法示例。
在下文中一共展示了DataTable.get_TableName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: 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);
}
示例2: MakeReport
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;
}
示例3: FrameDataTable
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());
}