示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Session["vid"]           = null;
            this.Session["amt"]           = null;
            this.Session["aid"]           = null;
            this.Session["gt"]            = null;
            this.Session["pc"]            = null;
            this.Session["agentemail"]    = null;
            this.Session["cname"]         = null;
            this.Session["agentpnumber"]  = null;
            this.Session["applicantname"] = null;
            this.Session["product_title"] = null;
            this.Session["xapplication"]  = null;
            this.Session["pwalletID"]     = null;
            this.Session["log_staffID"]   = null;
            this.Session["xapplication"]  = null;
            this.Session["log_staffID"]   = this.log_staffID;
            string serverpath = base.Server.MapPath("~/");

            if (Session["Trademark_item"] == null)
            {
                this.transID       = base.Request.Params["transID"];
                this.amt           = base.Request.Params["amt"];
                this.agent         = base.Request.Params["agent"];
                this.xgt           = base.Request.Params["xgt"];
                this.cname         = base.Request.Params["cname"].Replace("%26", "&");
                this.agentemail    = base.Request.Params["agentemail"];
                this.agentpnumber  = base.Request.Params["agentpnumber"];
                this.applicantname = base.Request.Params["applicantname"].Replace("%26", "&");
                this.product_title = base.Request.Params["product_title"].Replace("%26", "&");
            }
            else if (Session["Trademark_item"] != null)
            {
                ti      = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"];
                c_pwall = ret.getPwalletByID(ti.xmemberID);
                c_xagt  = ret.getAgentByID(c_pwall.xmemberID);

                this.transID       = ti.transID;
                this.amt           = ti.amt;
                this.agent         = c_xagt.sys_ID;
                this.xgt           = ti.xgt;
                this.cname         = c_xagt.cname;
                this.agentemail    = c_pwall.xemail;
                this.agentpnumber  = c_pwall.xmobile;
                this.applicantname = ti.applicant_name;
                this.product_title = ti.product_title;
            }

            if (((((this.transID != "") && (this.amt != "")) && ((this.agent != "") && (this.xgt != ""))) && (((this.cname != "") && (this.agentemail != "")) && ((this.agentpnumber != "") && (this.applicantname != "")))) && (this.product_title != ""))
            {
                if (this.Session["xapplication"] != null)
                {
                    this.xapplication = this.Session["xapplication"].ToString();
                    if (this.xapplication != this.transID)
                    {
                        if (this.Session["Trademark_item"] == null)
                        {
                            base.Response.Redirect("./violation.aspx");
                        }
                        else
                        {
                            Response.Redirect("./a_violation.aspx");
                        }
                    }
                }
                else
                {
                    this.Session["xapplication"] = this.transID;
                }
                this.Session["vid"]           = this.transID;
                this.Session["amt"]           = this.amt;
                this.Session["aid"]           = this.agent;
                this.Session["gt"]            = this.xgt;
                this.Session["agentemail"]    = this.agentemail;
                this.Session["cname"]         = this.cname;
                this.Session["agentpnumber"]  = this.agentpnumber;
                this.Session["applicantname"] = this.applicantname;
                this.Session["product_title"] = this.product_title;


                tm.Stage s = this.t.getStatusIDByvalidationID(this.transID.Trim());
                lt_app = t.getApplicantListByUserID(s.ID);
                lt_mi  = t.getMarkInfoByUserID(s.ID);
                lt_aos = t.getAddressServiceListByID(s.ID);
                lt_rep = t.getRepListByUserID(s.ID);
                if (this.lt_app.Count > 0)
                {
                    if ((lt_app[0].addressID != null) && (lt_app[0].addressID != "") && (lt_app[0].addressID != "0"))
                    {
                        lt_appaddy = t.getAddressByID(lt_app[0].addressID);
                    }
                }
                if (this.lt_rep.Count > 0)
                {
                    if ((lt_rep[0].addressID != null) && (lt_rep[0].addressID != "") && (lt_rep[0].addressID != "0"))
                    {
                        lt_repaddy = t.getAddressByID(lt_rep[0].addressID);
                    }
                }
                if (this.lt_mi.Count > 0)
                {
                    if ((lt_mi[0].logo_descriptionID != "2") && (lt_mi[0].logo_pic == ""))
                    {
                        islogopic = false;
                    }
                }

                if (Convert.ToInt32(s.status) > 1)
                {
                    this.status = this.t.updateIpoApplicationReferenceStatus(this.transID, this.xgt, "1");
                    Response.Redirect("./xreturn.aspx");
                }
                else if (Convert.ToInt32(s.status) == 1)
                {
                    if ((lt_app.Count == 0) || (lt_aos.Count == 0) || (lt_rep.Count == 0) || (lt_mi.Count == 0) || (lt_appaddy.Count == 0) || (lt_repaddy.Count == 0))
                    {
                        Response.Redirect("./xrefill.aspx");
                    }
                    else
                    {
                        if (islogopic == false)//Trademark is missing
                        {
                            Response.Redirect("./xrefill.aspx");
                        }
                        else
                        {
                            Response.Redirect("./xreturn.aspx");
                        }
                    }
                }
                else if ((Convert.ToInt32(s.status) == 0) || (s.status == null) || (s.status == ""))
                {
                    this.pwalletID = this.t.addPwallet(this.transID, this.agent, this.amt, this.log_staffID);
                    if (this.pwalletID != "0")
                    {
                        this.Session["pwalletID"] = this.pwalletID;
                    }
                }
            }
            else
            {
                if (this.Session["Trademark_item"] == null)
                {
                    base.Response.Redirect("http://www.iponigeria.com/userarea/dashboard");
                }
                else
                {
                    // Response.Redirect("./XPay/A/profile.aspx");
                }
            }
        }
