Ejemplo n.º 1
0
    //-----------------------------------------------
    #endregion

    #region ---------------SetTexts---------------
    //-----------------------------------------------
    //SetTexts
    //-----------------------------------------------
    private void SetTexts()
    {
        lblName.Text            = DynamicResource.GetUsersDataModuleText(currentModule, "Name");
        lblEmail.Text           = DynamicResource.GetUsersDataModuleText(currentModule, "Email");
        lblCategoryID.Text      = DynamicResource.GetUsersDataModuleText(currentModule, "CategoryID");
        lblBirthDate.Text       = DynamicResource.GetUsersDataModuleText(currentModule, "BirthDate");
        lblGender.Text          = DynamicResource.GetUsersDataModuleText(currentModule, "Gender");
        lblJobID.Text           = DynamicResource.GetUsersDataModuleText(currentModule, "JobID");
        lblJobText.Text         = DynamicResource.GetUsersDataModuleText(currentModule, "JobText");
        lblCompany.Text         = DynamicResource.GetUsersDataModuleText(currentModule, "Company");
        lblEmpNo.Text           = DynamicResource.GetUsersDataModuleText(currentModule, "EmpNo");
        lblMailBox.Text         = DynamicResource.GetUsersDataModuleText(currentModule, "MailBox");
        lblZipCode.Text         = DynamicResource.GetUsersDataModuleText(currentModule, "ZipCode");
        lblCountryID.Text       = DynamicResource.GetUsersDataModuleText(currentModule, "CountryID");
        lblCityID.Text          = DynamicResource.GetUsersDataModuleText(currentModule, "CityID");
        lblUserCityName.Text    = DynamicResource.GetUsersDataModuleText(currentModule, "UserCityName");
        lblActivitiesID.Text    = DynamicResource.GetUsersDataModuleText(currentModule, "ActivitiesID");
        lblPhotoExtension.Text  = DynamicResource.GetUsersDataModuleText(currentModule, "PhotoExtension");
        lblUrl.Text             = DynamicResource.GetUsersDataModuleText(currentModule, "Url");
        lblTel.Text             = DynamicResource.GetUsersDataModuleText(currentModule, "Tel");
        lblMobile.Text          = DynamicResource.GetUsersDataModuleText(currentModule, "Mobile");
        lblFax.Text             = DynamicResource.GetUsersDataModuleText(currentModule, "Fax");
        lblHasEmailService.Text = DynamicResource.GetUsersDataModuleText(currentModule, "HasEmailService");
        lblHasSmsService.Text   = DynamicResource.GetUsersDataModuleText(currentModule, "HasSmsService");
        lblAgeRang.Text         = DynamicResource.GetUsersDataModuleText(currentModule, "AgeRang");
        lblSocialStatus.Text    = DynamicResource.GetUsersDataModuleText(currentModule, "SocialStatus");
        lblEducationLevel.Text  = DynamicResource.GetUsersDataModuleText(currentModule, "EducationLevel");



        lblDetails.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Details");
        //----------------------------------------------------------------------------------------
        lblMetaKeyWords.Text     = DynamicResource.GetUsersDataModuleText(currentModule, "MetaKeyWords");
        lblShortDescription.Text = DynamicResource.GetUsersDataModuleText(currentModule, "ShortDescription");
        //----------------------------------------------------------------------------------------
        lblIsConsultant.Text = DynamicResource.GetUsersDataModuleText(currentModule, "IsConsultant");
        //----------------------------------------------------------------------------------------

        /*
         * lblAddress.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Address");
         * lblJobTel.Text = DynamicResource.GetUsersDataModuleText(currentModule, "JobTel");
         * lblType.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Type");
         * lblTitle.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Title");
         * lblToItemID.Text = DynamicResource.GetUsersDataModuleText(currentModule, "ToItemID");
         * lblDetails.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Details");
         * lblNotes2.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Notes2");
         * lblNotes1.Text = DynamicResource.GetUsersDataModuleText(currentModule, "Notes1");
         * lblFileExtension.Text = DynamicResource.GetUsersDataModuleText(currentModule, "FileExtension");
         */
    }
