示例#1
0
 public static void Update(Document doc)
 {
     if (RemotingClient.OpenDentBusinessIsLocal)
     {
         DocumentB.Update(doc);
     }
     else
     {
         DtoDocumentUpdate dto = new DtoDocumentUpdate();
         dto.Doc = doc;
         RemotingClient.ProcessCommand(dto);
     }
 }
示例#2
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));
     }
 }
示例#3
0
        public static void Insert(Document doc, Patient pat)
        {
            int insertID = 0;

            if (RemotingClient.OpenDentBusinessIsLocal)
            {
                insertID = DocumentB.Insert(doc, pat.LName + pat.FName, pat.PatNum);
            }
            else
            {
                DtoDocumentInsert dto = new DtoDocumentInsert();
                dto.Doc    = doc;
                dto.PatLF  = pat.LName + pat.FName;
                dto.PatNum = pat.PatNum;
                insertID   = RemotingClient.ProcessCommand(dto);
            }
            doc.DocNum = insertID;
        }
示例#4
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);
 }