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


C# ReceptionTaskBO.GetDetailBookingHalls_ByIDBookingHall方法代码示例

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


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

示例1: frmRpt_DetailBookingHalls

        //hiennv
        public frmRpt_DetailBookingHalls(int IDBookingHall)
        {
            InitializeComponent();
            this.IDBookingHall = IDBookingHall;
            try
            {
                ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
                BookingHallDetailEN aBookingHallDetailEN = aReceptionTaskBO.GetDetailBookingHalls_ByIDBookingHall(this.IDBookingHall);
                celNameCustomer.Text = aBookingHallDetailEN.NameCustomer;
                celNameCustomerGoup.Text = aBookingHallDetailEN.NameCustomerGroup;
                celSkuHall.Text = aBookingHallDetailEN.HallSku;
                celLunarDateBookingHall.Text = String.Format("{0:dd/MM/yyyy}", aBookingHallDetailEN.LunarDate);
                celDateBookingHall.Text = String.Format("{0:dd/MM/yyyy}", aBookingHallDetailEN.Date);

                lblStartTime.Text = String.Format(@"{0:hh\:mm}",aBookingHallDetailEN.StartTime);
                lblEndTime.Text = String.Format(@"{0:hh\:mm}", aBookingHallDetailEN.EndTime);

                lblNameMenu.Text = aBookingHallDetailEN.NameMenu;

                celCustomerTypeBookingH.Text = CORE.CONSTANTS.SelectedCustomerType(Convert.ToInt32(aBookingHallDetailEN.CustomerType)).Name;
                celLevelBookingH.Text = CORE.CONSTANTS.SelectedLevel(Convert.ToInt32(aBookingHallDetailEN.LevelBookingH)).Name;
                celBookingTypeBookingH.Text = CORE.CONSTANTS.SelectedBookingType(Convert.ToInt32(aBookingHallDetailEN.BookingTypeBookingH)).Name;
                celStatusBookingHall.Text = CORE.CONSTANTS.SelectedBookingHallStatus(Convert.ToInt32(aBookingHallDetailEN.Status)).Name;
                celStatusPayBookingH.Text = CORE.CONSTANTS.SelectedStatusPay(Convert.ToInt32(aBookingHallDetailEN.StatusPayBookingH)).Name;

                FoodsBO aFoodsBO = new FoodsBO();
                List<Foods> aListFoods = new List<Foods>();
                foreach (Foods item in aBookingHallDetailEN.aListFoods)
                {
                    Foods aFoods = aFoodsBO.Select_ByID(item.ID);
                    if (aFoods.Image1 != null)
                    {
                        if (aFoods.Image1.Length <= 0)
                        {
                           Image image = SaleManager.Properties.Resources.logo_nkcp_small;
                            image = image.GetThumbnailImage(70,70, null, IntPtr.Zero);
                            Byte[] aImageByte = this.ConvertImageToByteArray(image);
                            aFoods.Image1 = aImageByte;
                        }
                    }
                    else
                    {
                        Image image = SaleManager.Properties.Resources.logo_nkcp_small;
                        image = image.GetThumbnailImage(70,70, null, IntPtr.Zero);
                        Byte[] aImageByte = this.ConvertImageToByteArray(image);
                        aFoods.Image1 = aImageByte;
                    }

                    aListFoods.Add(aFoods);
                }

                //danh sach cac mon an co trong thuc don
                this.DetailReportMenu.DataSource =aListFoods;
                picImage1Food.DataBindings.Add("Image", this.DetailReportMenu.DataSource, "Image1");
                colNameFood.DataBindings.Add("Text", this.DetailReportMenu.DataSource, "Name");
                colName1Food.DataBindings.Add("Text", this.DetailReportMenu.DataSource, "Name1");
                colName2Food.DataBindings.Add("Text", this.DetailReportMenu.DataSource, "Name2");
                colName3Food.DataBindings.Add("Text", this.DetailReportMenu.DataSource, "Name3");

                //danh dach cac dich vu su dung
                this.DetailReportServiceInUse.DataSource = aBookingHallDetailEN.aListServicesHallsEN;
                colNameServices.DataBindings.Add("Text", this.DetailReportServiceInUse.DataSource,"NameService");
                colDate.DataBindings.Add("Text", this.DetailReportServiceInUse.DataSource, "Date","{0:dd/MM/yyyy}");
                colCostRef_Services.DataBindings.Add("Text", this.DetailReportServiceInUse.DataSource, "CostRef_Services","{0:0,0}");
                colPercentTax.DataBindings.Add("Text", this.DetailReportServiceInUse.DataSource, "PercentTax");
                colQuantity.DataBindings.Add("Text", this.DetailReportServiceInUse.DataSource, "Quantity","{0:0,0}");

            }
            catch (Exception ex)
            {
                MessageBox.Show("frmRpt_DetailBookingHalls.frmRpt_DetailBookingHalls\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:74,代码来源:frmRpt_DetailBookingHalls.cs

示例2: frmLst_DetailBookingHalls_Load

        private void frmLst_DetailBookingHalls_Load(object sender, EventArgs e)
        {
            try
            {
                ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
                BookingHallDetailEN aBookingHallDetailEN = aReceptionTaskBO.GetDetailBookingHalls_ByIDBookingHall(this.IDBookingHall);
                lblNameCustomer.Text = aBookingHallDetailEN.NameCustomer;
                lblCustomerGroup.Text = aBookingHallDetailEN.NameCustomerGroup;
                lblSku.Text = aBookingHallDetailEN.SkuHall;
                lblLunarDate.Text = String.Format("{0:dd/MM/yyyy}", aBookingHallDetailEN.LunarDateBookingHall);
                lblDate.Text = String.Format("{0:dd/MM/yyyy}", aBookingHallDetailEN.DateBookingHall);

                lblStartTime.Text = String.Format(@"{0:hh\:mm}", aBookingHallDetailEN.StartTimeBookingHall);
                lblEndTime.Text = String.Format(@"{0:hh\:mm}", aBookingHallDetailEN.EndTimeBookingHall);

                lblNameMenu.Text = aBookingHallDetailEN.NameMenu;

                lblCustomerType.Text = CORE.CONSTANTS.SelectedCustomerType(Convert.ToInt32(aBookingHallDetailEN.CustomerTypeBookingH)).Name;
                lblLevel.Text = CORE.CONSTANTS.SelectedLevel(Convert.ToInt32(aBookingHallDetailEN.LevelBookingH)).Name;
                lblBookingType.Text = CORE.CONSTANTS.SelectedBookingType(Convert.ToInt32(aBookingHallDetailEN.BookingTypeBookingH)).Name;
                lblStatusBookingHall.Text = CORE.CONSTANTS.SelectedBookingHallStatus(Convert.ToInt32(aBookingHallDetailEN.StatusBookingHall)).Name;
                lblStatusPay.Text = CORE.CONSTANTS.SelectedStatusPay(Convert.ToInt32(aBookingHallDetailEN.StatusPayBookingH)).Name;

                LoadMenus();
                dgvServices.DataSource = aBookingHallDetailEN.aListServicesHallsEN;
                dgvServices.RefreshDataSource();
            }
            catch (Exception ex)
            {
                MessageBox.Show("frmLst_DetailBookingHalls.frmLst_DetailBookingHalls_Load\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:32,代码来源:frmLst_DetailBookingHalls.cs

示例3: frmTsk_DetailMenus_Load

        private void frmTsk_DetailMenus_Load(object sender, EventArgs e)
        {
            ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
            BookingHallDetailEN aBookingHallDetailEN = aReceptionTaskBO.GetDetailBookingHalls_ByIDBookingHall(this.IDBookingHall);
            lblNameCustomer.Text = aBookingHallDetailEN.NameCustomer;
            lblCustomerGroup.Text = aBookingHallDetailEN.NameCustomerGroup;
            lblSku.Text = aBookingHallDetailEN.HallSku;
            lblLunarDate.Text = String.Format("{0:dd/MM/yyyy}", aBookingHallDetailEN.LunarDate);
            lblDate.Text = String.Format("{0:dd/MM/yyyy}", aBookingHallDetailEN.Date);

            lblStartTime.Text = String.Format(@"{0:hh\:mm}", aBookingHallDetailEN.StartTime);
            lblEndTime.Text = String.Format(@"{0:hh\:mm}", aBookingHallDetailEN.EndTime);

            lblNameMenu.Text = aBookingHallDetailEN.NameMenu;

            lblCustomerType.Text = CORE.CONSTANTS.SelectedCustomerType(Convert.ToInt32(aBookingHallDetailEN.CustomerType)).Name;
            lblLevel.Text = CORE.CONSTANTS.SelectedLevel(Convert.ToInt32(aBookingHallDetailEN.LevelBookingH)).Name;
            lblBookingType.Text = CORE.CONSTANTS.SelectedBookingType(Convert.ToInt32(aBookingHallDetailEN.BookingTypeBookingH)).Name;
            lblStatusBookingHall.Text = CORE.CONSTANTS.SelectedBookingHallStatus(Convert.ToInt32(aBookingHallDetailEN.Status)).Name;
            lblStatusPay.Text = CORE.CONSTANTS.SelectedStatusPay(Convert.ToInt32(aBookingHallDetailEN.StatusPayBookingH)).Name;

            LoadMenus();
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:23,代码来源:frmTsk_DetailMenus.cs


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