コード例 #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
            {
            }
        }
コード例 #2
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
            {
            }
        }
コード例 #3
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;
            }
        }
コード例 #4
0
        private void _sListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            ImportedTestingArea ta = (ImportedTestingArea)e.ListVItem.Tag;

            ta.TestingArea = LqtUtil.GetComboBoxValue <TestingArea>(_comTestingArea);
        }