Beispiel #1
0
 ///<summary></summary>
 public static void Update(DefLink defLink)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), defLink);
         return;
     }
     Crud.DefLinkCrud.Update(defLink);
 }
Beispiel #2
0
 ///<summary></summary>
 public static long Insert(DefLink defLink)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         defLink.DefLinkNum = Meth.GetLong(MethodBase.GetCurrentMethod(), defLink);
         return(defLink.DefLinkNum);
     }
     return(Crud.DefLinkCrud.Insert(defLink));
 }
        ///<summary>Returns the appointment type associated to the definition passed in.  Returns null if no match found.</summary>
        public static AppointmentType GetWebSchedNewPatApptTypeByDef(long defNum)
        {
            //No need to check RemotingRole; no call to db.
            List <DefLink> listDefLinks = DefLinks.GetDefLinksByType(DefLinkType.AppointmentType);
            DefLink        defLink      = listDefLinks.FirstOrDefault(x => x.DefNum == defNum);

            if (defLink == null)
            {
                return(null);
            }
            return(AppointmentTypes.GetFirstOrDefault(x => x.AppointmentTypeNum == defLink.FKey, true));
        }