Ejemplo n.º 1
0
        public static List <Patientreg> SavePatientdetails(Patientreg objPatientreg)
        {
            DataValue dv = new DataValue();

            dv.Add("@Patient_Id", objPatientreg.Patient_Id, EnumCommand.DataType.Varchar);
            dv.Add("@Title_id", objPatientreg.Title_id, EnumCommand.DataType.Varchar);
            dv.Add("@critical_info", objPatientreg.critical_info, EnumCommand.DataType.Varchar);
            dv.Add("@Age", objPatientreg.Age, EnumCommand.DataType.Varchar);
            dv.Add("@Referred_by", objPatientreg.Referred_by, EnumCommand.DataType.Varchar);
            dv.Add("@Email", objPatientreg.Email, EnumCommand.DataType.Varchar);
            dv.Add("@FirstName", objPatientreg.FirstName, EnumCommand.DataType.Varchar);
            dv.Add("@Lastname", objPatientreg.Lastname, EnumCommand.DataType.Varchar);
            dv.Add("@Gender", objPatientreg.Gender, EnumCommand.DataType.Varchar);
            dv.Add("@DOB", objPatientreg.DOB, EnumCommand.DataType.Varchar);
            dv.Add("@Mobileno", objPatientreg.Mobileno, EnumCommand.DataType.Varchar);
            dv.Add("@Occupation", objPatientreg.Occupation, EnumCommand.DataType.Varchar);
            dv.Add("@Blood_Group", objPatientreg.Blood_Group, EnumCommand.DataType.Varchar);
            dv.Add("@Marital_Status", objPatientreg.Marital_Status, EnumCommand.DataType.Varchar);
            dv.Add("@Home_address", objPatientreg.Home_address, EnumCommand.DataType.Varchar);
            dv.Add("@Current_address", objPatientreg.Current_address, EnumCommand.DataType.Varchar);
            dv.Add("@ISACTIVE", objPatientreg.ISACTIVE, EnumCommand.DataType.Varchar);
            dv.Add("@country", objPatientreg.country, EnumCommand.DataType.Varchar);
            dv.Add("@state", objPatientreg.state, EnumCommand.DataType.Varchar);
            dv.Add("@City", objPatientreg.City, EnumCommand.DataType.Varchar);
            dv.Add("@Ethnicity", objPatientreg.Ethnicity, EnumCommand.DataType.Varchar);
            dv.Add("@Org_id", objPatientreg.Org_id, EnumCommand.DataType.Varchar);
            dv.Add("@Insertby", objPatientreg.Insertby, EnumCommand.DataType.Varchar);
            dv.Add("@Insert_Date", objPatientreg.Insert_Date, EnumCommand.DataType.Varchar);
            dv.Add("@Modify_date", objPatientreg.Modify_date, EnumCommand.DataType.Varchar);
            dv.Add("@P_KEY", objPatientreg.P_KEY, EnumCommand.DataType.Varchar);
            var Patientdetails = (List <Patientreg>)SQLHelper.FetchData <Patientreg>(Common.Queries.SP_PRG_ACTION, EnumCommand.DataSource.list, dv).DataSource.Data;

            return(Patientdetails);
        }
Ejemplo n.º 2
0
        //Dropdown list City
        public static List <Citymaster> ListCity(Patientreg obj)
        {
            DataValue dv = new DataValue();

            dv.Add("@STATE_CODE", obj.state, EnumCommand.DataType.Varchar);
            var listcity = (List <Citymaster>)SQLHelper.FetchData <Citymaster>(Common.Queries.SP_GET_CITYLIST, EnumCommand.DataSource.list, dv).DataSource.Data;

            return(listcity);
        }
Ejemplo n.º 3
0
 public JsonResult BindListconsultation()
 {
     try
     {
         Patientreg objModel = new Patientreg();
         objModel.P_KEY            = "L";
         objModel.Org_id           = Session[Common.SESSION_VARIABLES.COMPANYCODE].ToString();
         objViewModel.liPatientreg = TaskViewModel.SavePatientdetails(objModel);
         //objViewModel.liCityMaster = Manage_InfoViewModel.ListCity(city);
         return(Json(objViewModel, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(ex));
     }
 }
Ejemplo n.º 4
0
 public JsonResult Savepatientreg(Patientreg Patientreg)
 {
     try
     {
         Patientreg.P_KEY    = "S";
         Patientreg.Insertby = Session[Common.SESSION_VARIABLES.USERNAME].ToString();
         //PhysicianMaster.ORGID = "1";
         Patientreg.Org_id         = Session[Common.SESSION_VARIABLES.COMPANYCODE].ToString();
         Patientreg.ISACTIVE       = (Patientreg.ISACTIVE == Common.ActiveLog.Active) ? "Y" : "N";
         objViewModel.liPatientreg = TaskViewModel.SavePatientdetails(Patientreg);
         return(Json(objViewModel, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(ex));
     }
 }
Ejemplo n.º 5
0
 public JsonResult BindCity(Patientreg obj)
 {
     objViewModel.liCityMaster = TaskViewModel.ListCity(obj);
     return(Json(objViewModel, JsonRequestBehavior.AllowGet));
 }