示例#1
0
        private void fillPatientTickets()
        {
            this.comboBoxTicket.Items.Clear();
            this.comboBoxTicket.ResetText();
            this.comboBoxTicket.SelectedText = "";
            ptList = new baza.Processing.LabTickets.PatientTicketList();
            _gotPatId = this.searchPatientBox1.pIdN;
            if (_gotPatId > 0 )
            {
                int _gT = 0;
                int _pl = 0;
                int _pidn = _gotPatId;

                ptList.GetPatientTicketsNotFinished(_pidn);
                foreach (Processing.LabTickets.PatientTicket i in ptList)
                {
                    if (_gotTicketId > 0)
                    {
                        if (_gotTicketId == i.TicketId)
                        {
                            this.comboBoxTicket.Items.Add(i.TicketDateApp + " " + i.TicketName + " " + i.TicketDoctorFName);
                            this.comboBoxTicket.SelectedIndex = 0;
                            getTicketNorms(_gotTicketId);
                        }
                    }
                    else
                    {
                        this.comboBoxTicket.Items.Add(i.TicketDateApp + " " + i.TicketName + " " + i.TicketDoctorFName);
                    }

                }

            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Выберите пациента");
            }
        }
示例#2
0
文件: StartupForm.cs 项目: oeai/medx
        private void fillMyPatientAnalysis(int _selectedPatient)
        {
            this.listBox12.Items.Clear();
            myPatientTicketList = new baza.Processing.LabTickets.PatientTicketList();
            myPatientTicketList.GetPatientTicketsFinished(_selectedPatient,DateTime.Now.AddDays(-14),DateTime.Now);

            foreach (Processing.LabTickets.PatientTicket i in myPatientTicketList)
            {

                this.listBox12.Items.Add(i.TicketDateOut.ToShortDateString() +" "+i.TicketName+" "+i.TicketDoctorFName);

            }
        }
示例#3
0
文件: StartupForm.cs 项目: oeai/medx
 //загружает спписок назначений для пациента
 private void loadTicketsOfPatient(Int32 gotPatId)
 {
     if (this.searchPatientBox1.patientSet == true)
     {
         try
         {
         this.listBoxMyPatientTickets.Items.Clear();
         Processing.LabTickets.PatientTicketList ptl = new Processing.LabTickets.PatientTicketList();
         ptl.GetPatientTicketsNotFinished(gotPatId);
             foreach (Processing.LabTickets.PatientTicket i in ptl)
             {
                 this.listBoxMyPatientTickets.Items.Add(i.TicketDateIn.ToShortDateString() +" "+ i.TicketName + " "+ i.TicketDoctorFName );
             }
         }
         catch (Exception exception)
         {
             Warnings.WarnLog log = new Warnings.WarnLog();
             log.writeLog(MethodBase.GetCurrentMethod().Name, exception.Message.ToString(), exception.StackTrace.ToString());
         }
     }
 }
示例#4
0
文件: StartupForm.cs 项目: oeai/medx
 private void updatePatientTicketList(int _patId)
 {
     listBox20.Items.Clear();
        ptList = new baza.Processing.LabTickets.PatientTicketList();
        ptList.GetPatientTicketsFinished(_patId, dateTimePicker2.Value, dateTimePicker1.Value);
        listBox20.Items.Clear();
        foreach (Processing.LabTickets.PatientTicket i in ptList)
        {
        listBox20.Items.Add(i.TicketDateOut + " " + i.TicketDoctorFName + " " + i.TicketName);
        }
 }
示例#5
0
文件: StartupForm.cs 项目: oeai/medx
        //загружает список назначений для своего пациента
        private void loadMyPatientTickets(int _selectedPatientId)
        {
            try
                {
                    this.listBoxMyPatientTickets1.Items.Clear();

                    Processing.LabTickets.PatientTicketList ptl = new Processing.LabTickets.PatientTicketList();
                    ptl.GetPatientTicketsNotFinished(_selectedPatientId);

                    foreach (Processing.LabTickets.PatientTicket i in ptl)
                    {
                        this.listBoxMyPatientTickets1.Items.Add(i.TicketDateIn.ToShortDateString() +" "+ i.TicketName + " "+ i.TicketDoctorFName );
                    }
                }
                catch (Exception exception)
                {
                    Warnings.WarnLog log = new Warnings.WarnLog();
                    log.writeLog(MethodBase.GetCurrentMethod().Name, exception.Message.ToString(), exception.StackTrace.ToString());
                }
        }