private void FillSystemDropdown()
    {
        BindFunctions theBindManager = new BindFunctions();
        IIQCareSystem SystemManager  = (IIQCareSystem)ObjectFactory.CreateInstance("BusinessProcess.Security.BIQCareSystem, BusinessProcess.Security");
        DataTable     theDT          = SystemManager.GetIQCareSystems(0);

        theBindManager.BindCombo(cmbSystem, theDT, "SystemName", "SystemId");
    }
 protected void btnSystemSave_Click(object sender, EventArgs e)
 {
     try
     {
         Session["SystemId"] = ConfigurationManager.AppSettings["SystemId"].ToString();
         IIQCareSystem SystemManager = (IIQCareSystem)ObjectFactory.CreateInstance("BusinessProcess.Security.BIQCareSystem, BusinessProcess.Security");
         if (cmbSystem.SelectedValue == "2")
         {
             DataTable theDT = SystemManager.GetIQCareSystems(1);
         }
         tblSystem.Visible = false;
         btnAdd.Enabled    = true;
         Init_Form();
     }
     catch (Exception err)
     {
         MsgBuilder theBuilder = new MsgBuilder();
         theBuilder.DataElements["MessageText"] = err.Message.ToString();
         IQCareMsgBox.Show("#C1", theBuilder, this);
         return;
     }
 }