public ActionResult Create(LoketModel model) { model.Account = Account; var request = new LoketRequest { Data = model, }; LoketResponse _response = new LoketValidator(_unitOfWork).Validate(request); if (_response.Status) { // Notify to all RegistrationHub.BroadcastDataToAllClients(); } ViewBag.Response = $"{_response.Status};{_response.Message}"; ViewBag.PoliList = BindDropDownPoliList(model.PoliFromID); ViewBag.PatientList = BindDropDownPatientList(); ViewBag.RegistrationTypeList = BindDropDownTypeList(); ViewBag.DoctorList = BindDropDownDoctorList(model.PoliToID); ViewBag.PaymentTypeList = BindDropDownPaymentTypeList(); ViewBag.NecessityList = BindDropDownNecessityList(); return(View("Index", model)); }
public JsonResult FinishRegistration(int id) { var request = new LoketRequest { Data = new LoketModel { Id = id, Account = Session["UserLogon"] == null ? new AccountModel() : (AccountModel)Session["UserLogon"] }, Action = ClinicEnums.Action.Finish.ToString() }; LoketResponse _response = new LoketValidator(_unitOfWork).Validate(request); if (_response.Status) { RegistrationHub.BroadcastDataToAllClients(); } return(Json(new { Status = _response.Status, Message = _response.Message }, JsonRequestBehavior.AllowGet)); }
public ActionResult FormExamine( string formExamineID, string loketID, string anamnesa, string diagnose, string therapy, string receipt, string finalState, string icdInformation, string poliToID, string doctorToID, List <string> concoctionMedicineList, List <string> medicineList, List <string> injectionList, List <string> labList, List <string> radiologyList, List <string> serviceList) { if (concoctionMedicineList == null) { concoctionMedicineList = new List <string>(); } if (medicineList == null) { medicineList = new List <string>(); } if (injectionList == null) { injectionList = new List <string>(); } if (labList == null) { labList = new List <string>(); } if (radiologyList == null) { radiologyList = new List <string>(); } if (serviceList == null) { serviceList = new List <string>(); } PoliExamineModel model = GeneratePoliExamineModel(formExamineID, loketID, anamnesa, diagnose, therapy, receipt, finalState, icdInformation, poliToID, doctorToID, concoctionMedicineList, medicineList, injectionList, labList, radiologyList, serviceList); model.Account = Account; var request = new FormExamineRequest { Data = model, }; FormExamineResponse _response = new FormExamineValidator(_unitOfWork, _context).Validate(request); if (_response.Status) { // Notify to all RegistrationHub.BroadcastDataToAllClients(); } ViewBag.Response = $"{_response.Status};{_response.Message}"; var tempPoliList = BindDropDownPoliList(model.LoketData.PoliToID); ViewBag.PoliList = tempPoliList; ViewBag.DoctorList = BindDropDownDoctorList(int.Parse(tempPoliList[0].Value)); ViewBag.FinalStateList = BindDropDownFinalStateList(); ViewBag.ICDInfo = BindDropDownICDInfo(); return(Json(new { Status = _response.Status, Message = _response.Message }, JsonRequestBehavior.AllowGet)); }