Ejemplo n.º 1
0
 private void reset()
 {
     prescriptionPanel1.reset();
     checkBox_isInclDeleted.Checked = false;
     drugMgr.setPredefPresCB(comboBox_predefPresName, checkBox_isInclDeleted.Checked);
     comboBox_predefPresName.SelectedIndex = 0;
     checkBox_rename.Checked   = false;
     textBox_rename.Text       = comboBox_predefPresName.SelectedItem.ToString();
     textBox_rename.ReadOnly   = !checkBox_rename.Checked;
     checkBox_isDelete.Checked = ((PermissibleValueObjWithDelFlag)(comboBox_predefPresName.SelectedItem)).Deleted;
 }
Ejemplo n.º 2
0
 public PrescriptionPanel()
 {
     InitializeComponent();
     DSP.setSubDrugEnabled(true);
     DSP.setShowDeletedItemCB(false);
     DSP.setShowDeletedItem(false);
     DSP.setSubDrugInclNotSpecified(true);
     DSP.setSubDrugSelectionEnabled(true);
     DSP.refresh();
     units   = drugMgr.getDosageUnitForDrug();
     methods = drugMgr.getPrepMethod();
     drugMgr.setPredefPresCB(comboBox_existingPredefPres, isInclDeletedPredefPres);
     if (comboBox_existingPredefPres.Items.Count > 0)
     {
         comboBox_existingPredefPres.SelectedIndex = 0;
     }
 }