コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     OnlineUserSessionBo.CheckSession();
     customerVo = (CustomerVo)Session["CustomerVo"];
     if (Session["ExchangeMode"] != null)
     {
         exchangeType = Session["ExchangeMode"].ToString();
     }
     else
     {
         exchangeType = "Online";
     }
     if (!IsPostBack)
     {
         BindAMC();
         if (Request.QueryString["schemeCode"] != null)
         {
             Session["MFSchemePlan"] = Request.QueryString["schemeCode"];
             int    amcCode        = 0;
             string category       = string.Empty;
             int    isSIPAvaliable = 0;
             BindCategory();
             commonLookupBo.GetSchemeAMCCategory(int.Parse(Request.QueryString["schemeCode"].ToString()), out amcCode, out category, out isSIPAvaliable, exchangeType == "Online" ? 1 : 0);
             int schemecode = int.Parse(Request.QueryString["schemeCode"].ToString());
             ddlAMC.SelectedValue      = amcCode.ToString();
             ddlCategory.SelectedValue = category;
             BindScheme();
             ddlScheme.SelectedValue = Request.QueryString["schemeCode"];
             GetAmcSchemeDetails();
             BindschemedetailsNAV();
             hidCurrentScheme.Value = ddlScheme.SelectedValue;
             ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptv2ewv", "LoadTransactPanelFromMainPage('MFOrderPurchaseTransType','" + Request.QueryString["schemeCode"].ToString() + "')", true);
         }
     }
 }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Panel1.Visible = true;
            Panel1.Style.Add("display", "none");
            lnkbtnpup.Visible = true;
            ModalPopupExtender1.Hide();
            OnlineUserSessionBo.CheckSession();
            if (!string.IsNullOrEmpty(Session["advisorVo"].ToString()))
            {
                advisorVo = (AdvisorVo)Session["advisorVo"];
            }

            if (!string.IsNullOrEmpty(Session["userVo"].ToString()))
            {
                userVo = (UserVo)Session[SessionContents.UserVo];
            }

            if (!IsPostBack)
            {
                if (Cache["UPLOAD" + userVo.UserId] != null)
                {
                    Cache.Remove("UPLOAD" + userVo.UserId);
                }
            }
        }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
     OnlineUserSessionBo.CheckSession();
     customerVo         = (CustomerVo)Session["customerVo"];
     userVo             = (UserVo)Session["userVo"];
     Session["OrderId"] = OrderId;
     if (!IsPostBack)
     {
         clientMFAccessCode = onlineMforderBo.GetClientMFAccessStatus(customerVo.CustomerId);
         if (clientMFAccessCode == "FA")
         {
             ShowAvailableLimits();
             BindNFOSchemeList();
             trJointHolder.Visible   = false;
             trNominee.Visible       = false;
             lblOption.Visible       = false;
             lblDividendType.Visible = false;
         }
         else
         {
             ShowMessage(onlineMforderBo.GetOnlineOrderUserMessage(clientMFAccessCode), 'I');
             PurchaseOrderControlsEnable(false);
             divControlContainer.Visible     = false;
             divClientAccountBalance.Visible = false;
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            OnlineUserSessionBo.CheckSession();
            advisorVo  = (AdvisorVo)Session["advisorVo"];
            customerVO = (CustomerVo)Session["customerVo"];
            userType   = Session[SessionContents.CurrentUserRole].ToString();
            userVo     = (UserVo)Session["userVo"];
            customerId = customerVO.CustomerId;
            if (Session["ExchangeMode"] != null)
            {
                exchangeType = Session["ExchangeMode"].ToString();
            }


            if (!IsPostBack)
            {
                if (exchangeType == "Online")
                {
                    lblHeader.Text = "MF Holdings(Online)";
                }
                else
                {
                    lblHeader.Text = " MF Holdings(Exchange)";
                }
                Cache.Remove("UnitHolding" + userVo.UserId);
                BindFolioAccount();
                BindLink();
            }
        }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            OnlineUserSessionBo.CheckSession();
            customerVo = (CustomerVo)Session["customerVo"];
            userVo     = (UserVo)Session["userVo"];

            if (!IsPostBack)
            {
                AmcBind();
            }
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            userBo = new UserBo();
            path   = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            OnlineUserSessionBo.CheckSession();
            customerVo = (CustomerVo)Session["customerVo"];
            userVo     = (UserVo)Session["userVo"];
            if (Session["ExchangeMode"] != null)
            {
                exchangeType = Session["ExchangeMode"].ToString();
            }
            else
            {
                exchangeType = "Online";
            }
            if (exchangeType == "Online")
            {
                ddlFilter.Visible = false;
            }
            else
            {
                ddlFilter.Visible = true;
            }


            if (!IsPostBack)
            {
                BindAMC();
                BindCategory(ddlCategory);
                BindCategory(ddlTopCategory);
                BindCategory(ddlMarketCategory);
                BindScheme();
                BindSortList(ddlTopRatedSort);
                BindSortList(ddlMarketDataSort);
                if (Request.QueryString["FilterType"] == "NFO")
                {
                    SetParametersForAdminGrid("lbNFOList");
                    dvFundFilter.Visible = false;
                }
                else if (Request.QueryString["FilterType"] == "watchList")
                {
                    SetParametersForAdminGrid("lbViewWatchList");
                    dvFundFilter.Visible = false;
                }
                else
                {
                    SetParametersForAdminGrid("lbTopSchemes");
                    BindTopMarketSchemes(ddlMarketCategory.SelectedValue, Boolean.Parse(ddlSIP.SelectedValue), int.Parse(ddlReturns.SelectedValue), customerVo.CustomerId, 1, int.Parse(ddlMarketDataSort.SelectedValue));
                    dvFundFilter.Visible = true;
                }
            }
        }
