Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (base.Request.QueryString["cri"] != null)
     {
         this.cri = base.Request.QueryString["cri"].ToString();
     }
     if (base.Request.QueryString["x"] != null)
     {
         if (Session["pwalletID"] != null)
         {
             if (Session["pwalletID"].ToString() != "")
             {
                 this.admin = Session["pwalletID"].ToString();
             }
             else
             {
                 base.Response.Redirect("./xcontrol.aspx");
             }
         }
         else
         {
             base.Response.Redirect("./xcontrol.aspx");
         }
         this.pID    = base.Request.QueryString["x"].ToString();
         this.c_mark = this.z.getMarkInfoByUserID(this.pID);
         this.c_p    = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
         this.c_app  = this.t.getApplicantByUserID(this.c_p.ID);
         this.c_aos  = this.t.getAddressServiceByID(this.c_p.ID);
         this.c_rep  = this.t.getRepByUserID(this.c_p.ID);
         if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
         {
             this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
         }
         if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
         {
             this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
         }
         this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);
         for (int i = 0; i < this.lt_tm_office.Count; i++)
         {
             this.xcomments          = this.xcomments + "<tr>";
             this.xcomments          = this.xcomments + "<td align=\"center\" colspan=\"2\">";
             this.xcomments          = this.xcomments + "<strong>" + this.lt_tm_office[i].xcomment.ToUpper() + "</strong><br />";
             this.lt_x_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[i].xofficer);
             string xcomments = this.xcomments;
             this.xcomments = xcomments + "COMMENT BY: <strong>" + this.lt_x_admin_details.xname.ToUpper() + "( " + this.z.getRoleNameByID(this.lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br />   Date: <strong>" + this.lt_tm_office[i].reg_date.ToUpper() + "</strong>";
             this.xcomments = this.xcomments + "</td>";
             this.xcomments = this.xcomments + "</tr>";
             this.xcomments = this.xcomments + "<tr>";
             this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
             this.xcomments = this.xcomments + "&nbsp;";
             this.xcomments = this.xcomments + "</td>";
             this.xcomments = this.xcomments + "</tr>";
         }
     }
     else
     {
         base.Response.Redirect("./search_unit/searchprofile.aspx");
     }
 }
Ejemplo n.º 2
0
        protected void Verify_Click(object sender, EventArgs e)
        {
            this.succ = this.z.a_tm_office(this.c_mark.log_staff, this.admin_status, this.rbValid.SelectedValue, this.comment.Text, "", "", "", this.admin);


            if (this.succ != "0")
            {
                if (this.rbValid.SelectedValue == "kiv")
                {
                    this.pID = base.Request.QueryString["x"].ToString();

                    this.c_mark = this.z.getMarkInfoByUserID(this.pID);

                    this.c_aos = this.t.getAddressServiceByID(this.c_p.ID);
                    this.c_rep = this.t.getRepByUserID(this.c_p.ID);
                    this.c_p   = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                    String    ssss  = "The Application with Tp number <b>" + this.c_mark.reg_number + "</b> Is at Acceptance unit Kiv Folder .  Reason for the action is <br/> <em>" + this.comment.Text + "</em>";
                    String    ssss4 = "Application " + this.c_mark.reg_number + " Status";
                    Retriever pp3   = new Retriever();
                    String    ss    = pp3.addEmail(ssss, ssss4, this.c_p.applicantID, this.c_mark.log_staff);

                    //  this.z.sendemail4(this.c_aos.email1, this.c_rep.xname, this.comment.Text, this.c_mark.reg_number);
                }

                base.Response.Write("<script language=JavaScript>alert('Data updated successfully')</script>");
                base.Response.Redirect("./acceptance.aspx");
            }
            else
            {
                base.Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>");
            }
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["pwalletID"] != null)
     {
         if (Session["pwalletID"].ToString() != "")
         {
             this.admin = Session["pwalletID"].ToString();
         }
         else
         {
             base.Response.Redirect("./xcontrol.aspx");
         }
     }
     else
     {
         base.Response.Redirect("./xcontrol.aspx");
     }
     if (base.Request.QueryString["x"] != null)
     {
         this.pID          = base.Request.QueryString["x"].ToString();
         this.c_mark       = this.z.getMarkInfoByUserID(this.pID);
         this.c_p          = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
         this.c_app        = this.t.getApplicantByUserID(this.c_p.ID);
         this.c_app_addy   = this.t.getAddressClassByID(this.c_app.addressID);
         this.c_aos        = this.t.getAddressServiceByID(this.c_p.ID);
         this.c_rep        = this.t.getRepByUserID(this.c_p.ID);
         this.c_rep_addy   = this.t.getAddressClassByID(this.c_rep.addressID);
         this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);
     }
     else
     {
         base.Response.Redirect("./profilea_data.aspx");
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.serverpath = base.Server.MapPath("~/");
     if (base.Request.QueryString["x"] != null)
     {
         if (Session["pwalletID"] != null)
         {
             if (Session["pwalletID"].ToString() != "")
             {
                 this.admin = Session["pwalletID"].ToString();
             }
             else
             {
                 base.Response.Redirect("./xcontrol.aspx");
             }
         }
         else
         {
             base.Response.Redirect("./xcontrol.aspx");
         }
         this.pID    = base.Request.QueryString["x"].ToString();
         this.c_mark = this.z.getMarkInfoByUserID(this.pID);
         this.c_p    = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
         this.c_app  = this.t.getApplicantByUserID(this.c_p.ID);
         this.c_aos  = this.t.getAddressServiceByID(this.c_p.ID);
         this.c_rep  = this.t.getRepByUserID(this.c_p.ID);
         if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
         {
             this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
         }
         if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
         {
             this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
         }
         this.lt_tm_office        = this.z.getTmOfficeDetailsByID(this.c_p.ID);
         this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer);
         if (c_mark.logo_pic != "")
         {
             tm_img.ImageUrl = "./" + c_mark.logo_pic;
         }
     }
     else
     {
         base.Response.Redirect("./registrar_acpt.aspx");
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (base.Request.QueryString["0001234445"] != null)
     {
         this.vid = base.Request.QueryString["0001234445"].ToString();
         if (this.vid.Contains("OAI/TM/"))
         {
             this.vid = this.vid.Replace("OAI/TM/", "");
         }
     }
     else
     {
         base.Response.Redirect("./appstatusc.aspx");
     }
     //if (base.Request.QueryString["94384238"] != null)
     //{
     //    this.agt = base.Request.QueryString["94384238"].ToString();
     //}
     //else
     //{
     //    base.Response.Redirect("./appstatusc.aspx");
     //}
     this.pwalletID = this.t.getCheckStatusDetails2(this.vid);
     if (this.pwalletID != "")
     {
         this.c_mark  = this.t.getMarkInfoClassByUserID(this.pwalletID);
         this.c_rep   = this.t.getRepClassByUserID(this.pwalletID);
         this.c_stage = this.t.getStageClassByUserID(this.pwalletID);
         this.c_app   = this.t.getApplicantClassByID(this.pwalletID);
         if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
         {
             this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
         }
         if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
         {
             this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
         }
     }
     else
     {
         // base.Response.Redirect("./appstatusc.aspx");
     }
 }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["vid"] != null)
     {
         this.vid = Session["vid"].ToString();
     }
     if (Session["amt"] != null)
     {
         this.amt = Session["amt"].ToString();
     }
     if (Session["aid"] != null)
     {
         this.aid = Session["aid"].ToString();
     }
     if (Session["gt"] != null)
     {
         this.gt = Session["gt"].ToString();
     }
     this.pwalletID = this.t.getPwalletID(this.vid);
     if (this.pwalletID != "")
     {
         this.c_mark                = this.t.getMarkInfoClassByUserID(this.pwalletID);
         this.c_rep                 = this.t.getRepClassByUserID(this.pwalletID);
         this.c_stage               = this.t.getStageClassByUserID(this.pwalletID);
         this.c_app                 = this.t.getApplicantClassByID(this.pwalletID);
         this.c_app_addy            = this.t.getAddressClassByID(this.c_app.addressID);
         Session["xserviceaddress"] = null;
         Session["xrepresentative"] = null;
         Session["xmarkinfo"]       = null;
         Session["xapplication"]    = null;
         Session["vid"]             = null;
         Session["amt"]             = null;
         Session["aid"]             = null;
         Session["g"]               = null;
         Session["pc"]              = null;
     }
 }
