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) { 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; } } }
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) { 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; } } }
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; } } }
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; } } }