Beispiel #1
0
 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 override void OnInit(EventArgs e)
        //{
        //    //((Pager)mypager).ItemClicked += new Pager.ItemClickEventHandler(this.HandlePagerEvent);
        //    //mypager.EnableViewState = true;
        //    //base.OnInit(e);
        //}

        //public void HandlePagerEvent(object sender, ItemClickEventArgs e)
        //{
        //    //GetPageCount();

        //    this.BindFolioGridView();
        //}

        //private void GetPageCount()
        //{
        //    //string upperlimit;
        //    //string lowerlimit;
        //    //int rowCount = 0;
        //    //if (hdnRecordCount.Value != "")
        //    //    rowCount = Convert.ToInt32(hdnRecordCount.Value);
        //    //if (rowCount > 0)
        //    //{

        //    //    int ratio = rowCount / 30;
        //    //    mypager.PageCount = rowCount % 30 == 0 ? ratio : ratio + 1;
        //    //    mypager.Set_Page(mypager.CurrentPage, mypager.PageCount);
        //    //    lowerlimit = (((mypager.CurrentPage - 1) * 30) + 1).ToString();
        //    //    upperlimit = (mypager.CurrentPage * 30).ToString();
        //    //    if (mypager.CurrentPage == mypager.PageCount)
        //    //        upperlimit = hdnRecordCount.Value;
        //    //    string PageRecords = string.Format("{0}- {1} of ", lowerlimit, upperlimit);
        //    //    lblCurrentPage.Text = PageRecords;

        //    //    hdnCurrentPage.Value = mypager.CurrentPage.ToString();
        //    //}
        //}

        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            customerVo = (CustomerVo)Session["CustomerVo"];

            if (!IsPostBack)
            {
                Cache.Remove("FolioDetails" + customerVo.CustomerId.ToString());

                this.Page.Culture = "en-GB";
                portfolioId       = int.Parse(Session[SessionContents.PortfolioId].ToString());
                BindPortfolioDropDown();
                this.BindFolioGridView();
                trFolioStatus.Visible = false;
            }
        }
Beispiel #3
0
 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)
        {
            userVo = (UserVo)Session[SessionContents.UserVo];

            SessionBo.CheckSession();

            if (!IsPostBack)
            {
                if (Request.QueryString["processId"] != null)
                {
                    processID = Int32.Parse(Request.QueryString["processId"].ToString());
                }

                BindRejectedRecordsGrid();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     SessionBo.CheckSession();
     userBo = new UserBo();
     userVo = (UserVo)Session[SessionContents.UserVo];
     if (!IsPostBack)
     {
         msgReprocessComplete.Visible = false;
         reqId         = Convert.ToInt32(Request.QueryString["ReqId"]);
         transactionId = Convert.ToInt32(Request.QueryString["transactionId"]);
         if (reqId != null)
         {
             GetProfileIncreamentRejection(reqId);
         }
     }
 }
 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;
     }
 }
Beispiel #7
0
        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();
            //ProcessId = 0;
            configPath = Server.MapPath(ConfigurationManager.AppSettings["SSISConfigPath"].ToString());
            //adviserVo = (AdvisorVo)Session[SessionContents.AdvisorVo];
            //rmVo = (RMVo)Session[SessionContents.RmVo];
            userVo = (UserVo)Session[SessionContents.UserVo];

            if (Request.QueryString["processId"] != null)
            {
                ProcessId = Int32.Parse(Request.QueryString["processId"].ToString());
            }
            if (Request.QueryString["filetypeid"] != null)
            {
                filetypeId = Int32.Parse(Request.QueryString["filetypeid"].ToString());
            }

            if (Session["userVo"] != null)
            {
            }
            else
            {
                Session.Clear();
                Session.Abandon();

                // If User Sessions are empty, load the login control
                Page.ClientScript.RegisterStartupScript(this.GetType(), "pageloadscript", "loadcontrol('SessionExpired','');", true);
            }

            if (!IsPostBack)
            {
                mypager.CurrentPage      = 1;
                hdnProcessIdFilter.Value = ProcessId.ToString();
                //Session["ProcessId"] = "";
                //Session["ProcessIdMaptoCustomers"] = "";
                //if (Session["ProcessIdMaptoCustomers"].ToString() == "1")
                //{
                //    ProcessId = int.Parse(Session["ProcessId"].ToString());
                //}

                ProcessId = int.Parse(hdnProcessIdFilter.Value.ToString());
                BindGrid(ProcessId);
                //Session["ProcessId"] = "";
                //Session["ProcessIdMaptoCustomers"]="";
            }
        }
        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;
        }
