private void Window_Loaded(object sender, RoutedEventArgs e) { xlPSDDV = new CXLPhieuSDDV(); xlLDV = new CXLLoaiDichVu(); xlDV = new CXLDichVu(); xlPDDK = new CXLPhieuDKKham(); xlNv = new CXLNhanVien(); dsCTDKDV = new List <CTDKDichVu>(); getDS(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { xlPKB = new CXLPhieuKhamBenh(); xlPDKK = new CXLPhieuDKKham(); xlBN = new CXLBenhNhan(); xlNV = new CXLNhanVien(); xlLL = new CXLLichKham(); xlLDV = new CXLLoaiDichVu(); xlDV = new CXLDichVu(); xlPSDDV = new CXLPhieuSDDV(); xlDT = new CXLDonThuoc(); xlT = new CXLThuoc(); dsCTDKDV = new List <CTDKDichVu>(); dsCTDT = new List <CTDonThuoc>(); dt = new DonThuoc(); dt.TongTien = 0; getDS(); loadCMB(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { xlPDDK = new CXLPhieuDKKham(); xlPT = new CXLPhieuThu(); xlNV = new CXLNhanVien(); xlPSDDV = new CXLPhieuSDDV(); dsCTDKDV = new List <CTDKDichVu>(); xlBC = new CXLBaoCao(); //getDS(); //if (Common.maNhanVien != null) // txtNhanVienLP.Text = Common.maNhanVien.ToString(); //txtNhanVienLP.Text = "bhvu"; dpTuNgay.Text = DateTime.Now.ToShortDateString(); dpDenNgay.Text = DateTime.Now.ToShortDateString(); dpNgayLap.Text = DateTime.Now.ToShortDateString(); refresh(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { xlPDDK = new CXLPhieuDKKham(); xlCK = new CXLChuyenKhoa(); xlPK = new CXLPhongKham(); xlBN = new CXLBenhNhan(); xlNV = new CXLNhanVien(); xlLL = new CXLLichKham(); xlLDV = new CXLLoaiDichVu(); xlDV = new CXLDichVu(); xlPSDDV = new CXLPhieuSDDV(); dsCTDKPK = new List <CTDKPhongKham>(); dsCTDKDV = new List <CTDKDichVu>(); //if (Common.vaiTroNhanVien != null) //{ // if (Common.vaiTroNhanVien == Common.BacSi) // { // loadGiaoDienBS(); // } //} //else //{ getDS(); loadCMB(); if (DateTime.Now.Hour >= 7 && DateTime.Now.Hour <= 11) { MessageBox.Show("Hệ thống phát hiện phiên làm việc: 'Ca sáng !'"); } else if (DateTime.Now.Hour >= 13 && DateTime.Now.Hour <= 15) { MessageBox.Show("Hệ thống phát hiện phiên làm việc: 'Ca chiều !'"); } //} }