Ejemplo n.º 1
0
        public static BookingRoomServiceDetail BookingRoomServiceDetail(System.Data.IDataReader reader)
        {
            BookingRoomServiceDetail result = null;

            if (null != reader && reader.Read())
            {
                result = new BookingRoomServiceDetail();
                PopulateBookingRoomServiceDetail(result, reader);
            }

            return result;
        }
Ejemplo n.º 2
0
 public static void PopulateBookingRoomServiceDetail(BookingRoomServiceDetail input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.BookingRoomServiceDetailId = Utilities.ToInt(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.BookingRoomServiceDetailId]);
     input.BookingRoomServiceId = Utilities.ToInt(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.BookingRoomServiceId]);
     input.Quantity = Utilities.ToNDecimal(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.Quantity]);
     input.DateStart = Utilities.ToNDateTime(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.DateStart]);
     input.DateEnd = Utilities.ToNDateTime(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.DateEnd]);
     input.Unit = Utilities.ToString(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.Unit]);
     input.Price = Utilities.ToNDecimal(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.Price]);
     input.TotalPrice = Utilities.ToNDecimal(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.TotalPrice]);
     input.Payment = Utilities.ToBool(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.Payment]);
     input.Description = Utilities.ToString(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.Description]);
     input.ServiceId = Utilities.ToInt(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.ServiceId]);
     input.Service = Utilities.ToString(reader[Mimosa.Apartment.Common.BookingRoomServiceDetail.ColumnNames.Service]);
 }
Ejemplo n.º 3
0
 void gvwServiceDetails_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
 {
     if (_bookingRoomServiceItem != null)
     {
         BookingRoomServiceDetail newItem = new BookingRoomServiceDetail();
         newItem.BookingRoomServiceId = this.BookingServiceId;
         newItem.Unit = _bookingRoomServiceItem.Unit;
         newItem.Price = _bookingRoomServiceItem.Price;
         newItem.Quantity = 0;
         newItem.TotalPrice = 0;
         newItem.IsChanged = true;
         e.NewObject = newItem;
     }
 }