예제 #1
0
 private void FilingSetup_Load(object sender, EventArgs e)
 {
     if (Globals.DoctorID == StringGeneral.supperUser && RegistryID.Length < 8)
     {
         cbDepartment.Visible = true;
         button1.Visible      = true;
         XmlNode depart = ThisAddIn.GetDepartmentsByMode(gjtEmrPatients.WorkMode.InHospital);
         if (depart == null)
         {
             return;
         }
         XmlNodeList departments = depart.SelectNodes(EmrConstant.ElementNames.Department);
         cbDepartment.Items.Clear();
         //cbDepartment.Items.Add("");
         foreach (XmlNode department in departments)
         {
             string text = department.Attributes[EmrConstant.AttributeNames.Code].Value + ":"
                           + department.Attributes[EmrConstant.AttributeNames.Name].Value;
             cbDepartment.Items.Add(text);
         }
     }
 }