Esempio n. 1
0
        private void BindArtSites()
        {
            _sListView.Items.Clear();

            _sListView.BeginUpdate();

            foreach (ARTSite site in _artSites)
            {
                EXListViewItem item = new EXListViewItem(site.MorbidityCategory.CategoryName)
                {
                    Tag = site
                };

                item.SubItems.Add(new EXListViewSubItem(site.Site.SiteName));
                item.SubItems.Add(new EXListViewSubItem(site.NTTPercentOfChildren.ToString(), "PercentOfChildren"));

                item.SubItems.Add(new EXListViewSubItem(site.TimeZeroPatientOnTreatment.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTJanuary.ToString(), MonthNameEnum.January));
                item.SubItems.Add(new EXListViewSubItem(site.NTTFebruary.ToString(), MonthNameEnum.February));
                item.SubItems.Add(new EXListViewSubItem(site.NTTMarch.ToString(), MonthNameEnum.March));
                item.SubItems.Add(new EXListViewSubItem(site.NTTApril.ToString(), MonthNameEnum.April));
                item.SubItems.Add(new EXListViewSubItem(site.NTTMay.ToString(), MonthNameEnum.May));
                item.SubItems.Add(new EXListViewSubItem(site.NTTJune.ToString(), MonthNameEnum.June));
                item.SubItems.Add(new EXListViewSubItem(site.NTTJuly.ToString(), MonthNameEnum.July));
                item.SubItems.Add(new EXListViewSubItem(site.NTTAugust.ToString(), MonthNameEnum.August));
                item.SubItems.Add(new EXListViewSubItem(site.NTTSeptember.ToString(), MonthNameEnum.September));
                item.SubItems.Add(new EXListViewSubItem(site.NTTOctober.ToString(), MonthNameEnum.October));
                item.SubItems.Add(new EXListViewSubItem(site.NTTNovember.ToString(), MonthNameEnum.November));
                item.SubItems.Add(new EXListViewSubItem(site.NTTDecember.ToString(), MonthNameEnum.December));

                _sListView.Items.Add(item);
            }
            _sListView.EndUpdate();
        }
Esempio n. 2
0
        private void AddSubItemToPlatformView()
        {
            ClassOfMorbidityTestEnum[] ctest = LqtUtil.EnumToArray <ClassOfMorbidityTestEnum>();
            _sPlatformView.Items.Clear();
            _sPlatformView.BeginUpdate();

            foreach (ARTSite site in _artSites)
            {
                ListViewGroup group = new ListViewGroup(site.Id.ToString(), site.MorbidityCategory.CategoryName + "-> " + site.Site.SiteName);
                _sPlatformView.Groups.Add(group);

                for (int i = 0; i < ctest.Length; i++)
                {
                    EXListViewItem item = new EXListViewItem(ctest[i].ToString())
                    {
                        Tag = site
                    };
                    string remark = IsValidRow(site, ctest[i]);
                    if (remark != null)
                    {
                        item.BackColor = Color.Tomato;
                    }
                    item.SubItems.Add(new EXBoolListViewSubItem(site.TestWasSelected(ctest[i]))
                    {
                        BackColor = item.BackColor
                    });
                    if (ctest[i] == ClassOfMorbidityTestEnum.RapidTest || ctest[i] == ClassOfMorbidityTestEnum.Consumable)
                    {
                        item.SubItems.Add(new EXListViewSubItem());
                        item.SubItems.Add(new EXListViewSubItem());
                        item.SubItems.Add(new EXListViewSubItem());
                        item.SubItems.Add(new EXListViewSubItem());
                    }
                    else
                    {
                        item.SubItems.Add(new EXBoolListViewSubItem(site.TestWasReffered(ctest[i]))
                        {
                            BackColor = item.BackColor
                        });
                        item.SubItems.Add(new EXBoolListViewSubItem(site.HasPlatform(ctest[i]))
                        {
                            BackColor = item.BackColor
                        });
                        item.SubItems.Add(new EXListViewSubItem(site.NoOfPlatform(ctest[i]).ToString())
                        {
                            BackColor = item.BackColor
                        });
                        item.SubItems.Add(new EXListViewSubItem(remark)
                        {
                            BackColor = item.BackColor
                        });
                    }
                    item.Group = group;
                    _sPlatformView.Items.Add(item);
                }
            }
            _platformVisted = true;
            _sPlatformView.EndUpdate();
        }
Esempio n. 3
0
        private void PopListView()
        {
            _sListView.Items.Clear();
            _sListView.BeginUpdate();

            foreach (ImportedReagionOrCategory ta in _listOfImportedCat.Values)
            {
                EXListViewItem li = new EXListViewItem(ta.RegionOrCatName)
                {
                    Tag = ta
                };
                li.SubItems.Add(new EXListViewSubItem("---Select Category/Region---", "Category/Region"));

                _sListView.Items.Add(li);
            }

            _sListView.EndUpdate();
        }
