本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.CheckInForRoomAlreadyBooking方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.CheckInForRoomAlreadyBooking方法的具体用法?C# ReceptionTaskBO.CheckInForRoomAlreadyBooking怎么用?C# ReceptionTaskBO.CheckInForRoomAlreadyBooking使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BussinessLogic.ReceptionTaskBO
的用法示例。
在下文中一共展示了ReceptionTaskBO.CheckInForRoomAlreadyBooking方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btReservation_Click
private void btReservation_Click(object sender, EventArgs e)
{
try
{
ReceptionTaskBO aCheckInActionBO = new ReceptionTaskBO();
aCheckInRoomBookingEN.BookingType = 3; // 1: Dat onlie, 2: Dat qua dien thoai, 3: Truc tiep, 4: Cong van
aCheckInRoomBookingEN.IDSystemUser = CORE.CURRENTUSER.SystemUser.ID; ;
aCheckInRoomBookingEN.Status = 3; // 3 : da checkin
if (aCheckInRoomBookingEN.BookingMoney > 0)
{
aCheckInRoomBookingEN.StatusPay = 2; //2:Tam ung
}
else
{
aCheckInRoomBookingEN.StatusPay = 1; //1:chua thanh toan
}
bool success = aCheckInActionBO.CheckInForRoomAlreadyBooking(aCheckInRoomBookingEN);
if (success == true)
{
MessageBox.Show("Đặt phòng thành công .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
if (this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.afrmTsk_ListBookingRs != null)
{
this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.afrmTsk_ListBookingRs.Reload();
if (this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.afrmTsk_ListBookingRs.afrmMain != null)
{
this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.afrmTsk_ListBookingRs.afrmMain.ReloadData();
}
}
if (this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.afrmMain != null)
{
this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.afrmMain.ReloadData();
}
this.Close();
this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.Close();
this.afrmTsk_CheckInGoverment_ForRoomBooking_Step2.afrmTsk_CheckInGoverment_ForRoomBooking_Step1.Close();
}
}
catch (Exception ex)
{
MessageBox.Show("frmTsk_CheckInGoverment_ForRoomBooking_Step3.btReservation_Click\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:48,代码来源:frmTsk_CheckInGoverment_ForRoomBooking_Step3.cs