public ActionResult CreateAlarm(int ID)
        {
            NewAlarm model = new NewAlarm();

            model.Pacient = PacientServices.ClassObject.GetPacient(ID);
            return(PartialView(model));
        }
        public ActionResult CreateAlarm(NewAlarm model)
        {
            var newAlarm = new Alarm();

            newAlarm.IDPacient        = model.IDPacient;
            newAlarm.ValoareVizata    = model.ValoareVizata;
            newAlarm.LimitaInferioara = model.LimitaInferioara;
            newAlarm.LimitaSuperioara = model.LimitaSuperioara;
            newAlarm.Mesaj            = model.Mesaj;
            DoctorServices.ClassObject.SaveAlarm(newAlarm);

            return(RedirectToAction("PacientsTable"));
        }
Exemplo n.º 3
0
 private void OnNewAlarm(Operation operation)
 {
     NewAlarm?.Invoke(this, new AlarmSourceEventArgs(operation));
 }
Exemplo n.º 4
0
 private void OnNewAlarm(AlarmSourceEventArgs args)
 {
     NewAlarm?.Invoke(this, args);
 }