public static void Update(Document doc) { if (RemotingClient.OpenDentBusinessIsLocal) { DocumentB.Update(doc); } else { DtoDocumentUpdate dto = new DtoDocumentUpdate(); dto.Doc = doc; RemotingClient.ProcessCommand(dto); } }
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; }