当前位置: 首页>>代码示例>>C#>>正文


C# ReceptionTaskBO.GetListAvailableRooms方法代码示例

本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.GetListAvailableRooms方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.GetListAvailableRooms方法的具体用法?C# ReceptionTaskBO.GetListAvailableRooms怎么用?C# ReceptionTaskBO.GetListAvailableRooms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BussinessLogic.ReceptionTaskBO的用法示例。


在下文中一共展示了ReceptionTaskBO.GetListAvailableRooms方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadListAvailableRooms

 //Hiennv    Tạo mới     25/11/2014   Load ra toàn bộ danh sách phòng còn trống trong khoảng thời gian tìm kiếm
 public List<NewRoomMemberEN> LoadListAvailableRooms(DateTime fromDate, DateTime toDate)
 {
     try
     {
         ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
         if (this.CheckData() == true)
         {
             aNewBookingEN.aListNewRoomMembers.Clear();
             List<Rooms> aListRooms = aReceptionTaskBO.GetListAvailableRooms(fromDate, toDate, 1).OrderBy(r => r.Sku).ToList(); // 1=IDLang
             NewRoomMemberEN aNewRoomMemberEN;
             for (int i = 0; i < aListRooms.Count; i++)
             {
                 aNewRoomMemberEN = new NewRoomMemberEN();
                 aNewRoomMemberEN.IDBookingRooms = aListRooms[i].ID;
                 aNewRoomMemberEN.RoomCode = aListRooms[i].Code;
                 aNewRoomMemberEN.RoomSku = aListRooms[i].Sku;
                 aNewRoomMemberEN.RoomBed1 = aListRooms[i].Bed1.GetValueOrDefault();
                 aNewRoomMemberEN.RoomBed2 = aListRooms[i].Bed2.GetValueOrDefault();
                 aNewRoomMemberEN.RoomCostRef = aListRooms[i].CostRef.GetValueOrDefault();
                 aNewRoomMemberEN.RoomTypeDisplay = CORE.CONSTANTS.SelectedRoomsType(Convert.ToInt32(aListRooms[i].Type)).Name;
                 this.aListAvaiableRooms.Add(aNewRoomMemberEN);
             }
         }
         return this.aListAvaiableRooms;
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_BookingForRoom.LoadListAvailableRooms\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return null;
     }
 }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:32,代码来源:frmTsk_BookingForRoom.cs

示例2: LoadListAvailableRooms

        public void LoadListAvailableRooms(DateTime fromDate, DateTime toDate)
        {
            try
            {
                ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();

                if (this.CheckData() == true)
                {
                    this.aCheckInEN.aListRoomMembers.Clear();
                    dgvSelectedRooms.DataSource = null;
                    aListTemp = aReceptionTaskBO.GetListAvailableRooms(fromDate, toDate, 1).OrderBy(r => r.Sku).ToList(); // 1=IDLang
                    RoomsEN aRoomEN;
                    for (int i = 0; i < aListTemp.Count; i++)
                    {
                        aRoomEN = new RoomsEN();
                        aRoomEN.ID = aListTemp[i].ID;
                        aRoomEN.Code = aListTemp[i].Code;
                        aRoomEN.Sku = aListTemp[i].Sku;
                        aRoomEN.Image = aListTemp[i].Image;
                        aRoomEN.Bed1 = aListTemp[i].Bed1;
                        aRoomEN.Bed2 = aListTemp[i].Bed2;
                        aRoomEN.CostRef = aListTemp[i].CostRef;
                        aRoomEN.CostUnit = aListTemp[i].CostUnit;
                        aRoomEN.Info = aListTemp[i].Info;
                        aRoomEN.Intro = aListTemp[i].Intro;
                        aRoomEN.Disable = aListTemp[i].Disable;
                        aRoomEN.IDLang = aListTemp[i].IDLang;
                        aRoomEN.TypeDisplay = CORE.CONSTANTS.SelectedRoomsType(Convert.ToInt32(aListTemp[i].Type)).Name;

                        this.aListAvaiableRooms.Add(aRoomEN);
                    }

                    dgvAvailableRooms.DataSource = aListAvaiableRooms;
                    dgvAvailableRooms.RefreshDataSource();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("frmTsk_CheckIn_Customer_Step1.LoadListAvailableRooms\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:41,代码来源:frmTsk_CheckIn_Customer_Step1.cs

示例3: GetAvaiableRoom

        private List<Rooms> GetAvaiableRoom()
        {
            ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
            BookingRsBO aBookingRsBO = new BookingRsBO();

            List<Rooms> aListAvaiableRooms = aReceptionTaskBO.GetListAvailableRooms(DateTime.Parse(dtpCheckIn.Text.ToString()), DateTime.Parse(dtpCheckOut.Text.ToString()), 1);
            List<Rooms> aListRoomInBookingR = aBookingRsBO.SelectListRooms_ByIDBookingR(this.aBookingRoom.IDBookingR, 1);

            return aListRoomInBookingR.Union(aListAvaiableRooms).ToList(); // Nối và loại trừ trùng lặp
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:10,代码来源:frmTsk_EditBooking.cs


注:本文中的BussinessLogic.ReceptionTaskBO.GetListAvailableRooms方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。