Ejemplo n.º 1
0
        void _othListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            int rowid = (int)e.ListVItem.Tag;
            //OtherTestNameEnum tname = (OtherTestNameEnum)e.SubItem.ColumnName;
            int testid = Convert.ToInt32(e.SubItem.ColumnName);

            try
            {
                double value             = Convert.ToDouble(e.SubItem.Text);
                PSymptomDirectedTest pdt = _protocol.GetSymptomDirectedTestByTestId(testid);
                if (rowid == 1)
                {
                    pdt.AdultInTreatmeant = value;
                }
                else if (rowid == 2)
                {
                    pdt.PediatricInTreatmeant = value;
                }
                else if (rowid == 3)
                {
                    pdt.AdultPreART = value;
                }
                else
                {
                    pdt.PediatricPreART = value;
                }
            }
            catch
            {
            }
        }
Ejemplo n.º 2
0
 public void OnEditableListViewSubitemChanged(EXEditableListViewSubitemEventArgs e)
 {
     if (EditableListViewSubitemValueChanged != null)
     {
         EditableListViewSubitemValueChanged(this, e);
     }
 }
Ejemplo n.º 3
0
        private void _cd4ListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            int rowid = (int)e.ListVItem.Tag;
            int month = (int)e.SubItem.ColumnName;

            try
            {
                //int value = Convert.ToInt32(e.SubItem.Text);
                if (rowid == 1)
                {
                    if (month < 13)
                    {
                        _cd4Panel.SetAdultArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
                    }
                    else
                    {
                        _cd4Panel.AITTestperYear = Convert.ToDouble(e.SubItem.Text);
                    }
                }
                else if (rowid == 2)
                {
                    if (month < 13)
                    {
                        _cd4Panel.SetPediatricArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
                    }
                    else
                    {
                        _cd4Panel.PITTestperYear = Convert.ToDouble(e.SubItem.Text);
                    }
                }
                else if (rowid == 3)
                {
                    if (month < 13)
                    {
                        _cd4Panel.SetAdultPreArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
                    }
                    else
                    {
                        _cd4Panel.APARTestperYear = Convert.ToDouble(e.SubItem.Text);
                    }
                }
                else
                {
                    if (month < 13)
                    {
                        _cd4Panel.SetPediatricPreArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
                    }
                    else
                    {
                        _cd4Panel.PPARTTestperYear = Convert.ToDouble(e.SubItem.Text);
                    }
                }
            }
            catch
            {
            }
        }
Ejemplo n.º 4
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            ARTSite site = (ARTSite)e.ListVItem.Tag;

            if (e.SubItem.ColumnName.ToString() == "PercentOfChildren")
            {
                site.NTTPercentOfChildren = double.Parse(e.SubItem.Text);
            }
            if (e.SubItem.ColumnName.ToString() == "GrowthTarget")
            {
                site.NTTGrowthTarget = double.Parse(e.SubItem.Text);
            }
            _edited = true;
        }
Ejemplo n.º 5
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            QuantificationMetric qm = (QuantificationMetric)e.ListVItem.Tag;

            if (e.SubItem.ColumnName.ToString() == "U.Rate")
            {
                try
                {
                    qm.UsageRate = Convert.ToDouble(e.SubItem.Text);
                }
                catch
                {
                    e.SubItem.Text = qm.UsageRate.ToString();
                }
            }
            else
            {
                qm.CollectionSupplieAppliedTo = e.SubItem.Text;
            }
            DataRepository.SaveOrUpdateQuantificationMetric(qm);
        }
Ejemplo n.º 6
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            ARTSite site = (ARTSite)e.ListVItem.Tag;

            _edited = true;

            if (e.SubItem.ColumnName.ToString() == "PercentOfChildren")
            {
                site.NTTPercentOfChildren = double.Parse(e.SubItem.Text);
            }
            else
            {
                MonthNameEnum month = (MonthNameEnum)e.SubItem.ColumnName;
                switch (month)
                {
                case MonthNameEnum.January:
                    site.NTTJanuary = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.February:
                    site.NTTFebruary = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.March:
                    site.NTTMarch = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.April:
                    site.NTTApril = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.May:
                    site.NTTMay = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.June:
                    site.NTTJune = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.July:
                    site.NTTJuly = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.August:
                    site.NTTAugust = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.September:
                    site.NTTSeptember = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.October:
                    site.NTTOctober = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.November:
                    site.NTTNovember = double.Parse(e.SubItem.Text);
                    break;

                case MonthNameEnum.December:
                    site.NTTDecember = double.Parse(e.SubItem.Text);
                    break;
                }
            }
        }
Ejemplo n.º 7
0
 private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
 {
     ImportedReagionOrCategory ta = (ImportedReagionOrCategory)e.ListVItem.Tag;
     ta.MCategory = LqtUtil.GetComboBoxValue<MorbidityCategory>(_comTestingArea);
 }