示例#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;
            }
        }
示例#3
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;
            }
        }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Session["vid"]           = null;
            this.Session["amt"]           = null;
            this.Session["aid"]           = null;
            this.Session["gt"]            = null;
            this.Session["pc"]            = null;
            this.Session["agentemail"]    = null;
            this.Session["cname"]         = null;
            this.Session["agentpnumber"]  = null;
            this.Session["applicantname"] = null;
            this.Session["product_title"] = null;
            this.Session["xapplication"]  = null;
            this.Session["pwalletID"]     = null;
            this.Session["log_staffID"]   = null;
            this.Session["xapplication"]  = null;
            this.Session["log_staffID"]   = this.log_staffID;
            string serverpath = base.Server.MapPath("~/");

            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);

                this.transID       = ti.transID;
                this.amt           = ti.amt;
                this.agent         = c_xmem.sys_ID;
                this.xgt           = ti.xgt;
                this.cname         = c_xmem.cname;
                this.agentemail    = c_pwall.xemail;
                this.agentpnumber  = c_pwall.xmobile;
                this.applicantname = c_xmem.xname;
                this.product_title = ti.product_title;
            }

            if (((((this.transID != "") && (this.amt != "")) && ((this.agent != "") && (this.xgt != ""))) && (((this.cname != "") && (this.agentemail != "")) && ((this.agentpnumber != "") && (this.applicantname != "")))) && (this.product_title != ""))
            {
                if (this.Session["xapplication"] != null)
                {
                    this.xapplication = this.Session["xapplication"].ToString();
                    if (this.xapplication != this.transID)
                    {
                        base.Response.Redirect("./c_violation.aspx");
                    }
                }
                else
                {
                    this.Session["xapplication"] = this.transID;
                }
                this.Session["vid"]           = this.transID;
                this.Session["amt"]           = this.amt;
                this.Session["aid"]           = this.agent;
                this.Session["gt"]            = this.xgt;
                this.Session["agentemail"]    = this.agentemail;
                this.Session["cname"]         = this.cname;
                this.Session["agentpnumber"]  = this.agentpnumber;
                this.Session["applicantname"] = this.applicantname;
                this.Session["product_title"] = this.product_title;

                this.pwalletID = this.t.addPwallet(this.transID, this.agent, this.amt, this.log_staffID);
                if (this.pwalletID != "0")
                {
                    this.Session["pwalletID"] = this.pwalletID;
                }
            }
            else
            {
                base.Response.Redirect("./XPay/C/profile.aspx");
            }
        }