Esempio n. 1
0
 private void tabPage1_Enter(object sender, EventArgs e)
 {
     textBox_addDrug_drugName.Clear();
     textBox_addDrug_minDose.Clear();
     drugMgr.setDosageUnitCombo(comboBox_addDrug_minDoseUnit);
     comboBox_addDrug_minDoseUnit.SelectedIndex = 0;
     textBox_addDrug_maxDose.Clear();
     drugMgr.setDosageUnitCombo(comboBox_addDrug_maxDoseUnit);
     comboBox_addDrug_maxDoseUnit.SelectedIndex = 0;
     drugMgr.setPrimaryDrugTypeCombo(comboBox_addDrug_pri_type);
     comboBox_addDrug_pri_type.SelectedIndex = 0;
     checkBox_addDrug_q1.Checked             = false;
     checkBox_addDrug_q2.Checked             = false;
     checkBox_addDrug_q3.Checked             = false;
     checkBox_addDrug_q4.Checked             = false;
     checkBox_addDrug_w1.Checked             = false;
     checkBox_addDrug_w2.Checked             = false;
     checkBox_addDrug_w3.Checked             = false;
     checkBox_addDrug_w4.Checked             = false;
     checkBox_addDrug_w5.Checked             = false;
     checkBox_addDrug_w6.Checked             = false;
     drugMgr.setContraindicationLevelCombo(comboBox_addDrug_preg_contra);
     comboBox_addDrug_preg_contra.SelectedIndex = 0;
     drugMgr.setContraindicationLevelCombo(comboBox_addDrug_g6pd_contra);
     comboBox_addDrug_g6pd_contra.SelectedIndex = 0;
     textBox_addDrug_subDrugName.Clear();
     DSP_addSubDrug.refresh();
 }
Esempio n. 2
0
        public DrugAdmin()
        {
            drugMgr = new DrugMgr();
            InitializeComponent();
            DSP_addSubDrug.setDSPform(this);
            DSP_addSubDrug.setSubDrugEnabled(true);
            DSP_addSubDrug.setSubDrugSelectionEnabled(false);
            DSP_addSubDrug.setSubDrugInclNotSpecified(false);
            DSP_addSubDrug.setShowDeletedItemCB(false);
            DSP_addSubDrug.setShowDeletedItem(false);

            DSP_amdDrug.setDSPform(this);
            DSP_amdDrug.setSubDrugEnabled(true);
            DSP_amdDrug.setSubDrugSelectionEnabled(true);
            DSP_amdDrug.setSubDrugInclNotSpecified(true);
            DSP_amdDrug.setShowDeletedItemCB(true);
            DSP_amdDrug.setShowDeletedItem(false);

            DSP_incompatibleWith.setDSPform(this);
            DSP_incompatibleWith.setSubDrugEnabled(false);
            DSP_incompatibleWith.setSubDrugSelectionEnabled(false);
            DSP_incompatibleWith.setSubDrugInclNotSpecified(false);
            DSP_incompatibleWith.setShowDeletedItemCB(false);
            DSP_incompatibleWith.setShowDeletedItem(true);
        }
Esempio n. 3
0
 private void button_addSubDrug_Click(object sender, EventArgs e)
 {
     if (input_validation_add_sub_drug())
     {
         String statusMsg = "";
         bool   isSuccess;
         isSuccess = drugMgr.insertSubDrugRecord(int.Parse(selectedDrug.getValue()), textBox_addDrug_subDrugName.Text.Trim(), ref statusMsg);
         if (isSuccess)
         {
             MessageBox.Show(statusMsg, "", MessageBoxButtons.OK, MessageBoxIcon.Information);
             DSP_addSubDrug.refresh();
             textBox_addDrug_subDrugName.Clear();
         }
         else
         {
             MessageBox.Show(statusMsg, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }