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("Выберите пациента"); } }
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); } }
//загружает спписок назначений для пациента 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()); } } }
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); } }
//загружает список назначений для своего пациента 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()); } }