Exemple #1
0
    protected void imgSaveTicker_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            TickerInfo objInf = new TickerInfo();
            if (Session["EdTickerID"] != null && Session["EdTickerID"].ToString() != string.Empty)
            {
                objInf.TickerID = Convert.ToInt32(Session["EdTickerID"].ToString());
                Session.Contents.Clear();
            }
            else
            {
                objInf.TickerID = 0;
            }
            objInf.TickerNews = txtTickerNews.Content;
            objInf.StartDate  = Convert.ToDateTime(txtStartDate.Text);
            objInf.EndDate    = Convert.ToDateTime(txtEndDate.Text);
            objInf.IsActive   = chkTickerIsActive.Checked;
            objInf.PortalID   = GetPortalID;
            objInf.StoreID    = GetStoreID;
            objInf.AddedBy    = GetUsername;
            objInf.UpdatedBy  = GetUsername;
            TickerController objC = new TickerController();
            objC.SaveTickerItem(objInf);

            LoadOngdvTickerData(GetStoreID, GetPortalID);

            divVisibility(true, false, true);
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
        ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/Ticker/ModuleLocalText", "TickerSavedSuccessFully"), "", SageMessageType.Success);
    }
 protected void imbSave_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         BannerId = Convert.ToInt32(ViewState["EditBannerID"]);
         int ImageID = Convert.ToInt32(Session["EditImageID"]);
         if (fuFileUpload.HasFile || ImageID != 0)
         {
             SaveBannerContent(BannerId, ImageID);
             LoadBannerImagesOnGrid(BannerId, Int32.Parse(SageUserModuleID), GetPortalID);
             divbannerImageContainer.Attributes.Add("style", "display:block");
             divEditBannerImage.Attributes.Add("style", "display:none");
             ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/Sage_Banner/ModuleLocalText", "BannerSavedsuccesfully"), "", SageMessageType.Success);
             txtWebUrl.Text = string.Empty;
             txtBannerDescriptionToBeShown.Text = string.Empty;
         }
         else
         {
             rdbReadMorePageType.SelectedValue = "0";
             txtWebUrl.Text = string.Empty;
             txtBannerDescriptionToBeShown.Text = string.Empty;
             ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/Sage_Banner/ModuleLocalText", "NoBannerImage"), "", SageMessageType.Error);
         }
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Exemple #3
0
 protected void _cropCommand_Click(object sender, EventArgs e)
 {
     try
     {
         var    x         = int.Parse(_xField.Value);
         var    y         = int.Parse(_yField.Value);
         var    width     = int.Parse(_widthField.Value);
         var    height    = int.Parse(_heightField.Value);
         string imageName = Convert.ToString(ViewState["ImageToBeEdit"]);
         string source    = Server.MapPath("~/Modules/Sage_Banner/images/OriginalImage/" + imageName);
         string dest      = Server.MapPath("~/Modules/Sage_Banner/images/ThumbNail/Default/");
         InterceptImageController.ResizeBannerImageAndCrop(source, width, height, dest, imageName);
         string soruceFolder = Server.MapPath("~/Modules/Sage_Banner/images/ThumbNail/Default/");
         string SourcePath   = soruceFolder + imageName;
         string thumbMedium  = Server.MapPath("~/Modules/Sage_Banner/images/ThumbNail/Medium/");
         string thumbSmall   = Server.MapPath("~/Modules/Sage_Banner/images/ThumbNail/Small/");
         string thumbLarge   = Server.MapPath("~/Modules/Sage_Banner/images/ThumbNail/Large/");
         InterceptImageController.ResizeBannerImage(SourcePath, 965, thumbLarge, imageName);
         InterceptImageController.ResizeBannerImage(SourcePath, 768, thumbMedium, imageName);
         InterceptImageController.ResizeBannerImage(SourcePath, 320, thumbSmall, imageName);
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
     divImageEditor.Attributes.Add("style", "display:none");
     pnlBannercontainer.Attributes.Add("style", "display:block");
     ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/Sage_Banner/ModuleLocalText", "ImageEditedSuccesfully"), "", SageMessageType.Success);
 }
    private void AddUpdateFeauture()
    {
        SageFeatureInfo ObjInfo = new SageFeatureInfo();

        ObjInfo.UserModuleID = userModuleID;
        ObjInfo.PortalID     = GetPortalID;
        ObjInfo.Culture      = GetCurrentCulture();
        ObjInfo.FeatID       = Int32.Parse(hdnFeatureID.Value);
        ObjInfo.Title        = txtTitle.Text;
        ObjInfo.Description  = txtDescription.Text;
        ObjInfo.IsActive     = chkIsActive.Checked;
        ObjInfo.AddedBy      = GetUsername;
        ObjInfo.ImageName    = txtHdnImageName.Text;

        if (fileUploadFeatImage.HasFile)
        {
            ObjInfo.ImageName = SaveImage();
        }
        SageFeatureController objCon = new SageFeatureController();

        objCon.AddUpdate(ObjInfo);
        if (ObjInfo.FeatID > 0)
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageFeature/ModuleLocalText", "UpdatedSuccess"), "", SageMessageType.Success);
        }
        else
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageFeature/ModuleLocalText", "Savedsuccess"), "", SageMessageType.Success);
        }
    }
 public void AddFAQ()
 {
     try
     {
         FAQController clt = new FAQController();
         FAQInfo       obj = new FAQInfo();
         if (Session["FAQId"] != null && Session["FAQId"].ToString() != string.Empty)
         {
             FAQId     = Int32.Parse(Session["FAQId"].ToString());
             obj.FAQId = FAQId;
         }
         else
         {
             obj.FAQId = 0;
         }
         obj.UserName     = GetUsername;
         obj.Question     = txtQuestion.Text;
         obj.Answer       = CkEditorFAQAnswer.Text;
         obj.PortalID     = GetPortalID;
         obj.AddedBy      = GetUsername;
         obj.CultureName  = GetCurrentCulture();
         obj.UserModuleID = int.Parse(SageUserModuleID);
         obj.EmailAddress = "";
         obj.CategoryID   = Convert.ToInt32(ddlCategory.SelectedItem.Value);
         obj.IsActive     = true;
         clt.SaveFAQ(obj);
         ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/FAQ/ModuleLocalText", "FAQSaveSuccessfully"), "", SageMessageType.Success);
         HideForm();
         LoadFAQList();
     }
     catch (Exception e)
     {
         throw e;
     }
 }
    private void InsertUpdateContent()
    {
        DashboardLinkInfo objInfo = new DashboardLinkInfo();

        objInfo.LinkID    = Int32.Parse(hdnContentID.Value);
        objInfo.LinkTitle = txtLinkTitle.Text;
        objInfo.IsParent  = chkIsParent.Checked;

        objInfo.PageID = objInfo.IsParent ? 0 : Int32.Parse(ddlPageList.SelectedValue);

        objInfo.ParentLinkID = Int32.Parse(ddlParentPageList.SelectedValue);

        objInfo.IsActive     = chkIsactiveContent.Checked;
        objInfo.UserModuleID = userModuleID;
        objInfo.PortalID     = GetPortalID;
        objInfo.CultureCode  = GetCurrentCultureName;
        DashboardLinkController objCon = new DashboardLinkController();

        objCon.AddUpdateLink(objInfo);
        if (hdnContentID.Value == "0")
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/DashboardSideMenu/ModuleLocalText", "Savedsuccesfully"), "", SageMessageType.Success);
        }
        else
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/DashboardSideMenu/ModuleLocalText", "UpdatedSuccesfully"), "", SageMessageType.Success);
        }
        btnSaveContent.Text = "Save";
        ClearAll();
    }
 protected void page_init(object sender, EventArgs e)
 {
     try
     {
         // ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalServicePath", " var aspxservicePath='" + ResolveUrl("~/") + "Modules/AspxCommerce/AspxCommerceServices/" + "';", true);
         string modulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory);
         LogoDestination = modulePath + "Logos/";
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalPayementGatewayPath",
                                                 " var aspxPayementGatewayPath='" + ResolveUrl(modulePath) + "';",
                                                 true);
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalPayementGatewayUploadPath",
                                                 " var aspxPayementGatewayUploadPath='" + ResolveUrl(modulePath) +
                                                 "'+'uploads/';", true);
         lblRepairInstallHelp.Text =
             SageMessage.GetSageModuleLocalMessageByVertualPath(
                 "Modules/AspxCommerce/AspxPaymentGateWayManagement/ModuleLocalText",
                 "WarningMessageWillDeleteAllFiles");
         chkRepairInstall.Checked = true;
         //chkRepairInstall.Enabled = false;
         pnlRepair.Visible = true;
         InitializeJS();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Exemple #8
