protected void SetScroller(string productType)
        {
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            string        assetCategory = String.Empty;

            switch (productType)
            {
            case "MF":
                assetCategory = "MF";
                break;

            case "NCD":
                assetCategory = "FI";
                break;

            case "IPO":
                assetCategory = "IP";
                break;
            }

            string    innerHtml = String.Empty;
            DataTable dt        = new DataTable();

            dt = onlineOrderBo.GetAdvertisementData(assetCategory, "Scroll");
            dlScroller.RepeatColumns = dt.Rows.Count;
            dlScroller.DataSource    = dt;
            dlScroller.DataBind();
            //innerHtml = @"<marquee style=""font-family: Arial;font-size: 14px;"">";
            //foreach (DataRow dr in dt.Rows)
            //{
            //    innerHtml += string.Format(@"{0} &nbsp; <b>|</b> &nbsp; ", dr["PUHD_HelpDetails"].ToString());
            //}
            //innerHtml += "</marquee>";
            //Label1.Text = innerHtml;
        }
Exemple #2
0
        protected void SetDemoLink(string productType)
        {
            Div1.Visible = true;
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            string        assetCategory = String.Empty;
            string        innerHtml     = String.Empty;
            DataTable     dt            = new DataTable();

            switch (productType)
            {
            case "MF":
                assetCategory = "MF";
                break;

            case "NCD":
                assetCategory = "FI";
                break;

            case "IPO":
                assetCategory = "IP";
                break;
            }

            dt = onlineOrderBo.GetAdvertisementData(assetCategory, "Demo");
            //Page.ClientScript.RegisterStartupScript(this.GetType(), "SetDemo", @"window.open('ReferenceFiles/HelpVideo.htm?Link=" + dt.Rows[0][0].ToString() + "', 'newwindow', 'width=655, height=520'); ", true);
            if (dt.Rows.Count > 0)
            {
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
            }
            //lnkDemo.OnClientClick = @"window.open('ReferenceFiles/HelpVideo.htm?Link=" + dt.Rows[0][0].ToString() + "', 'newwindow', 'width=655, height=520'); ";
        }
 protected void BindTransactDdl(object sender, EventArgs e)
 {
     if (schemeCode.Value != "")
     {
         OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
         string        exchangeType1 = string.Empty;
         string        exchangeType  = string.Empty;
         CreateExchangeDetailsSession(Int32.Parse(schemeCode.Value));
         Dictionary <string, string> SchemetransactType;
         SchemetransactType = (Dictionary <string, string>)Session["SchemeExchangeee"];
         exchangeType1      = Session["ExchangeMode"].ToString();
         Dictionary <string, string> TransactionTypes = onlineOrderBo.GetTransactionTypeForExchange(exchangeType1, SchemetransactType[exchangeType1].ToString());
         string pageName;
         if (hdnTransactType.Value.Contains('&'))
         {
             pageName = hdnTransactType.Value.Substring(0, hdnTransactType.Value.IndexOf('&'));
         }
         else
         {
             pageName = hdnTransactType.Value;
         }
         if (TransactionTypes.Count > 0 && TransactionTypes.Keys.Contains(pageName))
         {
             ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadTransactPanelFromMainPage", "LoadTransactPanel('" + hdnTransactType.Value + "');", true);
         }
     }
 }
        protected void ddlchannel_onSelectedChanged(object sender, EventArgs e)
        {
            BindTransactionType(ddlchannel.SelectedValue);
            string exchangeType  = string.Empty;
            string exchangeType1 = string.Empty;
            Dictionary <string, string> SchemetransactType;

            SchemetransactType = (Dictionary <string, string>)Session["SchemeExchangeee"];
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();


            if (ddlchannel.SelectedValue == "Online")
            {
                exchangeType  = "&exchangeType=Online";
                exchangeType1 = "Online";
            }
            else
            {
                exchangeType  = "&exchangeType=Demat";
                exchangeType1 = "Demat";
            }
            Dictionary <string, string> TransactionTypes = onlineOrderBo.GetTransactionTypeForExchange(exchangeType1, SchemetransactType[exchangeType1].ToString());

            if (TransactionTypes.Count > 0)
            {
                ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadTransactPanelFromSchemeSearch", "LoadTransactPanel('" + TransactionTypes.Keys.ElementAt(0) + exchangeType + "');", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadTransactPanelFromSchemeSearch", "LoadTransactPanel('MFOrderPurchaseTransType');", true);
            }
            //Page.ClientScript.RegisterStartupScript(this.GetType(), "pageloadscripRajiv", @"LoadTransactPanel('MFOrderPurchaseTransType" + ddlchannel.SelectedValue + "');", true);
        }
