Exemple #1
0
 public static DataSet GetDataSet(string commands)
 {
     if (RemotingClient.OpenDentBusinessIsLocal)
     {
         return(GeneralB.GetDataSet(commands));
     }
     else
     {
         DtoGeneralGetDataSet dto = new DtoGeneralGetDataSet();
         dto.Commands = commands;
         return(RemotingClient.ProcessQuery(dto));
     }
 }
Exemple #2
0
 ///<summary>Same as GetCount, but will throw exception if query fails instead of displaying message.</summary>
 public static string GetCountEx(string command)
 {
     if (RemotingClient.OpenDentBusinessIsLocal)
     {
         return(GeneralB.GetTable(command).Tables[0].Rows[0][0].ToString());
     }
     else
     {
         DtoGeneralGetTable dto = new DtoGeneralGetTable();
         dto.Command = command;
         return(RemotingClient.ProcessQuery(dto).Tables[0].Rows[0][0].ToString());
     }
 }
Exemple #3
0
        public static DataTable GetTableLow(string command)
        {
            DataTable retVal;

            if (RemotingClient.OpenDentBusinessIsLocal)
            {
                retVal = GeneralB.GetTable(command).Tables[0].Copy();
            }
            else
            {
                DtoGeneralGetTableLow dto = new DtoGeneralGetTableLow();
                dto.Command = command;
                retVal      = RemotingClient.ProcessQuery(dto).Tables[0].Copy();
            }
            retVal.TableName = "";          //this is needed for FormQuery dataGrid
            return(retVal);
        }