Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.serverpath = base.Server.MapPath("~/");
            if (this.Session["aid"] != null)
            {
                this.xaid.Value = this.Session["aid"].ToString(); this.xcode.Text = this.Session["aid"].ToString();
            }
            if (this.Session["vid"] != null)
            {
                this.xvid.Value = this.Session["vid"].ToString();
            }
            else
            {
                if (this.Session["Trademark_item"] == null)
                {
                    base.Response.Redirect("http://www.iponigeria.com/userarea/dashboard");
                }
                else
                {
                    Response.Redirect("./XPay/A/profile.aspx");
                }
            }
            if (this.Session["amt"] != null)
            {
                this.xamt.Value = this.Session["amt"].ToString();
            }
            if (this.Session["gt"] != null)
            {
                this.xgt.Value = this.Session["gt"].ToString();
            }
            if (this.Session["pc"] != null)
            {
                this.xpc.Value = this.Session["pc"].ToString();
            }
            if (this.Session["pwalletID"] != null)
            {
                this.xpwalletID.Value = this.Session["pwalletID"].ToString();
            }
            if (this.Session["agentemail"] != null)
            {
                this.G_Agent_infoemail.Value = this.Session["agentemail"].ToString();
            }
            if (this.Session["cname"] != null)
            {
                this.xcname.Value = this.Session["cname"].ToString();
            }
            if (this.Session["agentpnumber"] != null)
            {
                this.G_Agent_infopnumber.Value = this.Session["agentpnumber"].ToString();
            }
            if (this.Session["applicantname"] != null)
            {
                this.xapplicantname.Value = this.Session["applicantname"].ToString();
            }
            if (this.Session["product_title"] != null)
            {
                this.xproduct_title.Value = this.Session["product_title"].ToString();
            }
            if (this.Session["log_staffID"] != null)
            {
                this.log_staffID = this.Session["log_staffID"].ToString();
            }

            this.xname.Text = this.xapplicantname.Value;
            if (base.IsPostBack)
            {
                this.lt_state = this.t.getState(this.residence.SelectedValue);
                if (this.lt_state.Count == 0)
                {
                    this.state_row     = "1";
                    this.state_visible = "1";
                }
                this.lt_rep_state = this.t.getState(this.rep_residence.SelectedValue);
                if (this.lt_rep_state.Count == 0)
                {
                    this.rep_state_row = "1";
                    this.state_visible = "1";
                }
                this.national_class_desc.Text = this.t.getNationalClassDesc((this.national_class.SelectedIndex + 1).ToString());
                if (this.Session["aid"] != null)
                {
                    this.xaid.Value = this.Session["aid"].ToString();
                }
                if (this.Session["vid"] != null)
                {
                    this.xvid.Value = this.Session["vid"].ToString();
                }
                if (this.Session["amt"] != null)
                {
                    this.xamt.Value = this.Session["amt"].ToString();
                }
                if (this.Session["gt"] != null)
                {
                    this.xgt.Value = this.Session["gt"].ToString();
                }
                if (this.Session["pc"] != null)
                {
                    this.xpc.Value = this.Session["pc"].ToString();
                }
                if (this.Session["pwalletID"] != null)
                {
                    this.xpwalletID.Value = this.Session["pwalletID"].ToString();
                }
                if (this.Session["agentemail"] != null)
                {
                    this.G_Agent_infoemail.Value = this.Session["agentemail"].ToString();
                }
                if (this.Session["cname"] != null)
                {
                    this.xcname.Value = this.Session["cname"].ToString();
                }
                if (this.Session["agentpnumber"] != null)
                {
                    this.G_Agent_infopnumber.Value = this.Session["agentpnumber"].ToString();
                }
                if (this.Session["applicantname"] != null)
                {
                    this.xapplicantname.Value = this.Session["applicantname"].ToString();
                }
                if (this.Session["product_title"] != null)
                {
                    this.xproduct_title.Value = this.Session["product_title"].ToString();
                }
            }
            else
            {
                if (Session["Trademark_item"] != null)
                {
                    ti      = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"];
                    c_pwall = ret.getPwalletByID(ti.xmemberID);
                    c_xmem  = ret.getAgentByID(c_pwall.xmemberID);
                    c_addy  = ret.getAddressByID(c_xmem.addressID);

                    title_of_product.Text          = ti.product_title;
                    xname.Text                     = ti.applicant_name;
                    this.nationality.SelectedIndex = 159;
                    this.residence.SelectedIndex   = 159;
                    //Representative
                    xcode.Text     = c_xmem.sys_ID;
                    rep_xname.Text = c_xmem.cname;
                    rep_nationality.SelectedIndex = Convert.ToInt32(c_addy.countryID) - 1;
                    rep_residence.SelectedIndex   = Convert.ToInt32(c_addy.countryID) - 1;
                    xselectRepState.SelectedIndex = Convert.ToInt32(c_addy.stateID) - 1;
                    rep_address.Text    = c_addy.street;
                    rep_xemail.Text     = c_addy.email1;
                    rep_xtelephone.Text = c_addy.telephone1;

                    aos_xselectState.SelectedIndex = Convert.ToInt32(c_addy.stateID) - 1;
                    aos_xemail.Text     = c_addy.email1;
                    aos_xtelephone.Text = c_addy.telephone1;
                    aos_xaddress.Text   = c_addy.street;

                    this.lt_nclass = this.t.getJNationalClasses();
                    this.national_class_desc.Text = this.lt_nclass[0].xdescription.ToString();
                }
                else
                {
                    this.nationality.SelectedIndex     = 159;
                    this.rep_nationality.SelectedIndex = 159;
                    this.residence.SelectedIndex       = 159;
                    this.rep_residence.SelectedIndex   = 159;
                    this.lt_nclass = this.t.getJNationalClasses();
                    this.national_class_desc.Text = this.lt_nclass[0].xdescription.ToString();
                    this.rep_xname.Text           = this.xcname.Value;
                    this.rep_xemail.Text          = this.G_Agent_infoemail.Value;
                    this.title_of_product.Text    = this.xproduct_title.Value;
                    this.rep_xtelephone.Text      = this.G_Agent_infopnumber.Value;
                }
                this.transID         = this.Session["vid"].ToString();
                this.Session["xref"] = Convert.ToInt32(this.Session["xref"]) + 1;
                if (this.Session["xref"].ToString() != "1")
                {
                    if (this.Session["Trademark_item"] == null)
                    {
                        base.Response.Redirect("./violation.aspx");
                    }
                    else
                    {
                        Response.Redirect("./a_violation.aspx");
                    }
                }
                if (((this.Session["xapplication"] != null) && (this.Session["xapplication"].ToString() != "")) && (this.transID != this.Session["xapplication"].ToString()))
                {
                    if (this.Session["Trademark_item"] == null)
                    {
                        base.Response.Redirect("./violation.aspx");
                    }
                    else
                    {
                        Response.Redirect("./a_violation.aspx");
                    }
                }
            }
            this.xdesc_national_class = "1";
            if (this.rbDisclaimer.SelectedValue == "YES")
            {
                this.disclaimer_text = "1";
            }
            else
            {
                this.disclaimer_text = "0";
            }
            if (this.logo_description.SelectedValue != "2")
            {
                this.logo_text = "1";
            }
            else
            {
                this.logo_text = "";
            }
            if ((this.Session["logo_pic"] == null) && this.logo_pic.HasFile)
            {
                this.Session["logo_pic"] = this.logo_pic;
                this.lblLogoPic.Text     = this.logo_pic.FileName;
            }
            else if ((this.Session["logo_pic"] != null) && !this.logo_pic.HasFile)
            {
                this.logo_pic        = (FileUpload)this.Session["logo_pic"];
                this.lblLogoPic.Text = this.logo_pic.FileName;
            }
            else if (this.logo_pic.HasFile)
            {
                this.Session["logo_pic"] = this.logo_pic;
                this.lblLogoPic.Text     = this.logo_pic.FileName;
            }
            if ((this.Session["auth_doc"] == null) && this.auth_doc.HasFile)
            {
                this.Session["auth_doc"] = this.auth_doc;
                this.lblPoa.Text         = this.auth_doc.FileName;
            }
            else if ((this.Session["auth_doc"] != null) && !this.auth_doc.HasFile)
            {
                this.auth_doc    = (FileUpload)this.Session["auth_doc"];
                this.lblPoa.Text = this.auth_doc.FileName;
            }
            else if (this.auth_doc.HasFile)
            {
                this.Session["auth_doc"] = this.auth_doc;
                this.lblPoa.Text         = this.auth_doc.FileName;
            }
            if ((this.Session["sup_doc1"] == null) && this.sup_doc1.HasFile)
            {
                this.Session["sup_doc1"] = this.sup_doc1;
                this.lblDoc1.Text        = this.sup_doc1.FileName;
            }
            else if ((this.Session["sup_doc1"] != null) && !this.sup_doc1.HasFile)
            {
                this.sup_doc1     = (FileUpload)this.Session["sup_doc1"];
                this.lblDoc1.Text = this.sup_doc1.FileName;
            }
            else if (this.sup_doc1.HasFile)
            {
                this.Session["sup_doc1"] = this.sup_doc1;
                this.lblDoc1.Text        = this.sup_doc1.FileName;
            }
            if ((this.Session["sup_doc2"] == null) && this.sup_doc2.HasFile)
            {
                this.Session["sup_doc2"] = this.sup_doc2;
                this.lblDoc2.Text        = this.sup_doc2.FileName;
            }
            else if ((this.Session["sup_doc2"] != null) && !this.sup_doc2.HasFile)
            {
                this.sup_doc2     = (FileUpload)this.Session["sup_doc2"];
                this.lblDoc2.Text = this.sup_doc2.FileName;
            }
            else if (this.sup_doc2.HasFile)
            {
                this.Session["sup_doc2"] = this.sup_doc2;
                this.lblDoc2.Text        = this.sup_doc2.FileName;
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Trademark_item"] != null)
            {
                ti      = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"];
                c_pwall = ret.getPwalletByID(ti.xmemberID);
                c_xmem  = ret.getMemberByID(c_pwall.xmemberID);
                c_addy  = ret.getAddressByID(c_xmem.addressID);

                title_of_product.Text          = ti.product_title;
                xname.Text                     = c_xmem.cname;
                residence.SelectedIndex        = Convert.ToInt32(c_addy.countryID) - 1;
                xselectState.SelectedIndex     = Convert.ToInt32(c_addy.stateID) - 1;
                aos_xselectState.SelectedIndex = Convert.ToInt32(c_addy.stateID) - 1;
                aos_xcity.Text                 = c_addy.city;
                aos_xemail.Text                = c_addy.email1; xemail.Text = c_addy.email1;
                aos_xtelephone.Text            = c_addy.telephone1; xtelephone.Text = c_addy.telephone1;
                aos_xaddress.Text              = c_addy.street; xaddress.Text = c_addy.street;
            }
            base.Server.MapPath("~/");
            if (this.Session["aid"] != null)
            {
                this.xaid.Value = this.Session["aid"].ToString();
            }
            else
            {
                base.Response.Redirect("./XPay/C/profile.aspx");
            }
            if (this.Session["vid"] != null)
            {
                this.xvid.Value = this.Session["vid"].ToString();
            }
            else
            {
                base.Response.Redirect("./XPay/C/profile.aspx");
            }
            if (this.Session["amt"] != null)
            {
                this.xamt.Value = this.Session["amt"].ToString();
            }
            else
            {
                base.Response.Redirect("./XPay/C/profile.aspx");
            }
            if (this.Session["gt"] != null)
            {
                this.xgt.Value = this.Session["gt"].ToString();
            }
            else
            {
                base.Response.Redirect("./XPay/C/profile.aspx");
            }
            if (this.Session["pwalletID"] != null)
            {
                this.xpwalletID.Value = this.Session["pwalletID"].ToString();
            }
            if (this.Session["xofficer"] != null)
            {
                this.log_staffID = this.Session["xofficer"].ToString();
            }
            if (this.Session["transID"] != null)
            {
                this.transID = this.Session["transID"].ToString();
            }
            this.Session["xapplication"] = this.xvid.Value;
            if (base.IsPostBack)
            {
                this.lt_state = this.t.getState(this.residence.SelectedValue);
                if (this.lt_state.Count == 0)
                {
                    this.state_row     = "1";
                    this.state_visible = "1";
                }
                this.national_class_desc.Text = this.t.getNationalClassDesc((this.national_class.SelectedIndex + 1).ToString());
            }
            else
            {
                this.residence.SelectedIndex = 0x9f;
                this.lt_nclass = this.t.getJNationalClasses();
                this.national_class_desc.Text = this.lt_nclass[0].xdescription.ToString();
            }
            this.xdesc_national_class = "1";
            if (this.rbDisclaimer.SelectedValue == "YES")
            {
                this.disclaimer_text = "1";
            }
            else
            {
                this.disclaimer_text = "0";
            }
            if (this.logo_description.SelectedValue != "2")
            {
                this.logo_text = "1";
            }
            else
            {
                this.logo_text = "";
            }
            if ((this.Session["logo_pic"] == null) && this.logo_pic.HasFile)
            {
                this.Session["logo_pic"] = this.logo_pic;
                this.lblLogoPic.Text     = this.logo_pic.FileName;
            }
            else if ((this.Session["logo_pic"] != null) && !this.logo_pic.HasFile)
            {
                this.logo_pic        = (FileUpload)this.Session["logo_pic"];
                this.lblLogoPic.Text = this.logo_pic.FileName;
            }
            else if (this.logo_pic.HasFile)
            {
                this.Session["logo_pic"] = this.logo_pic;
                this.lblLogoPic.Text     = this.logo_pic.FileName;
            }
            if ((this.Session["auth_doc"] == null) && this.auth_doc.HasFile)
            {
                this.Session["auth_doc"] = this.auth_doc;
                this.lblPoa.Text         = this.auth_doc.FileName;
            }
            else if ((this.Session["auth_doc"] != null) && !this.auth_doc.HasFile)
            {
                this.auth_doc    = (FileUpload)this.Session["auth_doc"];
                this.lblPoa.Text = this.auth_doc.FileName;
            }
            else if (this.auth_doc.HasFile)
            {
                this.Session["auth_doc"] = this.auth_doc;
                this.lblPoa.Text         = this.auth_doc.FileName;
            }
            if ((this.Session["sup_doc1"] == null) && this.sup_doc1.HasFile)
            {
                this.Session["sup_doc1"] = this.sup_doc1;
                this.lblDoc1.Text        = this.sup_doc1.FileName;
            }
            else if ((this.Session["sup_doc1"] != null) && !this.sup_doc1.HasFile)
            {
                this.sup_doc1     = (FileUpload)this.Session["sup_doc1"];
                this.lblDoc1.Text = this.sup_doc1.FileName;
            }
            else if (this.sup_doc1.HasFile)
            {
                this.Session["sup_doc1"] = this.sup_doc1;
                this.lblDoc1.Text        = this.sup_doc1.FileName;
            }
            if ((this.Session["sup_doc2"] == null) && this.sup_doc2.HasFile)
            {
                this.Session["sup_doc2"] = this.sup_doc2;
                this.lblDoc2.Text        = this.sup_doc2.FileName;
            }
            else if ((this.Session["sup_doc2"] != null) && !this.sup_doc2.HasFile)
            {
                this.sup_doc2     = (FileUpload)this.Session["sup_doc2"];
                this.lblDoc2.Text = this.sup_doc2.FileName;
            }
            else if (this.sup_doc2.HasFile)
            {
                this.Session["sup_doc2"] = this.sup_doc2;
                this.lblDoc2.Text        = this.sup_doc2.FileName;
            }
        }