/// <summary>
    /// Event that is fired when the Owners Combo Box index changes
    /// </summary>
    /// <param name="o"></param>
    /// <param name="e"></param>
    protected void cmbOW_SelectedIndexChanged(object o, Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            //we read the initial owner selected
            String currentOwner = cmbOW.SelectedValue;

            //re-load the programs
            LoadOwners();

            //if one owner is selected then the selection is restored
            if (currentOwner != ApplicationConstants.INT_NULL_VALUE.ToString() &&
                currentOwner != String.Empty)
            {
                cmbOW.SelectedValue = currentOwner;
            }

            //re-load the programs
            LoadPrograms();

            //re-load the projects
            LoadProjects();
        }
        catch (IndException ex)
        {
            ShowError(ex);
            return;
        }
        catch (Exception ex)
        {
            ShowError(new IndException(ex));
            return;
        }
    }
Ejemplo n.º 2
0
        protected void cbTeachers_SelectedIndexChanged(object o, Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            string chart = e.Text.Trim();

            if (chart != "")
            {
                DataView dv = new Miami.Substitute.Dal.User().SearchUserByName(chart);
                lblTeacherId.Text = dv[0]["UserId"].ToString();
            }
        }
Ejemplo n.º 3
0
 protected void cmbInergyLocation_SelectedIndexChanged(object o, Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         LoadCostCenterCodeCombo();
         SetCostCenterName();
     }
     catch (IndException ex)
     {
         ReportControlError(ex);
         return;
     }
     catch (Exception ex)
     {
         ReportControlError(new IndException(ex));
         return;
     }
 }