コード例 #1
0
ファイル: CardPatients.cs プロジェクト: Sa4kovsky/Valentin
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     connects.InsertToTableDiseases(_idPatient, dateTimePicker2.Value, panelAdd.Controls["textBoxDiagnosis"].Text, panelAdd.Controls["textBoxTreatment"].Text, ref _idDiseases);
     for (int i = 0; i < _idlaboratoryreSearches.Length; i++)
     {
         connects.InsertDiseasesAndLaboratoryresearch(_idDiseases, _idlaboratoryreSearches[i]);
     }
     for (int i = 0; i < _idSymptomsMas.Length; i++)
     {
         connects.InsertDiseasesandsymptoms(_idDiseases, _idSymptomsMas[i]);
     }
     for (int i = 0; i < _idUltrasonographyMas.Length; i++)
     {
         connects.InsertDiseasesandultrasonography(_idDiseases, _idUltrasonographyMas[i]);
     }
     CardPatients_Activated(sender, e);
 }