public ReviewController(DBContext context, IHostingEnvironment environment, IMapper mapper) { _context = context; _environment = environment ?? throw new ArgumentNullException(nameof(environment)); _bl = new PatientBL(); _mapper = mapper; }
public Receptionist_MakeBill() { InitializeComponent(); BL = new BillBL(); patBL = new PatientBL(); recBL = new ReceptionistBL(); }
public Manager_BillMngmnt() { InitializeComponent(); BL = new BillBL(); patBL = new PatientBL(); recBL = new ReceptionistBL(); }
public void addpatients(string newpatient, string datenaissance) { var datenaissances = Convert.ToDateTime(datenaissance); Patient newpatients = JsonConvert.DeserializeObject <Patient>(newpatient); newpatients.dateNaissance = datenaissances; PatientBL.addpatients(newpatients); }
public Receptionist_PayBill() { InitializeComponent(); BL = new BillBL(); patBL = new PatientBL(); recBL = new ReceptionistBL(); biHiBL = new BillsHistoryBL(); }
public Manager_PtntMngmnt() { InitializeComponent(); BL = new PatientBL(); DocBL = new DoctorBL(); RooBL = new RoomBL(); RecBL = new ReceptionistBL(); }
public Receptionist_PtntRcptn() { InitializeComponent(); BL = new PatientBL(); DocBL = new DoctorBL(); RooBL = new RoomBL(); RecBL = new ReceptionistBL(); }
public Doctor_PatientDischarge() { InitializeComponent(); BL = new PatientBL(); DocBL = new DoctorBL(); RooBL = new RoomBL(); RecBL = new ReceptionistBL(); PaHiBL = new PatientHistoryBL(); }
public void Set(PatientBL patient) { txtId.Text = patient.Id.ToString(); txtFIO.Text = patient.FIO; cbSex.SelectedIndex = (int)patient.Gender; txtBirth.Text = patient.Birth.ToString("dd/MM/yyyy"); txtAddress.Text = patient.Address; txtPhone.Text = patient.Phone; }
public PatientController(DBContext context, IHostingEnvironment environment, /*ImageUploader.Helper.IImageHandler imageHandler, */ IMapper mapper) { _context = context; _environment = environment ?? throw new ArgumentNullException(nameof(environment)); /*_imageHandler = imageHandler;*/ _imagePath = _environment.ContentRootPath + @"\Resources\Images"; _bl = new PatientBL(); _mapper = mapper; }
private void btChoose_Click(object sender, RoutedEventArgs e) { if (lvPatients.SelectedItem == null) { MessageBox.Show("Выберите пациента"); return; } _choose = (PatientBL)lvPatients.SelectedItem; Close(); }
private void Window_Activated(object sender, EventArgs e) { var items = PatientBL.GetAll(); if (!string.IsNullOrEmpty(txtSearch.Text)) { items = items.FindAll(p => p.FIO.Contains(txtSearch.Text)); } lvPatients.ItemsSource = items; }
private void txtFIO_GotFocus(object sender, RoutedEventArgs e) { _ChoosePatient = Patients.Choose(); if (_ChoosePatient != null) { txtFIO.Text = _ChoosePatient.FIO; } txtId.Focusable = true; }
public void Set(VisitBL visit) { txtId.Text = visit.Id.ToString(); txtDate.Text = visit.Date.ToString("dd/MM/yyyy"); txtDiagnosis.Text = visit.Diagnosis; txtFIO.Text = visit.Patient.FIO; txtType.Text = visit.VisitType.Name; _ChoosePatient = visit.Patient; _ChooseVisitType = visit.VisitType; }
public bool InsertPaciente(Pacient objPaciente) { try { PatientBL pacienteBL = new PatientBL(); return(pacienteBL.InsertPatient(objPaciente)); } catch (Exception e) { throw e; } }
public List <Pacient> ListPaciente() { try { PatientBL pacienteBL = new PatientBL(); return(pacienteBL.ListPatients()); } catch (Exception e) { throw e; } }
private PatientBL Get() { PatientBL patient = new PatientBL() { Id = string.IsNullOrEmpty(txtId.Text) ? Guid.Empty : new Guid(txtId.Text), FIO = txtFIO.Text, Gender = (Gender)cbSex.SelectedIndex, Birth = Convert.ToDateTime(txtBirth.Text), Address = txtAddress.Text, Phone = txtPhone.Text }; return(patient); }
private void btDelete_Click(object sender, RoutedEventArgs e) { if (lvPatients.SelectedItem == null) { MessageBox.Show("Выберите пациента"); return; } PatientBL patient = (PatientBL)lvPatients.SelectedItem; string res = patient.Delete(); if (!string.IsNullOrEmpty(res)) { MessageBox.Show(res); } Window_Activated(sender, null); }
public void deletepatients(string patien) { Patient patients = JsonConvert.DeserializeObject <Patient>(patien); PatientBL.deletepatients(patients); }
public List <Patient> getpatients() { return(PatientBL.getpatients()); }
public void updatepatients(string patient) { Patient patients = JsonConvert.DeserializeObject <Patient>(patient); PatientBL.updatepatients(patients); }