0
    protected void imbSaveBannerSetting_Click(object sender, ImageClickEventArgs e)
    {
        int userModuleID = Int32.Parse(SageUserModuleID);

        if (txtSpeed.Text == null)
        {
            txtSpeed.Text = Convert.ToString(0);
        }
        if (txtPauseTime.Text == null)
        {
            txtPauseTime.Text = Convert.ToString(0);
        }
        try
        {
            string userName = GetUsername;
            int    portalID = GetPortalID;
            SaveBannerSetting("BannerToUse", ddlBannerListToUse.SelectedValue, userModuleID, userName, userName, portalID);
            SaveBannerSetting("TransitionMode", ddlTransitionMode.SelectedItem.Text, userModuleID, userName, userName, portalID);
            SaveBannerSetting("InfiniteLoop", Convert.ToString(chkInfiniteLoop.Checked).ToLower(), userModuleID, userName, userName, portalID);
            SaveBannerSetting("Speed", txtSpeed.Text, userModuleID, userName, userName, portalID);
            SaveBannerSetting("NumericPager", Convert.ToString(chkNumeric.Checked).ToLower(), userModuleID, userName, userName, portalID);
            SaveBannerSetting("Auto_Slide", Convert.ToString(chkAutoSlide.Checked).ToLower(), userModuleID, userName, userName, portalID);
            SaveBannerSetting("Pause_Time", txtPauseTime.Text, userModuleID, userName, userName, portalID);
            SaveBannerSetting("EnableControl", Convert.ToString(chkEnableControl.Checked).ToLower(), userModuleID, userName, userName, portalID);
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }

        ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/Sage_Banner/ModuleLocalText", "SettingSavedSucessfully"), "", SageMessageType.Success);
        HttpRuntime.Cache.Remove("BannerImages_" + GetCurrentCulture() + "_" + userModuleID.ToString());
        HttpRuntime.Cache.Remove("BannerSetting_" + GetCurrentCulture() + "_" + userModuleID.ToString());
    }
    private void InsertUpdateContent()
    {
        ArticleQuickMenuInfo objInfo = new ArticleQuickMenuInfo();

        objInfo.MenuID          = Int32.Parse(hdnContentID.Value);
        objInfo.MenuTitle       = txtLinkTitle.Text;
        objInfo.MenuUrl         = txtLinkURL.Text;
        objInfo.MenuDescription = txtMenuDescription.InnerText;
        objInfo.IsActive        = chkIsactiveContent.Checked;
        objInfo.UserModuleID    = userModuleID;
        objInfo.PortalID        = GetPortalID;
        objInfo.CultureCode     = GetCurrentCultureName;
        ArticleQuickMenuController objCon = new ArticleQuickMenuController();

        objCon.AddUpdateQuickMenu(objInfo);
        if (hdnContentID.Value == "0")
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/ArticleAdmin/ArticleSetting/ModuleLocalText", "Savedsuccesfully"), "", SageMessageType.Success);
        }
        else
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/ArticleAdmin/ArticleSetting/ModuleLocalText", "UpdatedSuccesfully"), "", SageMessageType.Success);
        }
        btnSaveContent.Text = "Save";
        ClearAll();
    }
    private void AddUpdateBanner()
    {
        ImageFlowController objCon  = new ImageFlowController();
        ImageFlowInfo       objInfo = new ImageFlowInfo();

        objInfo.BannerID     = Int32.Parse(hdnBannerID.Value);
        objInfo.Title        = txtTitle.Text;
        objInfo.Description  = txtDescription.Text;
        objInfo.IsActive     = chkIsactiveContent.Checked;
        objInfo.UserModuleID = userModuleID;
        objInfo.CultureCode  = GetCurrentCultureName;
        objInfo.PortalID     = GetPortalID;
        objInfo.AddedBy      = GetUsername;
        objInfo.ImageName    = hdnImageName.Text;
        if (fileBannerImage.HasFile)
        {
            objInfo.ImageName = SaveImage();
        }
        objCon.AddUpdateImages(objInfo);
        if (objInfo.BannerID > 0)
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageImageFlow/ModuleLocalText", "ContentUpdatedSuccessfully"), "", SageMessageType.Success);
        }
        else
        {
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageImageFlow/ModuleLocalText", "ContentSavedsuccesfully"), "", SageMessageType.Success);
        }

        ClearAll();
        divGridContents.Visible = true;
        divBannerFrom.Visible   = false;
    }
    private void UninstallPaymentGateway(PaymentGateWayModuleInfo paymentGateWay, bool deleteModuleFolder, int gatewayID)
    {
        PaymentGatewayInstaller installerClass = new PaymentGatewayInstaller();
        string path = HttpContext.Current.Server.MapPath("~/");

        //checked if directory exist for current Payment Gateway foldername
        string paymentGatewayFolderPath = paymentGateWay.InstalledFolderPath;

        if (!string.IsNullOrEmpty(paymentGatewayFolderPath))
        {
            if (Directory.Exists(paymentGatewayFolderPath))
            {
                //check for valid .sfe file exist or not
                XmlDocument doc = new XmlDocument();
                if (File.Exists(paymentGatewayFolderPath + '\\' + paymentGateWay.ManifestFile))
                {
                    doc.Load(paymentGatewayFolderPath + '\\' + paymentGateWay.ManifestFile);

                    try
                    {
                        if (paymentGateWay.PaymentGatewayTypeID > 0)
                        {
                            //Run script
                            ReadUninstallScriptAndDLLFiles(doc, paymentGatewayFolderPath, installerClass);
                            //Rollback PaymentGatewayTypeID
                            //installerClass.PaymentGatewayRollBack(paymentGateWay.PaymentGatewayTypeID, GetPortalID, GetStoreID);
                            if (deleteModuleFolder == true)
                            {
                                //Delete Payment GateWay's Original Folder
                                installerClass.DeleteTempDirectory(paymentGateWay.InstalledFolderPath);
                            }
                            installhelp.InstallPackage(paymentModule, gatewayID);
                        }
                    }
                    catch (Exception ex)
                    {
                        _exceptions = ex.Message;
                    }
                }
                else
                {
                    if (deleteModuleFolder == true)
                    {
                        //Delete Payment GateWay's Original Folder
                        installerClass.DeleteTempDirectory(paymentGateWay.InstalledFolderPath);
                    }
                    installhelp.InstallPackage(paymentModule, gatewayID);
                }
            }
            else if (!Directory.Exists(paymentGatewayFolderPath))
            {
                installhelp.InstallPackage(paymentModule, gatewayID);
            }
            else
            {
                ShowMessage(SageMessageTitle.Exception.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/AspxCommerce/AspxPaymentGateWayManagement/ModuleLocalText", "PaymentGatewayFolderDoesnotExist"), "", SageMessageType.Error);
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            StoreID     = GetStoreID;
            PortalID    = GetPortalID;
            UserName    = GetUsername;
            CultureName = GetCurrentCultureName;
            if (!IsPostBack)
            {
                IncludeCss("StoreOrdersReport", "/Templates/" + TemplateName + "/css/GridView/tablesort.css",
                           "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                           "/Templates/" + TemplateName + "/css/Print/print.css");
                IncludeJs("PaymentGateWayManagement", "/js/MessageBox/jquery.easing.1.3.js",
                          "/js/MessageBox/alertbox.js", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js",
                          "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js", "/js/PopUp/custom.js",
                          "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
                          "/js/CurrencyFormat/jquery.formatCurrency.all.js",
                          "/Modules/AspxCommerce/AspxPaymentGateWayManagement/js/PaymentGatewayManagement.js",
                          "/js/AjaxFileUploader/ajaxupload.js");


                // Assign the Session["update"] with unique value
                StoreSettingConfig ssc = new StoreSettingConfig();
                MaxFileSize =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaximumImageSize, StoreID, PortalID, CultureName));
            }
            IncludeLanguageJS();
            pageURL = HttpContext.Current.Request.Url.ToString();
            string   x   = pageURL;
            string[] url = pageURL.Split('?');
            pageURL = url[0];

            if (Request.QueryString["deleted"] != null)
            {
                if (bool.Parse(Request.QueryString["deleted"]) == true)
                {
                    ShowMessage(SageMessageTitle.Information.ToString(),
                                SageMessage.GetSageModuleLocalMessageByVertualPath(
                                    "Modules/AspxCommerce/AspxPaymentGateWayManagement/ModuleLocalText",
                                    "PaymentGatewayDeletedSuccessfully"), "", SageMessageType.Success);
                }
            }
            if (Request.QueryString["installed"] != null)
            {
                if (bool.Parse(Request.QueryString["installed"]) == true)
                {
                    ShowMessage(SageMessageTitle.Information.ToString(),
                                SageMessage.GetSageModuleLocalMessageByVertualPath(
                                    "Modules/AspxCommerce/AspxPaymentGateWayManagement/ModuleLocalText",
                                    "PaymentGatewayInstalledSuccessfully"), "", SageMessageType.Success);
                }
            }
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Exemple #13
0
        public static List <SageFrameStringKeyValue> urlTypeName()
        {
            List <SageFrameStringKeyValue> urlType = new List <SageFrameStringKeyValue>();

            urlType.Add(new SageFrameStringKeyValue("None", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "None")));
            urlType.Add(new SageFrameStringKeyValue("URL ( A Link To An External Resource )", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "URLALinkToAnExternalResource")));
            return(urlType);
        }
Exemple #14
0
        public static List <SageFrameIntKeyValue> YESNO()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "No")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Yes")));
            return(arrColl);
        }