Ejemplo n.º 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.serverpath = base.Server.MapPath("~/");
            if (base.Request.QueryString["x"] != null)
            {
                Label44.Text = "<br/>PLEASE NOTE THAT THIS IS NOT AN ORIGINAL CERTIFICATE , PRINT THIS COPY AND PRESENT IT TO THE REGISTRY TO COLLECT YOUR ORIGINAL  CERTIFICATE.<br/> CONTACT THE REGISTRY FOR MORE INFORMATION ON HOW TO COLLECT YOUR ORIGINAL COPY. WWW.IPONIGERIA.COM.";
                Label33.Text = "<br/>PLEASE NOTE THAT THIS IS NOT AN ORIGINAL  CERTIFICATE , PRINT THIS COPY AND PRESENT IT TO THE REGISTRY TO COLLECT YOUR ORIGINAL CERTIFICATE .<br/> CONTACT THE REGISTRY FOR MORE INFORMATION ON HOW TO COLLECT YOUR ORIGINAL COPY. WWW.IPONIGERIA.COM.";

                //if (Session["pwalletID"] != null)
                //{
                //    if (Session["pwalletID"].ToString() != "")
                //    {
                //        this.admin = Session["pwalletID"].ToString();
                //        // xname.Value = this.admin;
                //    }
                //    else
                //    {
                //        base.Response.Redirect("./xcontrol.aspx");
                //    }
                //}
                //else
                //{
                //    base.Response.Redirect("./xcontrol.aspx");
                //}
                this.pID = base.Request.QueryString["x"].ToString();

                this.c_mark = this.z.getMarkInfoByUserID(this.pID);
                //  xname2.Value = this.c_mark.log_staff;
                this.c_p   = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                this.c_app = this.t.getApplicantByUserID(this.c_p.ID);
                this.c_aos = this.t.getAddressServiceByID(this.c_p.ID);
                this.c_rep = this.t.getRepByUserID(this.c_p.ID);

                xrtm.Value = c_mark.reg_number;

                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
                this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);  //ToString("yyyy-MM-dd")
                                                                                 //  string day =getDayFormat( Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).ToString("dd") );
                string day = getDayFormat(Convert.ToString(Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).Day));


                sealed_date = Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).ToString("dd") + day + " " + Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).ToString("MMMM, yyyy");
                this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer);

                if (c_mark.logo_pic != "")
                {
                    tm_img.ImageUrl = "./" + c_mark.logo_pic;

                    if (File.Exists(serverpath + "\\admin\\tm\\" + c_mark.logo_pic))
                    {
                        tm_img.Height = new Unit(70, UnitType.Pixel);
                        tm_img.Width  = new Unit(180, UnitType.Pixel);
                        try
                        {
                            FileStream           st      = new FileStream(serverpath + "\\admin\\tm\\" + c_mark.logo_pic, FileMode.Open, FileAccess.Read);
                            System.Drawing.Image new_img = System.Drawing.Image.FromStream(st);
                            string ht = new_img.Height.ToString();
                            string wt = new_img.Width.ToString();
                            if ((ht != "") && (wt != "") && (ht != null) && (wt != null))
                            {
                                if (Convert.ToInt32(ht) > Convert.ToInt32(wt))
                                {
                                    //  tm_img.Height = new Unit(320, UnitType.Pixel);
                                    //  tm_img.Width = new Unit(240, UnitType.Pixel);

                                    //  tm_img.Height = new Unit(180, UnitType.Pixel);
                                    //  tm_img.Width = new Unit(120, UnitType.Pixel);

                                    //  tm_img.Height = new Unit(70, UnitType.Pixel);
                                    //  tm_img.Width = new Unit(170, UnitType.Pixel);
                                }
                                else
                                {
                                    // tm_img.Height = new Unit(240, UnitType.Pixel);
                                    // tm_img.Width = new Unit(320, UnitType.Pixel);


                                    //    tm_img.Height = new Unit(70, UnitType.Pixel);
                                    //    tm_img.Width = new Unit(190, UnitType.Pixel);
                                }
                            }
                            else
                            {
                                // tm_img.Height = new Unit(120, UnitType.Pixel);
                                // tm_img.Width = new Unit(120, UnitType.Pixel);
                                tm_img.Visible = false;
                            }
                        }
                        catch (Exception ex)
                        {
                            tm_img.Visible = false;
                        }
                    }
                    else
                    {
                        // tm_img.Height = new Unit(120, UnitType.Pixel);
                        // tm_img.Width = new Unit(120, UnitType.Pixel);
                        tm_img.Visible = false;
                    }
                }
            }
            else
            {
                base.Response.Redirect("./registrar_c.aspx");
            }
        }
Ejemplo n.º 8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Verify.Visible = false;
            if (this.rbValid.SelectedValue == "Opposed")
            {
                this.admin_status = "6";
                Verify.Visible    = true;
            }
            else if (this.rbValid.SelectedValue == "Not Opposed")
            {
                this.admin_status = "7";
                Verify.Visible    = true;
            }
            if (base.Request.QueryString["x"] != null)
            {
                if (Session["pwalletID"] != null)
                {
                    if (Session["pwalletID"].ToString() != "")
                    {
                        this.admin = Session["pwalletID"].ToString();
                    }
                    else
                    {
                        base.Response.Redirect("./xcontrol.aspx");
                    }
                }
                else
                {
                    base.Response.Redirect("./xcontrol.aspx");
                }
                this.pID      = base.Request.QueryString["x"].ToString();
                this.swallet  = this.t.getSwalletByID(this.pID);
                this.swallet2 = this.t.getSwalletByID2(this.pID);
                this.c_mark   = this.z.getMarkInfoByUserID(this.pID);
                this.c_p      = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                this.c_app    = this.t.getApplicantByUserID(this.c_p.ID);
                this.c_aos    = this.t.getAddressServiceByID(this.c_p.ID);
                this.c_rep    = this.t.getRepByUserID(this.c_p.ID);
                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
                this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);
                for (int i = 0; i < this.lt_tm_office.Count; i++)
                {
                    this.xcomments          = this.xcomments + "<tr>";
                    this.xcomments          = this.xcomments + "<td align=\"center\" colspan=\"2\">";
                    this.xcomments          = this.xcomments + "<strong>" + this.lt_tm_office[i].xcomment.ToUpper() + "</strong><br />";
                    this.lt_x_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[i].xofficer);
                    string xcomments = this.xcomments;
                    this.xcomments = xcomments + "COMMENT BY: <strong>" + this.lt_x_admin_details.xname.ToUpper() + "( " + this.z.getRoleNameByID(this.lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br />   Date: <strong>" + this.lt_tm_office[i].reg_date.ToUpper() + "</strong>";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                    if (lt_tm_office[i].xdoc1 != "")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "View Document 1: <a href=" + lt_tm_office[i].xdoc1 + " target='_blank'>View</a>";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }

                    if (lt_tm_office[i].xdoc2 != "")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "View Document 2: <a href=" + lt_tm_office[i].xdoc2 + " target='_blank'>View</a>";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }

                    if (lt_tm_office[i].xdoc3 != "")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "View Document 3: <a href=" + lt_tm_office[i].xdoc3 + " target='_blank'>View</a>";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }
                    this.xcomments = this.xcomments + "<tr>";
                    this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                    this.xcomments = this.xcomments + "&nbsp;";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                    if (this.lt_tm_office[i].admin_status == "3")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "--- SUPPORTING SEARCH DOCUMENTS ---";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td align=\"right\">";
                        this.xcomments = this.xcomments + "Attached Document:";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "<td>";
                        if ((this.swallet.search_str != "") && (this.swallet.search_str != null))
                        {
                            this.xcomments = this.xcomments + "<a href=view_searcho.aspx?x=" + this.pID + " target='_blank'>View</a>";
                        }
                        else
                        {
                            this.xcomments = this.xcomments + "NONE";
                        }
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "&nbsp;";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }

                    //////////
                    if (this.lt_tm_office[i].admin_status == "33")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "--- SUPPORTING SEARCH 2 DOCUMENTS ---";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td align=\"right\">";
                        this.xcomments = this.xcomments + "Attached Document:";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "<td>";
                        if ((this.swallet2.search_str != "") && (this.swallet2.search_str != null))
                        {
                            this.xcomments = this.xcomments + "<a href=view_searcho2.aspx?x=" + this.pID + " target='_blank'>View</a>";
                        }
                        else
                        {
                            this.xcomments = this.xcomments + "NONE";
                        }

                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";

                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "&nbsp;";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    } //////////
                }
            }
            else
            {
                base.Response.Redirect("./opposition.aspx");
            }
        }
