Пример #1
0
        public void updatePatientClaimPleadBodyPart()
        {
            PatientClaimPleadBodyPart _PatientClaimPleadBodyPart = new PatientClaimPleadBodyPart
            {
                PleadBodyPartID             = 4,
                PatientClaimID              = 3,
                PatientClaimPleadBodyPartID = 6,
                BodyPartStatusID            = 1
            };

            var _id = _patientRepository.updatePatientClaimPleadBodyPart(_PatientClaimPleadBodyPart);

            Assert.IsTrue(_id > 0, "failed");
        }
Пример #2
0
        public void addPatientClaimPleadBodyPart()
        {
            PatientClaimPleadBodyPart _PatientClaimPleadBodyPart = new PatientClaimPleadBodyPart
            {
                PleadBodyPartID  = 5,
                PatientClaimID   = 1,
                BodyPartStatusID = 1,
                AcceptedDate     = DateTime.Now
            };

            var _id = _patientRepository.addPatientClaimPleadBodyPart(_PatientClaimPleadBodyPart);

            Assert.IsTrue(_id > 0, "failed");
        }
Пример #3
0
        public ActionResult SavePatientClaimPleadBodyPart(PatientClaimPleadBodyPart PatientClaimPleadBodyPartDetails)
        {
            var _Result = GlobalConst.ConstantChar.Zero;

            try
            {
                if (PatientClaimPleadBodyPartDetails.PatientClaimPleadBodyPartID == GlobalConst.ConstantChar.Zero)
                {
                    _Result = _iPatientService.addPatientClaimPleadBodyPart(Mapper.Map <MMCService.PatientService.PatientClaimPleadBodyPart>(PatientClaimPleadBodyPartDetails));
                }
                else
                {
                    _iPatientService.updatePatientClaimPleadBodyPart(Mapper.Map <MMCService.PatientService.PatientClaimPleadBodyPart>(PatientClaimPleadBodyPartDetails));
                    _Result = GlobalConst.ConstantChar.MinusOne;
                }
            }
            catch
            {
                _Result = GlobalConst.ConstantChar.Zero;
            }
            return(Json(_Result));
        }
Пример #4
0
 public int updatePatientClaimPleadBodyPart(PatientClaimPleadBodyPart _patientPleadBodyPart)
 {
     return(_patientRepository.updatePatientClaimPleadBodyPart(Mapper.Map <DTO.PatientClaimPleadBodyPart, MMC.Core.Data.Model.PatientClaimPleadBodyPart>(_patientPleadBodyPart)));
 }
Пример #5
0
 public int updatePatientClaimPleadBodyPart(PatientClaimPleadBodyPart _patientClaimPleadBodyPart)
 {
     return(_patientClaimPleadBodyPartRepo.Update(_patientClaimPleadBodyPart));
 }
Пример #6
0
 public int addPatientClaimPleadBodyPart(PatientClaimPleadBodyPart _patientClaimPleadBodyPart)
 {
     return(_patientClaimPleadBodyPartRepo.Add(_patientClaimPleadBodyPart).PatientClaimPleadBodyPartID);
 }