Beispiel #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");
        }
Beispiel #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");
        }
Beispiel #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));
        }
Beispiel #4
0
 public int updatePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart)
 {
     return(_patientRepository.updatePatientClaimAddOnBodyPart(Mapper.Map <DTO.PatientClaimAddOnBodyPart, MMC.Core.Data.Model.PatientClaimAddOnBodyPart>(_patientAddOnBodyPart)));
 }
Beispiel #5
0
 public int updatePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart)
 {
     return(_patientClaimAddOnBodyPartRepo.Update(_patientAddOnBodyPart));
 }
Beispiel #6
0
 public int addPatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart)
 {
     return(_patientClaimAddOnBodyPartRepo.Add(_patientAddOnBodyPart).PatientClaimAddOnBodyPartID);
 }