コード例 #1
0
 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();
 }
コード例 #3
0
 public Manager_BillMngmnt()
 {
     InitializeComponent();
     BL    = new BillBL();
     patBL = new PatientBL();
     recBL = new ReceptionistBL();
 }
コード例 #4
0
        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();
 }
コード例 #6
0
 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();
 }
コード例 #9
0
ファイル: Patient.xaml.cs プロジェクト: grnik/TestProgram
 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;
 }
コード例 #10
0
 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;
 }
コード例 #11
0
ファイル: Patients.xaml.cs プロジェクト: grnik/TestProgram
 private void btChoose_Click(object sender, RoutedEventArgs e)
 {
     if (lvPatients.SelectedItem == null)
     {
         MessageBox.Show("Выберите пациента");
         return;
     }
     _choose = (PatientBL)lvPatients.SelectedItem;
     Close();
 }
コード例 #12
0
ファイル: Patients.xaml.cs プロジェクト: grnik/TestProgram
        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;
        }
コード例 #13
0
        private void txtFIO_GotFocus(object sender, RoutedEventArgs e)
        {
            _ChoosePatient = Patients.Choose();
            if (_ChoosePatient != null)
            {
                txtFIO.Text = _ChoosePatient.FIO;
            }

            txtId.Focusable = true;
        }
コード例 #14
0
        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;
        }
コード例 #15
0
 public bool InsertPaciente(Pacient objPaciente)
 {
     try
     {
         PatientBL pacienteBL = new PatientBL();
         return(pacienteBL.InsertPatient(objPaciente));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #16
0
 public List <Pacient> ListPaciente()
 {
     try
     {
         PatientBL pacienteBL = new PatientBL();
         return(pacienteBL.ListPatients());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #17
0
ファイル: Patient.xaml.cs プロジェクト: grnik/TestProgram
        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);
        }
コード例 #18
0
ファイル: Patients.xaml.cs プロジェクト: grnik/TestProgram
        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);
        }
コード例 #19
0
        public void deletepatients(string patien)
        {
            Patient patients = JsonConvert.DeserializeObject <Patient>(patien);

            PatientBL.deletepatients(patients);
        }
コード例 #20
0
 public List <Patient> getpatients()
 {
     return(PatientBL.getpatients());
 }
コード例 #21
0
        public void updatepatients(string patient)
        {
            Patient patients = JsonConvert.DeserializeObject <Patient>(patient);

            PatientBL.updatepatients(patients);
        }