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


C# ReceptionTaskBO.GetListBookingHallsSelectedMenus方法代码示例

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


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

示例1: LoadListBookingHallSelectedMenu

 public void LoadListBookingHallSelectedMenu()
 {
     try
     {
         ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
         BookingHallsBO aBookingHallsBO = new BookingHallsBO();
         List<BookingHallsEN> aListTemp = new List<BookingHallsEN>();
         //danh sach tiec đã chọn thực đơn
         aListTemp.Clear();
         aListTemp = aReceptionTaskBO.GetListBookingHallsSelectedMenus(dtpFrom.DateTime.Date, dtpTo.DateTime.Date); // Đã chốt thực đơn
         dgvBookingHalls_Selected.DataSource = this.GetListBookingHalls(aListTemp);
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_CheckMenus.LoadListBookingHallAlreadyComplete\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:17,代码来源:frmTsk_CheckMenus.cs

示例2: LoadDataBookingHalls

        //hiennv
        public bool LoadDataBookingHalls()
        {
            try
            {
                if (dtpFrom.DateTime.Date > dtpTo.DateTime.Date)
                {
                    dtpFrom.Focus();
                    MessageBox.Show("Vui lòng nhập ngày bắt đầu tìm kiếm phải nhỏ hơn hoặc bằng ngày kết thúc tìm kiếm.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return true;
                }
                else
                {
                    ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
                    BookingHallsBO aBookingHallsBO = new BookingHallsBO();
                    List<BookingHallsEN> aListTemp = new List<BookingHallsEN>();
                    List<BookingHallsEN> aListBookingHallsEN = new List<BookingHallsEN>();

                    int choose = cboChoose.SelectedIndex;
                    int level = Convert.ToInt32(lueBookingHs_Level.EditValue);

                    if (choose == 0) // Tất cả hội trường
                    {
                        colDetail.Visible = true;
                        colCreateMenu.Visible = false;
                        colNameGuest.Visible = false;
                        gridColumn1.Visible = false;

                        aListTemp = aReceptionTaskBO.GetListBookingHallsIsUse_ByBookingHallsDate(dtpFrom.DateTime.Date, dtpTo.DateTime.Date);
                    }
                    else if (choose == 1) // Tiệc VIP
                    {
                        colDetail.Visible = true;
                        colCreateMenu.Visible = false;
                        colNameGuest.Visible = false;
                        gridColumn1.Visible = false;
                        aListTemp = aReceptionTaskBO.GetListBookingHalls_ByBookingHallsDate_ByBookingHsLevel(dtpFrom.DateTime, dtpTo.DateTime, level);
                    }
                    else if (choose == 2) // Tiệc chưa accept
                    {
                        colDetail.Visible = true;
                        colCreateMenu.Visible = true;
                        colNameGuest.Visible = false;
                        gridColumn1.Visible = false;
                        aListTemp = aReceptionTaskBO.GetListBookingHalls_ByBookingHallDate_ByBookingHallStatus(dtpFrom.DateTime, dtpTo.DateTime, 1); // bep chua accept
                    }
                    //else if (choose == 3) // Tiệc đã accept nhưng chưa có thực đơn
                    //{
                    //    colDetail.Visible = true;
                    //    colCreateMenu.Visible = true;
                    //    colNameGuest.Visible = false;
                    //    gridColumn1.Visible = false;
                    //    aListTemp = aReceptionTaskBO.GetListBookingHallsAcceptedButHaveNotMenus(dtpFrom.DateTime, dtpTo.DateTime); // bep da accept
                    //}
                    else if (choose == 4)// Bếp đã lên thực đơn
                    {
                        colDetail.Visible = true;
                        colCreateMenu.Visible = false;
                        colNameGuest.Visible = false;
                        gridColumn1.Visible = true;
                        aListTemp = aReceptionTaskBO.GetListBookingHallsHaveMenus(dtpFrom.DateTime, dtpTo.DateTime);
                    }
                    else if (choose == 5) //Đã lựa chọn thực đơn
                    {
                        colDetail.Visible = true;
                        colCreateMenu.Visible = false;
                        colNameGuest.Visible = false;
                        gridColumn1.Visible = false;
                        aListTemp = aReceptionTaskBO.GetListBookingHallsSelectedMenus(dtpFrom.DateTime, dtpTo.DateTime);
                    }

                    else if (choose == 6) // tim kiem tiec theo khach moi
                    {
                        colDetail.Visible = true;
                        colCreateMenu.Visible = false;
                        colNameGuest.VisibleIndex = 1;
                        colNameGuest.Visible = true;
                        gridColumn1.Visible = false;

                        aListTemp = aReceptionTaskBO.GetListBookingHalls_ByBookingHallsDate_ByNameGuest(dtpFrom.DateTime, dtpTo.DateTime,txtNameGuest.Text);
                    }
                    BookingHallsEN aBookingHallsEN;
                    foreach (BookingHallsEN item in aListTemp)
                    {
                        aBookingHallsEN = new BookingHallsEN();
                        aBookingHallsEN.IDBookingH = item.IDBookingH;
                        aBookingHallsEN.DisplayCustomerType = CORE.CONSTANTS.SelectedCustomerType(Convert.ToInt32(item.CustomerTypeBookingH)).Name;
                        aBookingHallsEN.IDBookingHall = item.IDBookingHall;
                        aBookingHallsEN.BookingStatusBookingHall = item.BookingStatusBookingHall;
                        aBookingHallsEN.NameCustomer = item.NameCustomer;
                        aBookingHallsEN.NameCustomerGroup = item.NameCustomerGroup;
                        aBookingHallsEN.DateBookingHall = item.DateBookingHall;
                        aBookingHallsEN.LunarDateBookingHall = item.LunarDateBookingHall;
                        aBookingHallsEN.StartTimeBookingHall = item.StartTimeBookingHall;
                        aBookingHallsEN.EndTimeBookingHall = item.EndTimeBookingHall;
                        aBookingHallsEN.BookingTypeBookingH = item.BookingTypeBookingH;

                        aBookingHallsEN.StatusPayBookingH = item.StatusPayBookingH;
                        aBookingHallsEN.NoteBookingH = item.NoteBookingH;
                        aBookingHallsEN.DisplayBookingType = CORE.CONSTANTS.SelectedBookingType(Convert.ToInt32(item.BookingTypeBookingH)).Name;
//.........这里部分代码省略.........
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:101,代码来源:frmTsk_SearchBookingHalls.cs


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