void OnTimedEvent(object source, ElapsedEventArgs e) { TimerReadDB.Stop(); bnhnDB = new BenhNhanHienNoanDB(connectionString); bnhtDB = new BenhNhanHienTinhDB(connectionString); RequestToDB_HT_ThongTinBenhNhan(); //RequestToDB_NeedAddPattern(); RequestToDB_HT_DacTrungNH(); RequestToDB_HT_KQXN(); RequestToDB_HT_KhamNamKhoa(); RequestToDB_HT_LuuTruMau(); RequestToDB_HT_NguoiVanDong(); RequestToDB_HT_ThongTinNguoiQuanHeBN(); RequestToDB_HT_TinhDichDo(); RequestToDB_HN_ThongTinBenhNhan(); RequestToDB_HN_BenhTinhDuc(); RequestToDB_HN_BenhToanThan(); RequestToDB_HN_KQXN(); RequestToDB_HN_KhamHongVaXuongChau(); RequestToDB_HN_NguoiVanDong(); RequestToDB_HN_TienSuSinhSan(); RequestToDB_HN_TieuSuKinhNguyet(); RequestToDB_HN_HoiBenh(); TimerReadDB.Start(); }
public DanhSachBenhNhans(TypeBN type, AppsLIST app) { this.type = type; this.appList = app; InitializeComponent(); dbHN = new BenhNhanHienNoanDB(app.connString); dbHT = new BenhNhanHienTinhDB(app.connString); LoadChiMuc(); switch (type) { case TypeBN.BNHienTinh: { LoadDataBNHT(); break; } case TypeBN.BNHienNoan: { LoadDataBNHN(); break; } } }
public void StartTimerReadEmail() { dbht = new BenhNhanHienTinhDB(connectionString); dbhn = new BenhNhanHienNoanDB(connectionString); TimerReadMail = new System.Timers.Timer(); TimerReadMail.Elapsed += new ElapsedEventHandler(OnTimedEvent); TimerReadMail.Interval = intervalRequest; TimerReadMail.AutoReset = false; TimerReadMail.Start(); }
private void LoadItemSelect() { BenhNhanHienNoanDB dbhn = new BenhNhanHienNoanDB(); listNHNs = dbhn.GetAllNguoiHienNoan(); BenhNhanHienTinhDB dbht = new BenhNhanHienTinhDB(); listNHTs = dbht.GetAllNguoiHienTinh(); var cboMaBN = (GridComboBoxExEditControl)panel.Columns[1].EditControl; foreach (var bn in listNHTs) { cboMaBN.Items.Add(bn.MaBN); } }