public SubRegion(DataRow row) : base(row) { int idRealRegion; int.TryParse(row[2].ToString(), out idRealRegion); _realRegion = RealRegionList.GetUniqueInstance().GetItem(idRealRegion) as RealRegion; }
internal Organization(DataRow row) { _provider = Provider.GetProvider(); int id; int.TryParse(row["Organization_id"].ToString(), out id); ID = id; NumberSF = row["Organization_NumberSF"].ToString(); int idTypeOrg; int.TryParse(row["TypeOrg_id"].ToString(), out idTypeOrg); TypeOrg = (TypeOrg)idTypeOrg; Name = row["Organization_name"].ToString(); ShortName = row["Organization_sName"].ToString(); int idMainSpec; int.TryParse(row["MainSpec_id"].ToString(), out idMainSpec); MainSpec = MainSpecList.GetUniqueInstance().GetItem(idMainSpec) as MainSpec; Email = row["Organization_email"].ToString(); Website = row["Organization_website"].ToString(); Phone = row["Organization_phone"].ToString(); int.TryParse(row["parent_id"].ToString(), out _idParentOrganization); KPP = row["Organization_KPP"].ToString(); PostIndex = row["Organization_PostIndex"].ToString(); int idRealRegion; int.TryParse(row["RealRegion_id"].ToString(), out idRealRegion); RealRegion = RealRegionList.GetUniqueInstance().GetItem(idRealRegion) as RealRegion; City = row["Organization_city"].ToString(); Street = row["Organization_street"].ToString(); INN = row["Organization_INN"].ToString(); int.TryParse(row["Organization_machineGD"].ToString(), out _machineGD); int.TryParse(row["Organization_machineGDF"].ToString(), out _machineGDF); int.TryParse(row["Organization_machineCRRT"].ToString(), out _machineCRRT); int.TryParse(row["Organization_shift"].ToString(), out _shift); int.TryParse(row["Organization_patientGD"].ToString(), out _patientGD); int.TryParse(row["Organization_patientPD"].ToString(), out _patientPD); int.TryParse(row["Organization_patientCRRT"].ToString(), out _patientCRRT); Pharmacy = row["pharmacy"].ToString(); CrmID = row["organization_crmID"].ToString(); bool deleted; bool.TryParse(row["organization_Deleted"].ToString(), out deleted); Deleted = deleted; }
public FormAddOtherOrganization(Organization organization) { InitializeComponent(); _organization = organization; _realRegionList = RealRegionList.GetUniqueInstance(); _historyList = HistoryList.GetUniqueInstance(); }
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(); }
public FormSecondStepAddOrganization(LPU lpu) { InitializeComponent(); _realRegionList = RealRegionList.GetUniqueInstance(); _lpuCompetitorsList = LpuCompetitorsList.GetUniqueInstance(); _lpuRRList = LpuRRList.GetUniqueInstance(); _lpu = lpu; _seacher = new SearchInDgv(dgvLPUCompetitors); }
public LpuCompetitors(DataRow row) : base(row) { _inn = row[2].ToString(); int idRealRegion; int.TryParse(row[3].ToString(), out idRealRegion); RealRegionList realRegionList = RealRegionList.GetUniqueInstance(); _realRegion = realRegionList.GetItem(idRealRegion) as RealRegion; _kpp = row[4].ToString(); }
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(); }