Beispiel #10
0
        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);
                //}
            }
        }
Beispiel #11
0
 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)
        {
            try
            {
                SessionBo.CheckSession();
                Session["dashBoard"]       = "RM";
                Session["FromAdvisorView"] = "FromRMView";
                userVo   = (UserVo)Session["userVo"];
                UserName = userVo.FirstName + userVo.LastName;
                roleList = userBo.GetUserRoles(userVo.UserId);

                if (!IsPostBack)
                {
                    if (roleList.Count == 1 && roleList.Contains("RM"))
                    {
                        TreeView1.Nodes.RemoveAt(0);
                    }
                    TreeView1.CollapseAll();
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadtopmenu('RMLeftPane');", true);
                }

                sourcepath = Session[SessionContents.LogoPath].ToString();
                if (Session[SessionContents.BranchLogoPath] != null)
                {
                    branchLogoSourcePath = Session[SessionContents.BranchLogoPath].ToString();
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "RMLeftPane.ascx.cs:Page_Load()");

                object[] objects = new object[1];
                objects[0] = userVo;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
Beispiel #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            RMVo rmVo = new RMVo();

            userVo               = (UserVo)Session["userVo"];
            rmVo                 = advisorStaffBo.GetAdvisorStaff(userVo.UserId);
            Session["rmVo"]      = rmVo;
            UserName             = userVo.FirstName + " " + userVo.LastName;
            sourcepath           = Session[SessionContents.LogoPath].ToString();
            branchLogoSourcePath = Session[SessionContents.BranchLogoPath].ToString();
            if (!IsPostBack)
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "loadtopmenu('BMLeftpane');", true);
                BMLeftTree.CollapseAll();
            }
        }
 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)
        {
            try
            {
                SessionBo.CheckSession();
                customerId            = int.Parse(Session["CustomerId"].ToString());
                customerBankAccId     = int.Parse(Session["CustBankAccId"].ToString());
                customerBankAccountVo = customerBankAccountBo.GetCustomerBankAccount(customerId, customerBankAccId);

                txtAccountNumber.Text        = customerBankAccountVo.AccountNum.ToString();
                ddlAccountType.SelectedValue = customerBankAccountVo.AccountType;
                if (customerBankAccountVo.ModeOfOperation != null && customerBankAccountVo.ModeOfOperation != "")
                {
                    ddlModeOfOperation.SelectedValue = customerBankAccountVo.ModeOfOperation;
                }
                txtBankName.Text                = customerBankAccountVo.BankName.ToString();
                txtBranchName.Text              = customerBankAccountVo.BranchName.ToString();
                txtBankAdrLine1.Text            = customerBankAccountVo.BranchAdrLine1.ToString();
                txtBankAdrLine2.Text            = customerBankAccountVo.BranchAdrLine2.ToString();
                txtBankAdrLine3.Text            = customerBankAccountVo.BranchAdrLine3.ToString();
                txtBankAdrPinCode.Text          = customerBankAccountVo.BranchAdrPinCode.ToString();
                txtBankAdrCity.Text             = customerBankAccountVo.BranchAdrCity.ToString();
                txtIfsc.Text                    = customerBankAccountVo.IFSC.ToString();
                txtMicr.Text                    = customerBankAccountVo.MICR.ToString();
                ddlBankAdrState.SelectedValue   = customerBankAccountVo.BranchAdrState;
                ddlBankAdrCountry.SelectedValue = customerBankAccountVo.BranchAdrCountry;
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "EditCustomerBankAccount.ascx:Page_Load()");
                object[] objects = new object[3];
                objects[0]   = customerBankAccountVo;
                objects[1]   = customerId;
                objects[2]   = customerBankAccId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            customerVo = (CustomerVo)Session["CustomerVo"];
            userVo     = (UserVo)Session[SessionContents.UserVo];
            adviserVo  = (AdvisorVo)Session["advisorVo"];
            if (!IsPostBack)
            {
                fromdate = DateTime.Now.AddDays(-1);
                txtFromDate.SelectedDate = fromdate;
                txtToDate.SelectedDate   = DateTime.Now;

                BindAMC();
                btnDownload.Visible = false;
                ddlType.Visible     = false;
            }
        }
