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


C# ReceptionTaskBO.UpdateCheckIn方法代码示例

本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.UpdateCheckIn方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.UpdateCheckIn方法的具体用法?C# ReceptionTaskBO.UpdateCheckIn怎么用?C# ReceptionTaskBO.UpdateCheckIn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BussinessLogic.ReceptionTaskBO的用法示例。


在下文中一共展示了ReceptionTaskBO.UpdateCheckIn方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: simpleButton1_Click

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            try
            {
                if (ValidateData() == true)
                {
                    ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
                    //Add du lieu cho BookingH
                    BookingHs aBookingHs = new BookingHs();
                    aBookingHs.ID = IDBookingH;
                    aBookingHs.Subject = txtSubject.Text;
                    aBookingHs.CreatedDate = this.aBookingHs.CreatedDate;
                    aBookingHs.CustomerType = this.aBookingHs.CustomerType;
                    aBookingHs.BookingType = Convert.ToInt16(lueBookingType.EditValue);
                    aBookingHs.Note = txtNote.Text;
                    aBookingHs.IDGuest = Convert.ToInt16(lueGuest.EditValue);
                    if (txtBookingMoney.Text == "")
                    {
                        aBookingHs.BookingMoney = 0;
                        lueStatusPay.EditValue = CORE.CONSTANTS.SelectedStatusPay(1).ID;
                    }
                    else
                    {
                        aBookingHs.BookingMoney = Convert.ToDecimal(txtBookingMoney.Text);
                        lueStatusPay.EditValue = CORE.CONSTANTS.SelectedStatusPay(2).ID;
                    }
                    aBookingHs.StatusPay = Convert.ToInt16(lueStatusPay.EditValue);
                    aBookingHs.Status = Convert.ToInt16(lueBookingStatus.EditValue);

                    aBookingHs.PayMenthod = 1;
                    if (cbbType.Text == "Tiệc không thuộc phạm trù nhà bếp")
                    {
                        aBookingHs.Type = 1;
                    }
                    else
                    {
                        aBookingHs.Type = 2;
                    }
                    aBookingHs.Disable = false;
                    aBookingHs.Level = Convert.ToInt16(lueLevel.EditValue);
                    aBookingHs.Description = "";
                    aBookingHs.IDCustomer = Convert.ToInt16(lueCustomer.EditValue);
                    aBookingHs.IDCustomerGroup = Convert.ToInt16(lueCustomerGroup.EditValue);
                    aBookingHs.IDSystemUser = 1;// Để tạm

                    //Add du lieu cho BookingHall
                    List<BookingHalls> aListBookingHall = new List<BookingHalls>();
                    BookingHalls aTemp;
                    for (int i = 0; i < aListSelected.Count; i++)
                    {
                        aTemp = new BookingHalls();
                        aTemp.CodeHall = aListSelected[i].Code;
                        aTemp.Cost = aListSelected[i].Cost;
                        aTemp.PercentTax = 10;
                        aTemp.CostRef_Halls = aListSelected[i].CostRef;
                        aTemp.Date = dtpFrom.DateTime;
                        IFormatProvider theCultureInfo = new System.Globalization.CultureInfo("en-GB", true);
                        //DateTime Lunardate = DateTime.ParseExact(LunarDateExt.ToLunarDate(dtpFrom.DateTime, 7).ToString(), "dd/MM/yyyy", theCultureInfo);
                        //aTemp.LunarDate = Lunardate;
                        aTemp.BookingStatus = null;
                        aTemp.Unit = aListSelected[i].Unit;
                        aTemp.TableOrPerson = aListSelected[i].TableOrPerson;
                        aTemp.Note = "";
                        aTemp.Status = Convert.ToInt16(lueBookingStatus.EditValue);
                        aTemp.StartTime = !string.IsNullOrEmpty(tedStart.Time.ToString()) ? tedStart.Time.TimeOfDay : TimeSpan.Zero;
                        aTemp.EndTime = !string.IsNullOrEmpty(tedEnd.Time.ToString()) ? tedEnd.Time.TimeOfDay : TimeSpan.Zero;

                        aListBookingHall.Add(aTemp);
                    }
                    aReceptionTaskBO.UpdateCheckIn(aBookingHs, aListBookingHall);
                    if (afrmTsk_ManageBookingHs != null)
                    {
                        afrmTsk_ManageBookingHs.ReloadData();
                    }
                    else if (afrmMain_Halls != null)
                    {
                        afrmMain_Halls.ReloadData();
                    }
                    MessageBox.Show("Đặt hội trường thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("frmTsk_UpdBooking.CheckIn\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:87,代码来源:frmTsk_UpdBooking.cs


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