Exemple #15
0
        public static List <SageFrameIntKeyValue> SubscriptionDisplayType()
        {
            List <SageFrameIntKeyValue> SubscriptionDisplayType = new List <SageFrameIntKeyValue>();

            SubscriptionDisplayType.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Simple")));
            SubscriptionDisplayType.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Modalbox")));
            return(SubscriptionDisplayType);
        }
Exemple #16
0
        private void DeleteContact(int contactUsID)
        {
            ContactUsController contactController = new ContactUsController();

            contactController.ContactUsDeleteByID(contactUsID, GetPortalID, GetUsername);
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/ContactUs/ModuleLocalText", "ContactUsIsDeletedSuccessfully"), "", SageMessageType.Success);
            LoadContactList();
        }
Exemple #17
0
    private void DeleteFAQ(int FAQid)
    {
        FAQController clt = new FAQController();

        clt.DeleteFAQ(FAQid, GetPortalID, int.Parse(SageUserModuleID));
        ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/FAQ/ModuleLocalText", "DeleteSuccessfully"), "", SageMessageType.Success);
        LoadFAQList();
    }
Exemple #18
0
    private void DeleteCategory(int catID)
    {
        FAQController clt = new FAQController();

        clt.DeleteCategory(catID, GetPortalID, int.Parse(SageUserModuleID));
        ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/FAQ/ModuleLocalText", "CategoryDeletedSuccessfully"), "", SageMessageType.Success);
        LoadCategoryOnGrid();
    }