Ejemplo n.º 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (Session["pwalletID"] != null)
            //{
            //    if (Session["pwalletID"].ToString() != "")
            //    {
            //        this.admin = Session["pwalletID"].ToString();
            //    }
            //    else
            //    {
            //        //   base.Response.Redirect("./xcontrol.aspx");
            //    }
            //}
            //else
            //{
            //    //   base.Response.Redirect("./xcontrol.aspx");
            //}

            this.serverpath = base.Server.MapPath("~/");
            if (base.Request.QueryString["0001234445"] != null)
            {
                this.vid = base.Request.QueryString["0001234445"].ToString();
                if (this.vid.Contains("OAI/TM/"))
                {
                    this.vid = this.vid.Replace("OAI/TM/", "");
                }
            }
            else
            {
                //  base.Response.Redirect("./xcontrol.aspx");
            }
            if (base.Request.QueryString["94384238"] != null)
            {
                this.agt = base.Request.QueryString["94384238"].ToString();
            }
            else
            {
                // base.Response.Redirect("./xcontrol.aspx");
            }
            this.pwalletID = this.t.getCheckStatusDetails(this.vid, this.agt);
            if (this.pwalletID != "")
            {
                this.c_mark  = this.t.getMarkInfoClassByUserID(this.pwalletID);
                this.c_rep   = this.t.getRepClassByUserID(this.pwalletID);
                this.c_stage = this.t.getStageClassByUserID(this.pwalletID);
                this.c_app   = this.t.getApplicantClassByID(this.pwalletID);
                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }

                if (c_mark.logo_pic != "")
                {
                    tm_img.ImageUrl = "../../admin/tm/" + c_mark.logo_pic;
                }
            }
            else
            {
                //  base.Response.Redirect("./xcontrol.aspx");
            }
        }
Ejemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.serverpath = base.Server.MapPath("~/");
            if (Session["vid"] != null)
            {
                this.vid = Session["vid"].ToString();
            }
            if (Session["amt"] != null)
            {
                this.amt = Session["amt"].ToString();
            }
            if (Session["aid"] != null)
            {
                this.aid = Session["aid"].ToString();
            }
            if (Session["gt"] != null)
            {
                this.gt = Session["gt"].ToString();
            }
            this.pwalletID = this.t.getPwalletID(this.vid);
            if (this.pwalletID != "")
            {
                this.c_mark  = this.t.getMarkInfoClassByUserID(this.pwalletID);
                this.c_rep   = this.t.getRepClassByUserID(this.pwalletID);
                this.c_stage = this.t.getStageClassByUserID(this.pwalletID);
                this.c_app   = this.t.getApplicantClassByID(this.pwalletID);
                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
                if (c_mark.logo_pic != "")
                {
                    tm_img.ImageUrl = "./admin/tm/" + c_mark.logo_pic;

                    //if (File.Exists(serverpath + "\\admin\\tm\\" + c_mark.logo_pic))
                    //{
                    //    tm_img.Height = new Unit(120, UnitType.Pixel);
                    //    tm_img.Width = new Unit(120, UnitType.Pixel);
                    //try
                    //{
                    //    FileStream st = new FileStream(serverpath + "\\admin\\tm\\" + c_mark.logo_pic, FileMode.Open, FileAccess.Read);
                    //    System.Drawing.Image new_img = System.Drawing.Image.FromStream(st);
                    //    string ht = new_img.Height.ToString();
                    //    string wt = new_img.Width.ToString();
                    //    if ((ht != "") && (wt != "") && (ht != null) && (wt != null))
                    //    {

                    //        if (Convert.ToInt32(ht) > Convert.ToInt32(wt))
                    //        {
                    //            tm_img.Height = new Unit(320, UnitType.Pixel);
                    //            tm_img.Width = new Unit(240, UnitType.Pixel);
                    //        }
                    //        else
                    //        {
                    //            tm_img.Height = new Unit(240, UnitType.Pixel);
                    //            tm_img.Width = new Unit(320, UnitType.Pixel);
                    //        }
                    //    }
                    //    else
                    //    {
                    //        // tm_img.Height = new Unit(120, UnitType.Pixel);
                    //        // tm_img.Width = new Unit(120, UnitType.Pixel);
                    //        tm_img.Visible = false;
                    //    }
                    //}
                    //catch (Exception ex)
                    //{
                    //    tm_img.Visible = false;
                    //}
                    //}
                    //else
                    //{
                    //    // tm_img.Height = new Unit(120, UnitType.Pixel);
                    //    // tm_img.Width = new Unit(120, UnitType.Pixel);
                    //    tm_img.Visible = false;
                    //}
                }

                Session["xserviceaddress"] = null;
                Session["xrepresentative"] = null;
                Session["xmarkinfo"]       = null;
                Session["xapplication"]    = null;
                Session["vid"]             = null;
                Session["amt"]             = null;
                Session["aid"]             = null;
                Session["g"]  = null;
                Session["pc"] = null;
            }
        }
Ejemplo n.º 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (base.Request.QueryString["x"] != null)
     {
         if (Session["pwalletID"] != null)
         {
             if (Session["pwalletID"].ToString() != "")
             {
                 this.admin = Session["pwalletID"].ToString();
             }
             else
             {
                 base.Response.Redirect("./xcontrol.aspx");
             }
         }
         else
         {
             base.Response.Redirect("./xcontrol.aspx");
         }
         this.pID    = base.Request.QueryString["x"].ToString();
         this.c_mark = this.z.getMarkInfoByUserID(this.pID);
         this.c_p    = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
         this.c_app  = this.t.getApplicantByUserID(this.c_p.ID);
         this.c_aos  = this.t.getAddressServiceByID(this.c_p.ID);
         this.c_rep  = this.t.getRepByUserID(this.c_p.ID);
         if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
         {
             this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
         }
         if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
         {
             this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
         }
         if (c_p.applicantID != "CLD/SA/22")
         {
             this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);
             if (this.lt_tm_office.Count > 0)
             {
                 if (this.lt_tm_office[0].xofficer != "")
                 {
                     this.lt_tm_verification_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer);
                 }
             }
             if (this.lt_tm_office.Count > 1)
             {
                 if (this.lt_tm_office[1].xofficer != "")
                 {
                     this.lt_tm_search_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[1].xofficer);
                 }
             }
             if (this.lt_tm_office.Count > 2)
             {
                 if (this.lt_tm_office[2].xofficer != "")
                 {
                     this.lt_tm_examination_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[2].xofficer);
                 }
             }
             if (this.lt_tm_office.Count > 3)
             {
                 if (this.lt_tm_office[3].xofficer != "")
                 {
                     this.lt_tm_acceptance_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[3].xofficer);
                 }
             }
         }
     }
     else
     {
         base.Response.Redirect("./publication.aspx");
     }
 }
