コード例 #1
0
ファイル: Add.aspx.cs プロジェクト: elshiekh5/Giras
    //-----------------------------------------------
    //LoadCountries
    //-----------------------------------------------
    protected void LoadCountries()
    {
        List <SystemCountriesEntity> countriesList = SystemCountriesFactory.GetAll();
        string DataTextField = "country_ar";

        //Languages lang = SiteSettings.GetCurrentLanguage();
        //if (lang != Languages.Ar)
        //    DataTextField = "country";
        OurDropDownList.LoadDropDownList(countriesList, ddlCountries, DataTextField, "id", true);
    }
コード例 #2
0
    //---------------------------------------------------------
    //Load_ddlSmsGroups
    //---------------------------------------------------------
    protected void Load_ddlSmsGroups()
    {
        List <SMSGroupsEntity> SmsGroupsList = SMSGroupsFactory.GetAllInList();

        OurDropDownList.LoadDropDownList <SMSGroupsEntity>(SmsGroupsList, ddlSmsGroups, "Name", "GroupID", true);
    }
コード例 #3
0
    //---------------------------------------------------------
    //Load_ddlMailListGroups
    //---------------------------------------------------------
    protected void Load_ddlMailListGroups()
    {
        List <MailListGroupsEntity> mailListGroupsList = MailListGroupsFactory.GetAll();

        OurDropDownList.LoadDropDownList <MailListGroupsEntity>(mailListGroupsList, ddlMailListGroups, "Name", "GroupID", true);
    }
コード例 #4
0
    //---------------------------------------------------------
    //Load_ddlAdvPlaces
    //---------------------------------------------------------
    protected void Load_ddlAdvPlaces()
    {
        List <AdvPlacesEntity> AdvPlacesList = AdvPlacesFactory.GetAll(PlaceType);

        OurDropDownList.LoadDropDownList <AdvPlacesEntity>(AdvPlacesList, ddlAdvPlaces, "Title", "PlaceID", true);
    }