Exemple #19
0
        public static List <SageFrameIntKeyValue> SMTPAuthntication()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Anonymous")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Basic")));
            arrColl.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "NTLM")));
            return(arrColl);
        }
Exemple #20
0
        public static List <SageFrameIntKeyValue> SearchButtonTypes()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Button")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Image")));
            arrColl.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Link")));
            return(arrColl);
        }
Exemple #21
0
        public static List <SageFrameIntKeyValue> SearchEngines()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Google")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Yahoo")));
            arrColl.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Microsoft")));
            return(arrColl);
        }
Exemple #22
0
        public static List <SageFrameIntKeyValue> UserRegistrationTypes()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "None")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Private")));
            arrColl.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Public")));
            arrColl.Add(new SageFrameIntKeyValue(3, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Verified")));
            return(arrColl);
        }
Exemple #23
0
        public static List <SageFrameIntKeyValue> DataTypes()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "String")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Integer")));
            arrColl.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Decimal")));
            arrColl.Add(new SageFrameIntKeyValue(3, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "DateTime")));
            return(arrColl);
        }
Exemple #24
0
        public static List <SageFrameIntKeyValue> SearchOrderingTypes()
        {
            List <SageFrameIntKeyValue> arrColl = new List <SageFrameIntKeyValue>();

            arrColl.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "NewFirst")));
            arrColl.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "OldFirst")));
            arrColl.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "AlphaBaticallyASC")));
            arrColl.Add(new SageFrameIntKeyValue(3, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "AlphaBaticallyDESC")));
            return(arrColl);
        }