Ejemplo n.º 12
0
        protected void SearchApplicant_Click(object sender, EventArgs e)
        {
            if (txt_search.Text != "")
            {
                try
                {
                    succ_msg = "0";
                    string c_id = t.getPwalletID(txt_search.Text);
                    if (Convert.ToInt32(c_id) > 0)
                    {
                        c_pwall = t.getStageClassByUserID(c_id);
                        int vstatus = Convert.ToInt32(c_pwall.status);
                        if (c_pwall.data_status == "Fresh" || c_pwall.data_status == "Valid" || c_pwall.data_status == "Re-conduct search" || c_pwall.data_status == "Search Conducted" || c_pwall.data_status == "Search 2 Conducted" || c_pwall.data_status == "Re-examine" || c_pwall.data_status == "Registrable" || vstatus <= 5 || ((c_pwall.data_status == "Kiv") && (Convert.ToInt32(c_pwall.status) == 14)))
                        {
                        }

                        else
                        {
                            Page.ClientScript.RegisterStartupScript(this.GetType(), "showDialogue", "showDialogue('" + "Sorry You Cannot Edit Application At this Stage" + "');", true);
                            return;
                        }
                        if (Convert.ToInt32(c_pwall.ID) > 0)
                        {
                            Session["c_pwall"] = c_pwall;
                            c_app  = t.getApplicantClassByID(c_id); Session["c_app"] = c_app;
                            c_mark = t.getMarkInfoClassByUserID(c_id); Session["c_mark"] = c_mark;
                            c_aos  = t.getAddressServiceByID(c_id); Session["c_aos"] = c_aos;
                            c_rep  = t.getRepClassByUserID(c_id); Session["c_rep"] = c_rep;
                            if (Convert.ToInt32(c_app.ID) > 0)
                            {
                                c_app_addy = t.getAddressClassByID(c_app.addressID); Session["c_app_addy"] = c_app_addy;
                            }
                            if (Convert.ToInt32(c_rep.ID) > 0)
                            {
                                c_rep_addy = t.getAddressClassByID(c_rep.addressID); Session["c_rep_addy"] = c_rep_addy;
                            }

                            xname.Text      = c_app.xname;
                            xaddress.Text   = c_app_addy.street;
                            xtelephone.Text = c_app_addy.telephone1;
                            xemail.Text     = c_app_addy.email1;
                            try
                            {
                                nationality.SelectedIndex = Convert.ToInt32(c_app.nationality) - 1;
                            }
                            catch (Exception ee)
                            {
                            }
                            try
                            {
                                residence.SelectedIndex = Convert.ToInt32(c_app_addy.countryID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }
                            try
                            {
                                xselectState.SelectedIndex = Convert.ToInt32(c_app_addy.stateID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }

                            txt_rtm.Text                   = c_pwall.rtm;
                            curtime.Value                  = c_pwall.reg_date;
                            title_of_product.Text          = c_mark.product_title;
                            nice_class_desc.Text           = c_mark.nice_class_desc;
                            txt_discalimer.Text            = c_mark.disclaimer;
                            TextBox1.Text                  = c_mark.reg_number;
                            tmType.SelectedIndex           = Convert.ToInt32(c_mark.tm_typeID) - 1;
                            logo_description.SelectedIndex = Convert.ToInt32(c_mark.logo_descriptionID) - 1;
                            national_class.SelectedIndex   = Convert.ToInt32(c_mark.national_classID) - 1;

                            aos_xaddress.Text   = c_aos.street;
                            aos_xtelephone.Text = c_aos.telephone1;
                            aos_xemail.Text     = c_aos.email1;
                            try
                            {
                                aos_xselectState.SelectedIndex = Convert.ToInt32(c_aos.stateID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }

                            xcode.Text          = c_rep.agent_code;
                            rep_xname.Text      = c_rep.xname;
                            rep_address.Text    = c_rep_addy.street;
                            rep_xtelephone.Text = c_rep_addy.telephone1;
                            rep_xemail.Text     = c_rep_addy.email1;
                            try
                            {
                                rep_nationality.SelectedIndex = Convert.ToInt32(c_rep.nationality) - 1;
                            }
                            catch (Exception ee)
                            {
                            }
                            try
                            {
                                xselectRepState.SelectedIndex = Convert.ToInt32(c_rep_addy.stateID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }

                            ///application
                            Session["showsearch"] = 1; showsearch = 1;
                            if (logo_description.SelectedItem.Value != "2")
                            {
                                logo_pic_text = "1";
                            }
                            else
                            {
                                logo_pic_text = "0";
                            }
                        }
                    }
                }
                catch (Exception ee)
                {
                }
            }
        }
Ejemplo n.º 13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Verify.Visible = false;
            if (this.rbValid.SelectedValue == "Accepted")
            {
                this.admin_status = "5";
                Verify.Visible    = true;
            }
            else if (this.rbValid.SelectedValue == "Refused")
            {
                this.admin_status = "4";
                Verify.Visible    = true;
            }
            else if (this.rbValid.SelectedValue == "Re-examine")
            {
                this.admin_status = "3";
                Verify.Visible    = true;
            }
            else if (this.rbValid.SelectedValue == "kiv")
            {
                this.admin_status = "5";
                Verify.Visible    = true;
            }
            else if (this.rbValid.SelectedValue == "Withdraw")
            {
                this.admin_status = "5";
                Verify.Visible    = true;
            }

            this.serverpath = base.Server.MapPath("~/");
            string keydir = serverpath + "Handlers\\bf.kez";

            if (File.Exists(keydir))
            {
                StreamReader streamReader = new StreamReader(keydir, true);
                file_string = streamReader.ReadToEnd();
                streamReader.Close();
                if (file_string != null)
                {
                    string bitStrengthString = file_string.Substring(0, file_string.IndexOf("</BitStrength>") + 14);
                    file_string = file_string.Replace(bitStrengthString, "");
                }
            }

            Verify.Visible = false;


            if (base.Request.QueryString["x"] != null)
            {
                if (Session["pwalletID"] != null)
                {
                    if (Session["pwalletID"].ToString() != "")
                    {
                        this.admin = Session["pwalletID"].ToString();
                    }
                    else
                    {
                        base.Response.Redirect("./xcontrol.aspx");
                    }
                }
                else
                {
                    base.Response.Redirect("./xcontrol.aspx");
                }
                this.pID      = base.Request.QueryString["x"].ToString();
                this.swallet  = this.t.getSwalletByID(this.pID);
                this.swallet2 = this.t.getSwalletByID2(this.pID);
                this.c_mark   = this.z.getMarkInfoByUserID(this.pID);
                this.c_p      = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                this.c_app    = this.t.getApplicantByUserID(this.c_p.ID);
                this.c_aos    = this.t.getAddressServiceByID(this.c_p.ID);
                this.c_rep    = this.t.getRepByUserID(this.c_p.ID);
                xname.Value   = c_p.applicantID;
                //  xname2.Value = c_app.xname;
                xname2.Value = c_mark.product_title;

                xname3.Value = c_mark.reg_number;

                xname4.Value = c_p.validationID;
                xname5.Value = c_mark.log_staff;

                xname6.Value = c_p.applicantID;
                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
                this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);
                for (int i = 0; i < this.lt_tm_office.Count; i++)
                {
                    this.xcomments          = this.xcomments + "<tr>";
                    this.xcomments          = this.xcomments + "<td align=\"center\" colspan=\"2\">";
                    this.xcomments          = this.xcomments + "<strong>" + this.lt_tm_office[i].xcomment.ToUpper() + "</strong><br />";
                    this.lt_x_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[i].xofficer);
                    string xcomments = this.xcomments;
                    this.xcomments = xcomments + "COMMENT BY: <strong>" + this.lt_x_admin_details.xname.ToUpper() + "( " + this.z.getRoleNameByID(this.lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br />   Date: <strong>" + this.lt_tm_office[i].reg_date.ToUpper() + "</strong>";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                    if (lt_tm_office[i].xdoc1 != "")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "View Document 1: <a href=" + lt_tm_office[i].xdoc1 + " target='_blank'>View</a>";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }

                    if (lt_tm_office[i].xdoc2 != "")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "View Document 2: <a href=" + lt_tm_office[i].xdoc2 + " target='_blank'>View</a>";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }

                    if (lt_tm_office[i].xdoc3 != "")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "View Document 3: <a href=" + lt_tm_office[i].xdoc3 + " target='_blank'>View</a>";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }
                    this.xcomments = this.xcomments + "<tr>";
                    this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                    this.xcomments = this.xcomments + "&nbsp;";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                    if (this.lt_tm_office[i].admin_status == "3")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "--- SUPPORTING SEARCH DOCUMENTS ---";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td align=\"right\">";
                        this.xcomments = this.xcomments + "Attached Document:";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "<td>";
                        if ((this.swallet.search_str != "") && (this.swallet.search_str != null))
                        {
                            this.xcomments = this.xcomments + "<a href=view_searcho.aspx?x=" + this.pID + " target='_blank'>View</a>";
                        }
                        else
                        {
                            this.xcomments = this.xcomments + "NONE";
                        }
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "&nbsp;";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    }

                    //////////
                    if (this.lt_tm_office[i].admin_status == "33")
                    {
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "--- SUPPORTING SEARCH 2 DOCUMENTS ---";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td align=\"right\">";
                        this.xcomments = this.xcomments + "Attached Document:";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "<td>";
                        if ((this.swallet2.search_str != "") && (this.swallet2.search_str != null))
                        {
                            this.xcomments = this.xcomments + "<a href=view_searcho2.aspx?x=" + this.pID + " target='_blank'>View</a>";
                        }
                        else
                        {
                            this.xcomments = this.xcomments + "NONE";
                        }

                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";

                        this.xcomments = this.xcomments + "<tr>";
                        this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">";
                        this.xcomments = this.xcomments + "&nbsp;";
                        this.xcomments = this.xcomments + "</td>";
                        this.xcomments = this.xcomments + "</tr>";
                    } //////////
                }
            }
            else
            {
                base.Response.Redirect("./acceptance.aspx");
            }
        }
