Пример #1
0
        public void SetStyle()
        {
            foreach (DataGridViewRow row in _dgv.Rows)
            {
                if (Convert.ToInt32(row.Cells["Окончание отчётности"].Value.ToString()) < globalData.CurDate.Year)
                {
                    row.DefaultCellStyle.BackColor = bbgray4;
                }

                int idLPU;
                int.TryParse(row.Cells["№ ЛПУ-RR"].Value.ToString(), out idLPU);

                LpuRRList lpuRRList = LpuRRList.GetUniqueInstance();
                LpuRR     lpuRR     = lpuRRList.GetItem(idLPU) as LpuRR;

                if (lpuRR.StatusLPU == StatusLPU.Неактивен)
                {
                    row.DefaultCellStyle.ForeColor = Color.Red;
                }
                else if (lpuRR.StatusLPU == StatusLPU.Групповой)
                {
                    row.DefaultCellStyle.ForeColor = Color.Blue;
                }
            }
        }
        public FormSecondStepAddOrganization(LPU lpu)
        {
            InitializeComponent();

            _realRegionList     = RealRegionList.GetUniqueInstance();
            _lpuCompetitorsList = LpuCompetitorsList.GetUniqueInstance();
            _lpuRRList          = LpuRRList.GetUniqueInstance();

            _lpu = lpu;

            _seacher = new SearchInDgv(dgvLPUCompetitors);
        }
Пример #3
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;
        }
Пример #4
0
        public HT_Add_LPU(bool flag_edit = true)
        {
            InitializeComponent();

            _regionRRList = RegionRRList.GetUniqueInstance();
            _lpuRRList    = LpuRRList.GetUniqueInstance();
            _lpuHTList    = LpuRRList.GetUniqueInstance();

            _lpuRRController = new LpuRRController(_dgv1);
            _lpuHTController = new LpuRRController(_dgv2);

            btnAddUserLPU.Visible = flag_edit;
            btnDelUserLPU.Visible = flag_edit;

            globalData.update = false;
            fillRegion();
            globalData.update = true;
            loadData1();
            loadData2();
        }
Пример #5
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();
        }
Пример #6
0
        public UserLpuAccess()
        {
            InitializeComponent();

            _regionRRList  = RegionRRList.GetUniqueInstance();
            _lpuRRList     = LpuRRList.GetUniqueInstance();
            _userLpuRRList = UserLpuRRList.GetUniqueInstance();
            _userList      = UserList.GetUniqueInstance();

            _lpuRRController         = new LpuRRController(_dgv1);
            _userLpuRRListController = new UserLpuRRListController(_dgv2);

            globalData.load = false;

            cbSDiv.SelectedIndex = 0;

            globalData.Div = cbSDiv.SelectedItem.ToString();

            globalData.load = true;

            fillRegion();
            fillUsers();
        }
 public LpuRRController(DataGridView dgv)
     : base(dgv)
 {
     _lpuRRList = LpuRRList.GetUniqueInstance();
 }