Exemple #1
0
 ///<summary>Same as NonQ, but will throw exception if query fails instead of displaying message.  Used in ClassConvertDatabase and any place where we want to be able to suppress the exception message or handle it differently.</summary>
 public static int NonQEx(string command, bool getInsertID)
 {
     if (RemotingClient.OpenDentBusinessIsLocal)
     {
         return(GeneralB.NonQ(command, getInsertID));
     }
     else
     {
         DtoGeneralNonQ dto = new DtoGeneralNonQ();
         dto.Command     = command;
         dto.GetInsertID = getInsertID;
         return(RemotingClient.ProcessCommand(dto));
     }
 }
Exemple #2
0
 ///<summary></summary>
 public static int NonQEx(string[] commands)
 {
     for (int i = 0; i < commands.Length; i++)
     {
         if (RemotingClient.OpenDentBusinessIsLocal)
         {
             GeneralB.NonQ(commands[i], false);
         }
         else
         {
             DtoGeneralNonQ dto = new DtoGeneralNonQ();
             dto.Command     = commands[i];
             dto.GetInsertID = false;
             RemotingClient.ProcessCommand(dto);
         }
     }
     return(0);
 }