Exemplo n.º 1
0
 public string AddPatientScreening(int patientId, int patientMasterVisitid, DateTime visitDate, int screeningTypeId, int screeningDone, DateTime screeningDate, int screeningCategoryId, int screeningValueId, string comment, int userId)
 {
     try
     {
         var screening = new PatientScreeningManager();
         Result = screening.AddPatientScreening(patientId, patientMasterVisitid, visitDate, screeningTypeId, screeningDone, screeningDate, screeningCategoryId, screeningValueId, comment, userId);
         Msg    = (Result > 0) ? "Patient Screening Added Successfully" : "";
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
        public string AddPatientScreening(int patientId, int patientMasterVisitid, DateTime visitDate, int screeningTypeId, bool screeningDone, DateTime screeningDate, int screeningCategoryId, int screeningValueId, string comment, int userId)
        {
            try
            {
                patientId            = Convert.ToInt32(HttpContext.Current.Session["PatientPK"]);
                patientMasterVisitId = Convert.ToInt32(HttpContext.Current.Session["PatientmasterVisitId"]);

                var patientScreening = new PatientScreeningManager();
                result      = patientScreening.AddPatientScreening(patientId, patientMasterVisitId, visitDate, screeningTypeId, screeningDone, screeningDate, screeningCategoryId, screeningValueId, comment, Convert.ToInt32(HttpContext.Current.Session["AppUserId"]));
                jsonMessage = (result > 0) ? "Patient screening addedd successfully!" : "";
            }
            catch (Exception e)
            {
                jsonMessage = e.Message;
            }
            return(jsonMessage);
        }