protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); orderNumber = operationBo.GetOrderNumber(); orderNumber = orderNumber + 1; if (!string.IsNullOrEmpty(Session["advisorVo"].ToString())) { advisorVo = (AdvisorVo)Session["advisorVo"]; } if (Request.QueryString["action"] != null) { ViewForm = Request.QueryString["action"].ToString(); operationVo = (OperationVo)Session["operationVo"]; } if (Session["operationVo"] != null) { operationVo = (OperationVo)Session["operationVo"]; } rmVo = (RMVo)Session[SessionContents.RmVo]; int bmID = rmVo.RMId; if (!IsPostBack) { rbtnNo.Checked = true; bindModeOfHolding(); if (Request.QueryString["CustomerId"] != null) { customerId = Convert.ToInt32(Request.QueryString["CustomerId"]); SetCustomerDetails(); } if (Session[SessionContents.CurrentUserRole].ToString() == "Admin") { txtCustomerName_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtCustomerName_autoCompleteExtender.ServiceMethod = "GetAdviserCustomerName"; } if (ddlForm.SelectedValue == "0") { HideDematDetails(); } rbtnNo_Load(); } //BindAssetParticularForBonds(); LoadBondIssuerName(); BindFrequencyDropdown(); BindPaymentMode(); }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userBo = new UserBo(); advisorVo = (AdvisorVo)Session[SessionContents.AdvisorVo]; userVo = (UserVo)Session[SessionContents.UserVo]; AssetBo assetBo = new AssetBo(); path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); if (!IsPostBack) { BindReptOrderDashBoard(); } }
protected void Page_Load(object sender, EventArgs e) { advisorVo = (AdvisorVo)Session["advisorVo"]; SessionBo.CheckSession(); userBo = new UserBo(); userVo = (UserVo)Session[SessionContents.UserVo]; UserId = userVo.UserId; advisorId = advisorVo.advisorId; if (!IsPostBack) { trPnlValuation.Visible = false; trReProcess.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); userVo = (UserVo)Session["userVo"]; if (!IsPostBack) { advisorVo = (AdvisorVo)Session["advisorVo"]; ViewRMDetail(); BindBranchAssociation(); if (!string.IsNullOrEmpty(Session[SessionContents.CurrentUserRole].ToString())) { if (Session[SessionContents.CurrentUserRole].ToString() == "Admin") { //.ToString() == "FromAdvView") advisorVo = (AdvisorVo)Session["advisorVo"]; GetPlanOpsStaffAddStatus(advisorVo.advisorId); lnkEdit.Visible = true; lnkBtnBack.Visible = true; //Session.Remove("FromAdvisorView"); } else { lnkEdit.Visible = false; lnkBtnBack.Visible = false; } } } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewRMDetails.ascx.cs:Page_Load()"); object[] objects = new object[2]; objects[0] = advisorVo; objects[1] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session["advisorVo"]; customerVO = (CustomerVo)Session["customerVo"]; userVo = (UserVo)Session[SessionContents.UserVo]; userType = Session[SessionContents.CurrentUserRole].ToString(); // customerId = customerVO.CustomerId; if (!Page.IsPostBack) { BindAmc(); BindOrderStatus(); Cache.Remove("OrderList" + advisorVo.advisorId); if (Request.QueryString["orderId"] == null) { if (ddlType.SelectedValue != "ON") { divConditional.Visible = true; lblOrderNo.Visible = false; txtOrderNo.Visible = false; txtOrderNo.Text = ""; fromDate = DateTime.Now; txtOrderFrom.SelectedDate = fromDate.Date; txtOrderTo.SelectedDate = DateTime.Now; } } if (Request.QueryString["orderId"] != null || Request.QueryString["txtFolioNo"] != null) { ViewState["OrderId"] = int.Parse(Request.QueryString["orderId"].ToString()); ViewState["FolioNo"] = Request.QueryString["txtFolioNo"]; ViewState["IsDemat"] = Request.QueryString["IsDemat"]; if (Request.QueryString["IsDemat"] == "True") { gvOrderBookMIS.MasterTableView.GetColumn("BMOERD_BSEOrderId").Visible = true; } else { gvOrderBookMIS.MasterTableView.GetColumn("BMOERD_BSEOrderId").Visible = false; } BindOrderBook(); tblField.Visible = false; tblOrder.Visible = false; divConditional.Visible = false; } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); if (Request.Form["ctrl_EquityReports$btnView"] != "View Report") { path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); rmVo = (RMVo)Session[SessionContents.RmVo]; BindPeriodDropDown(); //txtCustomer_autoCompleteExtender.ContextKey = rmVo.RMId.ToString(); //txtParentCustomer_autoCompleteExtender.ContextKey = rmVo.RMId.ToString(); if (!string.IsNullOrEmpty(Session["advisorVo"].ToString())) { advisorVo = (AdvisorVo)Session["advisorVo"]; } if (!IsPostBack) { CustomerTransactionBo customerTransactionBo = new CustomerTransactionBo(); DataSet ds = customerTransactionBo.GetLastTradeDate(); if (ds.Tables != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0 && ds.Tables[0].Rows[0]["WTD_Date"] != null) { txtAsOnDate.Text = Convert.ToDateTime(ds.Tables[0].Rows[0]["WTD_Date"]).ToShortDateString(); } //This for Customer Search AutoCompelete TextBox Dynamic Assign Service Method. if (Session[SessionContents.CurrentUserRole].ToString() == "RM") { txtCustomer_autoCompleteExtender.ContextKey = rmVo.RMId.ToString(); txtParentCustomer_autoCompleteExtender.ContextKey = rmVo.RMId.ToString(); txtCustomer_autoCompleteExtender.ServiceMethod = "GetMemberCustomerName"; txtParentCustomer_autoCompleteExtender.ServiceMethod = "GetParentCustomerName"; } else if (Session[SessionContents.CurrentUserRole].ToString() == "Admin") { txtCustomer_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtParentCustomer_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtCustomer_autoCompleteExtender.ServiceMethod = "GetAdviserCustomerName"; txtParentCustomer_autoCompleteExtender.ServiceMethod = "GetAdviserGroupCustomerName"; } } if (IsPostBack && !string.IsNullOrEmpty(Request.Form["ctrl_EquityReports$hidTabIndex"])) { activeTabIndex = Convert.ToInt32(Request.Form["ctrl_EquityReports$hidTabIndex"]); } } }
protected void Page_Load(object sender, EventArgs e) { customerVo = (CustomerVo)Session["customerVo"]; adviserVo = (AdvisorVo)Session["advisorVo"]; processId = 0; configPath = Server.MapPath(ConfigurationManager.AppSettings["SSISConfigPath"].ToString()); if (Request.QueryString["processId"] != null) { processId = Int32.Parse(Request.QueryString["processId"].ToString()); } if (!Page.IsPostBack) { BindRejectedSIPGrid(processId); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session[SessionContents.UserVo]; advisorVo = (AdvisorVo)Session["advisorVo"]; rmVo = (RMVo)Session["rmVo"]; //ibtExportSummary.Visible = false; if (!Page.IsPostBack) { GetProduct(); BindSchemeStructureRuleGrid(advisorVo.advisorId); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); customerVo = (CustomerVo)Session["customerVo"]; adviserVo = (AdvisorVo)Session["advisorVo"]; RMVo rmVo = new RMVo(); rmVo = (RMVo)Session[SessionContents.RmVo]; if (!IsPostBack) { getCustomerRMRecommendationText(); setRecommendationControlReadOnly(true); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString()); advisorVo = (AdvisorVo)Session["advisorVo"]; userVo = (UserVo)Session["UserVo"]; if (!IsPostBack) { lblEmailDuplicate.Visible = false; //chkRM.Visible = false; //chkExternalStaff.Visible = false; setBranchList("N"); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session[SessionContents.UserVo]; advisorVo = (AdvisorVo)Session["advisorVo"]; txtReqDate.SelectedDate = DateTime.Now.Date.AddDays(-2); rdpToDate.SelectedDate = DateTime.Now.Date; if (!IsPostBack) { GetTypes(); GetRequests(); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); msgRecordStatus.Visible = false; customerVo = (CustomerVo)Session["customerVo"]; adviserVo = (AdvisorVo)Session["advisorVo"]; if (!IsPostBack) { SetDefalutView(); DefaultFPReportsAssumtion(); btnSubmit.Enabled = false; getCustomerRMRecommendationText(); setRecommendationControlReadOnly(true); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session["AdvisorVo"]; tblMessage.Visible = false; SuccessMsg.Visible = false; ErrorMessage.Visible = false; if (!IsPostBack) { ViewState["rmId"] = 0; //trNoRecords.Visible = false; showRMUserDetails(); } }
/// <summary> /// Used to bind branches of the Branch dropdown /// </summary> /// <param name="advisorVo"></param> /// <param name="rmVo"></param> private void BindBranch(AdvisorVo advisorVo, RMVo rmVo) { AdvisorBranchBo advisorBranchBo = new AdvisorBranchBo(); UploadCommonBo uploadsCommonDao = new UploadCommonBo(); //DataSet ds = uploadsCommonDao.GetAdviserBranchList(advisorVo.advisorId, "adviser"); DataSet ds = advisorBranchBo.GetRMBranchAssociation(rmVo.RMId, advisorVo.advisorId, "A"); if (ds != null) { ddlPickBranch.DataSource = ds; ddlPickBranch.DataValueField = ds.Tables[0].Columns["AB_BranchId"].ToString(); ddlPickBranch.DataTextField = ds.Tables[0].Columns["AB_BranchName"].ToString(); ddlPickBranch.DataBind(); } }
protected void btnDematTnCAccepted_Click(object sender, EventArgs e) { UserBo userBo = new UserBo(); string strOnlineAdviser = ConfigurationSettings.AppSettings["ONLINE_ADVISER"].ToString(); if (Page.Request.Headers["x-Account-ID"] != null && Page.Request.Headers["x-Account-ID"] != "") { userAccountId = Page.Request.Headers["x-Account-ID"].ToString(); } else if (Request.QueryString["x-Account-ID"] != null && Request.QueryString["x-Account-ID"] != "") { userAccountId = Request.QueryString["x-Account-ID"].ToString(); } if (Request.QueryString["WERP"] != null) { isWerp = Request.QueryString["WERP"]; } if (string.IsNullOrEmpty(isWerp)) { userVo = userBo.GetUserAccountDetails(userAccountId, Convert.ToInt32(strOnlineAdviser)); } else { advisorVo = (AdvisorVo)Session["advisorVo"]; userVo = userBo.GetUserAccountDetails(userAccountId, advisorVo.advisorId); } customerVo = (CustomerVo)Session["CustomerVo"]; CustomerBo customerBo = new CustomerBo(); customerBo.UpdateDematAcceptance(customerVo.CustomerId); customerVo = customerBo.GetCustomerInfo(userVo.UserId); Session["CustomerVo"] = customerVo; if (customerVo.IsDematAccepted && customerVo.IsDematInvestor) { Session["ExchangeMode"] = "Demat"; ddlMode.SelectedValue = "Demat"; } else if (customerVo.IsDematAccepted && !customerVo.IsDematInvestor) { ddlMode.SelectedValue = "Online"; Page.ClientScript.RegisterStartupScript(this.GetType(), "alertwq", "alert('We have taken your request for registration of your client code for BSE StAR MF segment. The same will be activated shortly.');", true); } else { ddlMode.SelectedValue = "Online"; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userBo = new UserBo(); userVo = (UserVo)Session[SessionContents.UserVo]; advisorVo = (AdvisorVo)Session[SessionContents.AdvisorVo]; radOrderDetails.VisibleOnPageLoad = false; if (!IsPostBack) { txtOrderTo.SelectedDate = DateTime.Now; txtOrderFrom.SelectedDate = DateTime.Now.AddMonths(-1); // BindOrderStatus(); //if (Session[SessionContents.CurrentUserRole].ToString().ToLower() == "admin" || Session[SessionContents.CurrentUserRole].ToString().ToLower() == "ops") //{ // AutoCompleteExtender2_txtOrderSubbrokerCode.ContextKey = advisorVo.advisorId.ToString(); // AutoCompleteExtender2_txtOrderSubbrokerCode.ServiceMethod = "GetAgentCodeAssociateDetails"; //} if (Request.QueryString["FormAction"] != null) { if (Request.QueryString["FormAction"].Trim() == "54ECOrder_Back") { string issueId; string fromDt = ""; string todt = ""; string type = ""; issueId = Request.QueryString["issueId"].ToString(); fromDt = Request.QueryString["fromDt"].ToString(); todt = Request.QueryString["todt"].ToString(); type = Request.QueryString["type"].ToString(); ddlProduct.SelectedValue = "Bonds"; BindNcdCategory(); ddlCategory.SelectedValue = "FICGCG"; BindIssueName(ddlCategory.SelectedValue); ddlIssueName.SelectedValue = issueId; txtOrderFrom.SelectedDate = Convert.ToDateTime(fromDt);; txtOrderTo.SelectedDate = Convert.ToDateTime(todt); BindOrderMissMatchDetails(); } } } }
private void GetLatestValuationDate() { DateTime EQValuationDate = new DateTime(); DateTime MFValuationDate = new DateTime(); PortfolioBo portfolioBo = null; genDict = new Dictionary <string, DateTime>(); AdvisorVo advisorVo = new AdvisorVo(); int adviserId = 0; try { portfolioBo = new PortfolioBo(); advisorVo = (AdvisorVo)Session["advisorVo"]; adviserId = advisorVo.advisorId; if (portfolioBo.GetLatestValuationDate(adviserId, "EQ") != null) { EQValuationDate = DateTime.Parse(portfolioBo.GetLatestValuationDate(adviserId, "EQ").ToString()); } if (portfolioBo.GetLatestValuationDate(adviserId, "MF") != null) { MFValuationDate = DateTime.Parse(portfolioBo.GetLatestValuationDate(adviserId, "MF").ToString()); } genDict.Add("EQDate", EQValuationDate); genDict.Add("MFDate", MFValuationDate); Session["ValuationDate"] = genDict; } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "PortfolioDashboard.ascx.cs:GetLatestValuationDate()"); object[] objects = new object[3]; objects[0] = EQValuationDate; objects[1] = adviserId; objects[2] = MFValuationDate; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { userVo = (UserVo)Session["userVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; SessionBo.CheckSession(); if (!IsPostBack) { DataSet dsBindCategoryDropdown = AdvisorCategoryBind(advisorVo.advisorId); ddlCategory.DataSource = dsBindCategoryDropdown.Tables[0]; ddlCategory.DataValueField = dsBindCategoryDropdown.Tables[0].Columns["ACM_Id"].ToString(); ddlCategory.DataTextField = dsBindCategoryDropdown.Tables[0].Columns["ACM_Name"].ToString(); ddlCategory.DataBind(); ddlCategory.Items.Insert(0, new ListItem("Select", "Select")); gvAdvisorCategory.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session[SessionContents.UserVo]; advisorVo = (AdvisorVo)Session["advisorVo"]; if (!IsPostBack) { BindTradebusinessdate(); BindCurrentPage(); GetTradeBusinessDates(); BindYearDropdown(); //btngo_Click(); //gvTradeBusinessDate.PageIndex = 8; } createcalanders.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session[SessionContents.UserVo]; advisorVo = (AdvisorVo)Session["advisorVo"]; customerVo = (CustomerVo)Session["customerVo"]; RadIPOASBA.VisibleOnPageLoad = false; if (!Page.IsPostBack) { //pnlSchemeMIS.Visible = true; //ddlType.SelectedValue = "Curent"; //BindIPOIssueList(GetType(ddlType.SelectedValue)); //ShowAvailableLimits(); RadIPOASBA.VisibleOnPageLoad = true; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session["advisorVo"]; userVo = (UserVo)Session[SessionContents.UserVo]; if (!IsPostBack) { if (Cache[userVo.UserId.ToString() + "MappedIssueList"] != null) { Cache.Remove(userVo.UserId.ToString() + "MappedIssueList"); } GetMapped_Unmapped_Issues("Mapped", ""); GetUnamppedIssues(ddlIssueType.SelectedValue); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session[SessionContents.AdvisorVo]; if (!Page.IsPostBack) { if (Request.QueryString["ReportCode"] != null) { if (Request.QueryString["ReportCode"] == "25") { getParameter(); getData(); } } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session["userVo"]; advisorPrefernceVo = (AdvisorPreferenceVo)Session["AdvisorPreferenceVo"]; rmVo = (RMVo)Session["rmVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; associatesVo = (AssociatesVO)Session["associatesVo"]; assocUsrHeirVo = (AssociatesUserHeirarchyVo)Session["associatesUserHeirarchyVo"]; trNewOrder.Visible = false; BindBank(); if (!Page.IsPostBack) { if (Request.QueryString["IsAdd"] != null) { if (Request.QueryString["IsAdd"].ToString() == "1") { dvAddMandate.Visible = true; if (Session[SessionContents.CurrentUserRole].ToString().ToLower() == "admin" || Session[SessionContents.CurrentUserRole].ToString().ToLower() == "ops" || userVo.AdviserRole.ContainsValue("CNT")) { txtClientCode_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtClientCode_autoCompleteExtender.ServiceMethod = "GetCustCode"; } else if (Session[SessionContents.CurrentUserRole].ToString() == "BM") { txtClientCode_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtClientCode_autoCompleteExtender.ServiceMethod = "GetCustCode"; } else if (Session[SessionContents.CurrentUserRole].ToString() == "RM") { txtClientCode_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtClientCode_autoCompleteExtender.ServiceMethod = "GetCustCode"; } else if (Session[SessionContents.CurrentUserRole].ToString() == "Associates") { txtClientCode_autoCompleteExtender.ContextKey = advisorVo.advisorId.ToString(); txtClientCode_autoCompleteExtender.ServiceMethod = "GetCustCode"; } } else { dvViewMandateMis.Visible = true; BindMandateddetailsDetailsGrid(advisorVo.advisorId); } } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session[SessionContents.UserVo]; customerVo = (CustomerVo)Session["customerVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; if (!IsPostBack) { fromDate = DateTime.Now.AddMonths(-1); txtOrderFrom.SelectedDate = fromDate.Date; txtOrderTo.SelectedDate = DateTime.Now; BindOrderStatus(); if (Request.QueryString["BondType"] != null) { ViewState["productsubtype"] = Request.QueryString["BondType"]; BindIssueName(Request.QueryString["BondType"]); } if (Request.QueryString["customerId"] != null) { customerId = int.Parse(Request.QueryString["customerId"].ToString()); hdnOrderStatus.Value = "0"; BindBBGV(customerId, productsubtype); } DateTime todate; DateTime fromdate; if (Request.QueryString["strAction"] != "" && Request.QueryString["strAction"] != null && Request.QueryString["BondType"] != null) { string action = Request.QueryString["strAction"].ToString(); todate = DateTime.Parse(Request.QueryString["todate"].ToString()); fromdate = DateTime.Parse(Request.QueryString["fromdate"].ToString()); string status = Request.QueryString["status"].ToString(); productsubtype = Request.QueryString["BondType"]; hdnOrderStatus.Value = status; // ddlOrderStatus.SelectedValue = status; txtOrderFrom.SelectedDate = fromdate; txtOrderTo.SelectedDate = todate; // SetParameter(); BindBBGV(customerVo.CustomerId, ViewState["productsubtype"].ToString()); } //else //{ // //CustId = Session["CustId"].ToString(); // BindBBGV(customerVo.CustomerId); //} } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session["advisorVo"]; userVo = (UserVo)Session[SessionContents.UserVo]; customerVO = (CustomerVo)Session["customerVo"]; userType = Session[SessionContents.CurrentUserRole].ToString(); //customerId = customerVO.CustomerId; BindAmc(); BindOrderStatus(); if (Session["ExchangeMode"] != null) { exchangeType = Session["ExchangeMode"].ToString(); } else { exchangeType = "Online"; } if (!Page.IsPostBack) { BindAmc(); BindOrderStatus(); fromDate = DateTime.Now; txtFrom.SelectedDate = fromDate.Date; txtTo.SelectedDate = DateTime.Now; tdStatusType.Visible = false; ddlSIP.Visible = false; Label4.Visible = false; if (Request.QueryString["SIPBook"] != null) { string r = Request.QueryString["SIPBook"].ToString(); } if (Request.QueryString["MFOrder"] != null) { if (Request.QueryString["MFOrder"] == "Offline") { ddlMode.Items.FindByText("Offline").Selected = true; ddlMode.Items.FindByText("Offline").Enabled = true; } else { ddlMode.Items.FindByText("Offline").Enabled = false; } } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session["userVo"]; adviserVo = (AdvisorVo)Session["advisorVo"]; AdvisorStaffBo adviserstaffbo = new AdvisorStaffBo(); advrm = adviserstaffbo.GetAdvisorStaff(userVo.UserId); adviserstaffsmtpvo.RMId = advrm.RMId; BindSMSProvider(); BindAPIProvider(); if (!IsPostBack) { //if (trInsertMessage.Visible == true) // trInsertMessage.Visible = false; adviserstaffsmtpvo = advstaffsmtpbo.GetSMTPCredentials(advrm.RMId); txtEmail.Text = adviserstaffsmtpvo.Email; if (!String.IsNullOrEmpty(adviserstaffsmtpvo.Password)) { txtPassword.Attributes.Add("value", Encryption.Decrypt(adviserstaffsmtpvo.Password)); } txtSMTPHost.Text = adviserstaffsmtpvo.HostServer; txtSMTPPort.Text = adviserstaffsmtpvo.Port; txtSenderEmailAlias.Text = adviserstaffsmtpvo.SenderEmailAlias; chkAthenticationRequired.Checked = Convert.ToBoolean(adviserstaffsmtpvo.IsAuthenticationRequired); ddlSMSProvider.SelectedValue = adviserstaffsmtpvo.SmsProviderId.ToString(); txtUserName.Text = adviserstaffsmtpvo.SmsUserName; txtPassword1.Text = adviserstaffsmtpvo.Apipassword; txtSenderID.Text = adviserstaffsmtpvo.SmsSenderId; if (!String.IsNullOrEmpty(adviserstaffsmtpvo.Smspassword)) { txtPwd.Attributes.Add("value", adviserstaffsmtpvo.Smspassword); } txtsmsCredit.Text = adviserstaffsmtpvo.SmsInitialcredit.ToString(); ddlAPIProvider.SelectedValue = adviserstaffsmtpvo.ApiProviderId.ToString(); txtUname.Text = adviserstaffsmtpvo.ApiUserName; txtMemberId.Text = Convert.ToString(adviserstaffsmtpvo.ApiMemberId); if (!String.IsNullOrEmpty(adviserstaffsmtpvo.Apipassword)) { txtPassword1.Attributes.Add("value", adviserstaffsmtpvo.Apipassword); } SetAdviserPreference(); } string a = txtPassword.Text; }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session[SessionContents.UserVo]; advisorVo = (AdvisorVo)Session["advisorVo"]; rmVo = (RMVo)Session["rmVo"]; isRedirect = false; if (!IsPostBack) { if (Request.QueryString["ID"] != null) { isRedirect = true; hdnStructId.Value = Request.QueryString["ID"].Trim(); lbtStructureName.Visible = true; SetStructureDetails(); DefaultAssignments(); // CreateMappedSchemeGrid(); BindPayableGrid(int.Parse(hdnStructId.Value)); ddlType.SelectedValue = "Custom"; } else { Cache.Remove(userVo.UserId.ToString() + "MappedSchemes"); isRedirect = false; getAllStructures(); ddlStructs.Visible = true; } if (Request.QueryString["Action"] != null) { if (Request.QueryString["Action"] == "VIEW") { trMappings.Visible = false; trListControls.Visible = false; btnGo.Visible = false; } else { trMappings.Visible = true; trListControls.Visible = false; btnGo.Visible = true; } } //BindPayableGrid(); SelectionsBasedOnMappingFor(); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session[SessionContents.AdvisorVo]; userVo = (UserVo)Session[SessionContents.UserVo]; if (!IsPostBack) { ShowUnreadMessageAlert(); ShowMessageBroadcast(); BindProductwiseAuthenticated(); } if (advisorVo.advisorId == Convert.ToInt32(ConfigurationSettings.AppSettings["ONLINE_ADVISER"])) { tdorderentry.Visible = false; tdfpclient.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session["advisorVo"]; customerVO = (CustomerVo)Session["customerVo"]; userVo = (UserVo)Session["UserVo"]; userType = Session[SessionContents.CurrentUserRole].ToString(); // customerId = customerVO.CustomerId; // BindAmc(); //BindOrderStatus(); BindLink(); ViewState["FolioNo"] = null; lbBack.Attributes.Add("onClick", "javascript:history.back(); return false;"); if (!Page.IsPostBack) { BindAmc(); BindOrderStatus(); fromDate = DateTime.Now; txtFrom.SelectedDate = fromDate.Date; txtTo.SelectedDate = DateTime.Now; ddlSIP.Visible = false; Label3.Visible = false; if (ddlType.SelectedValue != "ON") { divConditional.Visible = true; lblOrderNo.Visible = false; txtOrderNo.Visible = false; txtOrderNo.Text = ""; } if (Request.QueryString["orderId"] != null || Request.QueryString["txtFolioNo"] != null) { ViewState["OrderId"] = int.Parse(Request.QueryString["orderId"].ToString()); ViewState["FolioNo"] = Request.QueryString["txtFolioNo"]; ViewState["SIPType"] = Request.QueryString["SIPType"]; //if(Request.QueryString["IsDemat"]=="True") //{ trSearchType.Visible = false; btnViewSIP.Visible = false; SetParameter(); BindSIPBook(DateTime.Parse("01-01-1990"), DateTime.Now); divConditional.Visible = false; } } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); this.Page.Culture = "en-GB"; mfTransactionVo = (MFTransactionVo)Session["MFTransactionVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; userVo = (UserVo)Session["userVo"]; if (!Page.IsPostBack) { Session["MFEditValue"] = "View"; LoadViewFields(); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewMFTransaction.ascx:Page_Load()"); object[] objects = new object[3]; objects[0] = mfTransactionVo; objects[1] = customerVo; objects[2] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } if (userVo.UserType == "Advisor") { lnkEdit.Visible = false; } //if (userVo.UserType == "Advisor") btnCancel.Visible = true; if (userVo.UserType == "Associates") { lnkEdit.Visible = false; btnCancel.Visible = false; } }