Ejemplo n.º 14
0
        protected void SearchApplicant_Click(object sender, EventArgs e)
        {
            if (txt_search.Text != "")
            {
                try
                {
                    succ_msg = "0";
                    string c_id = t.getPwalletID(txt_search.Text);
                    if (Convert.ToInt32(c_id) > 0)
                    {
                        c_pwall = t.getStageClassByUserID(c_id);

                        if (Convert.ToInt32(c_pwall.ID) > 0)
                        {
                            Session["c_pwall"] = c_pwall;
                            c_app  = t.getApplicantClassByID(c_id); Session["c_app"] = c_app;
                            c_mark = t.getMarkInfoClassByUserID(c_id); Session["c_mark"] = c_mark;
                            c_aos  = t.getAddressServiceByID(c_id); Session["c_aos"] = c_aos;
                            c_rep  = t.getRepClassByUserID(c_id); Session["c_rep"] = c_rep;
                            if (Convert.ToInt32(c_app.ID) > 0)
                            {
                                c_app_addy = t.getAddressClassByID(c_app.addressID); Session["c_app_addy"] = c_app_addy;
                            }
                            if (Convert.ToInt32(c_rep.ID) > 0)
                            {
                                c_rep_addy = t.getAddressClassByID(c_rep.addressID); Session["c_rep_addy"] = c_rep_addy;
                            }

                            xname.Text      = c_app.xname;
                            xaddress.Text   = c_app_addy.street;
                            xtelephone.Text = c_app_addy.telephone1;
                            xemail.Text     = c_app_addy.email1;
                            try
                            {
                                nationality.SelectedIndex = Convert.ToInt32(c_app.nationality) - 1;
                            }
                            catch (Exception ee)
                            {
                            }
                            try
                            {
                                residence.SelectedIndex = Convert.ToInt32(c_app_addy.countryID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }
                            try
                            {
                                xselectState.SelectedIndex = Convert.ToInt32(c_app_addy.stateID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }

                            txt_rtm.Text                   = c_pwall.rtm;
                            curtime.Value                  = c_pwall.reg_date;
                            title_of_product.Text          = c_mark.product_title;
                            nice_class_desc.Text           = c_mark.nice_class_desc;
                            txt_discalimer.Text            = c_mark.disclaimer;
                            TextBox1.Text                  = c_mark.reg_number;
                            tmType.SelectedIndex           = Convert.ToInt32(c_mark.tm_typeID) - 1;
                            logo_description.SelectedIndex = Convert.ToInt32(c_mark.logo_descriptionID) - 1;
                            national_class.SelectedIndex   = Convert.ToInt32(c_mark.national_classID) - 1;

                            aos_xaddress.Text   = c_aos.street;
                            aos_xtelephone.Text = c_aos.telephone1;
                            aos_xemail.Text     = c_aos.email1;
                            try
                            {
                                aos_xselectState.SelectedIndex = Convert.ToInt32(c_aos.stateID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }

                            xcode.Text          = c_rep.agent_code;
                            rep_xname.Text      = c_rep.xname;
                            rep_address.Text    = c_rep_addy.street;
                            rep_xtelephone.Text = c_rep_addy.telephone1;
                            rep_xemail.Text     = c_rep_addy.email1;
                            try
                            {
                                rep_nationality.SelectedIndex = Convert.ToInt32(c_rep.nationality) - 1;
                            }
                            catch (Exception ee)
                            {
                            }
                            try
                            {
                                xselectRepState.SelectedIndex = Convert.ToInt32(c_rep_addy.stateID) - 1;
                            }
                            catch (Exception ee)
                            {
                            }

                            ///application
                            Session["showsearch"] = 1; showsearch = 1;
                            if (logo_description.SelectedItem.Value != "2")
                            {
                                logo_pic_text = "1";
                            }
                            else
                            {
                                logo_pic_text = "0";
                            }
                        }
                    }
                }
                catch (Exception ee)
                {
                }
            }
        }
Ejemplo n.º 15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Verify.Visible = false;
            if (this.rbValid.SelectedValue == "Valid")
            {
                this.admin_status = "2";
                Verify.Visible    = true;
            }
            else if (this.rbValid.SelectedValue == "Invalid")
            {
                this.admin_status = "1";
                Verify.Visible    = true;
            }

            else if (this.rbValid.SelectedValue == "Kiv")
            {
                this.admin_status = "14";
                Verify.Visible    = true;
            }
            if (Session["pwalletID"] != null)
            {
                if (Session["pwalletID"].ToString() != "")
                {
                    this.admin = Session["pwalletID"].ToString();
                }
                else
                {
                    base.Response.Redirect("./xcontrol.aspx");
                }
            }
            else
            {
                base.Response.Redirect("./xcontrol.aspx");
            }
            if (base.Request.QueryString["x"] != null)
            {
                this.pID    = base.Request.QueryString["x"].ToString();
                this.c_mark = this.z.getMarkInfoByUserID(this.pID);
                this.c_p    = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                this.c_app  = this.t.getApplicantByUserID(this.c_p.ID);
                this.c_aos  = this.t.getAddressServiceByID(this.c_p.ID);
                this.c_rep  = this.t.getRepByUserID(this.c_p.ID);



                // MarkInfo markinfo = getMarkInfoByUserID(pwalletID);

                //  string repname = getAgentInfo(pwalletID).Agent_Name;
                // string repemail = getAgentInfo(pwalletID).Email;
                // sendemail2(repname, markinfo, repemail, xcomment, admin_status, data_status);



                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
            }
            else
            {
                base.Response.Redirect("./verify_data.aspx");
            }
        }
Ejemplo n.º 16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.serverpath = base.Server.MapPath("~/");
            if (base.Request.QueryString["x"] != null)
            {
                //if (Session["pwalletID"] != null)
                //{
                //    if (Session["pwalletID"].ToString() != "")
                //    {
                //        this.admin = Session["pwalletID"].ToString();
                //    }
                //    else
                //    {
                //        base.Response.Redirect("./xcontrol.aspx");
                //    }
                //}
                //else
                //{
                //    base.Response.Redirect("./xcontrol.aspx");
                //}

                if (!this.IsPostBack)
                {
                    //string script = "document.getElementById('bgMark').style.background = \"url(\" + document.getElementById('"
                    //+ imgWaterMark.ClientID + "').src + \")  0 20  repeat \";";
                    //if (ScriptManager.GetCurrent(this.Page) == null)
                    //    Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "block", script, true);
                    //else
                    //    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "block", script, true);

                    string ID = "test";
                    if (base.Request.QueryString["x2"] != null)
                    {
                        //  imgWaterMark.ImageUrl = ResolveUrl("~") + string.Format("Handlers/WaterMarks.ashx?id={0}", ID);
                        pp7.BackImageUrl = ResolveUrl("~") + string.Format("Handlers/WaterMarks.ashx?id={0}", ID);
                    }
                }



                this.pID    = base.Request.QueryString["x"].ToString();
                this.c_mark = this.z.getMarkInfoByUserID(this.pID);
                this.c_p    = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                this.c_app  = this.t.getApplicantByUserID(this.c_p.ID);
                this.c_aos  = this.t.getAddressServiceByID(this.c_p.ID);
                this.c_rep  = this.t.getRepByUserID(this.c_p.ID);
                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
                this.lt_tm_office        = this.z.getTmOfficeDetailsByID(this.c_p.ID);
                this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer);
                xreason = lt_tm_office[lt_tm_office.Count - 1].xcomment;
                if (c_mark.logo_pic != "")
                {
                    tm_img.ImageUrl = "./" + c_mark.logo_pic;

                    //added
                    //if (File.Exists("./" + c_mark.logo_pic))
                    ////    if (File.Exists(serverpath + "\\admin\\tm\\" + c_mark.logo_pic))
                    //{
                    //    // tm_img.Height = new Unit(120, UnitType.Pixel);
                    //    // tm_img.Width = new Unit(120, UnitType.Pixel);



                    //    tm_img.Height = new Unit(200, UnitType.Pixel);
                    //    tm_img.Width = new Unit(141, UnitType.Pixel);
                    //    try
                    //    {
                    //        FileStream st = new FileStream(serverpath + "\\admin\\tm\\" + c_mark.logo_pic, FileMode.Open, FileAccess.Read);
                    //        System.Drawing.Image new_img = System.Drawing.Image.FromStream(st);
                    //        string ht = new_img.Height.ToString();
                    //        string wt = new_img.Width.ToString();
                    //        if ((ht != "") && (wt != "") && (ht != null) && (wt != null))
                    //        {

                    //            if (Convert.ToInt32(ht) > Convert.ToInt32(wt))
                    //            {
                    //               // tm_img.Height = new Unit(320, UnitType.Pixel);
                    //               // tm_img.Width = new Unit(240, UnitType.Pixel);

                    //                tm_img.Height = new Unit(200, UnitType.Pixel);
                    //                tm_img.Width = new Unit(141, UnitType.Pixel);
                    //            }
                    //            else
                    //            {
                    //               // tm_img.Height = new Unit(240, UnitType.Pixel);
                    //               // tm_img.Width = new Unit(320, UnitType.Pixel);

                    //                tm_img.Height = new Unit(141, UnitType.Pixel);
                    //                tm_img.Width = new Unit(200, UnitType.Pixel);
                    //            }
                    //        }
                    //        else
                    //        {
                    //            // tm_img.Height = new Unit(120, UnitType.Pixel);
                    //            // tm_img.Width = new Unit(120, UnitType.Pixel);
                    //            tm_img.Visible = false;
                    //        }
                    //    }
                    //    catch (Exception ex)
                    //    {
                    //        tm_img.Visible = false;
                    //    }
                    //}
                    //else
                    //{
                    //    // tm_img.Height = new Unit(120, UnitType.Pixel);
                    //    // tm_img.Width = new Unit(120, UnitType.Pixel);
                    //    tm_img.Visible = false;
                    //}

                    //added
                }
            }
            else
            {
                base.Response.Redirect("./rejection_slip.aspx");
            }
        }
