Ejemplo n.º 1
0
    protected void BindDropdownLists()
    {
        BindDropdownList.Countries(ddlCountryID);
        BindDropdownList.Countries(ddlCountryOfBirthID);
        BindDropdownList.Currencies(ddlDayRateCurrencyID);
        BindDropdownList.MaritalStatuses(ddlMaritalStatusID);

        OMMDataContext context = new OMMDataContext();
        var            roles   = from P in context.Roles select new { P.ID, P.Name };

        if (roles != null && roles.Count() > 0)
        {
            hdnRoles.Value = roles.ToList().ToJSON();
        }

        var telephoneTypes = from P in context.TelephoneNumberTypes select new { P.ID, P.Name };

        if (telephoneTypes != null && telephoneTypes.Count() > 0)
        {
            hdnTelephoneTypes.Value = telephoneTypes.ToList().ToJSON();
        }

        var commTypes = from P in context.ContactCommsTypes select new { P.ID, P.Name };

        if (commTypes != null && commTypes.Count() > 0)
        {
            hdnCommTypes.Value = commTypes.ToList().ToJSON();
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Binds Dropdownlists for the initial request.
    /// </summary>
    protected void BindDropDownLists()
    {
        BindDropdownList.Currencies(ddlDayRateCurrencyID);
        //BindDropdownList.Clients(ddlClientID);
        //BindDropdownList.Contactses(ddlContactID);
        BindDropdownList.Projects(ddlProjectID);
        BindDropdownList.Roles(ddlRoleID);

        BindDropdownList.RolesNoBlank(ddlRoles);
        BindDropdownList.Currencies_EmpHistory(ddlCurrencyCode);
        //BindDropdownList.Userses(ddlChangedByUserID);
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        BindPageInfo();
        if (!IsPostBack)
        {
            //WebUtil.ShowMessageBox(divMessage, "", false);

            BindDropdownList.CertificateTypes(ddlCertificateType);

            CheckAndDeleteData();
            BindDropDownLists();
            BindCertificationInfo();
            BindCertificationList(1);
            ShowSuccessMessage();
        }
    }
Ejemplo n.º 4
0
 /// <summary>
 /// Binds Dropdownlists for the initial request.
 /// </summary>
 protected void BindDropDownLists()
 {
     //BindDropdownList.Contactses(ddlContactID);
     //BindDropdownList.Userses(ddlChangedByUserID);
     BindDropdownList.Countries(ddlCountry);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Binds Dropdownlists for the initial request.
 /// </summary>
 protected void BindDropDownLists()
 {
     BindDropdownList.CommunicationTypes(ddlCommType);
     //BindDropdownList.Userses(ddlChangedByUserID);
 }