Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.xxclass.Value = this.selectSearchCriteria.SelectedValue;
            if (!base.IsPostBack)
            {
                if ((Session["x2"] != null) && (Session["x3"] != null))
                {
                    kword.Value = Session["x2"].ToString();

                    this.selectSearchCriteria.SelectedValue = Session["x3"].ToString();
                    this.selectclass = Session["x3"].ToString();
                }

                xnclass.Add("0", "All");
                nc = t.getJNationalClasses();
                for (int x = 0; x < nc.Count; x++)
                {
                    xnclass.Add(nc[x].xtype.ToString(), nc[x].xtype.ToString());
                }
                selectSearchCriteria.DataSource     = xnclass;
                selectSearchCriteria.DataTextField  = "Value";
                selectSearchCriteria.DataValueField = "Key";
                selectSearchCriteria.DataBind();
                this.ViewState["PreviousPage"] = base.Request.UrlReferrer;
            }
            if (this.Session["pwalletID"] != null)
            {
                if (this.Session["pwalletID"].ToString() != "")
                {
                    this.admin = this.Session["pwalletID"].ToString();
                }
                else
                {
                    base.Response.Redirect("./xcontrol.aspx");
                }
            }
            else
            {
                base.Response.Redirect("./xcontrol.aspx");
            }
            if (base.Request.QueryString["x"] != null)
            {
                this.xmarkID.Value      = base.Request.QueryString["x"].ToString();
                this.xlof_officer.Value = this.admin;
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            show_image_section = "1";   SaveExit.Visible = false;
            serverpath         = Server.MapPath("~/");
            if (Session["agt"] != null)
            {
                agt        = Session["agt"].ToString();
                xcode.Text = Session["agt"].ToString();
            }
            if (Session["vid"] != null)
            {
                xvid.Value = Session["vid"].ToString();
            }
            else
            {
                Response.Redirect("http://www.iponigeria.com/userarea/dashboard");
            }
            if (Session["amt"] != null)
            {
                xamt.Value = Session["amt"].ToString();
            }
            if (Session["gt"] != null)
            {
                xgt.Value = Session["gt"].ToString();
            }
            if (Session["pc"] != null)
            {
                xpc.Value = Session["pc"].ToString();
            }
            if (Session["pwalletID"] != null)
            {
                xpwalletID.Value = Session["pwalletID"].ToString();
            }
            if (Session["agentemail"] != null)
            {
                rep_xemail.Text = Session["agentemail"].ToString();
            }
            if (Session["agentname"] != null)
            {
                rep_xname.Text = Session["agentname"].ToString();
            }
            if (Session["agentpnumber"] != null)
            {
                rep_xtelephone.Text = Session["agentpnumber"].ToString();
            }
            if (Session["applicantname"] != null)
            {
                xname.Text = Session["applicantname"].ToString();
            }
            if (Session["applicantemail"] != null)
            {
                xemail.Text = Session["applicantemail"].ToString();
            }
            if (Session["applicantpnumber"] != null)
            {
                xtelephone.Text = Session["applicantpnumber"].ToString();
            }
            if (Session["product_title"] != null)
            {
                title_of_product.Text = Session["product_title"].ToString();
            }
            if (Session["log_staffID"] != null)
            {
                log_staffID = Session["log_staffID"].ToString();
            }
            if (IsPostBack)
            {
                lt_state = t.getState(residence.SelectedValue);
                if (lt_state.Count == 0)
                {
                    state_row     = "1";
                    state_visible = "1";
                }
                lt_rep_state = t.getState(rep_residence.SelectedValue);
                if (lt_rep_state.Count == 0)
                {
                    rep_state_row = "1";
                    state_visible = "1";
                }
                national_class_desc.Text = t.getNationalClassDesc((national_class.SelectedIndex + 1).ToString());
                if (Session["agt"] != null)
                {
                    xcode.Text = Session["agt"].ToString();
                }
                if (Session["vid"] != null)
                {
                    xvid.Value = Session["vid"].ToString();
                }
                if (Session["amt"] != null)
                {
                    xamt.Value = Session["amt"].ToString();
                }
                if (Session["gt"] != null)
                {
                    xgt.Value = Session["gt"].ToString();
                }
                if (Session["pc"] != null)
                {
                    xpc.Value = Session["pc"].ToString();
                }
                if (Session["pwalletID"] != null)
                {
                    xpwalletID.Value = Session["pwalletID"].ToString();
                }
                if (Session["agentemail"] != null)
                {
                    rep_xemail.Text = Session["agentemail"].ToString();
                }
                if (Session["agentname"] != null)
                {
                    rep_xname.Text = Session["agentname"].ToString();
                }
                if (Session["agentpnumber"] != null)
                {
                    rep_xtelephone.Text = Session["agentpnumber"].ToString();
                }
                if (Session["applicantname"] != null)
                {
                    xname.Text = Session["applicantname"].ToString();
                }
                if (Session["applicantemail"] != null)
                {
                    xemail.Text = Session["applicantemail"].ToString();
                }
                if (Session["applicantpnumber"] != null)
                {
                    xtelephone.Text = Session["applicantpnumber"].ToString();
                }
                if (Session["product_title"] != null)
                {
                    title_of_product.Text = Session["product_title"].ToString();
                }
            }
            else
            {
                nationality.SelectedIndex     = 0x9f;
                rep_nationality.SelectedIndex = 0x9f;
                residence.SelectedIndex       = 0x9f;
                rep_residence.SelectedIndex   = 0x9f;
                lt_nclass = t.getJNationalClasses();
                national_class_desc.Text = lt_nclass[0].xdescription.ToString();
            }
            transID         = Session["vid"].ToString();
            Session["xref"] = Convert.ToInt32(Session["xref"]) + 1;
            bool flag1 = Session["xref"].ToString() != "1";

            if ((Session["xapplication"] != null) && (Session["xapplication"].ToString() != ""))
            {
                bool flag2 = transID != Session["xapplication"].ToString();
            }
            xdesc_national_class = "1";
            if (rbDisclaimer.SelectedValue == "YES")
            {
                disclaimer_text = "1";
            }
            else
            {
                disclaimer_text = "0";
            }
            if (logo_description.SelectedValue != "2")
            {
                logo_text = "1";
            }
            else
            {
                logo_text = "";
            }
            Session["logo_description"] = logo_description.SelectedValue;
            if ((Session["logo_pic"] == null) && logo_pic.HasFile)
            {
                Session["logo_pic"] = logo_pic;
                lblLogoPic.Text     = logo_pic.FileName;
            }
            else if ((Session["logo_pic"] != null) && !logo_pic.HasFile)
            {
                logo_pic        = (FileUpload)Session["logo_pic"];
                lblLogoPic.Text = logo_pic.FileName;
            }
            else if (logo_pic.HasFile)
            {
                Session["logo_pic"] = logo_pic;
                lblLogoPic.Text     = logo_pic.FileName;
            }
            if ((Session["auth_doc"] == null) && auth_doc.HasFile)
            {
                Session["auth_doc"] = auth_doc;
                lblPoa.Text         = auth_doc.FileName;
            }
            else if ((Session["auth_doc"] != null) && !auth_doc.HasFile)
            {
                auth_doc    = (FileUpload)Session["auth_doc"];
                lblPoa.Text = auth_doc.FileName;
            }
            else if (auth_doc.HasFile)
            {
                Session["auth_doc"] = auth_doc;
                lblPoa.Text         = auth_doc.FileName;
            }
            if ((Session["sup_doc1"] == null) && sup_doc1.HasFile)
            {
                Session["sup_doc1"] = sup_doc1;
                lblDoc1.Text        = sup_doc1.FileName;
            }
            else if ((Session["sup_doc1"] != null) && !sup_doc1.HasFile)
            {
                sup_doc1     = (FileUpload)Session["sup_doc1"];
                lblDoc1.Text = sup_doc1.FileName;
            }
            else if (sup_doc1.HasFile)
            {
                Session["sup_doc1"] = sup_doc1;
                lblDoc1.Text        = sup_doc1.FileName;
            }
            if ((Session["sup_doc2"] == null) && sup_doc2.HasFile)
            {
                Session["sup_doc2"] = sup_doc2;
                lblDoc2.Text        = sup_doc2.FileName;
            }
            else if ((Session["sup_doc2"] != null) && !sup_doc2.HasFile)
            {
                sup_doc2     = (FileUpload)Session["sup_doc2"];
                lblDoc2.Text = sup_doc2.FileName;
            }
            else if (sup_doc2.HasFile)
            {
                Session["sup_doc2"] = sup_doc2;
                lblDoc2.Text        = sup_doc2.FileName;
            }
        }