Exemple #5
0
        protected void SetFAQLink(string productType)
        {
            Div3.Visible = true;
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            string        assetCategory = String.Empty;

            DataTable dt = new DataTable();

            switch (productType)
            {
            case "MF":
                assetCategory = "MF";
                break;

            case "NCD":
                assetCategory = "FI";
                break;

            case "IPO":
                assetCategory = "IP";
                break;
            }
            dt = onlineOrderBo.GetAdvertisementData(assetCategory, "FAQ");
            string path = ConfigurationManager.AppSettings["BANNER_IMAGE_PATH"].ToString();

            //Response.Redirect(path + dt.Rows[0][0].ToString());
            if (dt.Rows.Count > 0)
            {
                Repeater2.DataSource = dt;
                Repeater2.DataBind();
            }
            //lnkFAQ.OnClientClick = @"window.open('" + path.Replace("~", "..") + dt.Rows[0][0].ToString() + "','_blank'); ";
        }
Exemple #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
                string        path          = ConfigurationManager.AppSettings["BANNER_IMAGE_PATH"].ToString();
                if (Request.QueryString["Type"] != null)
                {
                    if (Request.QueryString["Type"] == "Demo")
                    {
                        SetDemoLink("MF");
                    }
                    else if (Request.QueryString["Type"] == "FAQ")
                    {
                        SetFAQLink("MF");
                    }
                }
                else
                {
                    string    innerHtml = String.Empty;
                    DataTable dtProductBannerDetails = new DataTable();

                    dtProductBannerDetails = onlineOrderBo.GetImageListForBanner(assetCategory);

                    foreach (DataRow dr in dtProductBannerDetails.Rows)
                    {
                        innerHtml += string.Format(@"<li><img src=""{0}{1}"" /></li>", path.Replace("~", ".."), dr["PDB_BannerImage"].ToString());
                    }
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "SetBannerImageDetails", @"SetBannerImageDetails('" + innerHtml + "');", true);
                }
            }
        }
        protected void CreateExchangeDetailsSession(int schemeCode)
        {
            OnlineOrderBo OnlineOrderBo = new OnlineOrderBo();
            Dictionary <string, string> SchemetransactType;

            Session["MFSchemePlan"]     = schemeCode;
            SchemetransactType          = OnlineOrderBo.GetschemedetailonlineorDemate(schemeCode);
            Session["SchemeExchangeee"] = SchemetransactType;
            //BindExchangeDropDown(SchemetransactType["exchange"].ToString());
            BindTransactionType(Session["ExchangeMode"].ToString());
        }
