Exemplo n.º 1
0
        private void LoadGeneralQMView()
        {
            _sListView                  = new SiteListView();
            _sListView.MySortBrush      = SystemBrushes.ControlLight;
            _sListView.MyHighlightBrush = Brushes.Goldenrod;
            _sListView.GridLines        = true;
            _sListView.MultiSelect      = false;
            _sListView.Dock             = DockStyle.Fill;
            _sListView.ControlPadding   = 4;
            _sListView.HeaderStyle      = ColumnHeaderStyle.Nonclickable;
            _sListView.Scrollable       = true;

            _comSupplies = new ComboBox();
            _comSupplies.Items.AddRange(Enum.GetNames(typeof(CollectionSupplieAppliedToEnum)));

            //add columns and items
            _sListView.Columns.Add(new EXColumnHeader("Product", 100));
            _sListView.Columns.Add(new EXColumnHeader("B.Unit", 60));
            EXEditableColumnHeader exEditCol = new EXEditableColumnHeader("U.Rate", 60);

            _sListView.Columns.Add(exEditCol);
            _sListView.Columns.Add(new EXColumnHeader("Quantify According to...", 100));

            exEditCol = new EXEditableColumnHeader("Supplies Apply to", _comSupplies, 100);
            _sListView.Columns.Add(exEditCol);

            _sListView.EditableListViewSubitemValueChanged += new EventHandler <EXEditableListViewSubitemEventArgs>(_sListView_EditableListViewSubitemValueChanged);
            _sListView.SelectedIndexChanged += new EventHandler(_sListView_SelectedIndexChanged);
            panGeneral.Controls.Add(_sListView);
        }
Exemplo n.º 2
0
        private void LoadSiteListView()
        {
            _sListView                  = new SiteListView();
            _sListView.MySortBrush      = SystemBrushes.ControlLight;
            _sListView.MyHighlightBrush = Brushes.Goldenrod;
            _sListView.GridLines        = true;
            _sListView.MultiSelect      = false;
            _sListView.Dock             = DockStyle.Fill;
            _sListView.ControlPadding   = 4;
            _sListView.HeaderStyle      = ColumnHeaderStyle.None;

            _comTestingArea               = new ComboBox();
            _comTestingArea.ValueMember   = "Id";
            _comTestingArea.DisplayMember = "AreaName";
            _comTestingArea.DataSource    = DataRepository.GetAllTestingArea();

            //add columns and items
            _sListView.Columns.Add(new EXColumnHeader("Area Name", 200));
            EXEditableColumnHeader exEditCol = new EXEditableColumnHeader("Testing Area", _comTestingArea, 200);

            _sListView.Columns.Add(exEditCol);

            _sListView.EditableListViewSubitemValueChanged += new EventHandler <EXEditableListViewSubitemEventArgs>(_sListView_EditableListViewSubitemValueChanged);
            panel1.Controls.Add(_sListView);
        }
Exemplo n.º 3
0
        private void InitOtherListView()
        {
            _othListView                  = new SiteListView();
            _othListView.MySortBrush      = SystemBrushes.ControlLight;
            _othListView.MyHighlightBrush = Brushes.Goldenrod;
            _othListView.GridLines        = true;
            _othListView.MultiSelect      = false;
            _othListView.Dock             = DockStyle.Fill;
            _othListView.ControlPadding   = 4;
            _othListView.HeaderStyle      = ColumnHeaderStyle.Nonclickable;

            //add columns and items

            EXColumnHeader exEditCol = new EXColumnHeader("", 120);

            _othListView.Columns.Add(exEditCol);

            //string[] testname = Enum.GetNames(typeof(OtherTestNameEnum));
            var results = DataRepository.GetTestByPlatform(ClassOfMorbidityTestEnum.OtherTest.ToString());

            //for (int i = 0; i < testname.Length; i++)
            foreach (Test t in results)
            {
                EXEditableColumnHeader exCol = new EXEditableColumnHeader(t.TestName, 60);
                _othListView.Columns.Add(exCol);
            }

            _othListView.EditableListViewSubitemValueChanged += new EventHandler <EXEditableListViewSubitemEventArgs>(_othListView_EditableListViewSubitemValueChanged);

            tabOther.Controls.Add(_othListView);
        }
Exemplo n.º 4
0
        private void InitOtherListView()
        {
            _othListView                  = new SiteListView();
            _othListView.MySortBrush      = SystemBrushes.ControlLight;
            _othListView.MyHighlightBrush = Brushes.Goldenrod;
            _othListView.GridLines        = true;
            _othListView.MultiSelect      = false;
            _othListView.Dock             = DockStyle.Fill;
            _othListView.ControlPadding   = 4;
            _othListView.HeaderStyle      = ColumnHeaderStyle.Nonclickable;

            //add columns and items

            EXColumnHeader exEditCol = new EXColumnHeader("", 120);

            _othListView.Columns.Add(exEditCol);

            string[] testname = Enum.GetNames(typeof(OtherTestNameEnum));
            for (int i = 0; i < testname.Length; i++)
            {
                EXEditableColumnHeader exCol = new EXEditableColumnHeader(testname[i].Replace('_', ' '), 60);
                _othListView.Columns.Add(exCol);
            }

            _othListView.EditableListViewSubitemValueChanged += new EventHandler <EXEditableListViewSubitemEventArgs>(_othListView_EditableListViewSubitemValueChanged);

            tabOther.Controls.Add(_othListView);
        }
Exemplo n.º 5
0
        private void InitListView()
        {
            _cd4ListView                  = new SiteListView();
            _cd4ListView.MySortBrush      = SystemBrushes.ControlLight;
            _cd4ListView.MyHighlightBrush = Brushes.Goldenrod;
            _cd4ListView.GridLines        = true;
            _cd4ListView.MultiSelect      = false;
            _cd4ListView.Dock             = DockStyle.Fill;
            _cd4ListView.ControlPadding   = 4;
            _cd4ListView.HeaderStyle      = ColumnHeaderStyle.Nonclickable;

            //add columns and items
            EXEditableColumnHeader exEditCol = new EXEditableColumnHeader("", 150);

            _cd4ListView.Columns.Add(exEditCol);

            exEditCol = new EXEditableColumnHeader("% of New Patients on Panel", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month1", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month2", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month3", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month4", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month5", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month6", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month7", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month8", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month9", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month10", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month11", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Month12", 60);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("% of Pre-Existing Patients on Panel", 120);
            _cd4ListView.Columns.Add(exEditCol);
            exEditCol = new EXEditableColumnHeader("Tests/ year after month 12", 120);
            _cd4ListView.Columns.Add(exEditCol);

            _cd4ListView.EditableListViewSubitemValueChanged += new EventHandler <EXEditableListViewSubitemEventArgs>(_cd4ListView_EditableListViewSubitemValueChanged);

            gbxSample.Controls.Add(_cd4ListView);
        }