private void FillGrid() { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (Examinations ex in examinationsList) { List <string> row = new List <string>(); row.Add(ex.Code); row.Add(ex.Name); row.Add(ex.Type); scheme.Add(new Tuple <List <string>, bool>(row, true)); } examinationsCustomGrid.SetRows(scheme); }
private void FillExaminationGrid() { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (PhysicalExamination pExam in appointment.PhysicalExamination) { DataGridViewRow gridRow = new DataGridViewRow(); List <string> row = new List <string>(); row.Add(pExam.ExaminationCode); row.Add(pExam.Examinations.Name); row.Add(pExam.Result); row.Add(pExam.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } ExaminationGrid.SetRows(scheme); }
void FillPhysicalExaminationGrid(List <PhysicalExamination> physExaminations) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (PhysicalExamination ex in physExaminations) { List <string> row = new List <string>(); row.Add(ex.ExaminationCode); row.Add(ex.Examinations.Name); row.Add(ex.Examinations.Type); row.Add(ex.Result); row.Add(ex.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } examinationsCustomGrid.SetRows(scheme); }
void FillAppointmentGrid(List <Appointment> appointments) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (Appointment app in appointments) { Patient patient = Common.GetPatientById(app.PatientId); List <string> row = new List <string>(); row.Add(app.Diagnosis); row.Add(app.Status); row.Add(app.dt_Register.ToString()); row.Add(app.dt_Complete_Cancel.ToString()); row.Add(app.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } appointmentsCustomGrid.SetRows(scheme); }
private void FillGrid(List <Employee> employees) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (Employee item in employees) { List <string> row = new List <string>(); row.Add(item.Person.First_Name); row.Add(item.Person.Last_Name); row.Add(item.dt_AccountValidityFrom.ToString()); row.Add(item.dt_AccountValidityTo.ToString()); row.Add(item.Login); row.Add(item.Position); row.Add(item.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } usersCustomGrid.SetRows(scheme); }
private void FillLaboratoryGrid() { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (LaboratoryExamination lExam in appointment.LaboratoryExamination) { DataGridViewRow gridRow = new DataGridViewRow(); List <string> row = new List <string>(); row.Add(lExam.ExaminationCode); row.Add(lExam.Examinations.Name); row.Add(lExam.Result); row.Add(lExam.Status); row.Add(lExam.Supervisor_Note); row.Add(lExam.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } LaboratoryGrid.SetRows(scheme); }
void FillLaboratoryExaminationGrid(List <LaboratoryExamination> labExaminations) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (LaboratoryExamination ex in labExaminations) { List <string> row = new List <string>(); row.Add(ex.dt_Request.ToString()); row.Add(ex.LaboratoryPerson.Employee.Person.First_Name + " " + ex.LaboratoryPerson.Employee.Person.Last_Name); row.Add(ex.Status); row.Add(ex.Result); row.Add(ex.Supervisor_Note); row.Add(ex.Doctor_Note); row.Add(ex.ExaminationCode); scheme.Add(new Tuple <List <string>, bool>(row, true)); } laboratoryCustomGrid.SetRows(scheme); }
void FillPatientGrid(List <Patient> patients) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (Patient item in patients) { List <string> row = new List <string>(); row.Add(item.Person.First_Name); row.Add(item.Person.Last_Name); row.Add(item.PESEL); row.Add(item.Person.Date_of_birth.ToString()); row.Add(item.Insurance_Number); row.Add(item.Person.Phone_number); row.Add(item.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } patientsCustomGrid.SetRows(scheme); }
private void FillAppointmentsGrid(List <Appointment> content) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (Appointment app in content) { Patient patient = Common.GetPatientById(app.PatientId); List <string> row = new List <string>(); row.Add(patient.Person.First_Name); row.Add(patient.Person.Last_Name); row.Add(app.Description); row.Add(app.Diagnosis); row.Add(app.Status); row.Add(app.dt_Register.ToString()); row.Add(app.dt_Complete_Cancel.ToString()); row.Add(app.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } custromGrid.SetRows(scheme); }
private void FillExaminationGrid(List <LaboratoryExamination> examinationsList) { List <Tuple <List <string>, bool> > scheme = new List <Tuple <List <string>, bool> >(); foreach (LaboratoryExamination ex in examinationsList) { List <string> row = new List <string>(); row.Add(ex.ExaminationCode); row.Add(ex.Examinations.Name); row.Add(ex.LaboratoryPerson.Employee.Person.First_Name + " " + ex.LaboratoryPerson.Employee.Person.Last_Name); row.Add(ex.dt_Request.ToString()); row.Add(ex.dt_Complete_Cancel.ToString()); row.Add(ex.dt_Confirmation.ToString()); row.Add(ex.Result); row.Add(ex.Status); row.Add(ex.Id.ToString()); scheme.Add(new Tuple <List <string>, bool>(row, true)); } examinationCustomGrid.SetRows(scheme); }