Esempio n. 4
0
        //private int _selectedTestId = 0;
        private void PopTests()
        {
            lbtRemove.Enabled = false;
            _sListView.BeginUpdate();
            _sListView.Items.Clear();

            foreach (QuantificationMetric qm in DataRepository.GetAllQuantificationMetricByClass(ClassOfMorbidityTestEnum.RapidTest.ToString()))
            {
                EXListViewItem li = new EXListViewItem(qm.Product.ProductName)
                {
                    Tag = qm
                };

                li.SubItems.Add(new EXListViewSubItem(qm.Product.BasicUnit));
                li.SubItems.Add(new EXListViewSubItem(qm.UsageRate.ToString(), "U.Rate"));
                li.SubItems.Add(new EXListViewSubItem(qm.QuantifyMenu.Title));
                li.SubItems.Add(new EXListViewSubItem(qm.CollectionSupplieAppliedTo, "Supplies"));

                _sListView.Items.Add(li);
            }
            _sListView.EndUpdate();
        }
Esempio n. 5
0
        private void BindArtSites()
        {
            _sListView.Items.Clear();

            _sListView.BeginUpdate();

            foreach (ARTSite site in _artSites)
            {
                EXListViewItem item = new EXListViewItem(site.MorbidityCategory.CategoryName)
                {
                    Tag = site
                };

                item.SubItems.Add(new EXListViewSubItem(site.Site.SiteName));
                item.SubItems.Add(new EXListViewSubItem(site.NTTPercentOfChildren.ToString(), "PercentOfChildren"));

                item.SubItems.Add(new EXListViewSubItem(site.TimeZeroPatientOnTreatment.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTJanuary.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTFebruary.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTMarch.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTApril.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTMay.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTJune.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTJuly.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTAugust.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTSeptember.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTOctober.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTNovember.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTDecember.ToString()));
                item.SubItems.Add(new EXListViewSubItem(site.NTTGrowthTarget.ToString(), "GrowthTarget"));

                item.SubItems.Add(new EXBoolListViewSubItem(site.NTTApplyLinerGrowth, "ApplyGrowth"));

                _sListView.Items.Add(item);
            }
            _sListView.EndUpdate();
        }
Esempio n. 6
0
        private void BindArtSites()
        {
            _sListView.Items.Clear();
            _sListView.BeginUpdate();

            if (_activeCategory != null)
            {
                foreach (ARTSite site in GetARTSiteByCategory(_activeCategory.Id))
                {
                    EXListViewItem item = new EXListViewItem(site.MorbidityCategory.CategoryName)
                    {
                        Tag = site
                    };

                    item.SubItems.Add(new EXListViewSubItem(site.Site.SiteName));
                    item.SubItems.Add(new EXListViewSubItem(site.Site.SiteCategory != null ? site.Site.SiteCategory.CategoryName : ""));

                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastVCT, BooleanColumnName.VCT));
                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastCD4, BooleanColumnName.CD4));
                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastChemistry, BooleanColumnName.Chemistry));
                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastHematology, BooleanColumnName.Hematology));
                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastViralLoad, BooleanColumnName.ViralLoad));
                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastOtherTest, BooleanColumnName.OtherTest));
                    item.SubItems.Add(new EXBoolListViewSubItem(site.ForecastConsumable, BooleanColumnName.Consumable));

                    _sListView.Items.Add(item);
                }
                lbtAddsite.Enabled = true;
            }
            else
            {
                lbtAddsite.Enabled    = false;
                lbtRemovesite.Enabled = false;
            }
            _sListView.EndUpdate();
        }
Esempio n. 7
0
        private void AddSubItemToPBehaviorView()
        {
            _pBehaviorView.Items.Clear();
            _pBehaviorView.BeginUpdate();

            foreach (ARTSite site in _artSites)
            {
                EXListViewItem item = new EXListViewItem(site.Site.SiteName)
                {
                    Tag = site
                };

                item.SubItems.Add(new EXListViewSubItem()
                {
                    BackColor = Color.WhiteSmoke
                });
                item.SubItems.Add(new EXListViewSubItem(site.AITAnnualPatientAttrition.ToString())
                {
                    BackColor = CheckForAttritionAndMigration(site, 1, Color.PaleGoldenrod)
                });
                item.SubItems.Add(new EXListViewSubItem(site.AIPAnualPatientAttrition.ToString())
                {
                    BackColor = CheckForAttritionAndMigration(site, 2, Color.PaleGoldenrod)
                });
                item.SubItems.Add(new EXListViewSubItem(site.AIPAnnualMigration.ToString())
                {
                    BackColor = CheckForAttritionAndMigration(site, 3, Color.PaleGoldenrod)
                });

                item.SubItems.Add(new EXListViewSubItem()
                {
                    BackColor = Color.WhiteSmoke
                });
                item.SubItems.Add(new EXListViewSubItem(site.NTTPercentOfChildren.ToString())
                {
                    BackColor = Color.PaleGoldenrod
                });
                item.SubItems.Add(new EXListViewSubItem(site.NTPTPercentOfChildren.ToString())
                {
                    BackColor = Color.PaleGoldenrod
                });

                item.SubItems.Add(new EXListViewSubItem()
                {
                    BackColor = Color.WhiteSmoke
                });
                item.SubItems.Add(new EXListViewSubItem(site.PITAnnualPatientAttrition.ToString())
                {
                    BackColor = Color.PaleGoldenrod
                });
                item.SubItems.Add(new EXListViewSubItem(site.PIPAnualPatientAttrition.ToString())
                {
                    BackColor = Color.PaleGoldenrod
                });
                item.SubItems.Add(new EXListViewSubItem(site.PIPAnnualMigration.ToString())
                {
                    BackColor = Color.PaleGoldenrod
                });

                _pBehaviorView.Items.Add(item);
            }
            _behaviorVisted = true;
            _pBehaviorView.EndUpdate();
        }