コード例 #1
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     if (newDataRoot != null)
     {
         this.dataRoot = (global::HospitalServerManager.ViewModel.AdmissionViewModel)newDataRoot;
         return(true);
     }
     return(false);
 }
コード例 #2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::HospitalServerManager.ViewModel.AdmissionViewModel obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_PrimaryKey(obj.PrimaryKey, phase);
             this.Update_AdmissionDate(obj.AdmissionDate, phase);
             this.Update_LeavingDate(obj.LeavingDate, phase);
             this.Update_PatientPESEL(obj.PatientPESEL, phase);
             this.Update_DiagnosisSymbol(obj.DiagnosisSymbol, phase);
             this.Update_MainDoctor(obj.MainDoctor, phase);
             this.Update_OperationID(obj.OperationID, phase);
             this.Update_RoomNumber(obj.RoomNumber, phase);
             this.Update_IsPlanned(obj.IsPlanned, phase);
         }
     }
 }