Esempio n. 1
0
        public PatientBedFeatures GetObjectByKey(KeyValuePair <string, long> keypair)
        {
            if (this.Contains(keypair) == false)
            {
                return(null);
            }
            PatientBedFeatures ob = this[keypair];

            return((PatientBedFeatures)ob);
        }
Esempio n. 2
0
        public PatientBedFeatures GetObjectByKey(object keypair)
        {
            if (this.Contains(GetKey(keypair)) == false)
            {
                return(null);
            }
            PatientBedFeatures ob = this[GetKey(keypair)];

            return((PatientBedFeatures)ob);
        }
Esempio n. 3
0
        public PatientBedFeatures GetObjectByKey(long k_PtBedFeatureID)
        {
            if (this.Contains(GetKey(k_PtBedFeatureID)) == false)
            {
                return(null);
            }
            PatientBedFeatures ob = this[GetKey(k_PtBedFeatureID)];

            return((PatientBedFeatures)ob);
        }
Esempio n. 4
0
        public bool ChangeItem(KeyValuePair <string, long> keypair, PatientBedFeatures item)
        {
            PatientBedFeatures orig = this.GetObjectByKey(keypair);

            if (orig != null)
            {
                int index = this.IndexOf(orig);
                this.SetItem(index, item);

                return(true);
            }

            return(false);
        }
Esempio n. 5
0
        public PatientBedFeatures GetObjectByKey(long k_PtBedFeatureID, LV.Core.DAL.Base.IRepository repository)
        {
            if (this.Contains(GetKey(k_PtBedFeatureID)) == false)
            {
                PatientBedFeatures ob = repository.GetQuery <PatientBedFeatures>().FirstOrDefault(o => o.PtBedFeatureID == k_PtBedFeatureID);
                if (ob != null)
                {
                    this.Add(ob);
                }
                return(ob);
            }
            PatientBedFeatures obj = this[GetKey(k_PtBedFeatureID)];

            return((PatientBedFeatures)obj);
        }
Esempio n. 6
0
 protected override KeyValuePair <string, long> GetKeyForItem(PatientBedFeatures item)
 {
     return(item.Key);
 }
Esempio n. 7
0
        public bool DeleteObject(PatientBedFeatures item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Update(item);

            return(true);
        }
Esempio n. 8
0
        public bool AddObject(PatientBedFeatures item, LV.Core.DAL.Base.IRepository repository)
        {
            repository.Add(item);

            return(true);
        }