Exemplo n.º 1
0
        public JsonResult GetIPDPatient(string prefix, bool outside)
        {
            BL_Patient_IPDBill    _IPDBill   = new BL_Patient_IPDBill();
            DataSet               ds         = objblamt.GetIPDPatient(prefix);
            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
            });
        }