Beispiel #1
0
		///<summary>This is just the first version of this function.  It only gets selected parts of the Account refresh.</summary>
		public static DataSet GetAccount(int patNum){
			try {
				if(RemotingClient.OpenDentBusinessIsLocal) {
					return ModulesB.GetAccount(patNum);
				}
				else {
					DtoModulesGetAccount dto=new DtoModulesGetAccount();
					dto.PatNum=patNum;
					return RemotingClient.ProcessQuery(dto);
				}
			}
			catch(Exception e) {
				MessageBox.Show(e.Message);
				return new DataSet();//It might be better to return null.
			}
		}
Beispiel #2
0
 ///<summary>This is just the first version of this function.  It only gets selected parts of the Account refresh.</summary>
 public static DataSet GetAccount(int patNum)
 {
     try {
         if (RemotingClient.OpenDentBusinessIsLocal)
         {
             return(ModulesB.GetAccount(patNum));
         }
         else
         {
             DtoModulesGetAccount dto = new DtoModulesGetAccount();
             dto.PatNum = patNum;
             return(RemotingClient.ProcessQuery(dto));
         }
     }
     catch (Exception e) {
         MessageBox.Show(e.Message);
         return(new DataSet());               //It might be better to return null.
     }
 }