コード例 #7
0
        protected void Page_Init(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                OnlineUserSessionBo.CheckSession();
            }
            else
            {
                if (Page.Request.Headers["x-Account-ID"] != null && Page.Request.Headers["x-Account-ID"] != "")
                {
                    userAccountId = Page.Request.Headers["x-Account-ID"].ToString();
                    if (Page.Request.Headers["x-SBI-PType"] != null && Page.Request.Headers["x-SBI-PType"] != "")
                    {
                        productType  = Page.Request.Headers["x-SBI-PType"];
                        lblTest.Text = productType;
                    }
                }
                else if (Request.QueryString["x-Account-ID"] != null && Request.QueryString["x-Account-ID"] != "")
                {
                    userAccountId = Request.QueryString["x-Account-ID"].ToString();

                    if (Request.QueryString["x-SBI-PType"] != null && Request.QueryString["x-SBI-PType"] != "")
                    {
                        productType  = Request.QueryString["x-SBI-PType"];
                        lblTest.Text = productType;
                    }
                }
                if (Request.QueryString["WERP"] != null)
                {
                    isWerp = Request.QueryString["WERP"];
                }

                if (isWerp == "CustomerDrillDown")
                {
                    Session["BackOfficeUserId"] = Request.QueryString["BackOfficeuserId"];
                }
                if (!string.IsNullOrEmpty(userAccountId))
                {
                    if (string.IsNullOrEmpty(productType))
                    {
                        productType = "MF";
                    }
                    lblWelcomeUser.Text = "Account: " + userAccountId;
                }
                else
                {
                    productType = "NP";
                    //Not Authorize to see the page
                    SetDefaultPageSetting("NA");
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     OnlineUserSessionBo.CheckSession();
     //txtSchemeName_AutoCompleteExtender.ServiceMethod = "GetSchemeList";
     if (Session["PageDefaultSetting"] != null)
     {
         defaultProductPageSetting = (Dictionary <string, string>)Session["PageDefaultSetting"];
     }
     if (!Page.IsPostBack)
     {
         //Session["PageRefresh"] = "true";
         //ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueTransact','login');", true);
         SetProductPageDefaultSetting(defaultProductPageSetting);
     }
 }
コード例 #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            OnlineUserSessionBo.CheckSession();

            string assetCategory = Request.QueryString["Cat"];

            if (Request.QueryString["TYP"] == "Demo")
            {
                SetDemoLink(assetCategory);
            }
            else if (Request.QueryString["TYP"] == "FAQ")
            {
                SetFAQLink(assetCategory);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            OnlineUserSessionBo.CheckSession();
            advisorVo  = (AdvisorVo)Session["advisorVo"];
            customerVO = (CustomerVo)Session["customerVo"];
            userType   = Session[SessionContents.CurrentUserRole].ToString();
            customerId = customerVO.CustomerId;
            BindAmc();
            BindOrderStatus();

            //lbBack.Attributes.Add("onClick", "javascript:history.back(); return false;");
            if (!Page.IsPostBack)
            {
                //fromDate = DateTime.Now.AddMonths(-1);
                //txtFrom.SelectedDate = fromDate.Date;
                //txtTo.SelectedDate = DateTime.Now;
                BindLink();
            }
        }
コード例 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     OnlineUserSessionBo.CheckSession();
     advisorVo          = (AdvisorVo)Session["advisorVo"];
     customerVO         = (CustomerVo)Session["customerVo"];
     userType           = Session[SessionContents.CurrentUserRole].ToString();
     customerId         = customerVO.CustomerId;
     customerAccountsVo = (CustomerAccountsVo)Session["FolioVo"];
     BindAmc();
     BindOrderStatus();
     RadInformation.VisibleOnPageLoad = false;
     if (!Page.IsPostBack)
     {
         Cache.Remove("OrderList" + advisorVo.advisorId);
         fromDate = DateTime.Now.AddMonths(-1);
         txtOrderFrom.SelectedDate = fromDate.Date;
         txtOrderTo.SelectedDate   = DateTime.Now;
     }
 }
