Esempio n. 1
0
        public ActionResult SaveClientDetail(int?id)
        {
            getNoOfReferralAccordingToProcessLevels();
            PatientClientDetailViewModel objPatientClientDetailViewModel = new PatientClientDetailViewModel();

            if (id != null)
            {
                var _ClientResult = _iClientService.getClientByID(id.Value);
                objPatientClientDetailViewModel.ClientDetail = Mapper.Map <Client>(_ClientResult);

                var _getClientInsurer = _iClientService.getClientInsurerByClientID(id.Value, 0, GlobalConst.Records.Take5);
                objPatientClientDetailViewModel.ClientInsurerDetails = Mapper.Map <IEnumerable <ClientInsurer> >(_getClientInsurer.ClientInsurerDetails);
                objPatientClientDetailViewModel.cinsTotalCount       = _getClientInsurer.TotalCount;

                var _getClientEmployer = _iClientService.getClientEmployerByClientID(id.Value, 0, GlobalConst.Records.Take5);
                objPatientClientDetailViewModel.ClientEmployerDetails = Mapper.Map <IEnumerable <ClientEmployer> >(_getClientEmployer.ClientEmployerDetails);
                objPatientClientDetailViewModel.cEmpTotalCount        = _getClientEmployer.TotalCount;

                var _getClientManagedCareCompany = _iClientService.getClientManagedCareCompanyByClientID(id.Value, 0, GlobalConst.Records.Take5);
                objPatientClientDetailViewModel.ClientManagedCareCompanyDetails = Mapper.Map <IEnumerable <ClientManagedCareCompany> >(_getClientManagedCareCompany.ClientManagedCareCompanyDetails);
                objPatientClientDetailViewModel.cMmcTotalCount = _getClientManagedCareCompany.TotalCount;

                var _getClientThirdPartyAdministrator = _iClientService.getClientThirdPartyAdministratorByClientID(id.Value, 0, GlobalConst.Records.Take5);
                objPatientClientDetailViewModel.ClientThirdPartyAdministratorDetails = Mapper.Map <IEnumerable <ClientThirdPartyAdministrator> >(_getClientThirdPartyAdministrator.ClientThirdPartyAdministratorDetails);
                objPatientClientDetailViewModel.cTpaTotalCount = _getClientThirdPartyAdministrator.TotalCount;

                var _getClaimAdministratorAllByClientID = _iClientService.getClaimAdministratorAllByClientID(id.Value);
                objPatientClientDetailViewModel.ClaimAdministratorAllByClientIDDetails = Mapper.Map <IEnumerable <ClaimAdministratorAllByClientID> >(_getClaimAdministratorAllByClientID);
            }
            return(View(objPatientClientDetailViewModel));
        }
Esempio n. 2
0
        public JsonResult getThirdPartyAdministratorByClientIdAll(int clientID, int skip)
        {
            ClientThirdPartyAdministratorViewModel objClientTPAAll = new ClientThirdPartyAdministratorViewModel();
            var ClientTPA = _iClientService.getClientThirdPartyAdministratorByClientID(clientID, skip, GlobalConst.Records.Take5);

            objClientTPAAll.ClientTPADetails = Mapper.Map <IEnumerable <ClientThirdPartyAdministrator> >(ClientTPA.ClientThirdPartyAdministratorDetails);
            objClientTPAAll.TotalCount       = ClientTPA.TotalCount;
            return(Json(objClientTPAAll, GlobalConst.ContentTypes.TextHtml));
        }