Ejemplo 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));
        }
Ejemplo n.º 2
0
        public ActionResult GetClientThirdPartyAdministratorByClientID(int _clientID, int skip)
        {
            PatientClientDetailViewModel objPatientClientDetailViewModel = new PatientClientDetailViewModel();
            var _getClientThirdPartyAdministrator = _iClientService.getClientThirdPartyAdministratorByClientID(_clientID, skip, GlobalConst.Records.Take5);

            objPatientClientDetailViewModel.ClientThirdPartyAdministratorDetails = Mapper.Map <IEnumerable <ClientThirdPartyAdministrator> >(_getClientThirdPartyAdministrator.ClientThirdPartyAdministratorDetails);
            objPatientClientDetailViewModel.cTpaTotalCount = _getClientThirdPartyAdministrator.TotalCount;
            return(Json(objPatientClientDetailViewModel, GlobalConst.ContentTypes.TextHtml));
        }