コード例 #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            OnlineUserSessionBo.CheckSession();
            advisorVo  = (AdvisorVo)Session["advisorVo"];
            customerVO = (CustomerVo)Session["customerVo"];
            userVo     = (UserVo)Session["userVo"];
            customerId = customerVO.CustomerId;
            RadInformation.VisibleOnPageLoad = false;
            BindOrderStatus();
            BindLink();
            BindAmc();
            BindLink();
            // Session["PreviousPage"] = "yes";

            // lbBack.Attributes.Add("onClick", "javascript:history.back(); return false;");
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["systematicId"] != null && Request.QueryString["AccountId"] != null && Request.QueryString["schemeplanCode"] != null && Request.QueryString["IsSourceAA"] != null && Request.QueryString["Amount"] != null && Request.QueryString["SIPStartDate"] != null)
                {
                    systematicId   = int.Parse(Request.QueryString["systematicId"].ToString());
                    AccountId      = int.Parse(Request.QueryString["AccountId"].ToString());
                    schemeplanCode = int.Parse(Request.QueryString["schemeplanCode"].ToString());
                    IsSourceAA     = int.Parse(Request.QueryString["IsSourceAA"].ToString());
                    amount         = int.Parse(Request.QueryString["Amount"].ToString());
                    SIPStartDate   = Convert.ToDateTime(Request.QueryString["SIPStartDate"].ToString());
                    BindGrid();
                    divConditional.Visible = false;
                }
                else
                {
                    fromDate             = DateTime.Now.AddMonths(-1);
                    txtFrom.SelectedDate = fromDate.Date;
                    txtTo.SelectedDate   = DateTime.Now;
                    // divConditional.Visible = false;
                }
            }
            else
            {
                fromDate             = DateTime.Now.AddMonths(-1);
                txtFrom.SelectedDate = fromDate.Date;
            }
        }
