protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            customerVo = new CustomerVo();
            rmVo       = new RMVo();

            path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            try
            {
                customerVo = (CustomerVo)Session["CustomerVo"];
                rmVo       = (RMVo)Session["RmVo"];

                StringBuilder sbAddress = new StringBuilder();

                lblName.Text   = customerVo.LastName.ToString();
                lblPanNum.Text = customerVo.PANNum.ToString();
                lblPhone.Text  = customerVo.ResISDCode.ToString() + " - " + customerVo.ResSTDCode.ToString() + " - " + customerVo.ResPhoneNum.ToString();

                sbAddress.Append(customerVo.Adr1Line1.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Line2.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Line3.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1PinCode.ToString());
                sbAddress.Append("<br />");

                if (customerVo.Adr1State.ToString() != "")
                {
                    sbAddress.Append(XMLBo.GetStateName(path, customerVo.Adr1State.ToString()));
                    sbAddress.Append("<br />");
                }

                sbAddress.Append(customerVo.Adr1City.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Country.ToString());

                lblContactPerson.Text = customerVo.ContactFirstName.ToString() + " " + customerVo.ContactMiddleName.ToString() + " " + customerVo.ContactLastName.ToString();
                lblEmail.Text         = customerVo.Email.ToString();
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RMCustomerNonIndividualDasboard.ascx:Page_Load()");
                object[] objects = new object[2];
                objects[0] = rmVo;
                objects[1] = customerVo;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            userVo = (UserVo)Session[SessionContents.UserVo];
            path   = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            try
            {
                //  customerFamilyList = new List<CustomerFamilyVo>();

                customerVo = (CustomerVo)Session["CustomerVo"];
                rmVo       = (RMVo)Session["RmVo"];
                customerId = customerVo.CustomerId;
                StringBuilder sbAddress = new StringBuilder();

                lblName.Text  = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString();
                lblPhone.Text = customerVo.ResISDCode.ToString() + " - " + customerVo.ResSTDCode.ToString() + " - " + customerVo.ResPhoneNum.ToString();
                lblEmail.Text = customerVo.Email.ToString();

                sbAddress.Append(customerVo.Adr1Line1.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Line2.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Line3.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1PinCode.ToString());
                sbAddress.Append("<br />");

                if (customerVo.Adr1State.ToString() != "")
                {
                    sbAddress.Append(XMLBo.GetStateName(path, customerVo.Adr1State.ToString()));
                    sbAddress.Append("<br />");
                }

                sbAddress.Append(customerVo.Adr1City.ToString());
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Country.ToString());

                lblAddress.Text = sbAddress.ToString();

                Session["RmVo"] = rmVo;
                // Session["CustomerVo"] = customerVo;
                Session["Check"] = "Dashboard";

                //Binding the Customer Family Grid
                customerFamilyList = customerFamilyBo.GetCustomerFamily(customerVo.CustomerId);
                if (customerFamilyList == null)
                {
                    tdFamilyDetailsHeader.Visible = false;
                    tdFamilyDetailsGrid.Visible   = false;
                }
                else
                {
                    DataTable dtCustomerFamilyList = new DataTable();
                    dtCustomerFamilyList.Columns.Add("CustomerId");
                    dtCustomerFamilyList.Columns.Add("Name");
                    dtCustomerFamilyList.Columns.Add("Relationship");

                    DataRow drCustomerFamily;
                    for (int i = 0; i < customerFamilyList.Count; i++)
                    {
                        drCustomerFamily = dtCustomerFamilyList.NewRow();
                        CustomerFamilyVo customerFamilyVo = new CustomerFamilyVo();
                        customerFamilyVo    = customerFamilyList[i];
                        drCustomerFamily[0] = customerFamilyVo.AssociateCustomerId.ToString();
                        drCustomerFamily[1] = customerFamilyVo.AssociateCustomerName.ToString();
                        drCustomerFamily[2] = customerFamilyVo.Relationship;
                        dtCustomerFamilyList.Rows.Add(drCustomerFamily);
                    }
                    if (dtCustomerFamilyList.Rows.Count > 0)
                    {
                        gvFamilyMembers.DataSource = dtCustomerFamilyList;
                        gvFamilyMembers.DataBind();
                        gvFamilyMembers.Visible = true;
                    }
                    else
                    {
                        gvFamilyMembers.DataSource = null;
                        gvFamilyMembers.DataBind();
                    }
                }

                //Call the function to bind the Bank Details
                lblBankDetailsMsg.Visible = false;
                BindBankDetails();
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RMCustomerDashboard.ascx:Page_Load()");
                object[] objects = new object[4];
                objects[0]   = customerFamilyList;
                objects[1]   = rmVo;
                objects[2]   = customerVo;
                objects[3]   = userVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                SessionBo.CheckSession();
                path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());

                customerVo = (CustomerVo)Session["CustomerVo"];
                customerId = customerVo.CustomerId;

                customerBankAccId     = int.Parse(Session["CustBankAccId"].ToString());
                customerBankAccountVo = customerBankAccountBo.GetCustomerBankAccount(customerId, customerBankAccId);

                lblAccNum.Text = customerBankAccountVo.BankAccountNum.ToString();
                //lblAccType.Text = customerBankAccountVo.AccountType;
                if (customerBankAccountVo.AccountType == "CC")
                {
                    lblAccType.Text = "C.C.";
                }
                if (customerBankAccountVo.AccountType == "CR")
                {
                    lblAccType.Text = "Current";
                }
                if (customerBankAccountVo.AccountType == "FR")
                {
                    lblAccType.Text = "F.C.N.R.";
                }
                if (customerBankAccountVo.AccountType == "NE")
                {
                    lblAccType.Text = "NRE";
                }
                if (customerBankAccountVo.AccountType == "NO")
                {
                    lblAccType.Text = "NRO";
                }
                if (customerBankAccountVo.AccountType == "OD")
                {
                    lblAccType.Text = "O.D.";
                }
                if (customerBankAccountVo.AccountType == "SV")
                {
                    lblAccType.Text = "Savings";
                }
                if (customerBankAccountVo.AccountType == "OT")
                {
                    lblAccType.Text = "Other";
                }
                if (customerBankAccountVo.AccountType == "TBC")
                {
                    lblAccType.Text = "To Be Categorized";
                }
                //lblAccType.Text = XMLBo.GetBankAccountTypes(path, customerBankAccountVo.AccountType);
                if (customerBankAccountVo.ModeOfOperation == "SO")
                {
                    lblModeOfOperation.Text = "Self Only";
                }
                if (customerBankAccountVo.ModeOfOperation == "SI")
                {
                    lblModeOfOperation.Text = "Singly";
                }
                if (customerBankAccountVo.ModeOfOperation == "SE")
                {
                    lblModeOfOperation.Text = "Severaly";
                }
                if (customerBankAccountVo.ModeOfOperation == "JO")
                {
                    lblModeOfOperation.Text = "Jointly";
                }
                if (customerBankAccountVo.ModeOfOperation == "AS")
                {
                    lblModeOfOperation.Text = "Anyone or Survivor";
                }
                if (customerBankAccountVo.ModeOfOperation == "BR")
                {
                    lblModeOfOperation.Text = "As per Board Resolution";
                }
                if (customerBankAccountVo.ModeOfOperation == "ES")
                {
                    lblModeOfOperation.Text = "Either or Survivor";
                }
                if (customerBankAccountVo.ModeOfOperation == "FS")
                {
                    lblModeOfOperation.Text = "Former or Survivor";
                }
                if (customerBankAccountVo.ModeOfOperation == "TBC")
                {
                    lblModeOfOperation.Text = "To Be Categorized";
                }
                //lblModeOfOperation.Text = customerBankAccountVo.ModeOfOperation;
                lblBankName.Text   = customerBankAccountVo.BankName.ToString();
                lblBranchName.Text = customerBankAccountVo.BranchName.ToString();
                lblLine1.Text      = customerBankAccountVo.BranchAdrLine1.ToString();
                lblLine2.Text      = customerBankAccountVo.BranchAdrLine2.ToString();
                lblLine3.Text      = customerBankAccountVo.BranchAdrLine3.ToString();
                lblPinCode.Text    = customerBankAccountVo.BranchAdrPinCode.ToString();
                lblCity.Text       = customerBankAccountVo.BranchAdrCity.ToString();
                lblIfsc.Text       = customerBankAccountVo.IFSC.ToString();
                lblMicr.Text       = customerBankAccountVo.MICR.ToString();
                state           = XMLBo.GetStateName(path, customerBankAccountVo.BranchAdrState);
                lblState.Text   = state;
                lblCountry.Text = customerBankAccountVo.BranchAdrCountry;
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ViewCustomerAllBankDetails.ascx:PageLoad()");
                object[] objects = new object[3];
                objects[0]   = customerBankAccId;
                objects[1]   = customerBankAccountVo;
                objects[2]   = customerId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
