本文整理匯總了C#中System.Windows.Documents.List.ToDataSet方法的典型用法代碼示例。如果您正苦於以下問題:C# List.ToDataSet方法的具體用法?C# List.ToDataSet怎麽用?C# List.ToDataSet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Documents.List
的用法示例。
在下文中一共展示了List.ToDataSet方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: CashDeskManagerAllDetails
public CashDeskManagerAllDetails(List<rsp_CDM_GetCashierTransactionsDetails_New> lstTickets, DateTime startDate, DateTime endDate, string FooterText, int userNo, int RouteNo)
{
try
{
InitializeComponent();
lstCashierTransactionsDetails = lstTickets.ToList();
dtTickets = lstTickets.ToDataSet<rsp_CDM_GetCashierTransactionsDetails_New>("DetailsView");
if (!Security.SecurityHelper.HasAccess("BMC.Presentation.CashDeskManager.UserControls.CashDeskManagerAllDetails.lvViewAll.TicketValue"))
{
lstTickets.ForEach((x) => { if (x.Ticket.Trim().Length > 8) x.Ticket = x.Ticket.Trim().Remove(x.Ticket.Trim().Length - 4, 4) + "****"; });
}
this.DataContext = lstTickets;
this.StartDate = startDate;
this.EndDate = endDate;
this.sFooterText = FooterText;
this.user = userNo;
this.iRoute_No = RouteNo;
objCashDeskManager = CashDeskManagerBusinessObject.CreateInstance();
}
catch (Exception ex)
{
ExceptionManager.Publish(ex);
}
}