Ejemplo n.º 17
0
 protected void Save_Click(object sender, EventArgs e)
 {
     if (this.xref.Text != "")
     {
         if (this.xref.Text.Contains("OAI/TM/"))
         {
             this.xref.Text = this.xref.Text.Replace("OAI/TM/", "");
         }
         this.r     = this.xref.Text.Trim();
         this.lt_pw = this.t.getStageByClientIDAcc(this.xref.Text);
         if (this.lt_pw.Count != 0)
         {
             Session["xvid"]       = this.xref.Text.Trim();
             this.lt_mi            = this.t.getMarkInfoByUserID(this.lt_pw[0].ID);
             this.lt_rep           = this.t.getRepByUserID(this.lt_pw[0].ID);
             Session["agent_code"] = lt_rep.agent_code;
             if (this.lt_pw[0].status == "1")
             {
                 this.status = "Verification";
                 if (lt_pw[0].data_status == "Fresh")
                 {
                     data_status = "Untreated";
                 }
             }
             if (this.lt_pw[0].status == "2")
             {
                 this.status = "Search";
                 if (lt_pw[0].data_status == "Re-conduct search")
                 {
                     data_status = "being re-conducted";
                 }
             }
             if (this.lt_pw[0].status == "22")
             {
                 this.status = "Search 2";
                 if (lt_pw[0].data_status == "Re-conduct search 1")
                 {
                     data_status = "being re-conducted";
                 }
             }
             if (this.lt_pw[0].status == "3")
             {
                 this.status = "Search 2";
                 if (lt_pw[0].data_status == "Search Conducted")
                 {
                     data_status = "being processed";
                 }
             }
             if (this.lt_pw[0].status == "33")
             {
                 this.status = "Examiners";
                 if (lt_pw[0].data_status == "Search 2 Conducted")
                 {
                     data_status = "being processed";
                 }
             }
             if (this.lt_pw[0].status == "4")
             {
                 this.status = "Acceptance";
                 if (lt_pw[0].data_status == "Registrable")
                 {
                     data_status = "Accepted";
                 }
                 else if (lt_pw[0].data_status == "Refused")
                 {
                     data_status = "Refused";
                 }
                 else if (lt_pw[0].data_status == "Non-registrable")
                 {
                     data_status = "not-registrable";
                 }
             }
             if (this.lt_pw[0].status == "5")
             {
                 this.status = "Publication";
                 if (lt_pw[0].data_status == "Accepted")
                 {
                     data_status = "being published";
                 }
             }
             if (this.lt_pw[0].status == "6")
             {
                 this.status = "Opposition";
                 if (lt_pw[0].data_status == "Published")
                 {
                     data_status = "being published";
                 }
                 else
                 {
                     data_status = "been opposed";
                 }
             }
             if (this.lt_pw[0].status == "7")
             {
                 this.status = "Certification";
                 if (lt_pw[0].data_status == "Not Opposed")
                 {
                     data_status = "being processed";
                 }
             }
             if (this.lt_pw[0].status == "8")
             {
                 this.status = "Registrars";
                 if (lt_pw[0].data_status == "Certified")
                 {
                     data_status = "being processed";
                 }
             }
             if (this.lt_pw[0].status == "9")
             {
                 this.status = "Registrars";
                 if (lt_pw[0].data_status == "Registered")
                 {
                     data_status = "being registered";
                 }
             }
             this.showt = 1;
         }
         else
         {
             this.status = "N/A";
             this.showt  = 1;
         }
     }
     else
     {
         base.Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>");
     }
 }