コード例 #4
0
        public void setBranchList1(string IsExternal)
        {
            UserVo    rmUserVo = null;
            DataRow   drAdvisorBranch;
            DataTable dtAdvisorBranch = new DataTable();

            try
            {
                rmUserVo = (UserVo)Session["rmUserVo"];
                if (IsExternal == "Y")
                {
                    advisorBranchList = advisorBranchBo.GetAdvisorBranches(advisorVo.advisorId, "Y");
                }
                else if (IsExternal == "N")
                {
                    advisorBranchList = advisorBranchBo.GetAdvisorBranches(advisorVo.advisorId, "N");
                }

                if (advisorBranchList == null)
                {
                    lblError.Visible        = true;
                    lblError.Text           = "Add some Branches..";
                    gvBranchList.DataSource = null;
                    gvBranchList.DataBind();
                }
                else
                {
                    gvBranchList.Visible = true;
                    lblError.Visible     = false;

                    dtAdvisorBranch.Columns.Add("Sl.No.");
                    dtAdvisorBranch.Columns.Add("BranchId");
                    dtAdvisorBranch.Columns.Add("Branch Name");
                    dtAdvisorBranch.Columns.Add("Branch Address");
                    dtAdvisorBranch.Columns.Add("Branch Phone");

                    for (int i = 0; i < advisorBranchList.Count; i++)
                    {
                        drAdvisorBranch    = dtAdvisorBranch.NewRow();
                        advisorBranchVo    = new AdvisorBranchVo();
                        advisorBranchVo    = advisorBranchList[i];
                        drAdvisorBranch[0] = (i + 1).ToString();
                        drAdvisorBranch[1] = advisorBranchVo.BranchId.ToString();
                        drAdvisorBranch[2] = advisorBranchVo.BranchName.ToString();
                        if (advisorBranchVo.State != "" && advisorBranchVo.State != "Select a State")
                        {
                            drAdvisorBranch[3] = advisorBranchVo.AddressLine1.ToString() + "'" + advisorBranchVo.AddressLine2.ToString() + "'" + advisorBranchVo.AddressLine3.ToString() + "," + advisorBranchVo.City.ToString() + "'" + XMLBo.GetStateName(path, advisorBranchVo.State.ToString());
                        }
                        else
                        {
                            drAdvisorBranch[3] = advisorBranchVo.AddressLine1.ToString() + "'" + advisorBranchVo.AddressLine2.ToString() + "'" + advisorBranchVo.AddressLine3.ToString() + "," + advisorBranchVo.City.ToString() + "'";
                        }

                        drAdvisorBranch[4] = advisorBranchVo.Phone1Isd + "-" + advisorBranchVo.Phone1Std + "-" + advisorBranchVo.Phone1Number;
                        dtAdvisorBranch.Rows.Add(drAdvisorBranch);
                    }

                    gvBranchList.DataSource = dtAdvisorBranch;
                    gvBranchList.DataBind();
                    gvBranchList.Visible = true;
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RMBranchAssocistion.ascx:setBranchList()");
                object[] objects = new object[3];
                objects[0]   = rmUserVo;
                objects[1]   = advisorBranchList;
                objects[2]   = advisorBranchVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                SessionBo.CheckSession();
                userVo = (UserVo)Session["userVo"];
                if (Session["advisorVo"] != null)
                {
                    advisorVo = (AdvisorVo)Session["advisorVo"];
                }
                else
                {
                    advisorVo = advisorBo.GetAdvisorUser(userVo.UserId);
                }
                string path = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
                if (advisorVo.BusinessCode == "" || advisorVo.BusinessCode == null)
                {
                    lblBusinessType.Text = "";
                }
                else
                {
                    lblBusinessType.Text = XMLBo.GetBusinessTypeName(path, advisorVo.BusinessCode.Trim().ToString());
                }
                lblCity.Text = advisorVo.City.ToString();
                if (advisorVo.ContactPersonMiddleName == null)
                {
                    advisorVo.ContactPersonMiddleName = string.Empty;
                }

                if (advisorVo.ContactPersonLastName == null)
                {
                    advisorVo.ContactPersonLastName = string.Empty;
                }

                lblContactPerson.Text = advisorVo.ContactPersonFirstName.ToString() + " " + advisorVo.ContactPersonMiddleName.ToString() + " " + advisorVo.ContactPersonLastName.ToString();
                if (advisorVo.Country != null && advisorVo.Country != string.Empty)
                {
                    lblCountry.Text = advisorVo.Country.ToString();
                }

                lblMail.Text = advisorVo.Email.ToString();

                //if (advisorVo.Website ==null || advisorVo.Website == strin )
                //{
                //    lblwsite.Text = "";
                //}
                //else
                if (advisorVo.Website != null)
                {
                    lblwsite.Text = advisorVo.Website.ToString();
                    if (!String.IsNullOrEmpty(advisorVo.Website) && advisorVo.Website.Substring(0, 7) != "http://")
                    {
                        lblwsite.NavigateUrl = "http://" + advisorVo.Website.ToString();
                    }
                    else
                    {
                        lblwsite.NavigateUrl = advisorVo.Website.ToString();
                    }
                }
                if (advisorVo.MobileNumber != 0)
                {
                    lblMobile.Text = advisorVo.MobileNumber.ToString();
                }

                lblOrgName.Text = advisorVo.OrganizationName.ToString();

                if (advisorVo.Phone1Isd > 1 && advisorVo.Phone1Std > 1 && advisorVo.Phone1Number > 1)
                {
                    lblPhNumber1.Text = advisorVo.Phone1Isd.ToString() + "-" + advisorVo.Phone1Std.ToString() + "-" + advisorVo.Phone1Number.ToString();
                }
                else if (advisorVo.Phone1Isd == 0 && advisorVo.Phone1Std > 1 && advisorVo.Phone1Number > 1)
                {
                    lblPhNumber1.Text = advisorVo.Phone1Std.ToString() + "-" + advisorVo.Phone1Number.ToString();
                }
                else if (advisorVo.Phone1Isd > 1 && advisorVo.Phone1Std == 0 && advisorVo.Phone1Number > 1)
                {
                    lblPhNumber1.Text = advisorVo.Phone1Isd.ToString() + "-" + advisorVo.Phone1Number.ToString();
                }
                else if (advisorVo.Phone1Isd == 0 && advisorVo.Phone1Std == 0 && advisorVo.Phone1Number > 1)
                {
                    lblPhNumber1.Text = advisorVo.Phone1Number.ToString();
                }


                if (advisorVo.Phone2Isd > 1 && advisorVo.Phone2Std > 1 && advisorVo.Phone2Number > 1)
                {
                    lblPhNumber2.Text = advisorVo.Phone2Isd.ToString() + "-" + advisorVo.Phone2Std.ToString() + "-" + advisorVo.Phone2Number.ToString();
                }
                else if (advisorVo.Phone2Isd == 0 && advisorVo.Phone2Std > 1 && advisorVo.Phone2Number > 1)
                {
                    lblPhNumber2.Text = advisorVo.Phone2Std.ToString() + "-" + advisorVo.Phone2Number.ToString();
                }
                else if (advisorVo.Phone2Isd > 1 && advisorVo.Phone2Std == 0 && advisorVo.Phone2Number > 1)
                {
                    lblPhNumber2.Text = advisorVo.Phone2Isd.ToString() + "-" + advisorVo.Phone2Number.ToString();
                }
                else if (advisorVo.Phone2Isd == 0 && advisorVo.Phone2Std == 0 && advisorVo.Phone2Number > 1)
                {
                    lblPhNumber2.Text = advisorVo.Phone2Number.ToString();
                }
                if (advisorVo.PinCode > 0)
                {
                    lblPin.Text = advisorVo.PinCode.ToString();
                }

                //if (advisorVo.State == "" || advisorVo.State == null)
                //{
                //    lblstate.Text = "";
                //}
                //else
                if (advisorVo.State != null && advisorVo.State != string.Empty)
                {
                    lblstate.Text = XMLBo.GetStateName(path, advisorVo.State.ToString());
                }

                if (advisorVo.AddressLine1 != null)
                {
                    lblLine_1.Text = advisorVo.AddressLine1.ToString();
                }
                if (advisorVo.AddressLine2 != null)
                {
                    lblLine_2.Text = advisorVo.AddressLine2.ToString();
                }
                if (advisorVo.AddressLine3 != null)
                {
                    lblLine_3.Text = advisorVo.AddressLine3.ToString();
                }
                if (advisorVo.Designation != null)
                {
                    lblDesignation.Text = advisorVo.Designation.ToString();
                }
                if (advisorVo.FaxIsd != 0 && advisorVo.FaxStd != 0 && advisorVo.Fax != 0)
                {
                    lblFax.Text = advisorVo.FaxIsd.ToString() + "-" + advisorVo.FaxStd.ToString() + "-" + advisorVo.Fax.ToString();
                }

                if (advisorVo.MultiBranch == 0)
                {
                    lblMultiBranch.Text = "No";
                }
                else
                {
                    lblMultiBranch.Text = "Yes";
                }

                if (advisorVo.Associates == 0)
                {
                    lblmtype.Text = "No";
                }
                else
                {
                    lblmtype.Text = "Yes";
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "AdvisorProfile.ascx:PageLoad()");


                object[] objects = new object[3];
                objects[0] = advisorVo;
                objects[1] = userVo;
                objects[2] = advisorBo;


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                SessionBo.CheckSession();
                path       = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
                userVo     = (UserVo)Session["userVo"];
                customerVo = (CustomerVo)Session["CustomerVo"];



                if (userVo.UserType.Trim() == "Adviser" || userVo.UserType.Trim() == "RM" || userVo.UserType.Trim() == "Branch Man" || userVo.UserType.Trim() == "Advisor")
                {
                    trDelete.Visible = true;
                }
                else
                {
                    trDelete.Visible = false;
                }
                if (customerVo.ProfilingDate == DateTime.MinValue)
                {
                    lblProfilingDate.Text = "";
                }
                else
                {
                    lblProfilingDate.Text = customerVo.ProfilingDate.ToShortDateString();
                }

                lblType.Text         = XMLBo.GetCustomerTypeName(path, customerVo.Type);
                lblSubType.Text      = XMLBo.GetCustomerSubTypeName(path, customerVo.SubType);
                lblName.Text         = customerVo.ContactFirstName + " " + customerVo.ContactMiddleName + " " + customerVo.ContactLastName;
                lblCustomerCode.Text = customerVo.CustCode.ToString();
                lblPanNum.Text       = customerVo.PANNum.ToString();
                lblCompanyName.Text  = customerVo.CompanyName;
                if (customerVo.BranchName != null)
                {
                    lblBranch.Text = customerVo.BranchName.ToString();
                }
                if (customerVo.RegistrationDate == DateTime.MinValue)
                {
                    lblRegistrationDate.Text = "";
                }
                else
                {
                    lblRegistrationDate.Text = customerVo.RegistrationDate.ToShortDateString();
                }
                if (customerVo.CommencementDate == DateTime.MinValue)
                {
                    lblCommencementDate.Text = "";
                }
                else
                {
                    lblCommencementDate.Text = customerVo.CommencementDate.ToShortDateString();
                }
                lblRegistrationNum.Text   = customerVo.RegistrationNum.ToString();
                lblRegistrationPlace.Text = customerVo.RegistrationPlace.ToString();
                lblCompanyWebsite.Text    = customerVo.CompanyWebsite.ToString();
                if (customerVo.DummyPAN == 1)
                {
                    chkdummypan.Checked = true;
                }
                else
                {
                    chkdummypan.Checked = false;
                }
                //if (customerVo.IsProspect == 1)
                //{
                //    chkprospectn.Checked = true;
                //}
                //else
                //{
                //    chkprospectn.Checked = false;
                //}
                if (customerVo.ViaSMS == 1)
                {
                    chksmsn.Checked = true;
                }
                else
                {
                    chksmsn.Checked = false;
                }
                if (customerVo.AlertViaEmail == 1)
                {
                    chkmailn.Checked = true;
                }
                else
                {
                    chkmailn.Checked = false;
                }

                lblCustomerCode.Text = customerVo.CustCode.ToString();
                customerRMVo         = adviserStaffBo.GetAdvisorStaffDetails(customerVo.RmId);
                if (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName != null && (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName).ToString() != "")
                {
                    lblRM.Text = customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName;
                }
                else
                {
                    lblRM.Text = "";
                }
                lblPanNum.Text      = customerVo.PANNum.ToString();
                lblCorrLine1.Text   = customerVo.Adr1Line1.ToString();
                lblCorrLine2.Text   = customerVo.Adr1Line2.ToString();
                lblCorrLine3.Text   = customerVo.Adr1Line3.ToString();
                lblCorrPinCode.Text = customerVo.Adr1PinCode.ToString();
                lblCorrCity.Text    = customerVo.Adr1City.ToString();
                if (customerVo.Adr1State != "")
                {
                    lblCorrState.Text = XMLBo.GetStateName(path, customerVo.Adr1State);
                }
                else
                {
                    lblCorrState.Text = "";
                }
                lblCorrCountry.Text = customerVo.Adr1Country.ToString();
                lblPermLine1.Text   = customerVo.Adr2Line1.ToString();
                lblPermLine2.Text   = customerVo.Adr2Line2.ToString();
                lblPermLine3.Text   = customerVo.Adr2Line3.ToString();
                lblPermPinCode.Text = customerVo.Adr2PinCode.ToString();
                lblPermCity.Text    = customerVo.Adr2City.ToString();
                if (customerVo.Adr2State.ToString() != string.Empty)

                {
                    lblPermState.Text = XMLBo.GetStateName(path, customerVo.Adr2State);
                }
                else
                {
                    lblPermState.Text = "";
                }
                lblPermCountry.Text = customerVo.Adr2Country.ToString();
                lblResPhone.Text    = customerVo.ResISDCode.ToString() + "-" + customerVo.ResSTDCode.ToString() + "-" + customerVo.ResPhoneNum.ToString();
                lblOfcPhone.Text    = customerVo.OfcISDCode.ToString() + "-" + customerVo.OfcSTDCode.ToString() + "-" + customerVo.OfcPhoneNum.ToString();
                lblResFax.Text      = customerVo.Fax.ToString() + "-" + customerVo.ISDFax.ToString() + "-" + customerVo.STDFax.ToString();
                lblEmail.Text       = customerVo.Email.ToString();
                lblAltEmail.Text    = customerVo.AltEmail.ToString();
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ViewNonIndividualProfile.ascx:Page_Load()");
                object[] objects = new object[2];
                objects[0]   = customerVo;
                objects[2]   = userVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
コード例 #7
0
        private void setBranchDetail()
        {
            try
            {
                RMVo temp = new RMVo();


                if (advisorBranchVo.BranchId != 0)
                {
                    lblBranchCode.Text        = advisorBranchVo.BranchCode.ToString();
                    lblBranchName.Text        = advisorBranchVo.BranchName.ToString();
                    lblBranchType.Text        = advisorBranchVo.BranchType;
                    lblAssociateCategory.Text = advisorBranchVo.AssociateCategory;
                    lblCity.Text      = advisorBranchVo.City.ToString();
                    lblCountry.Text   = advisorBranchVo.Country.ToString();
                    lblMail.Text      = advisorBranchVo.Email.ToString();
                    lblFax.Text       = advisorBranchVo.FaxIsd.ToString() + "-" + advisorBranchVo.FaxStd.ToString() + "-" + advisorBranchVo.Fax.ToString();
                    temp              = advisorStaffBo.GetAdvisorStaff(advisorStaffBo.GetUserId(advisorBranchVo.BranchHeadId));
                    lblHead.Text      = temp.FirstName + " " + temp.MiddleName + " " + temp.LastName;
                    lblLineone.Text   = advisorBranchVo.AddressLine1.ToString();
                    lblLinetwo.Text   = advisorBranchVo.AddressLine2.ToString();
                    lblLineThree.Text = advisorBranchVo.AddressLine3.ToString();
                    lblPhone1.Text    = advisorBranchVo.Phone1Isd.ToString() + "-" + advisorBranchVo.Phone1Std.ToString() + "-" + advisorBranchVo.Phone1Number.ToString();
                    lblPhone2.Text    = advisorBranchVo.Phone2Isd.ToString() + "-" + advisorBranchVo.Phone2Std.ToString() + "-" + advisorBranchVo.Phone2Number.ToString();
                    lblPin.Text       = advisorBranchVo.PinCode.ToString();
                    if (advisorBranchVo.State == "")
                    {
                        lblState.Text = "";
                    }
                    else
                    {
                        lblState.Text = XMLBo.GetStateName(path, advisorBranchVo.State.ToString());
                    }
                    lblBranchHeadMobile.Text = temp.Mobile.ToString();
                    if (advisorBranchVo.BranchType != "Associate")
                    {
                        CommSharingStructureHdr.Visible = false;
                        trAssocCategory.Visible         = false;
                    }
                    else
                    {
                        CommSharingStructureHdr.Visible = true;
                        trAssocCategory.Visible         = true;
                    }
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ViewBranchDetails.ascx:setBranchDetail()");
                object[] objects = new object[1];
                objects[0]   = advisorBranchVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                SessionBo.CheckSession();
                path       = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
                userVo     = (UserVo)Session["userVo"];
                customerVo = (CustomerVo)Session["CustomerVo"];
                RMVo customerRMVo = new RMVo();
                if (customerVo.SubType == "MNR")
                {
                    trGuardianName.Visible = true;
                }
                else
                {
                    trGuardianName.Visible = false;
                }
                if (userVo.UserType.Trim() == "Adviser" || userVo.UserType.Trim() == "RM" || userVo.UserType.Trim() == "Branch Man" || userVo.UserType.Trim() == "Advisor")
                {
                    trDelete.Visible = true;
                }
                else
                {
                    trDelete.Visible = false;
                }

                if (customerVo.ProfilingDate.Year == 1800 || customerVo.ProfilingDate == DateTime.MinValue)
                {
                    lblProfilingDate.Text = "";
                }
                else
                {
                    lblProfilingDate.Text = customerVo.ProfilingDate.ToShortDateString().ToString();
                }
                if (customerVo.Dob.Year == 1800 || customerVo.Dob == DateTime.MinValue)
                {
                    lblDob.Text = "";
                }
                else
                {
                    lblDob.Text = customerVo.Dob.ToShortDateString().ToString();
                }

                //hdnassociationcount.Value = customerBo.GetAssociationCount("C", customerVo.CustomerId).ToString();
                lblGuardianName.Text = customerVo.ContactFirstName + " " + customerVo.ContactMiddleName + " " + customerVo.ContactLastName;
                lblName.Text         = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString();
                lblCustCode.Text     = customerVo.CustCode.ToString();
                lblPanNum.Text       = customerVo.PANNum.ToString();
                lblCorrLine1.Text    = customerVo.Adr1Line1.ToString();
                lblCorrLine2.Text    = customerVo.Adr1Line2.ToString();
                lblCorrLine3.Text    = customerVo.Adr1Line3.ToString();
                lblCorrPinCode.Text  = customerVo.Adr1PinCode.ToString();
                lblCorrCity.Text     = customerVo.Adr1City.ToString();
                if (customerVo.BranchName != null && customerVo.BranchName.ToString() != "")
                {
                    lblBranch.Text = customerVo.BranchName.ToString();
                }
                else
                {
                    lblBranch.Text = "";
                }
                customerRMVo = adviserStaffBo.GetAdvisorStaffDetails(customerVo.RmId);
                if (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName != null && (customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName).ToString() != "")
                {
                    lblRM.Text = customerRMVo.FirstName + " " + customerRMVo.MiddleName + " " + customerRMVo.LastName;
                }
                else
                {
                    lblRM.Text = "";
                }

                if (customerVo.JobStartDate.Year == 1800 || customerVo.JobStartDate == DateTime.MinValue)
                {
                    lblJobStart.Text = "";
                }
                else
                {
                    lblJobStart.Text = customerVo.JobStartDate.ToShortDateString().ToString();
                }

                if (customerVo.ResidenceLivingDate.Year == 1800 || customerVo.ResidenceLivingDate == DateTime.MinValue)
                {
                    lblLiving.Text = "";
                }
                else
                {
                    lblLiving.Text = customerVo.ResidenceLivingDate.ToShortDateString().ToString();
                }

                if (customerVo.Adr1State == "")
                {
                    lblCorrState.Text = "";
                }
                else
                {
                    lblCorrState.Text = XMLBo.GetStateName(path, customerVo.Adr1State.ToString());
                }

                lblMotherMaiden.Text = customerVo.MothersMaidenName.ToString();
                lblCorrCountry.Text  = customerVo.Adr1Country.ToString();
                lblPermLine1.Text    = customerVo.Adr2Line1.ToString();
                lblPermLine2.Text    = customerVo.Adr2Line2.ToString();
                lblPermLine3.Text    = customerVo.Adr2Line3.ToString();
                lblPermPinCode.Text  = customerVo.Adr2PinCode.ToString();
                lblPermCity.Text     = customerVo.Adr2City.ToString();
                if (customerVo.Adr2State == "")
                {
                    lblPermState.Text = "";
                }
                else
                {
                    lblPermState.Text = XMLBo.GetStateName(path, customerVo.Adr2State.ToString());
                }

                lblPermCountry.Text = customerVo.Adr2Country.ToString();
                lblCompanyName.Text = customerVo.CompanyName.ToString();
                lblOfcLine1.Text    = customerVo.OfcAdrLine1.ToString();
                lblOfcLine2.Text    = customerVo.OfcAdrLine2.ToString();
                lblOfcLine3.Text    = customerVo.OfcAdrLine3.ToString();
                lblOfcPinCode.Text  = customerVo.OfcAdrPinCode.ToString();
                lblOfcCity.Text     = customerVo.OfcAdrCity.ToString();

                if (customerVo.OfcAdrState == "")
                {
                    lblOfcState.Text = "";
                }
                else
                {
                    lblOfcState.Text = XMLBo.GetStateName(path, customerVo.OfcAdrState.ToString());
                }
                lblOfcCountry.Text = customerVo.OfcAdrCountry.ToString();
                lblResPhone.Text   = customerVo.ResISDCode.ToString() + "-" + customerVo.ResSTDCode.ToString() + "-" + customerVo.ResPhoneNum.ToString();
                lblOfcPhone.Text   = customerVo.OfcISDCode.ToString() + "-" + customerVo.OfcSTDCode.ToString() + "-" + customerVo.OfcPhoneNum.ToString();
                lblOfcFax.Text     = customerVo.OfcISDFax.ToString() + "-" + customerVo.OfcSTDFax.ToString() + "-" + customerVo.OfcFax.ToString();
                lblResFax.Text     = customerVo.ISDFax.ToString() + "-" + customerVo.STDFax.ToString() + "-" + customerVo.Fax.ToString();
                lblMobile1.Text    = customerVo.Mobile1.ToString();
                lblMobile2.Text    = customerVo.Mobile2.ToString();
                lblEmail.Text      = customerVo.Email.ToString();
                lblAltEmail.Text   = customerVo.AltEmail.ToString();
                if (customerVo.DummyPAN == 1)
                {
                    chkdummypan.Checked = true;
                }
                else
                {
                    chkdummypan.Checked = false;
                }
                if (customerVo.IsProspect == 1)
                {
                    chkprospect.Checked = true;
                }
                else
                {
                    chkprospect.Checked = false;
                }
                if (customerVo.ViaSMS == 1)
                {
                    chksms.Checked = true;
                }
                else
                {
                    chksms.Checked = false;
                }
                if (customerVo.AlertViaEmail == 1)
                {
                    chkmail.Checked = true;
                }
                else
                {
                    chkmail.Checked = false;
                }

                if (customerVo.Occupation != null)
                {
                    lblOccupation.Text = XMLBo.GetOccupationName(path, customerVo.Occupation.ToString());
                }
                else
                {
                    lblOccupation.Text = "";
                }
                if (customerVo.MaritalStatus != null)
                {
                    lblMaritalStatus.Text = XMLBo.GetMaritalStatusName(path, customerVo.MaritalStatus.ToString());
                }
                else
                {
                    lblMaritalStatus.Text = "";
                }
                if (customerVo.MarriageDate.Year == 1800 || customerVo.MarriageDate == DateTime.MinValue)
                {
                    lblMarriageDate.Text = "";
                }
                else
                {
                    lblMarriageDate.Text = customerVo.MarriageDate.ToShortDateString();
                }
                if (customerVo.Qualification != null)
                {
                    lblQualification.Text = XMLBo.GetQualificationName(path, customerVo.Qualification.ToString());
                }
                else
                {
                    lblQualification.Text = "";
                }
                if (customerVo.Nationality != null)
                {
                    lblNationality.Text = XMLBo.GetNationalityName(path, customerVo.Nationality.ToString());
                }
                else
                {
                    lblNationality.Text = "";
                }
                lblRBIRefNo.Text = customerVo.RBIRefNum.ToString();
                if (customerVo.RBIApprovalDate.Year == 1800 || customerVo.RBIApprovalDate == DateTime.MinValue)

                {
                    lblRBIRefDate.Text = "";
                }
                else
                {
                    lblRBIRefDate.Text = customerVo.RBIApprovalDate.ToShortDateString().ToString();
                }
                if (customerVo.Nationality != null)
                {
                    lblNationality.Text = XMLBo.GetNationalityName(path, customerVo.Nationality.ToString());
                }
                else
                {
                    lblNationality.Text = "";
                }
                lblType.Text    = XMLBo.GetCustomerTypeName(path, customerVo.Type);
                lblSubType.Text = XMLBo.GetCustomerSubTypeName(path, customerVo.SubType);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ViewCustomerIndividualProfile.ascx:Page_Load()");
                object[] objects = new object[3];
                objects[0]   = customerVo;
                objects[1]   = path;
                objects[2]   = userVo;
                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[SessionContents.UserVo];
            path   = Server.MapPath(ConfigurationManager.AppSettings["xmllookuppath"].ToString());
            try
            {
                //  customerFamilyList = new List<CustomerFamilyVo>();

                customerVo = (CustomerVo)Session["CustomerVo"];
                rmVo       = (RMVo)Session["RmVo"];
                customerId = customerVo.CustomerId;
                StringBuilder sbAddress = new StringBuilder();

                lblName.Text  = customerVo.FirstName.ToString() + " " + customerVo.MiddleName.ToString() + " " + customerVo.LastName.ToString();
                lblPhone.Text = customerVo.ResISDCode.ToString() + " - " + customerVo.ResSTDCode.ToString() + " - " + customerVo.ResPhoneNum.ToString();
                if (!string.IsNullOrEmpty(customerVo.Email))
                {
                    lblEmail.Text = customerVo.Email.ToString();
                }
                else
                {
                    lblEmail.Text = "";
                }
                sbAddress.Append(customerVo.Adr1Line1);
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Line2);
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Line3);
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1PinCode);
                sbAddress.Append("<br />");

                if (customerVo.Adr1State != "")
                {
                    sbAddress.Append(XMLBo.GetStateName(path, customerVo.Adr1State));
                    sbAddress.Append("<br />");
                }

                sbAddress.Append(customerVo.Adr1City);
                sbAddress.Append("<br />");
                sbAddress.Append(customerVo.Adr1Country);

                lblAddress.Text = sbAddress.ToString();

                Session["RmVo"] = rmVo;
                // Session["CustomerVo"] = customerVo;
                Session["Check"] = "Dashboard";

                //Binding the Customer Family Grid



                //Call the function to bind the Bank Details
                lblBankDetailsMsg.Visible = false;
                BindBankDetails();
                BindFamilyDematDetails();
                BindDematDetails();
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RMCustomerDashboard.ascx:Page_Load()");
                object[] objects = new object[4];
                objects[0]   = customerFamilyList;
                objects[1]   = rmVo;
                objects[2]   = customerVo;
                objects[3]   = userVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }