//public JsonResult BindListVitalsdetail() //{ // try // { // VitalsDetails objModel = new VitalsDetails(); // objModel.P_KEY = "L"; // objModel.Orgid = Session[Common.SESSION_VARIABLES.COMPANYCODE].ToString(); // objViewModel.liVitals = TaskViewModel.SaveVitalsdetails(objModel); // return Json(objViewModel, JsonRequestBehavior.AllowGet); // } // catch (Exception ex) // { // return Json(ex); // } //} public JsonResult BindListVitalsdetail(VitalsDetails VitalsDetails) { try { VitalsDetails.P_KEY = "L"; VitalsDetails.Orgid = Session[Common.SESSION_VARIABLES.COMPANYCODE].ToString(); objViewModel.liVitals = TaskViewModel.SaveVitalsdetails(VitalsDetails); return(Json(objViewModel, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex)); } }
public JsonResult DeleteVitalsMaster(VitalsDetails VitalsDetails) { try { //CategoryMaster objModel = new CategoryMaster(); VitalsDetails.P_KEY = "D"; VitalsDetails.Orgid = Session[Common.SESSION_VARIABLES.COMPANYCODE].ToString(); objViewModel.liVitals = TaskViewModel.SaveVitalsdetails(VitalsDetails); return(Json(objViewModel, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex)); } }
public static List <VitalsDetails> SaveVitalsdetails(VitalsDetails VitalsDetails) { DataValue dv = new DataValue(); dv.Add("@Patient_Id", VitalsDetails.Patient_Id, EnumCommand.DataType.Varchar); dv.Add("@Symtoms", VitalsDetails.Symtoms, EnumCommand.DataType.Varchar); dv.Add("@PatientVisitID", VitalsDetails.PatientVisitID, EnumCommand.DataType.Varchar); dv.Add("@DoctorReport", VitalsDetails.Doctorreport, EnumCommand.DataType.Varchar); dv.Add("@Visit_Type", VitalsDetails.Visit_Type, EnumCommand.DataType.Varchar); dv.Add("@Orgid", VitalsDetails.Orgid, EnumCommand.DataType.Varchar); dv.Add("@PhysicianID", VitalsDetails.PhysicianID, EnumCommand.DataType.Varchar); dv.Add("@BP_systolic", VitalsDetails.BP_systolic, EnumCommand.DataType.Varchar); dv.Add("@BP_Diastolic", VitalsDetails.BP_Diastolic, EnumCommand.DataType.Varchar); dv.Add("@Temperature", VitalsDetails.Temperature, EnumCommand.DataType.Varchar); dv.Add("@Pulse", VitalsDetails.Pulse, EnumCommand.DataType.Varchar); dv.Add("@Respiratory_rate", VitalsDetails.Respiratory_rate, EnumCommand.DataType.Varchar); dv.Add("@Weight", VitalsDetails.Weight, EnumCommand.DataType.Varchar); dv.Add("@Height", VitalsDetails.Height, EnumCommand.DataType.Varchar); dv.Add("@CreatedBy", VitalsDetails.CreatedBy, EnumCommand.DataType.Varchar); dv.Add("@P_KEY", VitalsDetails.P_KEY, EnumCommand.DataType.Varchar); var Vitaldetails = (List <VitalsDetails>)SQLHelper.FetchData <VitalsDetails>(Common.Queries.SP_SAVEVITALS, EnumCommand.DataSource.list, dv).DataSource.Data; return(Vitaldetails); }