本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.NewBookHall方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.NewBookHall方法的具体用法?C# ReceptionTaskBO.NewBookHall怎么用?C# ReceptionTaskBO.NewBookHall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BussinessLogic.ReceptionTaskBO
的用法示例。
在下文中一共展示了ReceptionTaskBO.NewBookHall方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnBook_Click
//.........这里部分代码省略.........
}
else
{
this.IDCompany = Convert.ToInt32(lueCompany.EditValue);
if (lueCustomer.Text == "")
{
if (txtSubject.Text == "")
{
CustomerGroupName = "[" + txtCompanyName.Text + "][" + DateTime.Now.ToShortDateString() + "]" + "[" + txtCustomerName.Text + "]";
}
else
{
CustomerGroupName = txtSubject.Text;
}
}
else
{
if (txtSubject.Text == "")
{
CustomerGroupName = "[" + txtCompanyName.Text + "][" + DateTime.Now.ToShortDateString() + "]" + "[" + lueCustomer.Text + "]";
}
else
{
CustomerGroupName = txtSubject.Text;
}
}
this.IDCustomerGroup = this.aCustomerGroupsBO.AutoInsertCustomerGroup(CustomerGroupName, Convert.ToInt32(lueCompany.EditValue));
}
if (Convert.ToInt32(lueCustomer.EditValue) == 0)
{
this.IDCustomer = this.aCustomersBO.AutoInsertCustomer(txtCustomerName.Text, this.IDCustomerGroup, txtPhoneNumber.Text, DateTime.Now);
}
else
{
CustomerGroups_CustomersBO aCustomerGroups_CustomersBO = new CustomerGroups_CustomersBO();
this.IDCustomer = Convert.ToInt32(lueCustomer.EditValue);
aCustomerGroups_CustomersBO.AutoInsertCustomerToGroup(IDCustomer, this.IDCustomerGroup, dtpFrom.DateTime);
}
this.aNewBookingHEN.Disable = false;
this.aNewBookingHEN.IDCustomer = this.IDCustomer;
this.aNewBookingHEN.IDSystemUser = CORE.CURRENTUSER.SystemUser.ID;
this.aNewBookingHEN.IDCustomerGroup = this.IDCustomerGroup;
//===============================================================================
// Ngoc edit. All BookingR and BookingH join together
// Tao them 1 bookingR neu chua co
//===============================================================================
if (this.IDBookingR == 0)
{
BookingRsBO aBookingRsBO = new BookingRsBO();
BookingRs aBookingRs = new BookingRs();
aBookingRs.CreatedDate = this.aNewBookingHEN.CreatedDate;
aBookingRs.ID = 0;
aBookingRs.CustomerType = this.aNewBookingHEN.CustomerType;
aBookingRs.IDCustomer = this.aNewBookingHEN.IDCustomer;
aBookingRs.IDCustomerGroup = this.aNewBookingHEN.IDCustomerGroup;
aBookingRs.DatePay = Convert.ToDateTime("01/01/1900");
aBookingRs.DateEdit = Convert.ToDateTime("01/01/1900");
aBookingRs.IDSystemUser = this.aNewBookingHEN.IDSystemUser;
aBookingRs.Type = 0;
aBookingRs.Status = 0;
aBookingRs.Disable = true;
aBookingRs.Level = -1;
this.IDBookingR = aBookingRsBO.Insert(aBookingRs);
}
//===============================================================================
this.IDBookingH = aReceptionTaskBO.NewBookHall(this.aNewBookingHEN);
if (this.IDBookingR != 0)
{
BookingRs_BookingHsBO aBookingRs_BookingHsBO = new BookingRs_BookingHsBO();
BookingRs_BookingHs aBookingRs_BookingHs = new BookingRs_BookingHs();
aBookingRs_BookingHs.IDBookingR = this.IDBookingR;
aBookingRs_BookingHs.IDBookingH = this.IDBookingH;
aBookingRs_BookingHs.Type = String.Empty;
aBookingRs_BookingHs.Status = String.Empty;
aBookingRs_BookingHs.Disable = false;
aBookingRs_BookingHs.Extension1 = String.Empty;
aBookingRs_BookingHs.Extension2 = String.Empty;
aBookingRs_BookingHs.Extension3 = String.Empty;
aBookingRs_BookingHsBO.Insert(aBookingRs_BookingHs);
}
MessageBox.Show("Đặt hội trường thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
if (afrmMain_Halls != null)
{
this.afrmMain_Halls.Reload();
}
if (afrmTsk_Payment_Step2 != null)
{
this.afrmTsk_Payment_Step2.Reload();
}
this.Close();
}
}
catch (Exception ex)
{
MessageBox.Show("frmTsk_BookingHall_Customer_New.btnBook_Click\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}