Пример #1
0
 public void PatientReception(IPatient patient)
 {
     this.patient = patient;
     this.insurances = patient.Insurance;
     insurances.Report += insurances_Report;
     PrimaryExamination();
 }
Пример #2
0
 public Patient(string name, int age, string symptom, IInsurance insurance)
 {
     Name = name;
     Age = age;
     Symptom = symptom;
     Insurance = insurance;
 }
Пример #3
0
 public Policy(string series, string number, IInsurance insurance,
               List <IServiceType> serviceList, IPatient patient)
 {
     _series      = series;
     _number      = number;
     _insurance   = insurance;
     _serviceList = serviceList;
     _patient     = patient;
 }
Пример #4
0
 public Policy(string series, string number, IInsurance insurance,
     List<IServiceType> serviceList, IPatient patient)
 {
     _series = series;
     _number = number;
     _insurance = insurance;
     _serviceList = serviceList;
     _patient = patient;
 }
Пример #5
0
        public static void OnDeleting(IInsurance insurance, IObjectSpace objectSpace)
        {
            if (insurance.allowTodel == false)
            {
                throw new UserFriendlyException(DevExpress.ExpressApp.Utils.CaptionHelper.GetLocalizedText("Exceptions", "SecuredObjectDelAttempt"));
            }

            var patients = Get_Patients(insurance, objectSpace);
            if (patients != null)
            {
                if (patients.Count>0)
                {
                    throw new UserFriendlyException(DevExpress.ExpressApp.Utils.CaptionHelper.GetLocalizedText("Messages", "RelatedObjectsDelWarning"));
                }
            }
        }
Пример #6
0
 internal PrivateComprehensive(IInsurance insurance) : base(insurance)
 {
 }
Пример #7
0
 public InsuranceDecorator(IInsurance insurance)
 {
     this.insurance = insurance;
 }
Пример #8
0
 internal CompanyComprehensive(IInsurance insurance) : base(insurance)
 {
 }
Пример #9
0
 public IInsurance Update(IInsurance insuranceId)
 {
     throw new NotImplementedException();
 }
Пример #10
0
 public static IList<IPatient> Get_Patients(IInsurance insurance, IObjectSpace objectSpace)
 {
     var criteria = CriteriaOperator.Parse("[Insurance] = ?", insurance);
     return objectSpace.GetObjects<IPatient>(criteria);
 }
Пример #11
0
 public static void AfterConstruction(IInsurance insurance)
 {
     insurance.allowTodel = true;
 }
Пример #12
0
 public static IInsurance StealInsurance(this IInsuranceAccident stealInsuranceAccident, IInsurance Insurance)
 {
     return(Insurance);
 }
 public static IInsurance RoadSideAsistanceInsurance(this IInsuranceAccidentPlus insuranceAccidentPlus, IInsurance insurance)
 {
     return(insurance);
 }