本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.NewBookingRoom方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.NewBookingRoom方法的具体用法?C# ReceptionTaskBO.NewBookingRoom怎么用?C# ReceptionTaskBO.NewBookingRoom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BussinessLogic.ReceptionTaskBO
的用法示例。
在下文中一共展示了ReceptionTaskBO.NewBookingRoom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnBookingRoom_Click
//Hiennv tạo mới 25/11/2014 dat phong
private void btnBookingRoom_Click(object sender, EventArgs e)
{
try
{
if (this.CheckDataBeforeCheckIn() == true)
{
if (String.IsNullOrEmpty(txtNameCompany.Text))
{
this.aNewBookingEN.IDCompany = Convert.ToInt32(lueIDCompanies.EditValue);
this.aNewBookingEN.NameCompany = lueIDCompanies.Text;
}
else
{
this.aNewBookingEN.IDCompany = 0;
this.aNewBookingEN.NameCompany = txtNameCompany.Text;
}
if (String.IsNullOrEmpty(txtNameCustomer.Text))
{
this.aNewBookingEN.IDCustomer = Convert.ToInt32(lueIDCustomer.EditValue);
this.aNewBookingEN.NameCustomer = lueIDCustomer.Text;
}
else
{
this.aNewBookingEN.IDCustomer = 0;
this.aNewBookingEN.NameCustomer = txtNameCustomer.Text;
}
// ====================Ngoc bo sung=========================
if (String.IsNullOrEmpty(txtCustomerGroup.Text))
{
this.aNewBookingEN.Subject = txtCustomerGroup.Text;
}
// ====================Ngoc bo sung=========================
this.aNewBookingEN.CheckInActual = dtpFrom.DateTime;
this.aNewBookingEN.CheckOutActual = dtpTo.DateTime;
this.aNewBookingEN.CheckOutPlan = dtpTo.DateTime;
this.aNewBookingEN.CustomerType = this.customerType; // 1: Khach nha nuoc, 2: Khach doan, 3: khach le, 4: Khach vang lai
this.aNewBookingEN.BookingType = 2; // 1: Dat onlie, 2: Dat qua dien thoai, 3: Truc tiep, 4: Cong van
this.aNewBookingEN.IDSystemUser = CORE.CURRENTUSER.SystemUser.ID;
this.aNewBookingEN.PayMenthod = 1; //1:Tien mat
this.aNewBookingEN.ExchangeRate = 0;
this.aNewBookingEN.Status = 2; // 2 : da bookingRoom
this.aNewBookingEN.Type = -1;
this.aNewBookingEN.Disable = false;
ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
if (aReceptionTaskBO.NewBookingRoom(this.aNewBookingEN) == true)
{
if (this.afrmMain != null)
{
this.afrmMain.ReloadData();
this.Close();
}
MessageBox.Show("Thực hiện đặt phòng thành công .", "Thông báo ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Đặt phòng thất bại vui lòng thực hiện lại.", "Thông báo ", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
catch (Exception ex)
{
MessageBox.Show("frmTsk_BookingForRoom.btnBookingRoom_Click()\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}