本文整理汇总了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);
}
}
示例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);
}
}
示例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();
}