private void frmCacLopDaHoc_Load(object sender, EventArgs e) { dateTuNgay.MaxDate = dateDenNgay.MaxDate = DateTime.Now; KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; cboKhoaHoc.DataSource = KhoaHocLogic.Select(_filter); cboKhoaHoc.DisplayMember = "TenKhoaHoc"; cboKhoaHoc.ValueMember = "KhoaHocId"; gridLop.AutoGenerateColumns = false; btnDatLai_Click(sender, e); btnXemTatCa_Click(sender, e); }
private void LoadKhoaHoc() { try { KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; cboKhoaHoc.DataSource = KhoaHocLogic.Select(_filter); cboKhoaHoc.DisplayMember = "TenKhoaHoc"; cboKhoaHoc.ValueMember = "KhoaHocId"; } catch (Exception ex) { O2S_Common.Logging.LogSystem.Warn(ex); } }
public void LoadGridKhoaHoc() { try { KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; _filter.CreatedDate_Tu = date_TuNgay.DateTime; _filter.CreatedDate_Den = date_DenNgay.DateTime; gridControlKhoaHoc.DataSource = KhoaHocLogic.Select(_filter); lblTongCong.Text = string.Format("Tổng cộng: {0} khóa học", gridViewKhoaHoc.RowCount); } catch (Exception ex) { O2S_Common.Logging.LogSystem.Warn(ex); } }
private void frmHocPhiHocVien_Load(object sender, EventArgs e) { dateTuNgay.MaxDate = dateDenNgay.MaxDate = DateTime.ParseExact(DateTime.Now.ToString("dd/MM/yyyy"), "dd/MM/yyyy", CultureInfo.InvariantCulture); btnDatLai_Click(sender, e); gridLop.AutoGenerateColumns = false; KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; cboKhoaHoc.DataSource = KhoaHocLogic.Select(_filter); cboKhoaHoc.DisplayMember = "TenKhoaHoc"; cboKhoaHoc.ValueMember = "MaKhoaHoc"; btnXemTatCa_Click(sender, e); }
private void frmXemCacLopDay_Load(object sender, EventArgs e) { dateTuNgay.MaxDate = dateDenNgay.MaxDate = DateTime.ParseExact(DateTime.Now.ToString("dd/MM/yyyy"), "dd/MM/yyyy", CultureInfo.InvariantCulture); //load khóa học KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; cboKhoaHoc.DataSource = KhoaHocLogic.Select(_filter); cboKhoaHoc.DisplayMember = "TenKhoaHoc"; cboKhoaHoc.ValueMember = "KhoaHocId"; gridKetQuaTimKiem.AutoGenerateColumns = false; btnTimKiem_Click(sender, e); }
private void LoadKhoaHoc() { try { KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; _filter.IsRemove = 0; List <KhoaHoc_PlusDTO> _lstKhoaHoc = KhoaHocLogic.Select(_filter); cboKhoaHoc.DataSource = _lstKhoaHoc; cboKhoaHoc.DisplayMember = "TenKhoaHoc"; cboKhoaHoc.ValueMember = "KhoaHocId"; if (_lstKhoaHoc != null && _lstKhoaHoc.Count > 0) { cboKhoaHoc.SelectedIndex = 0; LoadLopCuaKhoaHoc(); } } catch (Exception ex) { O2S_Common.Logging.LogSystem.Warn(ex); } }
private void frmLapPhieuGhiDanh_Option1_Load(object sender, EventArgs e) { try { date_TuNgay.DateTime = Convert.ToDateTime(DateTime.Now.AddMonths(-3).ToString("yyyy-MM-dd") + " 00:00:00"); date_DenNgay.DateTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59"); KhoaHocFilter _filter = new KhoaHocFilter(); _filter.CoSoId = GlobalSettings.CoSoId; cboKhoaHoc.DataSource = KhoaHocLogic.Select(_filter); cboKhoaHoc.DisplayMember = "TenKhoaHoc"; cboKhoaHoc.ValueMember = "KhoaHocId"; LoadPhieuGhiDanh(); LoadKhoanKhacMacDinh(); LoadDanhSachHocVien(); LoadQuyDinh_LapPhieuGD(); btnLuuPhieu.Enabled = false; btnInBienLai.Enabled = false; } catch (Exception ex) { O2S_Common.Logging.LogSystem.Warn(ex); } }