Beispiel #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            advisorVo   = (AdvisorVo)Session[SessionContents.AdvisorVo];
            ExtractPath = Server.MapPath("UploadFiles");

            if (!IsPostBack)
            {
                //txtExtractDate.MaxDate = DateTime.Now;
                // fromdate = DateTime.Now.AddDays(-1);
                txtFromDate.SelectedDate = DateTime.Now.AddDays(-1);
                txtToDate.SelectedDate   = DateTime.Now;
                //BindddlExtractType();
                // txtExtractDate.SelectedDate = DateTime.Now;
                //BindOrderStatus();
            }
        }
Beispiel #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                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;

                    BindCustomerMFAlertGrid();
                    tblPager.Visible          = false;
                    tblReminderEdit.Visible   = false;
                    tblOccurrenceEdit.Visible = false;
                    tblMFAlertGrid.Visible    = true;
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "CustomerMFAlert.ascx:Page_Load()");

                object[] objects = new object[0];

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
Beispiel #19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SessionBo.CheckSession();
     if (Session["table"] != null)
     {
         Table tb = (Table)Session["table"];
         Page.Form.Controls.Add(tb);
     }
     if (!IsPostBack)
     {
         if (Session["count"].ToString() != string.Empty)
         {
             count = int.Parse(Session["count"].ToString());
         }
         createId();
     }
 }
Beispiel #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            advisorVo         = (AdvisorVo)Session["advisorVo"];
            lblRefine.Visible = false;
            lblMessage.Text   = "";
            //transactionStagingId = Convert.ToInt32(Request.Params["id"]);

            if (advisorVo == null || advisorVo.advisorId < 1)
            {
                lblMessage.Visible  = true;
                lblMessage.CssClass = "Error";
                lblMessage.Text     = "your session has expired.Please close this window and login again.";
                btnSearch.Enabled   = false;
                gvCustomers.Visible = false;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            advisorVo = (AdvisorVo)Session["advisorVo"];
            userVo    = (UserVo)Session["UserVo"];
            rmVo      = (RMVo)Session["RMVo"];

            if (!IsPostBack)
            {
                BindChannelList();
                if (Session[SessionContents.CurrentUserRole].ToString().ToLower() == "admin" || Session[SessionContents.CurrentUserRole].ToString().ToLower() == "ops")
                {
                    //txtNewReporting_autoCompleteExtender.ContextKey = ddltitlechannelId.SelectedValue + "/" + advisorVo.advisorId.ToString();
                    //txtNewReporting_autoCompleteExtender.ServiceMethod = "GetRMStaffList";
                }
            }
        }