Exemple #8
0
        private static void ProcesOnlineOrderRMSAccountDebit()
        {
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            DataTable     dtOrderList   = new DataTable();

            dtOrderList = GetMFOnlineOrderListForRMSAccountDebit();
            foreach (DataRow dr in dtOrderList.Rows)
            {
                onlineOrderBo.DebitRMSUserAccountBalance(dr["C_CustCode"].ToString(), -Convert.ToDouble(dr["CMFOD_Amount"].ToString()), Convert.ToInt32(dr["CO_OrderId"].ToString()));
            }
        }
        private void BindTransactionType(string exchangeType)
        {
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            Dictionary <string, string> SchemetransactType;

            SchemetransactType = (Dictionary <string, string>)Session["SchemeExchangeee"];

            Dictionary <string, string> TransactionTypes = onlineOrderBo.GetTransactionTypeForExchange(exchangeType, SchemetransactType[exchangeType].ToString());

            DropDownList1.Items.Clear();
            DropDownList1.DataSource     = TransactionTypes;
            DropDownList1.DataValueField = "Key";
            DropDownList1.DataTextField  = "Value";
            DropDownList1.DataBind();
        }
        protected void SetFAQLink(object sender, EventArgs e)
        {
            string productType = string.Empty;

            if (defaultProductPageSetting.ContainsKey("ProductType") && defaultProductPageSetting.ContainsKey("ProductMenu"))
            {
                productType = defaultProductPageSetting["ProductType"].ToString();
            }
            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            string        assetCategory = String.Empty;

            DataTable dt = new DataTable();

            switch (productType)
            {
            case "MF":
                assetCategory = "MF";
                break;

            case "NCD":
                assetCategory = "FI";
                break;

            case "IPO":
                assetCategory = "IP";
                break;
            }
            //lnkFAQ.OnClientClick = "LoadBottomPanelControl('Banner?Type=FAQ&ProductType='" + assetCategory + ",'login');";
            Session["BannerType"]        = "FAQ";
            Session["BannerProductType"] = assetCategory;
            ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('FAQandDemo','login');", true);


            //Page.ClientScript.RegisterStartupScript(this.GetType(), "pageloadscript1", "LoadBottomPanelControl('FAQandDemo','login');", true);
            //dt = onlineOrderBo.GetAdvertisementData(assetCategory, "FAQ");
            //string path = ConfigurationManager.AppSettings["BANNER_IMAGE_PATH"].ToString();
            ////Response.Redirect(path + dt.Rows[0][0].ToString());
            //if(dt.Rows.Count>0)
            //    lnkFAQ.OnClientClick = @"window.open('" + path.Replace("~", "..") + dt.Rows[0][0].ToString() + "','_blank'); ";
        }
        protected void SetDemoLink(object sender, EventArgs e)
        {
            string productType = string.Empty;

            if (defaultProductPageSetting.ContainsKey("ProductType") && defaultProductPageSetting.ContainsKey("ProductMenu"))
            {
                productType = defaultProductPageSetting["ProductType"].ToString();
            }

            OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
            string        assetCategory = String.Empty;
            string        innerHtml     = String.Empty;
            DataTable     dt            = new DataTable();

            switch (productType)
            {
            case "MF":
                assetCategory = "MF";
                break;

            case "NCD":
                assetCategory = "FI";
                break;

            case "IPO":
                assetCategory = "IP";
                break;
            }
            Session["BannerType"]        = "Demo";
            Session["BannerProductType"] = assetCategory;
            //lnkDemo.OnClientClick = "LoadBottomPanelControl('Banner','?Type=Demo&ProductType=" + assetCategory + "');";
            ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('FAQandDemo','login');", true);
            //Page.ClientScript.RegisterStartupScript(this.GetType(), "pageloadscript2", "LoadBottomPanelControl('FAQandDemo','login');", true);
            //dt = onlineOrderBo.GetAdvertisementData(assetCategory, "Demo");
            ////Page.ClientScript.RegisterStartupScript(this.GetType(), "SetDemo", @"window.open('ReferenceFiles/HelpVideo.htm?Link=" + dt.Rows[0][0].ToString() + "', 'newwindow', 'width=655, height=520'); ", true);
            //if (dt.Rows.Count > 0)
            //    lnkDemo.OnClientClick = @"window.open('ReferenceFiles/HelpVideo.htm?Link=" + dt.Rows[0][0].ToString() + "', 'newwindow', 'width=655, height=520'); ";
        }
 protected void SchemeSearch_OnTextChanged(object sender, EventArgs e)
 {
     if (schemeCode.Value != "")
     {
         string exchangeType  = string.Empty;
         string exchangeType1 = string.Empty;
         CreateExchangeDetailsSession(Int32.Parse(schemeCode.Value));
         Dictionary <string, string> SchemetransactType;
         SchemetransactType = (Dictionary <string, string>)Session["SchemeExchangeee"];
         OnlineOrderBo onlineOrderBo = new OnlineOrderBo();
         exchangeType1 = Session["ExchangeMode"].ToString();
         Dictionary <string, string> TransactionTypes = onlineOrderBo.GetTransactionTypeForExchange(exchangeType1, SchemetransactType[exchangeType1].ToString());
         if (TransactionTypes.Count > 0)
         {
             ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadTransactPanelFromSchemeSearch", "LoadTransactPanel('" + TransactionTypes.Keys.ElementAt(0) + "');", true);
         }
         else
         {
             ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadTransactPanelFromSchemeSearch", "LoadTransactPanel('MFOrderPurchaseTransType');", true);
         }
         ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadBottomPanelFromSchemeSearch", "LoadBottomPanelControl('MFSchemeDetails&schemeCode=" + schemeCode.Value + "');", true);
     }
 }