private void comboBoxLabName_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Добавить новую лабораторию ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(1, 0, 0); fanl.ShowDialog(); if (_gotType > 0) { loadLabsForSampleType(_gotType); } } else if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Без лаборатории") { loadLabTemplates(0); } else if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Все показатели") { loadLabTemplates(-1); } else { _gotLabId = (int)dtLabs.Rows[this.comboBoxLabName.SelectedIndex]["code_id"]; loadLabTemplates(_gotLabId); } }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { int labID = -2; short _analysisType = 0; if (this.comboBox1.SelectedItem.ToString().Trim() == "Добавить новый шаблон ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(5, 0, 0); if (this.comboBoxLabName.SelectedIndex >= 0) { if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Все показатели") { labID = -1; } else if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Без лаборатории" ) { labID = 0; } else if (this.comboBoxLabName.SelectedItem.ToString().Trim() != "Без лаборатории" || this.comboBoxLabName.SelectedItem.ToString().Trim() != "Все показатели") { labID = labList[this.comboBoxLabName.SelectedIndex].SampleType; } } else { labID = 0; } fanl = new FormAddNewLab(5, labID, _analysisType); fanl.ShowDialog(); loadLabTemplates(labID); } else { if (this.comboBox1.SelectedIndex >= 0 && this.comboBox1.SelectedItem.ToString().Trim() != "Добавить новый шаблон ...") { getTemplateNorms((int)dtLabTemp.Rows[this.comboBox1.SelectedIndex]["code_id"]); } } }
private void comboBoxTypes_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxTypes.SelectedItem.ToString().Trim() == "Добавить новый тип ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(2,0,0); fanl.ShowDialog(); loadSampleType(); } else { loadNorms(lTypes[comboBoxTypes.SelectedIndex].SampleType); } }
private void comboBoxLabName_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Добавить новую лабораторию ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(1, 0, 0); fanl.ShowDialog(); loadLab(); } else { loadNormLimitList(); } }
private void writeNewType() { if (this.comboBox1.SelectedItem.ToString().Trim() == "Добавить новый тип ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(2, 0, 0); fanl.ShowDialog(); getSampleTypes(); } else { } }
private void comboBoxLabName_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Добавить новую лабораторию ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(1,0,0); fanl.ShowDialog(); loadLab(); } else if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Без лаборатории") { loadLabNormLimits(-1); loadLabTemplates(0); } else if (this.comboBoxLabName.SelectedItem.ToString().Trim() == "Все показатели") { loadLabNormLimits(-2); loadLabTemplates(-1); } else { _gotLabId = labList[this.comboBoxLabName.SelectedIndex].SampleType; loadLabNormLimits(_gotLabId); loadLabTemplates(_gotLabId); } }
private void comboBoxSampleType_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxSampleType.SelectedItem.ToString().Trim() == "Добавить новый тип ...") { Forms.FormAddNewLab fanl = new FormAddNewLab(2, 0, 0); fanl.ShowDialog(); gotSampleTypes = false; loadSampleType(); } else if (this.searchPatientBox1.patientSet == true) { Document.SampleType.SampleItem SI = samTy[comboBoxSampleType.SelectedIndex]; _gotType = SI.SampleType ; loadLabsForSampleType(_gotType); } }
private void лабораториюToolStripMenuItem_Click(object sender, EventArgs e) { Forms.FormAddNewLab fanl = new Forms.FormAddNewLab(1,0,0); fanl.ShowDialog(); }