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 + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } } else { base.Response.Redirect("./search_unit/searchprofile.aspx"); } }
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"); } }
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 + " "; 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 + " "; 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 + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } ////////// } } else { base.Response.Redirect("./acceptance.aspx"); } }
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"); } }