private void UCGroupTour_Load(object sender, EventArgs e) { tempBCService = new TempBookCarService(); dataGridViewGroupTour.AutoGenerateColumns = false; cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; dtpStartDate.Value = DateTime.Now.AddDays(1); rdCar05.Checked = true; _tableTemp.Columns.Add("ID", typeof(int)); _tableTemp.Columns.Add("Pax", typeof(float)); _tableTemp.Columns.Add("PaxChild", typeof(float)); _tableTemp.Columns.Add("PickUp"); _tableTemp.Columns.Add("Room"); _tableTemp.Columns.Add("ServiceName"); _tableTemp.Columns.Add("PartnerPrice", typeof(int)); _tableTemp.Columns.Add("Note"); _tableTemp.Columns.Add("Added", typeof(bool)); _tableTemp.Columns.Add("Car1", typeof(bool)); _tableTemp.Columns.Add("Car2", typeof(bool)); _tableTemp.Columns.Add("Car3", typeof(bool)); _tableTemp.Columns.Add("Car4", typeof(bool)); _tableTemp.Columns.Add("Car5", typeof(bool)); _tableTemp.Columns.Add("Car6", typeof(bool)); _tableTemp.Columns.Add("Car7", typeof(bool)); _tableTemp.Columns.Add("Car8", typeof(bool)); _tableTemp.Columns.Add("Car9", typeof(bool)); _tableTemp.Columns.Add("Car10", typeof(bool)); listControl = new List <Control> { lblTotalXe1, lblTotalXe2, lblTotalXe3, lblTotalXe4, lblTotalXe5, lblTotalXe6, lblTotalXe7, lblTotalXe8, lblTotalXe9, lblTotalXe10 }; }
private void frmBoSungDoiTac_Load(object sender, EventArgs e) { bookService = new BookService(); cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; }
private void frmActionGroupTour_Load(object sender, EventArgs e) { txtName.Focus(); cbbGroupTour.DataSource = grTourService.GetListCombobox(); cbbGroupTour.ValueMember = "GroupID"; cbbGroupTour.DisplayMember = "Name"; if (_action == -1) { this.Text = "Thêm mới tour"; } else { this.Text = "Cập nhật tour"; } if (_objectData != null) { txtName.Text = _objectData.Name; txtGiaBan.Text = _objectData.PriceSale.ToString(); txtPriceChild.Text = _objectData.PriceSaleChild.ToString(); txtPriceVTQ.Text = _objectData.PriceVTQ.ToString(); ckEnabled.Checked = _objectData.Enable == true ? true : false;; cbbGroupTour.SelectedValue = _objectData.GroupID; txtMinPax.Text = _objectData.MinPax.ToString(); txtMaxPax.Text = _objectData.MaxPax.ToString(); } }
private void frmActionGroupTour_Load(object sender, EventArgs e) { txtPriceRe.Focus(); cbbGroupPartner.DataSource = groupService.GetList(); cbbGroupPartner.ValueMember = "GroupPartnerID"; cbbGroupPartner.DisplayMember = "GroupName"; cbbGroupTour.DataSource = grTourService.GetListCombobox(); cbbGroupTour.ValueMember = "GroupID"; cbbGroupTour.DisplayMember = "Name"; if (_action == -1) { this.Text = "Thêm mới giá nhận theo tour"; } else { this.Text = "Cập nhật giá nhận theo tour"; } if (_objectData != null) { txtPriceRe.Text = _objectData.PriceRe.ToString(); txtPriceReChild.Text = _objectData.PriceReChild.ToString(); cbbGroupPartner.SelectedValue = _objectData.GroupID; Tour t = tourService.GetByID((int)_objectData.TourID); cbbGroupTour.SelectedValue = t.GroupID; } }
private void UCGroupTour_Load(object sender, EventArgs e) { cbbGroupTour.DataSource = grTourService.GetListCombobox(); cbbGroupTour.ValueMember = "GroupID"; cbbGroupTour.DisplayMember = "Name"; loadDataGroup(); }
private void UCGroupTour_Load(object sender, EventArgs e) { printTourService = new PrintTourService(); cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; dtpStartDate.Value = DateTime.Now.AddDays(1); }
private void UCGroupTour_Load(object sender, EventArgs e) { cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; cbbPartnerID.DataSource = pnService.GetListCobobox(); cbbPartnerID.ValueMember = "PartnerID"; cbbPartnerID.DisplayMember = "Address"; }
private void frmActionGroupTour_Load(object sender, EventArgs e) { if (_WorkID == 1) { btnCancel.Text = "Hủy bỏ"; } else { btnCancel.Text = "Hoàn tác"; } _objectBook = bookService.GetByID(_ObjID); dtpStartDate.Value = _objectBook.StartDate.Value; cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; cbbPartnerID.DataSource = pnService.GetListCobobox(); cbbPartnerID.ValueMember = "PartnerID"; cbbPartnerID.DisplayMember = "Address"; Tour t = tService.GetByID((int)_objectBook.TourID); cbbGroupTourID.SelectedValue = t.GroupID; cbbPartnerID.SelectedValue = _objectBook.PartnerID; cbbTourID.SelectedValue = _objectBook.TourID; cbbPartnerID.SelectedValue = _objectBook.PartnerID; numPax.Value = (decimal)_objectBook.Pax.Value; txtSaleBook.Text = _objectBook.StaffID; //Tre em numPaxChild.Value = (decimal)_objectBook.PaxChild.Value; txtPriceReChild.Text = _objectBook.PriceReChild.ToString(); //txtCustomer.Text = _objectBook.CustomName; txtPickUp.Text = _objectBook.PickUp; txtRoom.Text = _objectBook.Room; txtPriceRe.Text = _objectBook.PriceReceive.ToString(); txtPriceSa.Text = _objectBook.PriceSale.ToString(); txtPartnerPrice.Text = _objectBook.PartnerPrice.ToString(); txtNote.Text = _objectBook.Note; txtPromotionPrice.Text = _objectBook.PromotionMoney.ToString(); lblTotalBookFinal.Text = _objectBook.Total.ToString(); ckBookOK.Checked = _objectBook.IsBooked.Value; ckIsPayment.Checked = _objectBook.IsPayment.Value; parseJsonServiceType(_objectBook.ServiceType); payment(); }
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; }
private void frmActionGroupTour_Load(object sender, EventArgs e) { cbbGroupTourID.DataSource = grTourService.GetListCombobox(); cbbGroupTourID.ValueMember = "GroupID"; cbbGroupTourID.DisplayMember = "Name"; txtServiceName.Focus(); if (_action == -1) { this.Text = "Thêm mới dịch vụ"; } else { this.Text = "Cập nhật dịch vụ"; } if (_objectData != null) { txtServiceName.Text = _objectData.Name; txtPrice.Text = _objectData.Price.ToString(); } }