public NewDiagnosisEditPresenter(INewDiagnosisEditView newDiagnosisEditView, DtoDiagnosis editDiagnosis)
 {
     this.newDiagnosisEditView = newDiagnosisEditView;
     newDiagnosisEditModel     = new NewDiagnosisModel();
     this.editDiagnosis        = editDiagnosis;
     newDiagnosisEditView.NewDiagnosisEditLoad += LoadNewDiagnosisEditProp;
     newDiagnosisEditView.EditOkClick          += EditDiagnosis;
 }
 public NewDiagnosisEditPresenter(INewDiagnosisEditView newDiagnosisEditView, DtoDiagnosis editDiagnosis)
 {
     this.newDiagnosisEditView = newDiagnosisEditView;
     newDiagnosisEditModel = new NewDiagnosisModel();
     this.editDiagnosis = editDiagnosis;
     newDiagnosisEditView.NewDiagnosisEditLoad += LoadNewDiagnosisEditProp;
     newDiagnosisEditView.EditOkClick += EditDiagnosis;
 }
Beispiel #3
0
 public BindingList<DtoDiagnosis> SearchDiagnoses(string code, string name)
 {
     var dtoDiagnosis = new DtoDiagnosis()
     {
         Code = code,
         Name = name
     };
     return new BindingList<DtoDiagnosis>(new DiagnosisServiceClient().FindDiagnoses(dtoDiagnosis));
 }
Beispiel #4
0
        public BindingList <DtoDiagnosis> SearchDiagnoses(string code, string name)
        {
            var dtoDiagnosis = new DtoDiagnosis()
            {
                Code = code,
                Name = name
            };

            return(new BindingList <DtoDiagnosis>(new DiagnosisServiceClient().FindDiagnoses(dtoDiagnosis)));
        }
Beispiel #5
0
 public string EditDiagnosis(string code, string name, bool isEdit)
 {
     if (Validation.Instance.ValidateCode(code))
     {
         var dtoDiagnosis = new DtoDiagnosis()
         {
             Code   = code,
             Name   = name,
             IsEdit = isEdit
         };
         return(new DiagnosisServiceClient().EditDiagnosis(dtoDiagnosis));
     }
     else
     {
         return("Invalid Code field!");
     }
 }
Beispiel #6
0
 public string EditDiagnosis(string code, string name, bool isEdit)
 {
     if (Validation.Instance.ValidateCode(code))
     {
         var dtoDiagnosis = new DtoDiagnosis()
         {
             Code = code,
             Name = name,
             IsEdit = isEdit
         };
         return new DiagnosisServiceClient().EditDiagnosis(dtoDiagnosis);
     }
     else
     {
         return "Invalid Code field!";
     }
 }