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


C# ReceptionTaskBO.NewBookingRoom方法代码示例

本文整理汇总了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);
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:73,代码来源:frmTsk_BookingForRoom.cs


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