Ejemplo n.º 18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.serverpath = base.Server.MapPath("~/");
            if (base.Request.QueryString["x"] != null)
            {
                if (!this.IsPostBack)
                {
                    //string script = "document.getElementById('bgMark').style.background = \"url(\" + document.getElementById('"
                    //+ imgWaterMark.ClientID + "').src + \")  0 20  repeat \";";
                    //if (ScriptManager.GetCurrent(this.Page) == null)
                    //    Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "block", script, true);
                    //else
                    //    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "block", script, true);

                    string ID = "test";
                    if (base.Request.QueryString["x2"] != null)
                    {
                        //  imgWaterMark.ImageUrl = ResolveUrl("~") + string.Format("Handlers/WaterMarks.ashx?id={0}", ID);
                        Label6.Visible = true;
                        Label6.Text    = "PLEASE NOTE THAT THIS IS NOT AN ORIGINAL ACCEPTANCE DOCUMENT, PRINT THIS COPY AND PRESENT IT TO THE REGISTRY TO COLLECT YOUR ORIGINAL ACCEPTANCE LETTER.<br/> CONTACT THE REGISTRY FOR MORE INFORMATION ON HOW TO COLLECT YOUR ORIGINAL COPY. WWW.IPONIGERIA.COM.";
                        Label3.Text    = "PLEASE NOTE THAT THIS IS NOT AN ORIGINAL ACCEPTANCE DOCUMENT, PRINT THIS COPY AND PRESENT IT TO THE REGISTRY TO COLLECT YOUR ORIGINAL ACCEPTANCE LETTER.<br/> CONTACT THE REGISTRY FOR MORE INFORMATION ON HOW TO COLLECT YOUR ORIGINAL COPY. WWW.IPONIGERIA.COM.";
                        // pp7.BackImageUrl = ResolveUrl("~") + string.Format("~/Handlers/WaterMarks.ashx?id={0}", ID);

                        pp7.BackImageUrl = string.Format("http://localhost:49703/Handlers/WaterMarks.ashx?id={0}", ID);
                        dt2.Visible      = true;
                        Label3.Visible   = true;
                    }
                    else
                    {
                        Label6.Visible = true;
                        Label6.Text    = "Your Trademark has been accepted and will be published/advertised in accordance with the Trademarks Act";

                        dt.Visible     = true;
                        Label3.Visible = false;
                    }
                }



                if (Session["pwalletID"] != null)
                {
                    if (Session["pwalletID"].ToString() != "")
                    {
                        this.admin = Session["pwalletID"].ToString();
                    }
                    else
                    {
                        base.Response.Redirect("./xcontrol.aspx");
                    }
                }
                else
                {
                    //  base.Response.Redirect("./xcontrol.aspx");
                }
                this.pID    = base.Request.QueryString["x"].ToString();
                this.c_mark = this.z.getMarkInfoByUserID(this.pID);
                this.c_p    = this.z.getPwalletDetailsByID(this.c_mark.log_staff);
                this.c_app  = this.t.getApplicantByUserID(this.c_p.ID);
                this.c_aos  = this.t.getAddressServiceByID(this.c_p.ID);
                this.c_rep  = this.t.getRepByUserID(this.c_p.ID);
                if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0"))
                {
                    this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID);
                }
                if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0"))
                {
                    this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID);
                }
                this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID);
                try
                {
                    this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer);
                }
                catch (Exception ee)
                {
                    this.lt_tm_admin_details = null;
                }
                if (c_mark.logo_pic != "")
                {
                    tm_img.ImageUrl = "./" + c_mark.logo_pic;

                    if (File.Exists(serverpath + "\\admin\\tm\\" + c_mark.logo_pic))
                    {
                        tm_img.Height = new Unit(120, UnitType.Pixel);
                        tm_img.Width  = new Unit(120, UnitType.Pixel);
                        try
                        {
                            FileStream           st      = new FileStream(serverpath + "\\admin\\tm\\" + c_mark.logo_pic, FileMode.Open, FileAccess.Read);
                            System.Drawing.Image new_img = System.Drawing.Image.FromStream(st);
                            string ht = new_img.Height.ToString();
                            string wt = new_img.Width.ToString();
                            if ((ht != "") && (wt != "") && (ht != null) && (wt != null))
                            {
                                if (Convert.ToInt32(ht) > Convert.ToInt32(wt))
                                {
                                    // tm_img.Height = new Unit(270, UnitType.Pixel);
                                    tm_img.Height = new Unit(200, UnitType.Pixel);
                                    tm_img.Width  = new Unit(190, UnitType.Pixel);
                                }
                                else
                                {
                                    tm_img.Height = new Unit(100, UnitType.Pixel);
                                    tm_img.Width  = new Unit(270, UnitType.Pixel);
                                }
                            }
                            else
                            {
                                // tm_img.Height = new Unit(120, UnitType.Pixel);
                                // tm_img.Width = new Unit(120, UnitType.Pixel);
                                tm_img.Visible = false;
                            }
                        }
                        catch (Exception ex)
                        {
                            tm_img.Visible = false;
                        }
                    }
                    else
                    {
                        // tm_img.Height = new Unit(120, UnitType.Pixel);
                        // tm_img.Width = new Unit(120, UnitType.Pixel);
                        tm_img.Visible = false;
                    }
                }
            }
            else
            {
                base.Response.Redirect("./acceptance_slip.aspx");
            }
        }
Ejemplo n.º 19
0
        protected void SaveAll_Click(object sender, EventArgs e)
        {
            string[]           tx = null;
            TransactionOptions transactionOptions = new TransactionOptions
            {
                IsolationLevel = IsolationLevel.ReadCommitted,
                Timeout        = new TimeSpan(0, 15, 0)
            };
            TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, transactionOptions);

            try
            {
                if (Session["c_pwall"] != null)
                {
                    c_pwall = (tm.Stage)Session["c_pwall"];
                }
                if (Session["c_app"] != null)
                {
                    c_app = (tm.Applicant)Session["c_app"];
                }
                if (Session["c_app_addy"] != null)
                {
                    c_app_addy = (tm.Address)Session["c_app_addy"];
                }
                if (Session["c_rep_addy"] != null)
                {
                    c_rep_addy = (tm.Address)Session["c_rep_addy"];
                }
                if (Session["c_mark"] != null)
                {
                    c_mark = (tm.MarkInfo)Session["c_mark"];
                }
                if (Session["c_aos"] != null)
                {
                    c_aos = (tm.AddressService)Session["c_aos"];
                }
                if (Session["c_rep"] != null)
                {
                    c_rep = (tm.Representative)Session["c_rep"];
                }
                tx = c_pwall.validationID.Trim().Split('-');
                if (tx.Length == 3)
                {
                    hwalletID = tx[2];
                }
                else
                {
                    hwalletID = "0";
                }
                c_pwall.rtm = txt_rtm.Text;
                if (txt_new_date.Text != "")
                {
                    c_pwall.reg_date = txt_new_date.Text;
                }
                oldname     = c_app.xname;
                c_app.xname = xname.Text;

                c_app.nationality = nationality.Text;
                if (txt_new_date.Text != "")
                {
                    c_app.reg_date = txt_new_date.Text;
                }
                c_app_addy.countryID  = residence.Text;
                c_app_addy.stateID    = xselectState.Text;
                c_app_addy.street     = xaddress.Text;
                c_app_addy.telephone1 = xtelephone.Text;
                c_app_addy.email1     = xemail.Text;
                if (txt_new_date.Text != "")
                {
                    c_app_addy.reg_date = txt_new_date.Text;
                }

                c_mark.tm_typeID          = tmType.SelectedValue;
                c_mark.logo_descriptionID = logo_description.SelectedValue;
                oldproduct_title          = c_mark.product_title;
                c_mark.product_title      = title_of_product.Text;
                oldclass                = c_mark.nice_class;
                c_mark.nice_class       = national_class.SelectedValue;
                c_mark.nice_class_desc  = nice_class_desc.Text;
                c_mark.national_classID = national_class.SelectedValue;
                c_mark.disclaimer       = txt_discalimer.Text;
                c_mark.reg_number       = TextBox1.Text;
                if (txt_new_date.Text != "")
                {
                    c_mark.reg_date = txt_new_date.Text;
                }

                c_aos.countryID  = "160";
                c_aos.stateID    = aos_xselectState.Text;
                c_aos.city       = "";
                c_aos.street     = aos_xaddress.Text;
                c_aos.telephone1 = aos_xtelephone.Text;
                c_aos.email1     = aos_xemail.Text;
                if (txt_new_date.Text != "")
                {
                    c_aos.reg_date = txt_new_date.Text;
                }

                c_rep.agent_code  = xcode.Text;
                c_rep.xname       = rep_xname.Text;
                c_rep.nationality = rep_nationality.SelectedValue;
                c_rep.log_staff   = "0";
                if (txt_new_date.Text != "")
                {
                    c_rep.reg_date = txt_new_date.Text;
                }

                c_rep_addy.countryID  = rep_residence.SelectedValue;
                c_rep_addy.stateID    = xselectRepState.SelectedValue;
                c_rep_addy.city       = "";
                c_rep_addy.street     = rep_address.Text;
                c_rep_addy.telephone1 = rep_xtelephone.Text;
                c_rep_addy.email1     = rep_xemail.Text;
                if (txt_new_date.Text != "")
                {
                    c_rep_addy.reg_date = txt_new_date.Text;
                }


                if (Session["hwalletID"] != null)
                {
                    hwalletID = Session["hwalletID"].ToString();
                }

                Boolean vfile = false;

                if (logo_description.SelectedItem.Value != "2")
                {
                    vfile = true;
                }
                else
                {
                    vfile = false;
                }
                succ = t.editTrademarkTx(c_app, c_mark, c_aos, c_rep, c_app_addy, c_rep_addy, c_pwall, sl_docz, logo_pic, auth_doc, sup_doc1, sup_doc2, Server.MapPath("~/"), vfile);
                if (Convert.ToInt32(succ) > 0)
                {
                    //ws_payx.payx ws_p = new ws_payx.payx();
                    //status = ws_p.UpdateHwallet(hwalletID, "Used", reg_date, title_of_product.Text);
                    //if (status >= 0)
                    //{
                    scope.Complete(); scope.Dispose();
                    //}
                    //else
                    //{
                    //    scope.Dispose();
                    //    succ_msg = "Record Not Edited Successfully! Please try again";
                    //    showsearch = 0;
                    //}
                }
                else
                {
                    scope.Dispose();
                    succ_msg   = "Record Not Edited Successfully! Please try again";
                    showsearch = 0;
                }

                this.adminID = this.Session["pwalletID"].ToString();

                t.activity_log(this.adminID, "Edit Application", "Update", c_app.log_staff, c_pwall.data_status, title_of_product.Text, oldproduct_title, oldname, xname.Text, oldclass, national_class.SelectedValue);
                /////
            }
            catch (Exception exception)
            {
                exception.ToString(); scope.Dispose();
                succ_msg   = "Record Not Edited Successfully! Please try again";
                showsearch = 0;
            }
            finally
            {
                if (scope != null)
                {
                    scope.Dispose();
                }
            }
            succ_msg   = "Record Edited Successfully!!!"; txt_search.Text = "";
            showsearch = 0;
        }
