public JsonResult GetIPDPatient(string prefix, string outside) { BL_PatientImageManager BL_Reg = new BL_PatientImageManager(); // BL_Patient_IPDBill _IPDBill = new BL_Patient_IPDBill(); DataSet ds = BL_Reg.GetIPDPatient(prefix, outside); List <PatientOPDBill> searchList = new List <PatientOPDBill>(); // if (outside == false) // { foreach (DataRow dr in ds.Tables[0].Rows) { searchList.Add(new PatientOPDBill { patientregNo = (dr["PatientRegNO"].ToString()), patientname = dr["PatientName"].ToString(), address = (dr["Address"].ToString()), contactno = dr["MobileNo"].ToString(), PrintRegNO = dr["PrintRegNO"].ToString() }); } //} return(new JsonResult { Data = searchList, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult PatientImageManager(PatientImageManager obj) { BL_PatientImageManager BL_obj = new BL_PatientImageManager(); HospitalLocationID(); obj.PatientName = Request.Form["PatientName"]; obj.Gender = Request.Form["Gender"]; obj.PatientRegNo = Convert.ToInt32(Request.Form["PatientRegNo"]); obj.OPDIPDID = Convert.ToInt32(Request.Form["OPDIPDID"]); obj.PatientType = Request.Form["PatientType"]; obj.PaperName = Request.Form["file"]; obj.PatientName = Request.Form["PatientName"]; obj.Gender = Request.Form["Gender"]; obj.ConsultantDr = Request.Form["DoctorName"]; obj.ReferredByDoctor = Request.Form["DoctorName"]; obj.CasePaperID = Request.Form["CasePaperID"].ToString(); //obj.PaperPath = Request.Form["Paper"].ToString(); obj.Paper = Request.Form["path"].ToString(); if (Request.Form["PaperPath"] != null && Request.Form["PaperPath"].ToString() != "") { obj.PaperPath = Request.Form["PaperPath"].ToString(); } if (BL_obj.Save(obj)) { return(RedirectToAction("PatientImageManager", "PatientImageManager")); } return(View()); }
public JsonResult GetPrintNo_ToRegNo(string PrintRegNo) { BL_PatientImageManager BL_Reg = new BL_PatientImageManager(); string RegNo = BL_Reg.GetPrintNo_ToRegNo(PrintRegNo); return(new JsonResult { Data = RegNo, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }