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


C# ReceptionTaskBO.CheckOut方法代码示例

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


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

示例1: ChangeRoom_Case1

        private bool ChangeRoom_Case1()
        {
            ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
            BookingRooms aBookingRooms = new BookingRooms();
            BookingRoomsBO aBookingRoomsBO = new BookingRoomsBO();

               // Neu phong chi co 1 nguoi, va nguoi do chuyen di mat thi coi nhu checkout luon
            if (this.ListCustomerInRoomBeforeChange_Case1.Count == 1)
            {
                aReceptionTaskBO.CheckOut(this.IDBookingRoom_Case1, dtpFrom_Case1.DateTime);
            }
            else if (this.ListCustomerInRoomBeforeChange_Case1.Count > 1)
            {

                aBookingRooms = aBookingRoomsBO.Select_ByID(this.IDBookingRoom_Case1);

                BookingRoomsMembersBO aBookingRoomsMembersBO = new BookingRoomsMembersBO();

                List<BookingRoomsMembers> aListCustomer = aBookingRoomsMembersBO.Select_ByIDBookingRoom(this.IDBookingRoom_Case1);
                BookingRoomsMembers aBookingRoomsMembers = aListCustomer.Where(p => p.IDCustomer == int.Parse(lueListCustomerInRoom_Case1.EditValue.ToString())).ToList()[0];
                aListCustomer.Remove(aBookingRoomsMembers);

                aReceptionTaskBO.CheckOutFirstRoom(this.IDBookingRoom_Case1, dtpFrom_Case1.DateTime);

                aBookingRooms.CheckInActual = dtpFrom_Case1.DateTime;
                aBookingRooms.CheckInPlan = dtpFrom_Case1.DateTime;
                aBookingRooms.AddTimeEnd = null;
                aBookingRooms.AddTimeStart = null;
                aBookingRooms.TimeInUse = null;

                //BookingRooms Item = new BookingRooms();
                //Item.AcceptDate = aBookingRooms.AcceptDate;
                //Item.AdditionalColumn1 = aBookingRooms.AdditionalColumn1;
                //Item.AddTimeEnd = aBookingRooms.AddTimeEnd;

                //Item.AddTimeStart = aBookingRooms.AddTimeStart;
                //Item.BookingStatus = aBookingRooms.BookingStatus;
                //Item.CheckInActual = aBookingRooms.CheckInActual;

                //Item.CheckInPlan = aBookingRooms.CheckInPlan;
                //Item.CheckOutActual = aBookingRooms.CheckOutActual;
                //Item.CheckOutPlan = aBookingRooms.CheckOutPlan;

                //Item.CodeRoom = aBookingRooms.CodeRoom;
                //Item.Color = aBookingRooms.Color;
                //Item.Cost = aBookingRooms.Cost;

                //Item.CostPendingRoom = aBookingRooms.CostPendingRoom;
                //Item.CostRef_Rooms = aBookingRooms.CostRef_Rooms;
                //Item.Disable = aBookingRooms.Disable;

                //Item.EndTime = aBookingRooms.EndTime;

                //Item.IDBookingR = aBookingRooms.IDBookingR;

                //Item.IndexSubPayment = aBookingRooms.IndexSubPayment;
                //Item.InvoiceDate = aBookingRooms.InvoiceDate;
                //Item.InvoiceNumber = aBookingRooms.InvoiceNumber;

                //Item.IsAllDayEvent = aBookingRooms.IsAllDayEvent;
                //Item.IsEditable = aBookingRooms.IsEditable;
                //Item.IsRecurring = aBookingRooms.IsRecurring;

                //Item.Note = aBookingRooms.Note;
                //Item.PercentTax = aBookingRooms.PercentTax;
                //Item.PriceType = aBookingRooms.PriceType;

                //Item.StartTime = aBookingRooms.StartTime;
                //Item.Status = aBookingRooms.Status;
                //Item.TimeInUse = aBookingRooms.TimeInUse;
                //Item.Type = aBookingRooms.Type;

                int NewIDBookingRoom = aBookingRoomsBO.Insert(aBookingRooms);
                for (int i = 0; i < aListCustomer.Count; i++)
                {
                    aListCustomer[i].IDBookingRoom = NewIDBookingRoom;
                    aBookingRoomsMembersBO.Insert(aListCustomer[i]);
                }

            }
            return true;
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:82,代码来源:frmTsk_ChangeRoom_New2.cs


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