public override void Act()
 {
     base.Act();
     try
     {
         result = Sut.Create(receptionDs);
     }
     catch (Exception e)
     {
         exception = e;
     }
 }
        public TaminPrescriptionDto Create(MiladClinicDs miladClinicDs)
        {
            var taminLaboratoryPresc = new TaminPrescriptionDto();

            taminLaboratoryPresc.ReceptionNo         = miladClinicDs.Reception.ReceptionNo;
            taminLaboratoryPresc.WhichFrom           = "آزمایشگاه";
            taminLaboratoryPresc.HeadPrescriptionDto = new TaminHeadPrescriptionDto();
            taminLaboratoryPresc.DetailEpresclist    = new TaminDetailPrescriptionDto[0];
            var detailPrescriptionDto = new TaminDetailPrescriptionDto()
            {
            };

            taminLaboratoryPresc.PrescriptionPatient = new TaminPrescriptionPatient();


            return(taminLaboratoryPresc);
        }
예제 #3
0
        public TaminPrescriptionDto Create(ReceptionDs receptionDs)
        {
            var result = new TaminPrescriptionDto();

            result.HeadPrescriptionDto           = new TaminHeadPrescriptionDto();
            result.DetailEpresclist              = new List <TaminDetailPrescriptionDto>();
            result.HeadPrescriptionDto.PrescType = 3;
            result.HeadPrescriptionDto.DocId     = int.Parse(receptionDs.Doctor.MedicalNo).ToString();
            result.HeadPrescriptionDto.PrescDate = "13" + receptionDs.ReceptionDate.Replace("/", "");
            result.HeadPrescriptionDto.SrvType   = null;
            try
            {
                result.HeadPrescriptionDto.DocSpec =
                    doctorService.GetTaminSpeciality(Convert.ToInt32(receptionDs.Doctor.MajorExpert.Id)).ToString();
            }
            catch (Exception e)
            {
                throw new Exception();
            }

            return(result);
        }
예제 #4
0
 public override void Act()
 {
     base.Act();
     result = Sut.Create(receptionDs);
 }