private void frmDieuXe_Load(object sender, EventArgs e) { reLoaiXe.DataSource = CommonBL.GetLoaiXe(); reLoaiXe.DisplayMember = "TenLoaiXe"; reLoaiXe.ValueMember = "LoaiXeID"; _s = splitContainer1.SplitterDistance; LoadData(); deNgayLichDon.EditValue = CommonBL.GetTimeServer().Date; deNgayXeDon.EditValue = CommonBL.GetTimeServer().Date; _timeKhachHen = CommonBL.GetTimeServer(); _timeXeDon = CommonBL.GetTimeServer(); }
private void FrmDatLichDonKhach_Load(object sender, EventArgs e) { SendKeys.Send("%"); SendKeys.Send("%"); panelInput.FindAllChildrenByType <IShControl>().ToList().ForEach(p => p.Bind()); ccbLoaiXe.Properties.DataSource = CommonBL.GetLoaiXe(); ccbLoaiXe.Properties.DisplayMember = "TenLoaiXe"; ccbLoaiXe.Properties.ValueMember = "LoaiXeID"; ccbTrangThai.Properties.DataSource = CommonBL.GetTrangThaiDatLichDonKhach(); btnLamMoi.PerformClick(); Action <object, EventArgs> textchange = (o, eventArgs) => { IsChangeData = true; }; panelInput.FindAllChildrenByType <IShInput>().ToList().ForEach(p => ((BaseEdit)p).TextChanged += new EventHandler(textchange)); txtDienThoai.Focus(); }
public void SetModel(DUONGDAI_KHACHHEN model, List <DUONGDAI_KHACHHEN_XEDK> xedks) { _xedks = xedks; _model = model; inLoaiXe.Properties.DataSource = CommonBL.GetLoaiXe(); inLoaiXe.Properties.DisplayMember = "TenLoaiXe"; inLoaiXe.Properties.ValueMember = "LoaiXeID"; lblThoiGianDon.Text = _model.ThoiDiemDon.ToString("HH:mm dd/MM/yyyy"); lblDiaChiDon.Text = _model.DiaChiDon; lblDiaChiTra.Text = _model.DiaChiTra; lblGhiChu.Text = _model.GhiChu; lblTongTien.Text = _model.TongTien.ToString("#,###.##"); lblTenKH.Text = _model.TenKhachHang; txtXeDon.Text = _model.XeDon; lblBaoTruoc.Text = _model.SoPhutBaoTruoc.ToString(); txtGhiChu.Text = _model.GhiChuDieu; inLoaiXe.SetValue(_model.LoaiXe); txtXeDon.Focus(); }