コード例 #13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     OnlineUserSessionBo.CheckSession();
     if (Session["ExchangeMode"] != null)
     {
         exchangeType = Session["ExchangeMode"].ToString();
     }
     else
     {
         exchangeType = "Online";
     }
     if (!IsPostBack)
     {
         BindAMC1();
         BindCategory();
         if (Request.QueryString["schemeCompareList"] != null)
         {
             //schemeCompareList = (List<int>)Session["SchemeCompareList"];
             GetSchemeCompareList(Getschemecode((List <int>)Session["SchemeCompareList"]), 0);
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            OnlineUserSessionBo.CheckSession();
            customerVo         = (CustomerVo)Session["customerVo"];
            userVo             = (UserVo)Session["userVo"];
            Session["OrderId"] = OrderId;
            RadInformation.VisibleOnPageLoad = false;
            TimeSpan now = DateTime.Now.TimeOfDay;

            if (System.Web.HttpContext.Current.Session["BackOfficeUserId"] != null)
            {
                BackOfficeUserId = Convert.ToInt32(Session["BackOfficeUserId"]);
            }
            else
            {
                BackOfficeUserId = 0;
            }
            if (Session["ExchangeMode"] != null && Session["ExchangeMode"].ToString() == "Demat")
            {
                CommonLookupBo boCommon = new CommonLookupBo();
                if (!boCommon.CheckForBusinessDate(DateTime.Now))
                {
                    ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadBottomPanelFromBlocking", "LoadTransactPanel('MFOnlineSchemeManager');", true);
                    return;
                }
                if (!(now >= TimeSpan.Parse(ConfigurationSettings.AppSettings["BSETradeOpTime"]) && now <= TimeSpan.Parse(ConfigurationSettings.AppSettings["BSETradeEnTime"])))
                {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvwewv", "LoadTransactPanel('MFOnlineSchemeManager')", true);
                    return;
                }
            }
            int TOcpmaretime = int.Parse(DateTime.Now.ToShortTimeString().Split(':')[0]);

            if (TOcpmaretime >= int.Parse(ConfigurationSettings.AppSettings["START_TIME"]) && TOcpmaretime < int.Parse(ConfigurationSettings.AppSettings["END_TIME"]))
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvwewv", "LoadTransactPanel('MFOnlineSchemeManager')", true);
                return;
            }
            if (Session["ExchangeMode"] != null)
            {
                exchangeType = Session["ExchangeMode"].ToString();
            }
            else
            {
                exchangeType = "Online";
            }
            if (!IsPostBack)
            {
                clientMFAccessCode = onlineMforderBo.GetClientMFAccessStatus(customerVo.CustomerId);
                if (clientMFAccessCode == "FA")
                {
                    ShowAvailableLimits();
                    BindNFOSchemeList();
                    BindNomineeAndJointHolders();
                    lblOption.Visible       = false;
                    lblDividendType.Visible = false;
                    if (Session["MFSchemePlan"] != null)
                    {
                        ddlScheme.SelectedValue = Session["MFSchemePlan"].ToString();
                        if (ddlScheme.SelectedValue != "")
                        {
                            lblScheme.Text = ddlScheme.SelectedItem.Text;
                        }
                        GetControlDetails(int.Parse(Session["MFSchemePlan"].ToString()), null);
                        SetControlDetails();
                    }
                }
                else
                {
                    ShowMessage(onlineMforderBo.GetOnlineOrderUserMessage(clientMFAccessCode), 'I');
                    PurchaseOrderControlsEnable(false);
                    divControlContainer.Visible     = false;
                    divClientAccountBalance.Visible = false;
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            OnlineUserSessionBo.CheckSession();
            customerVo = (CustomerVo)Session["customerVo"];
            userVo     = (UserVo)Session["userVo"];
            RadInformation.VisibleOnPageLoad   = false;
            rwTermsCondition.VisibleOnPageLoad = false;
            TimeSpan now = DateTime.Now.TimeOfDay;

            if (System.Web.HttpContext.Current.Session["BackOfficeUserId"] != null)
            {
                BackOfficeUserId = Convert.ToInt32(Session["BackOfficeUserId"]);
            }
            else
            {
                BackOfficeUserId = 0;
            }
            if (Session["ExchangeMode"] != null && Session["ExchangeMode"].ToString() == "Demat")
            {
                CommonLookupBo boCommon = new CommonLookupBo();
                if (!boCommon.CheckForBusinessDate(DateTime.Now))
                {
                    ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadBottomPanelFromBlocking", "LoadTransactPanel('MFOnlineSchemeManager');", true);
                    return;
                }
                if (!(now >= TimeSpan.Parse(ConfigurationSettings.AppSettings["BSETradeOpTime"]) && now <= TimeSpan.Parse(ConfigurationSettings.AppSettings["BSETradeEnTime"])))
                {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvwewv", "LoadTransactPanel('MFOnlineSchemeManager')", true);
                    return;
                }
            }
            int TOcpmaretime = int.Parse(DateTime.Now.ToShortTimeString().Split(':')[0]);

            if (TOcpmaretime >= int.Parse(ConfigurationSettings.AppSettings["START_TIME"]) && TOcpmaretime < int.Parse(ConfigurationSettings.AppSettings["END_TIME"]))
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvwewv", "LoadTransactPanel('MFOnlineSchemeManager')", true);
                return;
            }
            if (Session["ExchangeMode"] != null)
            {
                exchangeType = Session["ExchangeMode"].ToString();
            }
            else
            {
                exchangeType = "Online";
            }
            if (!IsPostBack)
            {
                clientMFAccessCode = onlineMforderBo.GetClientMFAccessStatus(customerVo.CustomerId);
                if (clientMFAccessCode == "FA" || clientMFAccessCode == "PA")
                {
                    AmcBind();
                    //CategoryBind();
                    BindNomineeAndJointHolders();
                    dtgetfolioNo         = commonLookupBo.GetFolioNumberForSIP(0, customerVo.CustomerId, exchangeType == "Online" ? 0 : 1);
                    lnkOfferDoc.Visible  = false;
                    lnkFactSheet.Visible = false;
                    lnkExitLoad.Visible  = false;
                    //txtRedeemTypeValue.Visible = false;
                    //lblOption.Visible = false;
                    //lblDividendType.Visible = false;
                    trDividendOption.Visible = false;
                    trRedeemType.Visible     = true;
                    if ((Request.QueryString["accountId"] != null && Request.QueryString["SchemeCode"] != null) || Session["MFSchemePlan"] != null)
                    {
                        int    accountId  = 0;
                        int    schemeCode = 0;
                        int    amcCode    = 0;
                        string category   = string.Empty;
                        if (Request.QueryString["accountId"] != null)
                        {
                            schemeCode = int.Parse(Session["MFSchemePlan"].ToString());
                            accountId  = int.Parse(Request.QueryString["accountId"].ToString());
                            //commonLookupBo.GetSchemeAMCCategory(schemeCode, out amcCode, out category);
                            commonLookupBo.GetSchemeAMCSchemeCategory(int.Parse(Session["MFSchemePlan"].ToString()), out amcCode, out category, out categoryname, out amcName, out schemeName, out IsSIPAvaliable, out IspurchaseAvaliable, out IsRedeemAvaliable, exchangeType == "Online" ? 1 : 0);
                            if (IsRedeemAvaliable != 1)
                            {
                                ShowMessage("Redeem is not available", 'I'); return;
                            }


                            lblAmc.Text      = amcName;
                            lblCategory.Text = categoryname;
                            lblScheme.Text   = schemeName;
                            dtgetfolioNo     = commonLookupBo.GetFolioNumberForSIP(amcCode, customerVo.CustomerId, exchangeType == "Online" ? 0 : 1);
                            SetSelectedDisplay(accountId, int.Parse(Session["MFSchemePlan"].ToString()), amcCode, category);
                        }
                        else
                        {
                            commonLookupBo.GetSchemeAMCSchemeCategory(int.Parse(Session["MFSchemePlan"].ToString()), out amcCode, out category, out categoryname, out amcName, out schemeName, out IsSIPAvaliable, out IspurchaseAvaliable, out IsRedeemAvaliable, exchangeType == "Online" ? 1 : 0);
                            if (IsRedeemAvaliable != 1)
                            {
                                ShowMessage("Redeem is not available", 'I'); return;
                            }

                            lblAmc.Text      = amcName;
                            lblCategory.Text = categoryname;
                            lblScheme.Text   = schemeName;

                            SetSelectedDisplay(0, int.Parse(Session["MFSchemePlan"].ToString()), amcCode, category);
                        }
                    }
                }
                else
                {
                    ShowMessage(onlineMforderBo.GetOnlineOrderUserMessage(clientMFAccessCode), 'F');
                    PurchaseOrderControlsEnable(false);
                    divControlContainer.Visible     = false;
                    divClientAccountBalance.Visible = false;
                }
            }
        }
コード例 #16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            OnlineUserSessionBo.CheckSession();
            customerVo = (CustomerVo)Session["customerVo"];
            userVo     = (UserVo)Session["userVo"];
            RadInformation.VisibleOnPageLoad = false;
            int TOcpmaretime = int.Parse(DateTime.Now.ToShortTimeString().Split(':')[0]);

            if (TOcpmaretime >= int.Parse(ConfigurationSettings.AppSettings["START_TIME"]) && TOcpmaretime < int.Parse(ConfigurationSettings.AppSettings["END_TIME"]))
            {
                if (Session["PageDefaultSetting"] != null)
                {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOnlineSchemeManager')", true);
                    return;
                }
                else
                {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "loadcontrol('MFOnlineSchemeManager')", true);
                    return;
                }
            }
            if (!IsPostBack)
            {
                clientMFAccessCode = onlineMforderBo.GetClientMFAccessStatus(customerVo.CustomerId);
                if (clientMFAccessCode == "FA")
                {
                    ShowAvailableLimits();
                    AmcBind();
                    CategoryBind();

                    if ((Request.QueryString["accountId"] != null && Request.QueryString["SchemeCode"] != null) || Session["MFSchemePlan"] != null)
                    {
                        int    accountId      = 0;
                        int    schemeCode     = 0;
                        int    amcCode        = 0;
                        string category       = string.Empty;
                        int    isSIPAvaliable = 0;
                        if (Request.QueryString["accountId"] != null)
                        {
                            schemeCode = int.Parse(Request.QueryString["SchemeCode"].ToString());
                            accountId  = int.Parse(Request.QueryString["accountId"].ToString());
                            commonLookupBo.GetSchemeAMCCategory(schemeCode, out amcCode, out category, out isSIPAvaliable, exchangeType == "Online" ? 1 : 0);
                            SetSelectedDisplay(accountId, schemeCode, amcCode, category);
                            SetControlVisisbility();
                        }
                        else
                        {
                            commonLookupBo.GetSchemeAMCCategory(int.Parse(Session["MFSchemePlan"].ToString()), out amcCode, out category, out isSIPAvaliable, exchangeType == "Online" ? 1 : 0);
                            SetSelectedDisplay(0, int.Parse(Session["MFSchemePlan"].ToString()), amcCode, category);
                            //amcCode = int.Parse(Request.QueryString["Amc"].ToString());
                            //ddlAmc.SelectedValue = amcCode.ToString();
                            //ddlCategory.SelectedValue = Request.QueryString["category"].ToString();
                            //SchemeBind(int.Parse(ddlAmc.SelectedValue), null, customerVo.CustomerId);
                            //ddlScheme.SelectedValue = schemeCode.ToString();
                            //SetControlDetails(schemeCode);
                            //if (ddlFolio.SelectedValue != "")
                            //{
                            //    SetSelectedDisplay(int.Parse(ddlFolio.SelectedValue), schemeCode, amcCode, ddlCategory.SelectedValue);
                            //    BindNomineeAndJointHolders();
                            //}
                        }
                    }
                }
                else
                {
                    ShowMessage(onlineMforderBo.GetOnlineOrderUserMessage(clientMFAccessCode), 'I');
                    divControlContainer.Visible     = false;
                    divClientAccountBalance.Visible = false;
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            userVo             = (UserVo)Session["userVo"];
            advisorPrefernceVo = (AdvisorPreferenceVo)Session["AdvisorPreferenceVo"];
            rmVo           = (RMVo)Session["rmVo"];
            adviserVo      = (AdvisorVo)Session["advisorVo"];
            associatesVo   = (AssociatesVO)Session["associatesVo"];
            assocUsrHeirVo = (AssociatesUserHeirarchyVo)Session["associatesUserHeirarchyVo"];


            if (Session[SessionContents.CurrentUserRole].ToString().ToLower() == "admin" || Session[SessionContents.CurrentUserRole].ToString().ToLower() == "ops" || userVo.AdviserRole.ContainsValue("CNT"))
            {
                txtCustomerName_autoCompleteExtender.ContextKey    = adviserVo.advisorId.ToString();
                txtCustomerName_autoCompleteExtender.ServiceMethod = "GetAdviserCustomerName";
                txtPansearch_autoCompleteExtender.ContextKey       = adviserVo.advisorId.ToString();
                txtPansearch_autoCompleteExtender.ServiceMethod    = "GetAdviserCustomerPan";
                txtClientCode_autoCompleteExtender.ContextKey      = adviserVo.advisorId.ToString();
                txtClientCode_autoCompleteExtender.ServiceMethod   = "GetCustCode";
            }

            if (Request.QueryString["reqId"] != null)
            {
                OnlineUserSessionBo.CheckSession();
                adviserVo  = (AdvisorVo)Session["advisorVo"];
                customerVo = (CustomerVo)Session["customerVo"];
                userVo     = (UserVo)Session["userVo"];
                BindTransactionGrid();
            }
            else
            {
                OnlineUserSessionBo.CheckSession();
                adviserVo  = (AdvisorVo)Session["advisorVo"];
                customerVo = (CustomerVo)Session["customerVo"];
                userVo     = (UserVo)Session["userVo"];


                fromDate             = DateTime.Now.AddMonths(-1);
                txtFrom.SelectedDate = fromDate.Date;
                txtTo.SelectedDate   = DateTime.Now;
            }
            if (!Page.IsPostBack)
            {
                BindAMC();
                Bindscheme();
                if (Request.QueryString["systematicId"] != null && Request.QueryString["AccountId"] != null && Request.QueryString["schemeplanCode"] != null && Request.QueryString["IsSourceAA"] != null && Request.QueryString["customerId"] != null)
                {
                    systematicId   = int.Parse(Request.QueryString["systematicId"].ToString());
                    AccountId      = int.Parse(Request.QueryString["AccountId"].ToString());
                    schemeplanCode = int.Parse(Request.QueryString["schemeplanCode"].ToString());
                    IsSourceAA     = int.Parse(Request.QueryString["IsSourceAA"].ToString());
                    customerid     = int.Parse(Request.QueryString["customerId"].ToString());
                    BindTransactionGrid();
                }
            }
            else
            {
                Bindscheme();
                fromDate             = DateTime.Now.AddMonths(-1);
                txtFrom.SelectedDate = fromDate.Date;
                txtTo.SelectedDate   = DateTime.Now;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            OnlineUserSessionBo.CheckSession();
            userVo     = (UserVo)Session["userVo"];
            rmVo       = (RMVo)Session["rmVo"];
            adviserVo  = (AdvisorVo)Session["advisorVo"];
            customerVo = (CustomerVo)Session["CustomerVo"];
            custPortVo = (CustomerPortfolioVo)Session["CustomerPortfolioVo"];
            if (custPortVo == null)
            {
                custPortVo = portfolioBo.GetCustomerDefaultPortfolio(customerVo.CustomerId);
            }
            divValidationError.Visible = false;
            if (System.Web.HttpContext.Current.Session["BackOfficeUserId"] != null)
            {
                BackOfficeUserId = Convert.ToInt32(Session["BackOfficeUserId"]);
            }
            else
            {
                BackOfficeUserId = 0;
            }
            if (!IsPostBack)
            {
                clientMFAccessCode = boOnlineOrder.GetClientMFAccessStatus(customerVo.CustomerId);
                if (clientMFAccessCode == "FA")
                {
                    AmcBind();
                    BindCategory();
                    ShowAvailableLimits();
                    //lnkOfferDoc.Visible = false;
                    //lnkFactSheet.Visible = false;
                    //lnkExitLoad.Visible = false;
                    if (Request.QueryString["strAction"] != null && Request.QueryString["orderId"] != null && Request.QueryString["customerId"] != null)
                    {
                        strAction         = Request.QueryString["strAction"].ToString();
                        orderIdForEdit    = Convert.ToInt32(Request.QueryString["orderId"].ToString());
                        customerIdforEdit = Convert.ToInt32(Request.QueryString["customerId"].ToString());
                    }
                    else if (Request.QueryString["accountId"] != null && Request.QueryString["SchemeCode"] != null)
                    {
                        int    accountId      = 0;
                        int    schemeCode     = 0;
                        int    amcCode        = 0;
                        string category       = string.Empty;
                        int    isSIPAvaliable = 0;
                        accountId  = int.Parse(Request.QueryString["accountId"].ToString());
                        schemeCode = int.Parse(Request.QueryString["SchemeCode"].ToString());
                        commonLookupBo.GetSchemeAMCCategory(schemeCode, out amcCode, out category, out isSIPAvaliable, 1);
                        OnDrillDownBindControlValue(amcCode, category, accountId, schemeCode);
                        DataViewOnEdit();
                    }

                    btnSubmit.Text = "Submit";

                    if (strAction == "Edit")
                    {
                        BindSipDetailsForEdit();
                        DataViewOnEdit();
                        btnSubmit.Text         = "Modify";
                        onlineMFOrderVo.Action = "Edit";
                    }
                }
                else
                {
                    ShowMessage(boOnlineOrder.GetOnlineOrderUserMessage(clientMFAccessCode), 'I');
                    FreezeControls();
                    divControlContainer.Visible     = false;
                    divClientAccountBalance.Visible = false;
                }
            }
        }
コード例 #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            OnlineUserSessionBo.CheckSession();
            customerVo         = (CustomerVo)Session["customerVo"];
            userVo             = (UserVo)Session["userVo"];
            Session["OrderId"] = OrderId;
            if (System.Web.HttpContext.Current.Session["BackOfficeUserId"] != null)
            {
                BackOfficeUserId = Convert.ToInt32(Session["BackOfficeUserId"]);
            }
            else
            {
                BackOfficeUserId = 0;
            }

            RadInformation.VisibleOnPageLoad = false;
            TimeSpan now = DateTime.Now.TimeOfDay;

            if (Session["ExchangeMode"] != null && Session["ExchangeMode"].ToString() == "Demat")
            {
                CommonLookupBo boCommon = new CommonLookupBo();
                if (!boCommon.CheckForBusinessDate(DateTime.Now))
                {
                    ScriptManager.RegisterStartupScript(this, typeof(Page), "LoadBottomPanelFromBlocking", "LoadTransactPanel('MFOnlineSchemeManager');", true);
                    return;
                }
                if (!(now >= TimeSpan.Parse(ConfigurationSettings.AppSettings["BSETradeOpTime"]) && now <= TimeSpan.Parse(ConfigurationSettings.AppSettings["BSETradeEnTime"])))
                {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvwewv", "LoadTransactPanel('MFOnlineSchemeManager')", true);
                    return;
                }
            }
            int TOcpmaretime = int.Parse(DateTime.Now.ToShortTimeString().Split(':')[0]);

            if (TOcpmaretime >= int.Parse(ConfigurationSettings.AppSettings["START_TIME"]) && TOcpmaretime < int.Parse(ConfigurationSettings.AppSettings["END_TIME"]))
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvwewv", "LoadTransactPanel('MFOnlineSchemeManager')", true);
                return;
            }

            if (Session["ExchangeMode"] != null)
            {
                exchangeType = Session["ExchangeMode"].ToString();
            }
            else
            {
                exchangeType = "Online";
            }

            if (!IsPostBack)
            {
                BindKYCDetailDDl();

                clientMFAccessCode = onlineMforderBo.GetClientMFAccessStatus(customerVo.CustomerId);
                if (clientMFAccessCode == "FA")
                {
                    ShowAvailableLimits();

                    lblOption.Visible       = false;
                    lblDividendType.Visible = false;
                    if ((Request.QueryString["accountId"] != null && Request.QueryString["SchemeCode"] != null) || Session["MFSchemePlan"] != null)
                    {
                        int    accountId  = 0;
                        int    schemeCode = 0;
                        int    amcCode    = 0;
                        string category   = string.Empty;
                        if (Request.QueryString["accountId"] != null)
                        {
                            schemeCode = int.Parse(Session["MFSchemePlan"].ToString());
                            accountId  = int.Parse(Request.QueryString["accountId"].ToString());
                            commonLookupBo.GetSchemeAMCSchemeCategory(int.Parse(Session["MFSchemePlan"].ToString()), out amcCode, out category, out categoryname, out amcName, out schemeName, out IsSIPAvaliable, out IspurchaseAvaliable, out IsRedeemAvaliable, exchangeType == "Online" ? 1 : 0);
                            lblNavDisplay.Text       = "";
                            lblMintxt.Text           = "";
                            lblMulti.Text            = "";
                            lbltime.Text             = "";
                            lblSchemeRatingAsOn.Text = "";
                            if (IspurchaseAvaliable != 1)
                            {
                                ShowMessage("Purchase is not available", 'I');

                                return;
                            }

                            lblAmc.Text      = amcName;
                            lblCategory.Text = categoryname;
                            lblScheme.Text   = schemeName;
                            BindFolioNumber(int.Parse(Session["MFSchemePlan"].ToString()));
                            ddlFolio.SelectedValue = accountId.ToString();
                            tdFolio.Visible        = true;
                            DataSet ds = onlineMforderBo.GetCustomerSchemeFolioHoldings(customerVo.CustomerId, int.Parse(Session["MFSchemePlan"].ToString()), out schemeDividendOption, exchangeType == "Online" ? 1 : 0, accountId);
                            GetControlDetails(ds);
                            SetControlDetails();
                        }
                        else
                        {
                            //if (exchangeType == "Online")
                            //    tdFolio.Visible = true;
                            //else
                            //{
                            DataSet ds;
                            ds = onlineMforderBo.GetControlDetails(int.Parse(Session["MFSchemePlan"].ToString()), null, exchangeType == "Online" ? 1 : 0);
                            lblUnitsheldDisplay.Visible = false;
                            GetControlDetails(ds);

                            //}
                            scheme                   = int.Parse(Session["MFSchemePlan"].ToString());
                            lblNavDisplay.Text       = "";
                            lblMintxt.Text           = "";
                            lblMulti.Text            = "";
                            lbltime.Text             = "";
                            lblSchemeRatingAsOn.Text = "";
                            //commonLookupBo.GetSchemeAMCCategory(38122, out amcCode, out category);
                            commonLookupBo.GetSchemeAMCSchemeCategory(int.Parse(Session["MFSchemePlan"].ToString()), out amcCode, out category, out categoryname, out amcName, out schemeName, out IsSIPAvaliable, out IspurchaseAvaliable, out IsRedeemAvaliable, exchangeType == "Online" ? 1 : 0);
                            if (IspurchaseAvaliable != 1)
                            {
                                ShowMessage("Purchase is not available", 'I'); return;
                            }

                            BindFolioNumber(int.Parse(Session["MFSchemePlan"].ToString()));
                            lblAmc.Text      = amcName;
                            lblScheme.Text   = schemeName;
                            lblCategory.Text = categoryname;
                            DataSet dst = onlineMforderBo.GetControlDetails(int.Parse(Session["MFSchemePlan"].ToString()), null, exchangeType == "Online" ? 1 : 0);
                            lblUnitsheldDisplay.Visible = false;
                            GetControlDetails(dst);
                            SetControlDetails();
                        }
                    }
                }
                else
                {
                    ShowMessage(onlineMforderBo.GetOnlineOrderUserMessage(clientMFAccessCode), 'I');
                    PurchaseOrderControlsEnable(false);
                    divControlContainer.Visible = false;
                }
            }
        }