예제 #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
        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;
        }