Beispiel #22
0
        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;
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     SessionBo.CheckSession();
     userVo     = (UserVo)Session[SessionContents.UserVo];
     customerVo = (CustomerVo)Session["customerVo"];
     adviserVo  = (AdvisorVo)Session["advisorVo"];
     if (!IsPostBack)
     {
         fromDate = DateTime.Now.AddMonths(-1);
         txtOrderFrom.SelectedDate = fromDate.Date;
         txtOrderTo.SelectedDate   = DateTime.Now;
         if (Request.QueryString["BondType"] != null)
         {
             BindHolding(Request.QueryString["BondType"]);
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            count = int.Parse(Session["episodeCount"].ToString());


            if (Session["table"] != null)
            {
                Table tb = (Table)Session["table"];
                this.PlaceHolder.Controls.Add(tb);
            }

            else
            {
                LoadContent();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //check for the session
            SessionBo.CheckSession();
            //fill the advisorVo from the session
            advisorVo = (AdvisorVo)Session["advisorVo"];
            //fill the userVO from the session
            UserVo = (UserVo)Session["userVo"];

            if (!IsPostBack)
            {
                //Clear the cahce when the page first loads
                Cache.Remove("ZoneClusterDetails" + advisorVo.advisorId);
                Cache.Remove("RMDetail" + advisorVo.advisorId);
                Cache.Remove("ZoneDetail" + advisorVo.advisorId);
            }
        }
Beispiel #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionBo.CheckSession();
            userVo    = (UserVo)Session["userVo"];
            adviserVo = (AdvisorVo)Session["advisorVo"];


            if (!Page.IsPostBack)
            {
                FillGrid();
                //SetInitialRow();
            }
            if (gvAssocCatSetUpBounded.Rows.Count > 0)
            {
                DataBoundedFromDb = true;
            }
        }
        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)
 {
     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();
            btnReprocess.Attributes.Add("onclick", "setTimeout(\"UpdateImg('Image1','/Images/Wait.gif');\",50);");
            //ProcessId = 0;
            uploadsCommonBo = new UploadCommonBo();
            configPath      = Server.MapPath(ConfigurationManager.AppSettings["SSISConfigPath"].ToString());

            if (Request.QueryString["processId"] != null)
            {
                ProcessId = Int32.Parse(Request.QueryString["processId"].ToString());
            }

            if (Request.QueryString["filetypeid"] != null)
            {
                filetypeId = Int32.Parse(Request.QueryString["filetypeid"].ToString());
            }

            if (Session["userVo"] != null)
            {
            }
            else
            {
                Session.Clear();
                Session.Abandon();
                // If User Sessions are empty, load the login control
                Page.ClientScript.RegisterStartupScript(this.GetType(), "pageloadscript", "loadcontrol('SessionExpired','');", true);
            }

            // Get Advisor Vo from Session
            //adviserVo = (AdvisorVo)Session[SessionContents.AdvisorVo];
            //adviserId = adviserVo.advisorId;
            //rmVo = (RMVo)Session[SessionContents.RmVo];
            //.GetProcessLogInfo(ProcessId);

            ManageFolioLink(ProcessId);
            if (!IsPostBack)
            {
                mypager.CurrentPage      = 1;
                hdnProcessIdFilter.Value = ProcessId.ToString();
                ProcessId = int.Parse(hdnProcessIdFilter.Value);
                // Bind Grid
                BindWerpProfileGrid(ProcessId);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                SessionBo.CheckSession();
                userVo     = (UserVo)Session["userVo"];
                customerVo = (CustomerVo)Session["customerVo"];//SessionContents.CustomerVo;

                if (Session[SessionContents.PortfolioId] != null)
                {
                    portfolioId = Int32.Parse(Session[SessionContents.PortfolioId].ToString());
                }
                else
                {
                    customerPortfolioVo = portfolioBo.GetCustomerDefaultPortfolio(customerVo.CustomerId);
                    Session[SessionContents.PortfolioId] = customerPortfolioVo.PortfolioId;
                    portfolioId = customerPortfolioVo.PortfolioId;
                }

                if (!IsPostBack)
                {
                    ErrorMessage.Visible = false;
                    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", "ViewInsuranceDetails.ascx: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;
            }
        }