Exemple #25
0
        public static List <SageFrameIntKeyValue> FAQsSorting()
        {
            List <SageFrameIntKeyValue> FAQsSorting = new List <SageFrameIntKeyValue>();

            FAQsSorting.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "DateNew")));
            FAQsSorting.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "DateOld")));
            FAQsSorting.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "PopularityHigh")));
            FAQsSorting.Add(new SageFrameIntKeyValue(3, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "PopularityLow")));
            return(FAQsSorting);
        }
Exemple #26
0
        public static List <SageFrameIntKeyValue> ControlType()
        {
            List <SageFrameIntKeyValue> controlType = new List <SageFrameIntKeyValue>();

            controlType.Add(new SageFrameIntKeyValue(1, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "View")));
            controlType.Add(new SageFrameIntKeyValue(2, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Edit")));
            controlType.Add(new SageFrameIntKeyValue(3, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Setting")));
            controlType.Add(new SageFrameIntKeyValue(0, SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Admin")));
            return(controlType);
        }
Exemple #27
0
        //public static ArrayList ModulePanes()
        //{
        //    ArrayList modulePanes = new ArrayList();
        //    modulePanes.Clear();
        //    modulePanes.Add("TopPane");
        //    modulePanes.Add("LeftPane");
        //    modulePanes.Add("ContentPane");
        //    modulePanes.Add("RightPane");
        //    modulePanes.Add("BottomPane");
        //    return modulePanes;
        //}

        //public static ArrayList PostionType()
        //{
        //    ArrayList postionType = new ArrayList();
        //    postionType.Clear();
        //    postionType.Add("Top");
        //    postionType.Add("Above");
        //    postionType.Add("Below");
        //    //postionType.Add("Bottom");
        //    return postionType;
        //}

        public static List <SageFrameStringKeyValue> PositionType()
        {
            List <SageFrameStringKeyValue> positionType = new List <SageFrameStringKeyValue>();

            positionType.Add(new SageFrameStringKeyValue("Top", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Top")));
            positionType.Add(new SageFrameStringKeyValue("Above", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Above")));
            positionType.Add(new SageFrameStringKeyValue("Below", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Below")));
            positionType.Add(new SageFrameStringKeyValue("Bottom", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Bottom")));
            return(positionType);
        }
Exemple #28
0
    private void AddUpdateBanner()
    {
        SageBannerInfo ObjInfo = new SageBannerInfo();

        ObjInfo.UserModuleID      = userModuleID;
        ObjInfo.PortalID          = GetPortalID;
        ObjInfo.AddedBy           = GetUsername;
        ObjInfo.Culture           = GetCurrentCultureName;
        ObjInfo.BannerID          = Int32.Parse(hdnBannerID.Value.Trim());
        ObjInfo.BannerSloganTitle = txtSloganTitle.Text;
        ObjInfo.BannerSlogan      = txtSlogan.Text;
        ObjInfo.LinkButtonName    = txtLinkBtnName.Text;
        ObjInfo.IsActive          = chkIsActive.Checked;
        if (ddlPageList.SelectedValue != "0")
        {
            ObjInfo.LinkUrl = GetHostURL + "/" + ddlPageList.SelectedValue + ".aspx";
        }
        else
        {
            ObjInfo.LinkUrl = txtContentLinkUrl.Text;
        }
        SageBannerController objCon = new SageBannerController();

        if (ObjInfo.BannerID <= 0)
        {
            if (fileCtlContentImage.HasFile)
            {
                ObjInfo.BannerImageName = SaveImage();
                objCon.InsertUpdateBanner(ObjInfo);
                pnlBannerForm.Visible = false;
                pnlBannerTbl.Visible  = true;
                BindBanner();
                ClearForm();
                ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageBanner/ModuleLocalText", "UpdatedSuccesfully"), "", SageMessageType.Success);
            }
            else
            {
                lblErrorMsg.Text = "Required!";
            }
        }
        else
        {
            ObjInfo.BannerImageName = hdnImageName.Value;
            if (fileCtlContentImage.HasFile)
            {
                ObjInfo.BannerImageName = SaveImage();
            }
            objCon.InsertUpdateBanner(ObjInfo);
            pnlBannerForm.Visible = false;
            pnlBannerTbl.Visible  = true;
            BindBanner();
            ClearForm();
            ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageBanner/ModuleLocalText", "Savedsuccesfully"), "", SageMessageType.Success);
        }
    }
    private void SaveScriptData()
    {
        try
        {
            ScriptInjectionInfo obj = new ScriptInjectionInfo();
            if (Session["ScriptId"] != null && Session["ScriptId"].ToString() != string.Empty)
            {
                obj.ScriptID = Int32.Parse(Session["ScriptId"].ToString());
                Session.Contents.Remove("ScriptId");
            }
            else
            {
                obj.ScriptID = 0;
            }

            if (txtScriptName.Text != string.Empty && txtScriptDescription.Text != string.Empty && txtScriptContent.Text != string.Empty)
            {
                string Ext = System.IO.Path.GetExtension(txtScriptName.Text);
                if (Ext == ".html")
                {
                    obj.ScriptName = txtScriptName.Text;
                }
                else
                {
                    obj.ScriptName = txtScriptName.Text + ".html";
                }
                obj.ScriptToBeEmbed   = txtScriptContent.Text;
                obj.ScriptDescription = txtScriptDescription.Text;
                obj.UserModuleID      = Int32.Parse(SageUserModuleID);
                obj.PortalID          = GetPortalID;
                obj.IsVisible         = true;
            }

            if (txtScriptName.Text != string.Empty && txtScriptDescription.Text != string.Empty && txtScriptContent.Text != string.Empty)
            {
                ScriptInjectionController objC = new ScriptInjectionController();
                objC.SaveScriptData(obj);
                ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/ScriptInjection/ModuleLocalText", "SavedSucessfully"), "", SageMessageType.Success);
                divScriptContainer.Attributes.Add("style", "display:block");
                divScriptForm.Attributes.Add("style", "display:none");
                loadOngdvScriptTobeEmbed(Int32.Parse(SageUserModuleID));
            }
            else
            {
                ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/ScriptInjection/ModuleLocalText", "PleaseFillTheFormFirst"), "", SageMessageType.Success);
                divScriptContainer.Attributes.Add("style", "display:none");
                divScriptForm.Attributes.Add("style", "display:block");
            }
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
        /// <summary>
        /// Returns list of menu position in the page  for current culture.
        /// </summary>
        /// <returns>Returns list of menu position in the page for current culture.</returns>
        public static List <SageFrameStringKeyValue> menuPagePosition()
        {
            //SageUserControl SU = new SageUserControl();
            //SU.GetSageMessage("PortalSettings", "PortalSettingIsSavedSuccessfully");
            List <SageFrameStringKeyValue> menuPosition = new List <SageFrameStringKeyValue>();

            menuPosition.Add(new SageFrameStringKeyValue("Before", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "Before")));
            menuPosition.Add(new SageFrameStringKeyValue("After", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "After")));
            menuPosition.Add(new SageFrameStringKeyValue("Add to End", SageMessage.ListSageText(CultureInfo.CurrentCulture.Name, "SageFrameLists", "AddtoEnd")));
            return(menuPosition);
        }