Exemple #1
0
        public void addRFARequestBodyPart()
        {
            RFARequestBodyPart _RFARequestBodyPart = new RFARequestBodyPart
            {
                RFARequestID    = 493,
                BodyPartType    = "sdf",
                ClaimBodyPartID = 1
            };

            _intakeRepository.addRFARequestBodyPart(_RFARequestBodyPart);
        }
        public ActionResult saveRFARequest(RFARequestsDetails rfaRequest)
        {
            if (rfaRequest.RFARequestID > 0)
            {
                _intakeService.updateRFARequest(Mapper.Map <serviceModel.IntakeService.RFARequest>(rfaRequest));
                _intakeService.deleteRFARequestBodyPartByReqID(rfaRequest.RFARequestID);
                var bodypart = rfaRequest.ReqBodyPart.Split(',');
                foreach (var reqbodypart in bodypart)
                {
                    RFARequestBodyPart rfaRequestBodyPart = new RFARequestBodyPart();
                    rfaRequestBodyPart.RFARequestID = rfaRequest.RFARequestID;
                    string[] reqBpart = reqbodypart.Split('-');
                    rfaRequestBodyPart.ClaimBodyPartID = Convert.ToInt32(reqBpart[0].ToString());
                    rfaRequestBodyPart.BodyPartType    = (reqBpart[1].ToString());
                    _intakeService.addRFARequestBodyPart(Mapper.Map <serviceModel.IntakeService.RFARequestBodyPart>(rfaRequestBodyPart));
                }
            }
            else
            {
                rfaRequest.RFARequestID = _intakeService.addRFARequest(Mapper.Map <serviceModel.IntakeService.RFARequest>(rfaRequest));
                var bodypart = rfaRequest.ReqBodyPart.Split(',');
                foreach (var reqbodypart in bodypart)
                {
                    RFARequestBodyPart rfaRequestBodyPart = new RFARequestBodyPart();
                    rfaRequestBodyPart.RFARequestID = rfaRequest.RFARequestID;
                    string[] reqBpart = reqbodypart.Split('-');
                    rfaRequestBodyPart.ClaimBodyPartID = Convert.ToInt32(reqBpart[0].ToString());
                    rfaRequestBodyPart.BodyPartType    = (reqBpart[1].ToString());
                    _intakeService.addRFARequestBodyPart(Mapper.Map <serviceModel.IntakeService.RFARequestBodyPart>(rfaRequestBodyPart));
                }
            }

            _commonService.AddProcessLevelByReferralID(rfaRequest.RFAReferralID, GlobalConst.ProcessLevel.RecordSplit);

            return(Json(rfaRequest, GlobalConst.ContentTypes.TextHtml));
        }
 public int  updateRFARequestBodyPart(RFARequestBodyPart _rFARequestBodyPart)
 {
     return(_iIntakeRepository.updateRFARequestBodyPart(Mapper.Map <DTO.RFARequestBodyPart, MMC.Core.Data.Model.RFARequestBodyPart>(_rFARequestBodyPart)));
 }