Пример #1
0
        public void addPatientClaimAddOnBodyPart()
        {
            PatientClaimAddOnBodyPart _PatientClaimAddOnBodyPart = new PatientClaimAddOnBodyPart
            {
                AddOnBodyPartID  = 6,
                PatientClaimID   = 1,
                BodyPartStatusID = 1
            };

            var _id = _patientRepository.addPatientClaimAddOnBodyPart(_PatientClaimAddOnBodyPart);

            Assert.IsTrue(_id > 0, "failed");
        }
Пример #2
0
        public void updatePatientClaimAddOnBodyPart()
        {
            PatientClaimAddOnBodyPart _PatientClaimAddOnBodyPart = new PatientClaimAddOnBodyPart
            {
                AddOnBodyPartID             = 5,
                PatientClaimID              = 3,
                PatientClaimAddOnBodyPartID = 18,
                BodyPartStatusID            = 2
            };

            var _id = _patientRepository.updatePatientClaimAddOnBodyPart(_PatientClaimAddOnBodyPart);

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

            try
            {
                if (PatientClaimAddOnBodyPartDetails.PatientClaimAddOnBodyPartID == GlobalConst.ConstantChar.Zero)
                {
                    _Result = _iPatientService.addPatientClaimAddOnBodyPart(Mapper.Map <MMCService.PatientService.PatientClaimAddOnBodyPart>(PatientClaimAddOnBodyPartDetails));
                }
                else
                {
                    _iPatientService.updatePatientClaimAddOnBodyPart(Mapper.Map <MMCService.PatientService.PatientClaimAddOnBodyPart>(PatientClaimAddOnBodyPartDetails));
                    _Result = GlobalConst.ConstantChar.MinusOne;
                }
            }
            catch
            {
                _Result = GlobalConst.ConstantChar.Zero;
            }
            return(Json(_Result));
        }
Пример #4
0
 public int updatePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart)
 {
     return(_patientRepository.updatePatientClaimAddOnBodyPart(Mapper.Map <DTO.PatientClaimAddOnBodyPart, MMC.Core.Data.Model.PatientClaimAddOnBodyPart>(_patientAddOnBodyPart)));
 }
Пример #5
0
 public int updatePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart)
 {
     return(_patientClaimAddOnBodyPartRepo.Update(_patientAddOnBodyPart));
 }
Пример #6
0
 public int addPatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart)
 {
     return(_patientClaimAddOnBodyPartRepo.Add(_patientAddOnBodyPart).PatientClaimAddOnBodyPartID);
 }