本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.GetListRooms_ByIDBookingR方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.GetListRooms_ByIDBookingR方法的具体用法?C# ReceptionTaskBO.GetListRooms_ByIDBookingR怎么用?C# ReceptionTaskBO.GetListRooms_ByIDBookingR使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BussinessLogic.ReceptionTaskBO
的用法示例。
在下文中一共展示了ReceptionTaskBO.GetListRooms_ByIDBookingR方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetListSelectRooms
//hiennv
public void GetListSelectRooms(int IDBookingR)
{
try
{
ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
RoomMemberEN aRoomMemberEN;
List<RoomsEN> aListTempRooms = aReceptionTaskBO.GetListRooms_ByIDBookingR(IDBookingR);
foreach (RoomsEN aRooms in aListTempRooms)
{
aRoomMemberEN = new RoomMemberEN();
aRoomMemberEN.IDBookingRooms = aRooms.IDBookingRooms;
aRoomMemberEN.RoomSku = aRooms.Sku;
aRoomMemberEN.RoomCode = aRooms.Code;
aRoomMemberEN.RoomType = Convert.ToInt32(aRooms.Type);
aRoomMemberEN.RoomBed1 = Convert.ToInt32(aRooms.Bed1);
aRoomMemberEN.RoomBed2 = Convert.ToInt32(aRooms.Bed2);
aRoomMemberEN.RoomCostRef = Convert.ToDecimal(aRooms.CostRef);
aRoomMemberEN.RoomTypeDisplay = CORE.CONSTANTS.SelectedRoomsType(Convert.ToInt32(aRooms.Type)).Name;
this.aCheckInRoomBookingEN.aListRoomMembers.Add(aRoomMemberEN);
}
dgvSelectedRooms.DataSource = this.aCheckInRoomBookingEN.aListRoomMembers;
dgvSelectedRooms.RefreshDataSource();
}
catch (Exception ex)
{
MessageBox.Show("frmTsk_CheckInGoverment_ForRoomBooking_Step1.GetListSelectRooms\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:29,代码来源:frmTsk_CheckInGoverment_ForRoomBooking_Step1.cs