Beispiel #1
0
        public static IList<ProviderUser> FindByFacility(ProviderFacility p)
        {
            if (p == null || !p.ID.HasValue)
                return new List<ProviderUser>();

            return FindByFacility(p.ID.Value);
        }
Beispiel #2
0
        public void AddFacility(ProviderFacility item)
        {
            var tbl = Table.Get("FDARems", "ProviderUserFacilities");
            var data = new Dictionary<string, object>();

            data.Add("UserID", this.ID.Value);
            data.Add("FacilityID", item.ID.Value);

            tbl.Insert(data);
        }
Beispiel #3
0
        public void RemoveFacility(ProviderFacility item)
        {
            var tbl = Table.Get("FDARems", "ProviderUserFacilities");

            tbl.Delete(this.table.DB.Delim("UserID", DelimType.Column) + " = @uid AND " + this.table.DB.Delim("FacilityID", DelimType.Column) + " = @fid", new Parameter[] { new Parameter("uid", this.ID.Value), new Parameter("fid", item.ID.Value) });
        }
        public static IList<PrescriberProfile> FindByFacility(ProviderFacility p)
        {
            /*
            if (p == null || !p.ID.HasValue)
                return new List<PrescriberProfile>();

            return FindByFacility(p.ID.Value);
            */

            throw new NotImplementedException();
        }