"景先生毕设|www.jxszl.com

C# AdminController类代码示例

2023-12-29 17:02编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中AdminController类的典型用法代码示例。如果您正苦于以下问题:C#AdminController类的具体用法?C#AdminController怎么用?C#AdminController使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:ReservationSummaryListView_ItemCommand protectedvoidReservationSummaryListView_ItemCommand(objectsender,ListViewCommandEventArgse) { //thisisthemthodwhichwillgathertheseatinginformationforreservationandpasstotheBLLforproceosessing if(e.CommandName.Equals("Seat")) { //execuionifthecodewukkveuyndertghecontroll MessageUserControl.TryRun(()=> { intreservationid=int.Parse(e.CommandArgument.ToString()); intwaiterid=int.Parse(WaiterDropDownList.SelectedValue); DateTimewhen=Mocker.MockDate.Add(Mocker.MockTime); ListselectedTables=newList(); //walkthrougthelistboxrowbyrow foreach(ListItemitem_tableidinReservationTableListBox.Items) { if(item_tableid.Selected) { selectedTables.Add(byte.Parse(item_tableid.Text.Replace("Table",""))); } } //withalldatagatherd,connettoyourlibrarycontroller,andsenddataforprocessing AdminControllersysmgr=newAdminController(); sysmgr.SeatCustomer(whenreservationid,selectedTables,waiterid); SeatingGridView.DataBind(); ReservationsRepeater.DataBind(); },"customerSeated","Reservationcustomerhasbeensaeated"); } }
原文链接:http://www.jxszl.com/biancheng/C/556487.html