예제 #1
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        //-----------------------------------------------
        ItemsModulesOptions   currentModule         = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];
        MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID);
        //-----------------------------------------------
        int itemID = -1;

        if (MoversFW.Components.UrlManager.ChechIsValidIntegerParameter("id"))
        {
            itemID = Convert.ToInt32(Request.QueryString["id"]);
        }
        //-----------------------------------------------
        ucGetNew.ModuleTypeID = CurrentMessagesModule.ModuleTypeID;
        ucGetNew.ToItemID     = itemID;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_NewMessage");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_NewMessage;
            }
        }
        //-----------------------------------------------
    }
예제 #2
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions   currentModule         = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];
        MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID);

        ucUpdate.ModuleTypeID    = CurrentMessagesModule.ModuleTypeID;
        ucUpdate.DefaultPagePath = "/AdminCP/Items/" + currentModule.Identifire + "/Messages/default.aspx";
        //-----------------------------------------------
        int messageID = -1;

        if (MoversFW.Components.UrlManager.ChechIsValidIntegerParameter("id"))
        {
            messageID = Convert.ToInt32(Request.QueryString["id"]);
        }
        //-----------------------------------------------
        if (messageID > 0)
        {
            MessagesEntity msg = MessagesFactory.GetMessagesObject(messageID, UsersTypes.Admin, SitesHandler.GetOwnerIDAsGuid());
            ucUpdate.DefaultPagePath += "?id=" + msg.ToItemID;
        }
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_MessageData");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_MessageData;
            }
        }
        //-----------------------------------------------
    }
예제 #3
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucComments.ModuleTypeID = currentModule.ModuleTypeID;
        if (currentModule.HasSpecialAdminText)
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_CommentsInactive");
        }
        else
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_CommentsInactive;
        }
    }
예제 #4
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucEdit.ModuleTypeID   = currentModule.ModuleTypeID;
        ucEdit.Identifire     = currentModule.Identifire;
        ucEdit.BaseModuleType = ModuleBaseTypes.Items;
        if (!IsPostBack)
        {
            if (currentModule.ModuleTypeID != (int)ModuleTypes.StaticPages && currentModule.ModuleTypeID != (int)ModuleTypes.StaticContents)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_Comments;
            }
            else if (MoversFW.Components.UrlManager.ChechIsValidIntegerParameter("id"))
            {
                int             pageid = Convert.ToInt32(Request.QueryString["id"]);
                SitePageOptions page   = SitePageOptions.GetPage(pageid);
                this.Page.Title = page.Title + " - " + Resources.Modules.Module_Comments;
            }
            else
            {
                this.Page.Title = Resources.Modules.Module_Comments;
            }
        }
    }
예제 #5
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucCreate.ModuleTypeID = currentModule.ModuleTypeID;
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_CategoriesAdd");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_CategoriesAdd;
            }
        }
    }
예제 #6
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucUpdate1.ModuleTypeID = currentModule.ModuleTypeID;
        if (!IsPostBack)
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_ItemsEdit;
        }
    }
예제 #7
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucSendSms.ModuleTypeID = currentModule.ModuleTypeID;
        ucSendSms.FormSmsTo    = FormSMSToTypes.All;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "SendSms");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.SendSms;
            }
        }
        //-----------------------------------------------
    }
예제 #8
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions   currentModule         = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];
        MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID);

        ucExport.ModuleTypeID = CurrentMessagesModule.ModuleTypeID;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_ExportData");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_ExportData;
            }
        }
        //-----------------------------------------------
    }
예제 #9
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucSendMail.ModuleTypeID = currentModule.ModuleTypeID;
        ucSendMail.FormMailTo   = FormMailToTypes.All;
        if (!IsPostBack)
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.AdminText.SendEmail;
        }
    }
예제 #10
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucEdit.ModuleTypeID   = currentModule.ModuleTypeID;
        ucEdit.Identifire     = currentModule.Identifire;
        ucEdit.BaseModuleType = ModuleBaseTypes.Items;
        if (!IsPostBack)
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_Comments;
        }
    }
예제 #11
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucGetVisitorsParticipations.ModuleTypeID         = currentModule.ModuleTypeID;
        ucGetVisitorsParticipations.UnRepliedCondition   = false;
        ucGetVisitorsParticipations.NotSeenCondition     = true;
        ucGetVisitorsParticipations.IsAvailableCondition = true;
        ucGetVisitorsParticipations.IsAvailable          = false;

        if (!IsPostBack)
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_ItemsDefault;
        }
    }