Ejemplo n.º 8
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            QuantificationMetric qm = (QuantificationMetric)e.ListVItem.Tag;

            if (e.SubItem.ColumnName.ToString() == "U.Rate")
            {
                try
                {
                    qm.UsageRate = Convert.ToDouble(e.SubItem.Text);
                }
                catch
                {
                    e.SubItem.Text = qm.UsageRate.ToString();
                }
            }
            else
            {
                qm.CollectionSupplieAppliedTo = e.SubItem.Text;
            }
            DataRepository.SaveOrUpdateQuantificationMetric(qm);
        }
Ejemplo n.º 9
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            ARTSite site = (ARTSite)e.ListVItem.Tag;
            _edited = true;

            if (e.SubItem.ColumnName.ToString() == "PercentOfChildren")
                site.NTPTPercentOfChildren = double.Parse(e.SubItem.Text);
            else
            {
                MonthNameEnum month = (MonthNameEnum)e.SubItem.ColumnName;
                switch (month)
                {
                    case MonthNameEnum.January:
                        site.NTPTJanuary = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.February:
                        site.NTPTFebruary = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.March:
                        site.NTPTMarch = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.April:
                        site.NTPTApril = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.May:
                        site.NTPTMay = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.June:
                        site.NTPTJune = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.July:
                        site.NTPTJuly = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.August:
                        site.NTPTAugust = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.September:
                        site.NTPTSeptember = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.October:
                        site.NTPTOctober = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.November:
                        site.NTPTNovember = double.Parse(e.SubItem.Text);
                        break;
                    case MonthNameEnum.December:
                        site.NTPTDecember = double.Parse(e.SubItem.Text);
                        break;
                }
            }
        }
Ejemplo n.º 10
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            ImportedReagionOrCategory ta = (ImportedReagionOrCategory)e.ListVItem.Tag;

            ta.MCategory = LqtUtil.GetComboBoxValue <MorbidityCategory>(_comTestingArea);
        }
Ejemplo n.º 11
0
 public void OnEditableListViewSubitemChanged(EXEditableListViewSubitemEventArgs e)
 {
     if (EditableListViewSubitemValueChanged != null)
     {
         EditableListViewSubitemValueChanged(this, e);
     }
 }
Ejemplo n.º 12
0
 void _othListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
 {
     int rowid = (int)e.ListVItem.Tag;
     OtherTestNameEnum tname = (OtherTestNameEnum)e.SubItem.ColumnName;
     try
     {
         double value = Convert.ToDouble(e.SubItem.Text);
         PSymptomDirectedTest pdt = _protocol.GetSymptomDirectedTestByTestName(tname);
         if (rowid == 1)
             pdt.AdultInTreatmeant = value;
         else if (rowid == 2)
             pdt.PediatricInTreatmeant = value;
         else if (rowid == 3)
             pdt.AdultPreART = value;
         else
             pdt.PediatricPreART = value;
     }
     catch
     {
     }
 }
Ejemplo n.º 13
0
 private void _cd4ListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
 {
     int rowid = (int)e.ListVItem.Tag;
     int month = (int)e.SubItem.ColumnName;
     try
     {
         //int value = Convert.ToInt32(e.SubItem.Text);
         if (rowid == 1)
         {
             if (month < 13)
                 _cd4Panel.SetAdultArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
             else
                 _cd4Panel.AITTestperYear = Convert.ToDouble(e.SubItem.Text);
         }
         else if (rowid == 2)
         {
             if (month < 13)
                 _cd4Panel.SetPediatricArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
             else
                 _cd4Panel.PITTestperYear = Convert.ToDouble(e.SubItem.Text);
         }
         else if (rowid == 3)
         {
             if (month < 13)
                 _cd4Panel.SetAdultPreArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
             else
                 _cd4Panel.APARTestperYear = Convert.ToDouble(e.SubItem.Text);
         }
         else
         {
             if (month < 13)
                 _cd4Panel.SetPediatricPreArtTestGivenInMonth(month, Convert.ToInt32(e.SubItem.Text));
             else
                 _cd4Panel.PPARTTestperYear = Convert.ToDouble(e.SubItem.Text);
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 14
0
 private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
 {
     ImportedTestingArea ta = (ImportedTestingArea)e.ListVItem.Tag;
     ta.TestingArea = LqtUtil.GetComboBoxValue<TestingArea>(_comTestingArea);
 }
Ejemplo n.º 15
0
 private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
 {
     ARTSite site = (ARTSite)e.ListVItem.Tag;
     if(e.SubItem.ColumnName.ToString() == "PercentOfChildren")
         site.NTTPercentOfChildren = double.Parse( e.SubItem.Text);
     if (e.SubItem.ColumnName.ToString() == "GrowthTarget")
         site.NTTGrowthTarget = double.Parse(e.SubItem.Text);
     _edited = true;
 }