Ejemplo n.º 20
0
 protected void Save_Click(object sender, EventArgs e)
 {
     if (this.xref.Text != "")
     {
         if (this.xref.Text.Contains("OAI/TM/"))
         {
             this.xref.Text = this.xref.Text.Replace("OAI/TM/", "");
         }
         this.r     = this.xref.Text;
         this.lt_pw = this.t.getStageByClientIDAcc(this.xref.Text);
         if (this.lt_pw.Count != 0)
         {
             Session["xvid"] = this.xref.Text;
             this.lt_mi      = this.t.getMarkInfoByUserID(this.lt_pw[0].ID);
             this.lt_rep     = this.t.getRepByUserID(this.lt_pw[0].ID);
             if (lt_pw[0].status == "1")
             {
                 this.status = "Verification";
                 if (lt_pw[0].data_status == "Fresh")
                 {
                     data_status = "Untreated";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "2")
             {
                 if (lt_pw[0].data_status == "Re-conduct search")
                 {
                     data_status = "being re-conducted"; this.status = "Search";
                     agent_msg   = "<strong>\"Search Office\"</strong>";
                 }
                 else if (lt_pw[0].data_status == "Valid")
                 {
                     data_status = "awaiting attendance"; this.status = "Search";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "22")
             {
                 this.status = "Search 2";
                 if (lt_pw[0].data_status == "Re-conduct search 1")
                 {
                     data_status = "being re-conducted";
                     agent_msg   = "<strong>\"Search Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "3")
             {
                 if (lt_pw[0].data_status == "Search Conducted")
                 {
                     data_status = "being processed"; this.status = "Search 2";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
                 else if (lt_pw[0].data_status == "Re-examine")
                 {
                     data_status = "being re-examined"; this.status = "Examiners";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "33")
             {
                 this.status = "Examiners";
                 if (lt_pw[0].data_status == "Search 2 Conducted")
                 {
                     data_status = "being examined";
                     agent_msg   = "being examined";
                 }
             }
             if (lt_pw[0].status == "4")
             {
                 this.status = "Acceptance";
                 if (lt_pw[0].data_status == "Registrable")
                 {
                     data_status = "Accepted";
                     agent_msg   = "<strong>\"Acceptance Office\"</strong> and is registrable";
                 }
                 else if (lt_pw[0].data_status == "Refused")
                 {
                     data_status = "Refused";
                     agent_msg   = "<strong>\"Acceptance Office\"</strong> and is not-registrable";
                 }
                 else if (lt_pw[0].data_status == "Non-registrable")
                 {
                     data_status = "not-registrable";
                     agent_msg   = "<strong>\"Acceptance Office\"</strong> and is not-registrable";
                 }
             }
             //  || status == "11" || status == "13"
             if (lt_pw[0].status == "5" || lt_pw[0].status == "11" || lt_pw[0].status == "13")
             {
                 if (lt_pw[0].data_status == "Accepted")
                 {
                     data_status = "being published"; this.status = "Publication";
                     agent_msg   = "<strong>\"Publication Office\"</strong> and your acceptance letter is ready for collection";
                 }
                 else if (lt_pw[0].data_status == "Deferred")
                 {
                     data_status = "been deferred"; this.status = "Publication";
                     agent_msg   = "<strong>\"Publication Office\"</strong>";
                 }
                 else if (lt_pw[0].data_status == "acc_printed")
                 {
                     data_status = "being published"; this.status = "Acceptance (Printed)";
                     agent_msg   = "<strong>\"Publication Office\"</strong> and your acceptance letter is ready for collection";
                 }
                 else if (lt_pw[0].data_status == "Withdraw")
                 {
                     data_status = "being published"; this.status = "Acceptance (Withdrawal)";
                     agent_msg   = "<strong>\"Publication Office\"</strong> and your application has been withdrawn";
                 }
                 else if (lt_pw[0].data_status == "kiv")
                 {
                     data_status = "being processed"; this.status = "Acceptance (KIV)";
                     agent_msg   = "<strong>\"Publication Office\"</strong> and is being processed";
                 }
             }
             if (lt_pw[0].status == "6")
             {
                 this.status = "Opposition";
                 if (lt_pw[0].data_status == "Published")
                 {
                     data_status = "being published";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
                 else
                 {
                     data_status = "been opposed";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "7")
             {
                 if (lt_pw[0].data_status == "Not Opposed")
                 {
                     data_status = "being processed"; this.status = "Certification";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
                 else if (lt_pw[0].data_status == "Deferred")
                 {
                     data_status = "been deferred"; this.status = "Certification";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "8")
             {
                 this.status = "Registrars";
                 if (lt_pw[0].data_status == "Certified")
                 {
                     data_status = "being processed";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             if (lt_pw[0].status == "9")
             {
                 this.status = "Registrars";
                 if (lt_pw[0].data_status == "Registered")
                 {
                     data_status = "being registered";
                     agent_msg   = "<strong>\"Verification Office\"</strong>";
                 }
             }
             this.showt = 1;
         }
         else
         {
             this.status = "N/A";
         }
     }
     else
     {
         base.Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>");
     }
 }