Ejemplo n.º 2
0
    //----------------------------------------------------------
    #endregion

    #region ----------------BuildUserRegistrationsLinks---------------
    //----------------------------------------------------------
    //BuildUserRegistrationsLinks
    //----------------------------------------------------------
    public string BuildUserRegistrationsLinks(int moduleType)
    {
        //------------------------------------------------------------------------------------------------
        UsersDataGlobalOptions userdataModule = UsersDataGlobalOptions.GetType(moduleType);
        //------------------------------------------------------------------------------------------------
        string moduleTitleText       = userdataModule.GetModuleTitle();
        string categoriesAddText     = Resources.Modules.Module_CategoriesAdd;
        string categoriesDefaultText = Resources.Modules.Module_CategoriesDefault;
        string itemsAddText          = Resources.Modules.Module_ItemsAdd;
        string itemsDefaultText      = Resources.Modules.Module_ItemsDefault;

        //------------------------------------------------------------------------------------------------
        if (userdataModule.HasSpecialAdminText)
        {
            //moduleTitleText = itemsModule.GetModuleTitle();
            categoriesAddText     = DynamicResource.GetUsersDataModuleText(userdataModule, "Module_CategoriesAdd");
            categoriesDefaultText = DynamicResource.GetUsersDataModuleText(userdataModule, "Module_CategoriesDefault");
            itemsAddText          = DynamicResource.GetUsersDataModuleText(userdataModule, "Module_ItemsAdd");
            itemsDefaultText      = DynamicResource.GetUsersDataModuleText(userdataModule, "Module_ItemsDefault");
        }
        //------------------------------------------------------------------------------------------------
        string folder = userdataModule.Identifire.ToString();
        string links  = "";

        if (ZecurityManager.CheckFolderPermission("/AdminCP/UsersData/" + folder + "/"))
        {
            links += "<li " + AdditionalLinkClassIfActive("/AdminCP/UsersData/" + folder + "/") + "><a href=\"#\"><i class=\"icon-stack2\"></i><span>" + userdataModule.GetModuleTitle() + "</span></a>";
            links += "<ul>";
            if (userdataModule.CategoryLevel != 0 && userdataModule.DisplayCategoriesInAdminMenue)
            {
                links += "<li " + AdditionalLinkClassIfActive("/UsersData/" + folder + "/Cats/Add.aspx") + "><a href=\"/AdminCP/UsersData/" + folder + "/Cats/Add.aspx\">" + categoriesAddText + "</a></li>";
                links += "<li " + AdditionalLinkClassIfActive("/UsersData/" + folder + "/Cats/default.aspx") + "><a href=\"/AdminCP/UsersData/" + folder + "/Cats/default.aspx\">" + categoriesDefaultText + "</a></li>";
            }
            if (userdataModule.HasAddUserInAdmin)
            {
                links += "<li " + AdditionalLinkClassIfActive("/UsersData/" + folder + "/Add.aspx") + "><a href='/AdminCP/UsersData/" + folder + "/Add.aspx'>" + itemsAddText + "</a></li>";
            }
            links += "<li " + AdditionalLinkClassIfActive("/UsersData/" + folder + "/default.aspx") + "><a href='/AdminCP/UsersData/" + folder + "/default.aspx'>" + itemsDefaultText + "</a></li>";
            links += "</ul>";
        }
        return(links);
    }
Ejemplo n.º 3
0
    //-----------------------------------------------
    #endregion
    //-------------------------------------------------------
    #region ---------------SetTexts---------------
    //-----------------------------------------------
    //SetTexts
    //-----------------------------------------------
    private void SetTexts()
    {
        dgUsers.Columns[1].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Name");
        dgUsers.Columns[2].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Email");
        dgUsers.Columns[3].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "CategoryID");
        dgUsers.Columns[4].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "JobText");
        dgUsers.Columns[5].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "CountryID");
        dgUsers.Columns[6].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "CityID");
        dgUsers.Columns[7].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Company");
        dgUsers.Columns[8].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ActivitiesID");
        dgUsers.Columns[9].HeaderText  = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Url");
        dgUsers.Columns[10].HeaderText = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Tel");
        dgUsers.Columns[11].HeaderText = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Mobile");
        dgUsers.Columns[12].HeaderText = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Fax");
        dgUsers.Columns[13].HeaderText = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "MailBox");
        dgUsers.Columns[14].HeaderText = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "HasEmailService");
        dgUsers.Columns[15].HeaderText = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "HasSmsService");

        /*
         * lblBirthDate.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "BirthDate");
         * lblGender.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Gender");
         * lblJobID.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "JobID");
         * lblEmpNo.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "EmpNo");
         * lblZipCode.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ZipCode");
         * lblCityID.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "CityID");
         * lblUserCityName.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "UserCityName");
         * lblPhotoExtension.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "PhotoExtension");
         * lblAgeRang.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "AgeRang");
         * lblSocialStatus.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "SocialStatus");
         * lblEducationLevel.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "EducationLevel");
         * lblExtraText1.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ExtraText1");
         * lblExtraText2.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ExtraText2");
         * lblExtraText3.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ExtraText3");
         * lblExtraText4.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ExtraText4");
         * lblExtraText5.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ExtraText5");
         * lblExtraText6.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ExtraText6");
         * //----------------------------------------------------------------------------------------
         * lblMetaKeyWords.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "MetaKeyWords");
         * lblShortDescription.Text = DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "ShortDescription");
         * //----------------------------------------------------------------------------------------
         */
    }
Ejemplo n.º 4
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        UsersDataGlobalOptions CurrentUsersModule = (UsersDataGlobalOptions)HttpContext.Current.Items["CurrentUsersModule"];

        ucSendSms.ModuleTypeID = CurrentUsersModule.ModuleTypeID;
        ucSendSms.FormSmsTo    = FormSMSToTypes.All;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (CurrentUsersModule.HasSpecialAdminText)
            {
                this.Page.Title = CurrentUsersModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "SendSms");
            }
            else
            {
                this.Page.Title = CurrentUsersModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.SendSms;
            }
        }
        //----------------------------------------------
    }
Ejemplo n.º 5
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        UsersDataGlobalOptions CurrentUsersModule = (UsersDataGlobalOptions)HttpContext.Current.Items["CurrentUsersModule"];

        ucSiteUsers.ModuleTypeID = CurrentUsersModule.ModuleTypeID;
        ucSiteUsers.ViewUpdate   = true;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (CurrentUsersModule.HasSpecialAdminText)
            {
                this.Page.Title = CurrentUsersModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetUsersDataModuleText(CurrentUsersModule, "Module_ItemsDefault");
            }
            else
            {
                this.Page.Title = CurrentUsersModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_ItemsDefault;
            }
        }
        //----------------------------------------------
    }
Ejemplo n.º 6
0
 //-----------------------------------------------
 //SetTexts
 //-----------------------------------------------
 private void SetTexts()
 {
     // dgUsersData.Columns[2].HeaderText = DynamicResource.GetUsersDataModuleText(currentModule, "E");
     lblCategoryID.Text = DynamicResource.GetUsersDataModuleText(currentModule, "CategoryID");
 }