protected void hdnCustomerId_ValueChanged(object sender, EventArgs e) { CustomerBo customerBo = new CustomerBo(); if (hdnCustomerId.Value != string.Empty) { DataTable dt = customerBo.GetCustomerPanAddress(int.Parse(hdnCustomerId.Value)); DataRow dr = dt.Rows[0]; hdnCustomerId1.Value = hdnCustomerId.Value; txtCustomerPAN.Text = dr["C_PANNum"].ToString(); trCustomerDetails.Style.Add("display", "block"); //trCustomerDetails.Visible = true; //trPortfolioDetails.Visible = true; if (rdoIndividual.Checked) { ShowFolios(); } else { ShowGroupCustomers(); } //Storing Customer details in session to Access in Display.aspx for passing report parameter //CustomerVo customerVo = new CustomerVo(); customerVo = customerBo.GetCustomer(int.Parse(hdnCustomerId.Value)); Session["CusVo"] = customerVo; txtParentCustomer.Text = customerVo.FirstName.ToString() + customerVo.MiddleName.ToString() + customerVo.LastName.ToString(); txtCustomer.Text = customerVo.FirstName.ToString() + customerVo.MiddleName.ToString() + customerVo.LastName.ToString(); hdnCustomerId.Value = ""; } tabViewAndEmailReports.ActiveTab = tabViewAndEmailReports.Tabs[activeTabIndex]; tabViewAndEmailReports.ActiveTabIndex = 0; }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); customerVo = (CustomerVo)Session["customerVo"]; if (!IsPostBack) { portfolioId = int.Parse(Session[SessionContents.PortfolioId].ToString()); BindPortfolioDropDown(); LoadPropertyGrid(portfolioId); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "PortfolioProperty.ascx:Page_Load()"); object[] objects = new object[2]; objects[0] = customerVo; objects[1] = portfolioId; FunctionInfo = exBase.AddObject(FunctionInfo, null);/*, objects*/ exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void btnEdit_Click(object sender, EventArgs e) { if (chkdeactivatecustomer.Checked) { customerVo.IsActive = 0; } else { customerVo.IsActive = 1; } customerVo.AdviseNote = txtComments.Text.ToString(); customerVo.CustomerClassificationID = int.Parse(ddlClassification.SelectedValue.ToString()); if (customerBo.UpdateCustomer(customerVo)) { customerVo = customerBo.GetCustomer(customerVo.CustomerId); Session["CustomerVo"] = customerVo; //if (customerVo.Type.ToUpper().ToString() == "IND") //{ // Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "pageloadscript", "loadcontrol('ViewCustomerIndividualProfile','none');", true); //} //else //{ // Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "pageloadscript", "loadcontrol('ViewNonIndividualProfile','none');", true); //} } }
public void HandlePagerEvent(object sender, ItemClickEventArgs e) { try { GetPageCount(); customerVo = (CustomerVo)Session["customerVo"]; EventID = Int32.Parse(Session[SessionContents.EventID].ToString()); customerId = customerVo.CustomerId; BindSubscribedEventsGridView(customerId, EventID); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerDataAlertManagement.ascx.cs:HandlePagerEvent()"); object[] objects = new object[2]; objects[0] = customerVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
public void HandlePagerEvent(object sender, ItemClickEventArgs e) { try { GetPageCount(); userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["customerVo"]; portfolioId = Int32.Parse(Session[SessionContents.PortfolioId].ToString()); LoadGridview(portfolioId); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "PortfolioViewDashboard.ascx.cs:HandlePagerEvent()"); object[] objects = new object[3]; objects[0] = userVo; objects[1] = customerVo; objects[2] = portfolioId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; HdnAdviserId.Value = advisorVo.advisorId.ToString(); DataTable dt; if (!IsPostBack) { BindAssetGroupDropDown(); LoadNominees(); //Checking whether a General Insurance Portfolio exists or not dt = insuranceBo.ChkGenInsurancePortfolioExist(customerVo.CustomerId); if (dt.Rows.Count > 0) { ViewState["CustomerGIPortfolioId"] = dt.Rows[0][0].ToString().Trim(); } else { ViewState["CustomerGIPortfolioId"] = (insuranceBo.CreateCustomerGIPortfolio(customerVo.CustomerId, userVo.UserId)).ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); userBo = new UserBo(); userVo = (UserVo)Session[SessionContents.UserVo]; adviserVo = (AdvisorVo)Session["advisorVo"]; CustomerVo cusromerVo = new CustomerVo(); cusromerVo = (CustomerVo)Session["customerVo"]; if (!IsPostBack) { if (Session["IsCustomerDrillDown"] != null) { txtCustomerId.Value = cusromerVo.CustomerId.ToString(); BindCustomerAlertSetup(); lblType.Visible = false; ddlType.Visible = false; btngo.Visible = false; //gvCustomerAlertSetup.MasterTableView.IsItemInserted = false; //GridEditableItem gridEditableItem = (GridEditableItem)e.(sender); //gridEditableItem.OwnerTableView.IsItemInserted = false; //this.gvCustomerAlertSetup.MasterTableView.Items[0].EditFormItem.Enabled = false; } } 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"; }
private void BindPortfolioDropDown() { customerVo = (CustomerVo)Session["customerVo"]; DataSet ds = portfolioBo.GetCustomerPortfolio(customerVo.CustomerId); ddlPortfolio.DataSource = ds; ddlPortfolio.DataValueField = ds.Tables[0].Columns["CP_PortfolioId"].ToString(); ddlPortfolio.DataTextField = ds.Tables[0].Columns["CP_PortfolioName"].ToString(); ddlPortfolio.DataBind(); ddlPortfolio.SelectedValue = portfolioId.ToString(); foreach (DataRow dr in ds.Tables[0].Rows) { genDictPortfolioDetails.Add(int.Parse(dr["CP_PortfolioId"].ToString()), int.Parse(dr["CP_IsMainPortfolio"].ToString())); } ddlPortfolio.SelectedValue = portfolioId.ToString(); var keyValuePair = genDictPortfolioDetails.FirstOrDefault(x => x.Key == portfolioId); hdnIsMainPortfolio.Value = keyValuePair.Value.ToString(); Session["genDictPortfolioDetails"] = genDictPortfolioDetails; hdnIsCustomerLogin.Value = userVo.UserType; }
protected void Page_Load(object sender, EventArgs e) { customerVo = (CustomerVo)Session["CustomerVo"]; adviserVo = (AdvisorVo)Session["AdvisorVo"]; //DataTable dtAssumption = new DataTable(); //dtAssumption.Columns.Add("WA_AssumptionName"); //dtAssumption.Columns.Add("CPA_Value"); //DataRow drAssumption; //drAssumption = dtAssumption.NewRow(); //drAssumption["WA_AssumptionName"] = "Life Expiracy"; //drAssumption["CPA_Value"] = "65"; //dtAssumption.Rows.Add(drAssumption); //RadGrid1.DataSource = dtAssumption; //RadGrid1.DataBind(); msgRecordStatus.Visible = false; BindAllCustomerAssumptions(); //DataTable dtBindDropDownassumption = new DataTable(); //dtBindDropDownassumption = customerBo.BindDropDownassumption(flag); //ddlPickAssumptions.DataSource = dtBindDropDownassumption; //ddlPickAssumptions.DataTextField = dtBindDropDownassumption.Columns["WA_AssumptionName"].ToString(); //ddlPickAssumptions.DataValueField = dtBindDropDownassumption.Columns["WA_AssumptionId"].ToString(); //ddlPickAssumptions.DataBind(); //ddlPickAssumptions.Items.Insert(0, new ListItem("-Select-", "-Select-")); SetDefaultPlanRetirementValueForCustomer(); }
public void BindNomineeGrid() { DataSet dsCustomerAssociation = new DataSet(); customerVo = customerBo.GetCustomer(int.Parse(txtCustomerId.Value)); boDematAccount = new BoDematAccount(); dsCustomerAssociation = boDematAccount.GetCustomerAccociation(customerVo.CustomerId); //Populating Pick nominee if (dsCustomerAssociation.Tables[0].Rows.Count == 0) { lblPickNominee.Text = "You have no associates"; } else { lblPickNominee.Text = "Pick Nominee"; gvPickNominee.DataSource = dsCustomerAssociation.Tables[0]; gvPickNominee.DataBind(); } //Populating Joint Holder nominee if (dsCustomerAssociation.Tables[0].Rows.Count == 0) { lblPickJointHolder.Text = "You have no associates"; } else { lblPickJointHolder.Text = "Pick Joint Holder"; gvPickJointHolder.DataSource = dsCustomerAssociation; gvPickJointHolder.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); advisorVo = (AdvisorVo)Session["advisorVo"]; customerVO = (CustomerVo)Session["customerVo"]; userType = Session[SessionContents.CurrentUserRole].ToString(); userVo = (UserVo)Session["UserVo"]; customerId = customerVO.CustomerId; hdnsystamaticType.Value = ""; //BindAmc(); BindOrderStatus(); RadInformation1.VisibleOnPageLoad = false; if (Session["ExchangeMode"] != null) { exchangeType = Session["ExchangeMode"].ToString(); } else { exchangeType = "Online"; } if (!Page.IsPostBack) { //if (exchangeType == "Demat") //{ // btnViewSIP.Enabled = false; // btnViewSIP.ToolTip = "Not Applicable For Exchange"; // ddlAMCCode.Enabled = false; // ddlAMCCode.ToolTip = "Not Applicable For Exchange"; //} //else // btnViewSIP.ToolTip = ""; if (exchangeType == "Online") { lblHeader.Text = "SIP Book(Online)"; ddlSIP.Visible = false; Label2.Visible = false; } else { lblHeader.Text = "SIP Book(Exchange)"; ddlSIP.Visible = true; Label2.Visible = true; } if (Request.QueryString["systematicType"] != null) { hdnsystamaticType.Value = Request.QueryString["systematicType"].ToString(); BindAmc(hdnsystamaticType.Value); } if (Request.QueryString["systematicId"] != null) { int systematicId = int.Parse(Request.QueryString["systematicId"].ToString()); int AmcCode = int.Parse(Request.QueryString["AmcCode"].ToString()); string orderStatus = Request.QueryString["OrderStatus"]; string systematictype = Request.QueryString["systematicType"].ToString(); hdnAmc.Value = AmcCode.ToString(); BindSIPSummaryBook(); } } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); customerVo = (CustomerVo)Session["CustomerVo"]; rmVo = (RMVo)Session["RmVo"]; Session["RmVo"] = rmVo; Session["CustomerVo"] = customerVo; lblName.Text = customerVo.CompanyName.ToString(); lblPhone.Text = customerVo.ResISDCode.ToString() + " - " + customerVo.ResSTDCode.ToString() + " - " + customerVo.ResPhoneNum.ToString(); lblAddress.Text = customerVo.Adr1Line1.ToString() + "<br/>" + customerVo.Adr1Line2.ToString() + "<br/>" + customerVo.Adr1Line3.ToString() + "<br/>" + customerVo.Adr1PinCode.ToString() + "<br/>" + customerVo.Adr1State.ToString() + "<br/>" + customerVo.Adr1City.ToString() + "<br/>" + customerVo.Adr1Country.ToString(); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerNonIndividualDashboard.ascx:Page_Load()"); object[] objects = new object[3]; objects[0] = rmVo; objects[1] = customerVo; objects[2] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
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(); } }
protected void txtParentCustomerId_ValueChanged(object sender, EventArgs e) { hdnCustomerId1.Value = txtParentCustomerId.Value.ToString(); customerVo = customerBo.GetCustomer(int.Parse(hdnCustomerId1.Value)); Session["customerVo"] = customerVo; ShowGroupCustomers(); }
/// <summary> /// Used to Update Parent Customers /// </summary> /// <param name="customerId"></param> /// protected void UpdateCustomerForAddProspect(int customerId) { customerVo = new CustomerVo(); customerVo.CustomerId = customerId; customerVo.RmId = rmVo.RMId; customerVo.Type = "IND"; customerVo.FirstName = txtFirstName.Text.ToString(); customerVo.MiddleName = txtMiddleName.Text.ToString(); customerVo.LastName = txtLastName.Text.ToString(); customerVo.IsProspect = 1; customerVo.IsFPClient = 1; userVo.FirstName = txtFirstName.Text.ToString(); userVo.MiddleName = txtMiddleName.Text.ToString(); userVo.LastName = txtLastName.Text.ToString(); customerVo.BranchId = int.Parse(ddlPickBranch.SelectedValue); if (dpDOB.SelectedDate != null) { customerVo.Dob = dpDOB.SelectedDate.Value; } customerVo.Email = txtEmail.Text; Session[SessionContents.FPS_CustomerProspect_CustomerVo] = customerVo; Session["customerVo"] = customerVo; Session["CustomerVo"] = customerVo; userVo.Email = txtEmail.Text.ToString(); customerPortfolioVo.IsMainPortfolio = 1; customerPortfolioVo.PortfolioTypeCode = "RGL"; customerPortfolioVo.PortfolioName = "MyPortfolioUnmanaged"; customerBo.UpdateCustomer(customerVo); Session["Customer"] = "Customer"; Session[SessionContents.CustomerVo] = customerVo; Session["customerVo"] = customerVo; Session["CustomerVo"] = customerVo; }
/// <summary> /// selects Customer record for updation and show Customer form /// </summary> private void BindUpdateCustomerData() { DataGridViewRow selectedCustomer = GetSelectedCustomerData(); CustomerVo customerUpdateVo = (CustomerVo)selectedCustomer.DataBoundItem; AddCustomerMasterForm newAddForm = new AddCustomerMasterForm(CommonConstants.MODE_UPDATE, customerUpdateVo); newAddForm.ShowDialog(this); if (newAddForm.IntSuccess > 0) { messageData = new MessageData("mmci00002", Properties.Resources.mmci00002, null); logger.Info(messageData); popUpMessage.Information(messageData, Text); GridBind(FormConditionVo()); } else if (newAddForm.IntSuccess == 0) { messageData = new MessageData("mmci00007", Properties.Resources.mmci00007, null); logger.Info(messageData); popUpMessage.Information(messageData, Text); GridBind(FormConditionVo()); } }
public DataSet GetTradeAccountNumber(CustomerVo customervo) { DataSet dsTradeAccount = null; Database db; DbCommand dbcommandTradeAccount; try { db = DatabaseFactory.CreateDatabase("wealtherp"); dbcommandTradeAccount = db.GetStoredProcCommand("SP_GetTradeAccountNumbersByCustomer"); db.AddInParameter(dbcommandTradeAccount, "@CustomerId", DbType.Int32, customervo.CustomerId); dsTradeAccount = db.ExecuteDataSet(dbcommandTradeAccount); } catch (BaseApplicationException ex) { throw ex; } catch (Exception ex) { BaseApplicationException exBase = new BaseApplicationException(ex.Message, ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "AdvisorDao.cs:GetAdviserCustomerListDataSet()"); object[] objects = new object[1]; objects[0] = customervo.CustomerId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(dsTradeAccount); }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); customerVo = (CustomerVo)Session["CustomerVo"]; userVo = (UserVo)Session["userVo"]; advisorVo = (AdvisorVo)Session["advisorVo"]; if (!IsPostBack) { portfolioId = int.Parse(Session[SessionContents.PortfolioId].ToString()); LoadEquityTradeNumbers(); if (Request.QueryString["action"] != "" && Request.QueryString["action"] != null) { customeraccountvo = (CustomerAccountsVo)Session["EQAccountVoRow"]; if (Request.QueryString["action"].Trim() == "Edit") { BtnSetVisiblity(1); EditEQAccountDetails(); } else if (Request.QueryString["action"].Trim() == "View") { BtnSetVisiblity(0); lnkBack.Visible = true; ViewEQAccountDetails(); } } } }
/// <summary> /// Goes to the Bank Details Dashboard when we click on the Member name on the Bank Details Grid /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void lnkMoreBankDetails_Click(object sender, EventArgs e) { customerVo = customerBo.GetCustomer(customerId); Session["CustomerVo"] = customerVo; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('ViewBankDetails','none');", true); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["pageid"] != null) { Session["Session_TopPanel_PageIdKey"] = Request.QueryString["pageid"].ToString(); } else { string LinksKey = string.Empty; string LinksValue = string.Empty; if (HttpContext.Current.Session["Session_TopPanel_PageIdKey"] != null) { LinksKey = HttpContext.Current.Session["Session_TopPanel_PageIdKey"].ToString(); } if (HttpContext.Current.Session["Session_TopPanel_PageIdValue"] != null) { LinksValue = HttpContext.Current.Session["Session_TopPanel_PageIdValue"].ToString(); } Session[LinksKey] = LinksValue; } loadcontrol(); customerVo = (CustomerVo)Session["CustomerVo"]; if (customerVo != null && !string.IsNullOrEmpty(customerVo.AccountId)) { ScriptManager.RegisterStartupScript(this, typeof(Page), "GetRMSAvailableBalanceOnTopHost", "GetRMSAvailableBalance('" + customerVo.AccountId + "');", true); } }
protected void btnDeleteSelected_Click(object sender, EventArgs e) { int EventID = int.Parse(Session[SessionContents.EventID].ToString()); //eventCode = Session[SessionContents.EventCode].ToString(); userVo = (UserVo)Session[SessionContents.UserVo]; customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; userId = userVo.UserId; customerId = customerVo.CustomerId; foreach (GridViewRow dr in gvConditionalAlerts.Rows) { CheckBox checkBox = (CheckBox)dr.FindControl("chkBx"); if (checkBox.Checked) { int EventSetupID = Convert.ToInt32(gvConditionalAlerts.DataKeys[dr.RowIndex].Value); if (alertsBo.DeleteConditionalEvent(EventSetupID)) { // Display Success Messages } } } // Success Message BindSubscribedEventsGridView(customerId, EventID); }
private void DeleteCustomerProfile() { try { customerVo = (CustomerVo)Session["CustomerVo"]; userVo = (UserVo)Session[SessionContents.UserVo]; if (customerBo.DeleteCustomer(customerVo.CustomerId, "D")) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('RMCustomer','none');", true); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewCustomerIndividualProfile.ascx:btnDelete_Click()"); object[] objects = new object[3]; objects[0] = customerVo; //objects[1] = userVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["customerVo"]; portfolioId = int.Parse(Session[SessionContents.PortfolioId].ToString()); if (!IsPostBack) { BindPortfolioDropDown(); LoadGridview(portfolioId); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewGovtSavings.ascx.cs:Page_Load()"); object[] objects = new object[3]; objects[0] = userVo; objects[1] = customerVo; objects[2] = portfolioId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); if (!IsPostBack) { userVo = (UserVo)Session[SessionContents.UserVo]; if (userVo.UserType == "Customer") { customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; } else { rmVo = (RMVo)Session[SessionContents.RmVo]; customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; rmId = rmVo.RMId; } userId = userVo.UserId; //BindCustomerListDropDown(rmId); pnlCustomerSelection.Visible = true; pnlNoEntries.Visible = false; pnlNotifications.Visible = false; trSelectCustomer.Visible = false; BindCustomerSpecificNotifications(customerVo); } }
protected void lnkbtnGvProspectListName_Click(object sender, EventArgs e) { int customerId = 0; int selectedRow = 0; GridDataItem gdi; CustomerVo customervo = new CustomerVo(); CustomerBo customerBo = new CustomerBo(); //LinkButton lnkbtn = (LinkButton)gvCustomerProspectlist.FindControl("lnkbtnGvProspectListName"); LinkButton lnkbtn = (LinkButton)sender; gdi = (GridDataItem)lnkbtn.NamingContainer; selectedRow = gdi.ItemIndex + 1; customerId = int.Parse((gvCustomerProspectlist.MasterTableView.DataKeyValues[selectedRow - 1]["C_CustomerId"].ToString())); customervo = customerBo.GetCustomer(customerId); Session["CustomerVo"] = customervo; Session["IsDashboard"] = "FP"; if (customerId != 0) { Session[SessionContents.FPS_ProspectList_CustomerId] = customerId; } Session[SessionContents.FPS_TreeView_Status] = "FinanceProfile"; Session[SessionContents.FPS_CustomerPospect_ActionStatus] = "View"; Session[SessionContents.FPS_AddProspectListActionStatus] = "FPDashBoard"; ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "CustomerIndLeftPane", "loadlinks('RMCustomerIndividualLeftPane','login');", true); ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadcontrol('CustomerFPDashBoard','login');", true); }
public void HandlePagerEvent(object sender, ItemClickEventArgs e) { try { GetPageCount(); customerVo = (CustomerVo)Session["customerVo"]; BindCustomerSpecificNotifications(customerVo); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "NoficationDashboard.ascx.cs:HandlePagerEvent()"); object[] objects = new object[1]; objects[0] = customerVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
public void HandlePagerEvent(object sender, ItemClickEventArgs e) { try { GetPageCount(); customerVo = (CustomerVo)Session["customerVo"]; LoadPropertyGrid(portfolioId); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "PortfolioProperty.ascx.cs:HandlePagerEvent()"); object[] objects = new object[2]; objects[0] = customerVo; objects[1] = portfolioId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { try { customerVo = (CustomerVo)Session["CustomerVo"]; userVo = (UserVo)Session["userVo"]; rmVo = (RMVo)Session["RMVo"]; BindGrid(); //lblMessage.Visible = true; //gvCustomerFamily.Visible = false; } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewCustomerFamily.ascx:Page_Load()"); object[] objects = new object[4]; objects[0] = customerVo; objects[1] = customerId; objects[2] = customerMemberVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
protected void Page_Load(object sender, EventArgs e) { try { SessionBo.CheckSession(); this.Page.Culture = "en-GB"; mfTransactionVo = (MFTransactionVo)Session["MFTransactionVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; userVo = (UserVo)Session["userVo"]; 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; } }
protected void hiddenassociation_Click(object sender, EventArgs e) { string val = Convert.ToString(hdnMsgValue.Value); if (val == "1") { bool DeleteAccount; CustomerVo customervo = (CustomerVo)Session["customerVo"]; int Account = customervo.CustomerId; InsuranceVo insuranceVo = (InsuranceVo)Session["insuranceId"]; int InsuranceNo = insuranceVo.AccountId; //int Insurance = Session ; CustomerPortfolioBo BoCustomerPortfolio = new CustomerPortfolioBo(); DeleteAccount = BoCustomerPortfolio.DeleteGIAccount(Account, InsuranceNo); Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('ViewGeneralInsuranceDetails','none');", true); } if (val == "0") { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('ViewGeneralInsuranceDetails','none');", true); } }