private void frmActionGroupTour_Load(object sender, EventArgs e) { _objectBook = bookService.GetByID(_ObjID); dtpStartDate.Value = _objectBook.StartDate.Value; cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; cbbTourID.DataSource = tService.GetListCobobox(); cbbTourID.ValueMember = "TourID"; cbbTourID.DisplayMember = "Name"; cbbPartnerID.DataSource = pnService.GetList(); cbbPartnerID.ValueMember = "PartnerID"; cbbPartnerID.DisplayMember = "Address"; Tour t = tService.GetByID((int)_objectBook.TourID); cbbGroupTourID.SelectedValue = t.GroupID; cbbTourID.SelectedValue = _objectBook.TourID; cbbPartnerID.SelectedValue = _objectBook.PartnerID; numPax.Value = (decimal)_objectBook.Pax.Value; txtSaleBook.Text = _objectBook.StaffID; txtCustomer.Text = _objectBook.CustomName; txtPickup.Text = _objectBook.PickUp == "" ? cbbPartnerID.SelectedText : _objectBook.PickUp; txtRoom.Text = _objectBook.Room; txtPriceRe.Text = _objectBook.PriceReceive.ToString(); txtPriceSa.Text = _objectBook.PriceSale.ToString(); txtPartnerPrice.Text = _objectBook.PartnerPrice.ToString(); txtPromotionPrice.Text = _objectBook.PromotionMoney.ToString(); lblTotalBook.Text = _objectBook.Total.ToString(); parseJsonServiceType(_objectBook.ServiceType); ckIsPayment.Checked = _objectBook.IsPayment.Value; ckBookOK.Checked = _objectBook.IsBooked.Value; }