public ReadFileOrganization()
 {
     organizationList = OrganizationList.GetUniqueInstance();
     realRegionList   = RealRegionList.GetUniqueInstance();
     admLevelList     = AdmLevelList.GetUniqueInstance();
     typeFinList      = TypeFinList.GetUniqueInstance();
     mainSpecList     = MainSpecList.GetUniqueInstance();
     subRegionList    = SubRegionList.GetUniqueInstance();
     typeLPUList      = TypeLPUList.GetUniqueInstance();
     ownershipList    = OwnershipList.GetUniqueInstance();
 }
Exemplo n.º 2
0
        public LPU(DataRow row)
            : base(row)
        {
            int idTypeLPU;

            int.TryParse(row["TypeLPU_id"].ToString(), out idTypeLPU);
            TypeLPU = TypeLPUList.GetUniqueInstance().GetItem(idTypeLPU) as TypeLPU;

            int idOwnership;

            int.TryParse(row["Ownership_id"].ToString(), out idOwnership);
            Ownership = OwnershipList.GetUniqueInstance().GetItem(idOwnership) as Ownership;

            int idAdmLevel;

            int.TryParse(row["AdmLevel_id"].ToString(), out idAdmLevel);
            AdmLevel = AdmLevelList.GetUniqueInstance().GetItem(idAdmLevel) as AdmLevel;

            int idLpuRR;

            int.TryParse(row["lpuRR_id"].ToString(), out idLpuRR);
            LpuRRList lpuRRList = LpuRRList.GetUniqueInstance();

            LpuRR = lpuRRList.GetItem(idLpuRR) as LpuRR;

            int.TryParse(row["Organization_bedsTotal"].ToString(), out _bedsTotal);
            int.TryParse(row["Organization_bedsIC"].ToString(), out _bedsIC);
            int.TryParse(row["Organization_Surgical"].ToString(), out _bedsSurgical);
            int.TryParse(row["Organization_Operating"].ToString(), out _operating);

            SubRegion = row["Organization_SubRegion"].ToString();

            int idTypeFin;

            int.TryParse(row["typeFin_id"].ToString(), out idTypeFin);
            TypeFinList typeFinList = TypeFinList.GetUniqueInstance();

            TypeFin = typeFinList.GetItem(idTypeFin) as TypeFin;

            int idLpuRR2;

            int.TryParse(row["lpuRR2_id"].ToString(), out idLpuRR2);
            LpuRR2 = lpuRRList.GetItem(idLpuRR2) as LpuRR;
        }
Exemplo n.º 3
0
        public FormAddLPU(LPU lpu)
        {
            InitializeComponent();

            _lpu = lpu;

            if (_lpu.ParentOrganization != null)
            {
                _parentLPU = (_lpu.ParentOrganization as LPU);
            }

            _isLoad = false;

            _typeLPUList    = TypeLPUList.GetUniqueInstance();
            _ownershipList  = OwnershipList.GetUniqueInstance();
            _admLevelList   = AdmLevelList.GetUniqueInstance();
            _mainSpecList   = MainSpecList.GetUniqueInstance();
            _realRegionList = RealRegionList.GetUniqueInstance();
            _typeFinList    = TypeFinList.GetUniqueInstance();
            _historyList    = HistoryList.GetUniqueInstance();
            _lpuRRList      = LpuRRList.GetUniqueInstance();
        }