Ejemplo n.º 1
0
        //загружает типы материала
        private void loadSampleType()
        {
            lTypes = new baza.Document.SampleType.SList();
            lTypes.SampleListGet();

            comboBoxTypes.Items.Clear();
            foreach (Document.SampleType.SampleItem i in lTypes)
            {
                comboBoxTypes.Items.Add(i.SampleName);
            }
            comboBoxTypes.Items.Add("Добавить новый тип ...");

            this.comboBoxTypes.Refresh();
        }
Ejemplo n.º 2
0
        private void loadSampleType()
        {
            if (gotSampleTypes == false)
            {
                try
                {
                     comboBoxSampleType.Items.Clear();

                    samTy = new baza.Document.SampleType.SList() ;
                    samTy.Clear();
                    samTy.SampleListGet();
                    foreach (Document.SampleType.SampleItem i in samTy )
                        {
                            this.comboBoxSampleType.Items.Add(i.SampleName);
                        }
                    comboBoxSampleType.Items.Add("Добавить новый тип ...");
                    this.comboBoxSampleType.Refresh();
                    gotSampleTypes = true;

                }
                catch (Exception exception)
                {
                     Warnings.WarnLog log = new Warnings.WarnLog();    log.writeLog(MethodBase.GetCurrentMethod().Name, exception.Message.ToString(), exception.StackTrace.ToString());
                }
            }
        }
Ejemplo n.º 3
0
        private void loadSampleType()
        {
            try
                {
                    comboBoxPatCartAnType.Items.Clear();

                    samTy = new baza.Document.SampleType.SList();
                    samTy.SampleListGet();
                    foreach (Document.SampleType.SampleItem i in samTy)
                    {
                        this.comboBoxPatCartAnType.Items.Add(i.SampleName);
                    }
                    if (this.comboBoxPatCartAnType.Items.Count >0 )
                    {
                        this.comboBoxPatCartAnType.SelectedIndex = 0;
                    }
                    //this.comboBoxPatCartAnType.Items.Add("Все показатели");
                    this.comboBoxPatCartAnType.Refresh();

                }
                catch (Exception exception)
                {
                     Warnings.WarnLog log = new Warnings.WarnLog();
                    log.writeLog(MethodBase.GetCurrentMethod().Name, exception.Message.ToString(), exception.StackTrace.ToString());
                }
        }
Ejemplo n.º 4
0
        private void getAnalysisTypes()
        {
            if (this.samTy.Count <= 0)

               {
               samTy = new baza.Document.SampleType.SList();
               samTy.SampleListGet();
               }
               comboBoxPatCartAnType.Items.Clear();

               foreach (Document.SampleType.SampleItem i in samTy)
               {
               this.comboBoxPatCartAnType.Items.Add(i.SampleName);
               }
        }
Ejemplo n.º 5
0
        private void loadSampleType()
        {
            lTypes = new baza.Document.SampleType.SList();
            lTypes.SampleListGet();

            comboBox1.Items.Clear();
            foreach (Document.SampleType.SampleItem i in lTypes)
            {
                comboBox1.Items.Add(i.SampleName);
            }

            comboBox3.Items.Clear();
            foreach (Document.SampleType.SampleItem i in lTypes)
            {
                comboBox3.Items.Add(i.SampleName);
            }

            this.comboBox1.Refresh();

            this.comboBox3.Refresh();
        }