Esempio n. 1
0
        private ProviderClinicType[] FindProviderClinicTypes(Guid providerId)
        {
            DataTable dataTable = _dbLib.ProviderClinicTypeGet(null, providerId, null);
            List <ProviderClinicType> providerClinicTypeList = new List <ProviderClinicType>();

            foreach (DataRow dataRow in dataTable.Rows)
            {
                ProviderClinicType providerClinicType = new ProviderClinicType(this, dataRow);
                providerClinicTypeList.Add(providerClinicType);
            }

            return(providerClinicTypeList.ToArray());
        }
Esempio n. 2
0
        public void AddProviderClinicType(ProviderClinicType pct)
        {
            if (pct != null)
            {
                List <ProviderClinicType> providerClinicTypesList = new List <ProviderClinicType>();
                if (_providerClinicTypes != null)
                {
                    foreach (ProviderClinicType provClinicType in _providerClinicTypes)
                    {
                        providerClinicTypesList.Add(provClinicType);
                    }
                }

                providerClinicTypesList.Add(pct);
                _providerClinicTypes = providerClinicTypesList.ToArray();
            }
        }