Пример #1
0
        private void getMyPatientTicketAnalysis(Int64 _ticket)
        {
            listBox24.Items.Clear();

               Processing.LabTickets.PatientAnalysisList pal = new baza.Processing.LabTickets.PatientAnalysisList();
               pal.GetTicketAnalysis(_ticket);
               foreach (Processing.LabTickets.PatientAnalysis i in pal)
               {
               listBox24.Items.Add(i.ADate.ToShortDateString() + " " + i.AName + " " + i.AValue.ToString() + " " + i.ASample.ToString());
               }
        }
Пример #2
0
        private void changeAnalysisInList()
        {
            Int64 _ticketId = ptList[listBox20.SelectedIndex].TicketId;
               listBox25.Items.Clear();

               Processing.LabTickets.PatientAnalysisList pal = new baza.Processing.LabTickets.PatientAnalysisList();
               if (ptList[listBox20.SelectedIndex].TicketLabSampleId == -999)
               {

               pal.GetTicketAnalysis(_ticketId);
               foreach (Processing.LabTickets.PatientAnalysis i in pal)
               {
                   string boolval = "";
                   if (i.AValueBool == true)
                   {
                       boolval = " Положительно ";
                   }
                   else if (i.AValueBool == false)
                   {
                       boolval =  " Отрицательно " ;
                   }

                   listBox25.Items.Add(i.ADate.ToShortDateString() + " " + i.AName + " Значение: " + i.AValue.ToString() + " " + i.AValueText + boolval + " Материал: " + i.ASampleName);
               }
               }
               else
               {
               pal.GetImportdTicketAnalysis(_ticketId);
               foreach (Processing.LabTickets.PatientAnalysis i in pal)
               {
                   listBox25.Items.Add(i.ADate.ToShortDateString() + " " + i.AName + " Значение: " + i.AValue.ToString() + " Материал: " + i.ASampleName);
               }
               }
        }