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; } 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 + " "; 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) { 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"); } }
public void vupdate() { if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != "")) { admin = Convert.ToString(Session["pwalletID"]); } if ((this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "") ) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; spwallet = ret.getCheckStatusDetails(vid); this.c_mark = this.t.getMarkInfoClassByUserID(spwallet); this.c_rep = this.t.getRepClassByUserID(spwallet); this.c_stage = this.t.getStageClassByUserID(spwallet); this.c_app = this.t.getApplicantClassByID(spwallet); 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); } // g_pwallet = ret.getG_PwalletByValidationID(vid); if ((vid != null)) { //g_tm_info = ret.getG_Tm_infoByPwalletID(g_pwallet.xid); //g_app_info = ret.getG_App_infoByPwalletID(g_pwallet.xid); //g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); //g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); //g_ass_info = ret.getG_Ass_infoByPwalletID(g_pwallet.xid); //g_cert_info = ret.getG_Cert_infoByPwalletID(g_pwallet.xid); //g_change_info = ret.getG_Change_infoByPwalletID(g_pwallet.xid); //g_merger_info = ret.getG_Merger_infoByPwalletID(g_pwallet.xid); //g_renewal_info = ret.getG_Renewal_infoByPwalletID(g_pwallet.xid); //g_prelim_search_info = ret.getG_Prelim_search_infoByPwalletID(g_pwallet.xid); //g_other_items_info = ret.getG_Other_items_infoByPwalletID(g_pwallet.xid); // this.lt_tm_office = this.z.getG_TmOfficeDetailsByID(g_pwallet.xid); this.lt_tm_office = this.z.getTmOfficeDetailsByID(spwallet); // List<Recordal> vd = ret.getG_PwalletByID2(g_pwallet.xid); zues zz2 = new zues(); // Int32 vint2 = zz2.getMaxId(spwallet); // int num = 0; //List<Recordal> vd = ret.getG_PwalletByID3(vint2); //foreach (var ddp in vd) //{ // if (ddp.RECORDAL_TYPE == "Change_Name") // { // gen_nameHis(ddp); // } // else if (ddp.RECORDAL_TYPE == "Change_Address") // { // gen_nameAddress(ddp); // } //} 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>"; } ////////// } //if (g_tm_info.logo_pic != "") //{ // tm_img.ImageUrl = "../admin/tm/gf/" + g_tm_info.logo_pic; // if (File.Exists(serverpath + "\\admin\\tm\\gf\\" + g_tm_info.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\\gf\\" + g_tm_info.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; // } //} //foreach (Classes.XObjs.Fee_list item in fee_list) //{ // if (item.item_code == g_pwallet.log_officer) // { // lbl_type.Text = item.item.ToUpper(); // } //} //ShowSection(g_pwallet.log_officer); } } }
protected void Page_Load(object sender, EventArgs e) { if ((Session["item_code"] != null) && (Session["item_code"] != null)) { item_code = Session["item_code"].ToString(); } if ((Session["code_title"] != null) && (Session["code_title"] != null)) { code_title = Session["code_title"].ToString(); } serverpath = base.Server.MapPath("~/"); string path = serverpath + @"Handlers\bf.kez"; if (File.Exists(path)) { StreamReader reader = new StreamReader(path, true); file_string = reader.ReadToEnd(); reader.Close(); if (file_string != null) { string oldValue = file_string.Substring(0, file_string.IndexOf("</BitStrength>") + 14); file_string = file_string.Replace(oldValue, ""); } } Verify.Visible = false; if (rbValid.SelectedValue == "Treated") { rbval_text = "Treated"; Verify.Visible = true; } else if (rbValid.SelectedValue == "Kiv") { rbval_text = "Kiv"; Verify.Visible = true; } else if (rbValid.SelectedValue == "Contact") { rbval_text = "Contact"; Verify.Visible = true; } if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); PopulateOffice(admin); } else { base.Response.Redirect("../lo.aspx"); } } else { base.Response.Redirect("../lo.aspx"); } fee_list = ret.getFee_listByCat("tm"); if (!Page.IsPostBack) { if ((base.Request.QueryString["x"] == null) || (base.Request.QueryString["x"] == "")) { base.Response.Redirect("./g_kiv.aspx"); } else { vid = base.Request.QueryString["x"]; g_pwallet = ret.getG_PwalletByID(vid); if ((g_pwallet.xid != null) && (g_pwallet.xid != "")) { Session["g_pwallet"] = g_pwallet; Session["xid"] = g_pwallet.xid; Session["validationID"] = g_pwallet.validationID; lt_cur_admin_details = z.getTmAdminDetailsByID(admin); if ((lt_cur_admin_details.xID != null) && (lt_cur_admin_details.xID != "")) { Session["lt_cur_admin_details"] = lt_cur_admin_details; } g_tm_info = ret.getG_Tm_infoByPwalletID(g_pwallet.xid); if ((g_tm_info.xid != null) && (g_tm_info.xid != "")) { Session["g_tm_info"] = g_tm_info; } g_app_info = ret.getG_App_infoByPwalletID(g_pwallet.xid); if ((g_app_info.id != null) && (g_app_info.id != "")) { Session["g_app_info"] = g_app_info; } g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); if ((g_applicant_info.id != null) && (g_applicant_info.id != "")) { Session["g_applicant_info"] = g_applicant_info; } g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); if ((g_agent_info.xid != null) && (g_agent_info.xid != "")) { Session["g_agent_info"] = g_agent_info; } g_ass_info = ret.getG_Ass_infoByPwalletID(g_pwallet.xid); if ((g_ass_info.xid != null) && (g_ass_info.xid != "")) { Session["g_ass_info"] = g_ass_info; } g_cert_info = ret.getG_Cert_infoByPwalletID(g_pwallet.xid); if ((g_cert_info.xid != null) && (g_cert_info.xid != "")) { Session["g_cert_info"] = g_cert_info; } g_change_info = ret.getG_Change_infoByPwalletID(g_pwallet.xid); if ((g_change_info.xid != null) && (g_change_info.xid != "")) { Session["g_change_info"] = g_change_info; } g_merger_info = ret.getG_Merger_infoByPwalletID(g_pwallet.xid); if ((g_merger_info.xid != null) && (g_merger_info.xid != "")) { Session["g_merger_info"] = g_merger_info; } g_renewal_info = ret.getG_Renewal_infoByPwalletID(g_pwallet.xid); if ((g_renewal_info.xid != null) && (g_renewal_info.xid != "")) { Session["g_renewal_info"] = g_renewal_info; } g_prelim_search_info = ret.getG_Prelim_search_infoByPwalletID(g_pwallet.xid); if ((g_prelim_search_info.xid != null) && (g_prelim_search_info.xid != "")) { Session["g_prelim_search_info"] = g_prelim_search_info; } g_other_items_info = ret.getG_Other_items_infoByPwalletID(g_pwallet.xid); if ((g_other_items_info.xid != null) && (g_other_items_info.xid != "")) { Session["g_other_items_info"] = g_other_items_info; } lt_g_tm_office = z.getG_TmOfficeDetailsByID(g_pwallet.xid); if (lt_g_tm_office.Count > 0) { Session["lt_g_tm_office"] = lt_g_tm_office; } for (int i = 0; i < lt_g_tm_office.Count; i++) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td align=\"center\" colspan=\"4\">"; xcomments = xcomments + "<strong>" + lt_g_tm_office[i].xcomment.ToUpper() + "</strong><br />"; lt_x_admin_details = z.getTmAdminDetailsByID(lt_g_tm_office[i].xofficer); xcomments = xcomments + "COMMENT BY: <strong>" + lt_x_admin_details.xname.ToUpper() + "( " + z.getRoleNameByID(lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br /> Date: <strong>" + lt_g_tm_office[i].reg_date.ToUpper() + "</strong>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; string str4 = ""; string str5 = ""; string str6 = ""; if (((lt_g_tm_office[i].xdoc1 != "") || (lt_g_tm_office[i].xdoc2 != "")) || (lt_g_tm_office[i].xdoc3 != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\" class=\"tbbg\">"; xcomments = xcomments + "--- SUPPORTING DOCUMENTS ---"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_g_tm_office[i].xdoc1 != "") { if (lt_g_tm_office[i].xdoc1.Contains("generic/")) { str4 = lt_g_tm_office[i].xdoc1.Replace("generic/", ""); } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "View Document 1: <a href=" + str4 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_g_tm_office[i].xdoc2 != "") { if (lt_g_tm_office[i].xdoc2.Contains("generic/")) { str5 = lt_g_tm_office[i].xdoc2.Replace("generic/", ""); } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "View Document 2: <a href=" + str5 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_g_tm_office[i].xdoc3 != "") { if (lt_g_tm_office[i].xdoc3.Contains("generic/")) { str6 = lt_g_tm_office[i].xdoc3.Replace("generic/", ""); } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "View Document 3: <a href=" + str6 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"4\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_tm_info.xid != null) && (g_tm_info.xid != "")) { string str7 = "../../../../admin/tm/gf/"; xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\" class=\"tbbg\">"; xcomments = xcomments + "--- UPLOADED DOCUMENTS ---"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; if (g_tm_info.logo_pic != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_tm_info.logo_pic + " target='_blank'>VIEW TRADEMARK REPRESENTATION</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (g_tm_info.app_letter_doc != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_tm_info.app_letter_doc + " target='_blank'>VIEW APPLICATION LETTER</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (g_tm_info.sup_doc1 != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_tm_info.sup_doc1 + " target='_blank'>VIEW SUPPORTING DOCUMENT</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_cert_info.cert_doc != null) && (g_cert_info.cert_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_cert_info.cert_doc + " target='_blank'>VIEW COPY OF CERTIFICATE</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_ass_info.ass_doc != null) && (g_ass_info.ass_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_ass_info.ass_doc + " target='_blank'>VIEW COPY OF ASSIGNMENT</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_merger_info.merger_doc != null) && (g_merger_info.merger_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_merger_info.merger_doc + " target='_blank'>VIEW COPY OF MERGER</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_cert_info.pub_doc != null) && (g_cert_info.pub_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_cert_info.pub_doc + " target='_blank'>VIEW COPY OF PUBLICATION</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"4\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; Session["xcomments"] = xcomments; } foreach (XObjs.Fee_list _list in fee_list) { if (_list.item_code == g_pwallet.log_officer) { lbl_type.Text = _list.item.ToUpper(); Session["code_title"] = _list.xdesc; code_title = _list.xdesc; } } Session["item_code"] = g_pwallet.log_officer; item_code = g_pwallet.log_officer; ShowSection(g_pwallet.log_officer); } } } else { if (Session["xcomments"] != null) { xcomments = Session["xcomments"].ToString(); } if (Session["pwalletID"] != null) { pwalletID = Session["pwalletID"].ToString(); } if (Session["lt_cur_admin_details"] != null) { lt_cur_admin_details = (zues.Adminz)Session["lt_cur_admin_details"]; } if (Session["g_pwallet"] != null) { g_pwallet = (XObjs.G_Pwallet)Session["g_pwallet"]; } if (Session["g_tm_info"] != null) { g_tm_info = (XObjs.G_Tm_info)Session["g_tm_info"]; } if (Session["g_app_info"] != null) { g_app_info = (XObjs.G_App_info)Session["g_app_info"]; } if (Session["g_applicant_info"] != null) { g_applicant_info = (XObjs.G_Applicant_info)Session["g_applicant_info"]; } if (Session["g_agent_info"] != null) { g_agent_info = (XObjs.Gen_Agent_info)Session["g_agent_info"]; } if (Session["g_ass_info"] != null) { g_ass_info = (XObjs.G_Ass_info)Session["g_ass_info"]; } if (Session["g_cert_info"] != null) { g_cert_info = (XObjs.G_Cert_info)Session["g_cert_info"]; } if (Session["g_change_info"] != null) { g_change_info = (XObjs.G_Change_info)Session["g_change_info"]; } if (Session["g_merger_info"] != null) { g_merger_info = (XObjs.G_Merger_info)Session["g_merger_info"]; } if (Session["g_renewal_info"] != null) { g_renewal_info = (XObjs.G_Renewal_info)Session["g_renewal_info"]; } if (Session["g_prelim_search_info"] != null) { g_prelim_search_info = (XObjs.G_Prelim_search_info)Session["g_prelim_search_info"]; } if (Session["g_other_items_info"] != null) { g_other_items_info = (XObjs.G_Other_items_info)Session["g_other_items_info"]; } if (Session["lt_g_tm_office"] != null) { lt_g_tm_office = (List <zues.G_TmOffice>)Session["lt_g_tm_office"]; } if (Session["code_title"] != null) { code_title = Session["code_title"].ToString(); } if (Session["item_code"] != null) { item_code = Session["item_code"].ToString(); } } }
public void vupdate() { if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != "")) { admin = Convert.ToString(Session["pwalletID"]); } if ((this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "") ) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; vid2 = Request.QueryString["Recordalid"]; spwallet = ret.getCheckStatusDetails(vid); this.c_mark = this.t.getMarkInfoClassByUserID(spwallet); this.c_rep = this.t.getRepClassByUserID(spwallet); this.c_stage = this.t.getStageClassByUserID(spwallet); this.c_app = this.t.getApplicantClassByID(spwallet); 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); } //g_pwallet = ret.getG_PwalletByValidationID(vid); if ((vid != null)) { //g_tm_info = ret.getG_Tm_infoByPwalletID(g_pwallet.xid); //g_app_info = ret.getG_App_infoByPwalletID(g_pwallet.xid); Label1.Text = c_mark.reg_number; Label2.Text = c_stage.rtm; Label3.Text = c_mark.nice_class; Label4.Text = c_mark.product_title; //g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); //g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); //g_ass_info = ret.getG_Ass_infoByPwalletID(g_pwallet.xid); //g_cert_info = ret.getG_Cert_infoByPwalletID(g_pwallet.xid); //g_change_info = ret.getG_Change_infoByPwalletID(g_pwallet.xid); //g_merger_info = ret.getG_Merger_infoByPwalletID(g_pwallet.xid); //g_renewal_info = ret.getG_Renewal_infoByPwalletID(g_pwallet.xid); //g_prelim_search_info = ret.getG_Prelim_search_infoByPwalletID(g_pwallet.xid); //g_other_items_info = ret.getG_Other_items_infoByPwalletID(g_pwallet.xid); zues zz2 = new zues(); Int32 vint2 = zz2.getMaxId(spwallet); // int num = 0; vint2 = Convert.ToInt32(vid2); List <Recordal> vd = ret.getG_PwalletByID3(vint2); // this.lt_tm_office = this.z.getTmOfficeByID(g_pwallet.xid); // List<Recordal> vd = ret.getG_PwalletByID2(spwallet); int vvs = vd.Count() - 1; zues.Adminz xxk = z.getAdminDetails(vd[vvs].OFFICER); Label5.Text = vd[vvs].RECORDAL_REQUEST_DATE.ToString("d");; Label12.Text = vd[vvs].RECORDAL_APPROVE_DATE.ToString("d");; Label13.Text = xxk.xname; Label8.Text = vd[vvs].NEW_AGENTCODE; Label9.Text = vd[vvs].NEW_AGENTNAME; Label10.Text = vd[vvs].NEWAGENT_ADDRESS; Label11.Text = vd[vvs].NEW_AGENTEMAIL; Label14.Text = vd[vvs].OLD_AGENTCODE; Label15.Text = vd[vvs].OLD_AGENTNAME; Label16.Text = vd[vvs].OLDAGENT_ADDRESS; Label17.Text = vd[vvs].OLD_AGENTEMAIL; //if (g_tm_info.logo_pic != "") //{ // tm_img.ImageUrl = "../admin/tm/gf/" + g_tm_info.logo_pic; // if (File.Exists(serverpath + "\\admin\\tm\\gf\\" + g_tm_info.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\\gf\\" + g_tm_info.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; // } //} //foreach (Classes.XObjs.Fee_list item in fee_list) //{ // if (item.item_code == g_pwallet.log_officer) // { // lbl_type.Text = item.item.ToUpper(); // } //} //ShowSection(g_pwallet.log_officer); } } }
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"); } }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); string path = this.serverpath + @"Handlers\bf.kez"; if (File.Exists(path)) { StreamReader reader = new StreamReader(path, true); this.file_string = reader.ReadToEnd(); reader.Close(); if (this.file_string != null) { string oldValue = this.file_string.Substring(0, this.file_string.IndexOf("</BitStrength>") + 14); this.file_string = this.file_string.Replace(oldValue, ""); } } this.Verify.Visible = false; if (this.rbValid.SelectedValue == "Valid") { this.rbval_text = "New"; this.Verify.Visible = true; } else if (this.rbValid.SelectedValue == "Invalid") { this.rbval_text = "Invalid"; this.Verify.Visible = true; } this.PopulateOffice(this.admin); if (this.Session["pwalletID"] != null) { if (this.Session["pwalletID"].ToString() != "") { this.admin = this.Session["pwalletID"].ToString(); this.PopulateOffice(this.admin); } else { base.Response.Redirect("../lo.aspx"); } } else { base.Response.Redirect("../lo.aspx"); } this.fee_list = this.ret.getFee_listByCat("tm"); if ((base.Request.QueryString["x"] != null) && (base.Request.QueryString["x"] != "")) { this.vid = base.Request.QueryString["x"]; this.g_pwallet = this.ret.getG_PwalletByID(this.vid); if ((this.g_pwallet.xid != null) && (this.g_pwallet.xid != "")) { this.Session["xid"] = this.g_pwallet.xid; this.Session["validationID"] = this.g_pwallet.validationID; this.lt_cur_admin_details = this.z.getTmAdminDetailsByID(this.admin); if ((this.lt_cur_admin_details.xID != null) && (this.lt_cur_admin_details.xID != "")) { this.Session["lt_cur_admin_details"] = this.lt_cur_admin_details; } this.g_tm_info = this.ret.getG_Tm_infoByPwalletID(this.g_pwallet.xid); if ((this.g_tm_info.xid != null) && (this.g_tm_info.xid != "")) { this.Session["g_tm_info"] = this.g_tm_info; } this.g_app_info = this.ret.getG_App_infoByPwalletID(this.g_pwallet.xid); if ((this.g_app_info.id != null) && (this.g_app_info.id != "")) { this.Session["g_app_info"] = this.g_app_info; } this.g_applicant_info = this.ret.getG_Applicant_infoByPwalletID(this.g_pwallet.xid); if ((this.g_applicant_info.id != null) && (this.g_applicant_info.id != "")) { this.Session["g_applicant_info"] = this.g_applicant_info; } this.g_agent_info = this.ret.getGenAgentByPwalletID(this.g_pwallet.xid); if ((this.g_agent_info.xid != null) && (this.g_agent_info.xid != "")) { this.Session["g_agent_info"] = this.g_agent_info; } this.g_ass_info = this.ret.getG_Ass_infoByPwalletID(this.g_pwallet.xid); if ((this.g_ass_info.xid != null) && (this.g_ass_info.xid != "")) { this.Session["g_ass_info"] = this.g_ass_info; } this.g_cert_info = this.ret.getG_Cert_infoByPwalletID(this.g_pwallet.xid); if ((this.g_cert_info.xid != null) && (this.g_cert_info.xid != "")) { this.Session["g_cert_info"] = this.g_cert_info; } this.g_change_info = this.ret.getG_Change_infoByPwalletID(this.g_pwallet.xid); if ((this.g_change_info.xid != null) && (this.g_change_info.xid != "")) { this.Session["g_change_info"] = this.g_change_info; } this.g_merger_info = this.ret.getG_Merger_infoByPwalletID(this.g_pwallet.xid); if ((this.g_merger_info.xid != null) && (this.g_merger_info.xid != "")) { this.Session["g_merger_info"] = this.g_merger_info; } this.g_renewal_info = this.ret.getG_Renewal_infoByPwalletID(this.g_pwallet.xid); if ((this.g_renewal_info.xid != null) && (this.g_renewal_info.xid != "")) { this.Session["g_renewal_info"] = this.g_renewal_info; } this.g_prelim_search_info = this.ret.getG_Prelim_search_infoByPwalletID(this.g_pwallet.xid); if ((this.g_prelim_search_info.xid != null) && (this.g_prelim_search_info.xid != "")) { this.Session["g_prelim_search_info"] = this.g_prelim_search_info; } this.g_other_items_info = this.ret.getG_Other_items_infoByPwalletID(this.g_pwallet.xid); if ((this.g_other_items_info.xid != null) && (this.g_other_items_info.xid != "")) { this.Session["g_other_items_info"] = this.g_other_items_info; } this.lt_g_tm_office = this.z.getG_TmOfficeDetailsByID(this.g_pwallet.xid); if (this.lt_g_tm_office.Count > 0) { this.Session["lt_g_tm_office"] = this.lt_g_tm_office; } if ((this.g_tm_info.xid != null) && (this.g_tm_info.xid != "")) { string str3 = "../../../admin/tm/gf/"; this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\" class=\"tbbg\">"; this.xcomments = this.xcomments + "--- UPLOADED DOCUMENTS ---"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; if (this.g_tm_info.logo_pic != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_tm_info.logo_pic + " target='_blank'>VIEW TRADEMARK REPRESENTATION</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if (this.g_tm_info.app_letter_doc != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_tm_info.app_letter_doc + " target='_blank'>VIEW APPLICATION LETTER</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if (this.g_tm_info.sup_doc1 != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_tm_info.sup_doc1 + " target='_blank'>VIEW SUPPORTING DOCUMENT</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_cert_info.cert_doc != null) && (this.g_cert_info.cert_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_cert_info.cert_doc + " target='_blank'>VIEW COPY OF CERTIFICATE</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_ass_info.ass_doc != null) && (this.g_ass_info.ass_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_ass_info.ass_doc + " target='_blank'>VIEW COPY OF ASSIGNMENT</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_merger_info.merger_doc != null) && (this.g_merger_info.merger_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_merger_info.merger_doc + " target='_blank'>VIEW COPY OF MERGER</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_cert_info.pub_doc != null) && (this.g_cert_info.pub_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_cert_info.pub_doc + " target='_blank'>VIEW COPY OF PUBLICATION</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } foreach (XObjs.Fee_list _list in this.fee_list) { if (_list.item_code == this.g_pwallet.log_officer) { this.lbl_type.Text = _list.item.ToUpper(); } } this.ShowSection(this.g_pwallet.log_officer); } else { base.Response.Redirect("./g_applications.aspx"); } } else if (this.Session["pwalletID"] != null) { this.pwalletID = this.Session["pwalletID"].ToString(); } }
protected void Verify_Click(object sender, EventArgs e) { if ((txt_response_date.Text != "") && (comment.Text != "")) { Verify.Visible = true; Confirm.Visible = false; } else { Verify.Visible = false; Confirm.Visible = true; } zues.Contact_form cf = new zues.Contact_form(); Email email = new Email(); cf.pwalletID = pID; cf.response_deadline = txt_response_date.Text; cf.xofficerID = admin; cf.xmsg = comment.Text; cf.sent_status = "0"; cf.reg_date = DateTime.Now.ToString("yyyy-MM-dd"); cf.xvisible = "1"; succ = z.a_contact_form(cf); if (succ != "0") { x_admin = z.getAdminDetails(admin); string subject = "Message from " + z.getRoleNameByID(x_admin.xroleID) + " concerning application: " + t.ValidationIDByPwalletID(lt_mi[0].log_staff); string from = ody.DecryptString(x_admin.xemail, file_len, file_string); html_msg = html_msg + "<html><head id='Head1' runat='server'><title></title>"; html_msg = html_msg + "<style type='text/css'>"; html_msg = html_msg + ".tbbg{padding:0;margin:0 auto;width:100%;height:20px;background-color:#006699;text-align:center;color:#fff;font-weight:bold;border-color:#006699;}"; html_msg = html_msg + "</style></head><body><form id='form1' runat='server'><div>"; html_msg = html_msg + "<table align='center' width='800px' >"; if (lt_mi.Count > 0) { html_msg = html_msg + "<tr><td width='100%' colspan='2' style='background-color:#999999;' align='center'>---<b>CONTACT APPLICANT FORM</b> ---</td></tr>"; html_msg = html_msg + "<tr> <td width='50%' align='right'> FILING/APPLICATION DATE : </td>"; html_msg = html_msg + "<td>" + lt_mi[0].reg_date + " </td></tr>"; html_msg = html_msg + "<tr><td align='right'>REGISTRATION NUMBER :</td>"; html_msg = html_msg + "<td>" + lt_mi[0].reg_number + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'> ONLINE APPLICATION ID : </td>"; html_msg = html_msg + "<td>OAI/PT/" + t.ValidationIDByPwalletID(lt_mi[0].log_staff) + "</td></tr>"; html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>---PATENT INFORMATION --- </td></tr>"; html_msg = html_msg + "<tr><td align='right'> PATENT TYPE :</td>"; html_msg = html_msg + "<td>" + lt_mi[0].xtype + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'> TITLE OF INVENTION :</td>"; html_msg = html_msg + "<td>" + lt_mi[0].title_of_invention + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>TRANSACTION ID :</td><td>" + lt_stage[0].validationID + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>TRANSACTION AMOUNT :</td><td>" + lt_stage[0].amt + " NGN</td></tr>"; } if (lt_app.Count > 0) { html_msg = html_msg + "<tr><td class='tbbg' colspan='2'>--- APPLICANT INFORMATION ---</td></tr>"; for (int i = 0; i < lt_app.Count; i++) { html_msg = string.Concat(new object[] { html_msg, "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>APPLICANT ", i, 1, "</strong></td></tr>" }); html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_app[i].xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_app[i].address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>PHONE NUMBER :</td><td>" + lt_app[i].xmobile + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>E-MAILS :</td><td>" + lt_app[i].xemail + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_app[i].nationality) + "</td></tr>"; } } if (lt_inv.Count > 0) { html_msg = html_msg + "<tr><td class='tbbg' colspan='2'>--- TRUE INVENTOR INFORMATION ---</td></tr>"; for (int j = 0; j < lt_inv.Count; j++) { html_msg = string.Concat(new object[] { html_msg, "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>INVENTOR ", j, 1, "</strong></td></tr>" }); html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_inv[j].xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_inv[j].address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>PHONE NUMBER :</td><td>" + lt_inv[j].xmobile + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>E-MAILS :</td><td>" + lt_inv[j].xemail + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_inv[j].nationality) + "</td></tr>"; } } if (lt_assinfo.Count > 0) { html_msg = html_msg + "<tr><td class='tbbg' colspan='2'>--- ASSIGNMENT INFORMATION ---</td></tr>"; html_msg = html_msg + "<tr><td align='right'>DATE OF ASSIGNMENT :</td><td>" + lt_assinfo[0].date_of_assignment + "</td></tr>"; html_msg = html_msg + "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>ASSIGNEE >></strong></td></tr>"; html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_assinfo[0].assignee_name + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_assinfo[0].assignee_address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_assinfo[0].assignee_nationality) + "</td></tr>"; html_msg = html_msg + "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>ASSIGNOR >></strong></td></tr>"; html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_assinfo[0].assignor_name + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_assinfo[0].assignor_address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_assinfo[0].assignor_nationality) + "</td></tr>"; } if (lt_xpri.Count > 0) { html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>--- PRIORITY INFORMATION ---</td></tr>"; html_msg = html_msg + "<tr><td colspan='2' style='border:0px outset silver; padding: 0px;'><table width='100%'>"; html_msg = html_msg + "<tr style='background-color:#999999;'><td style='width:10%;'><strong>S/N</strong></td><td style='width:30%;'><strong>COUNTRY</strong></td>"; html_msg = html_msg + "<td style='width:30%;'><strong>APPLICATION NUMBER</strong></td><td style='width:30%;'><strong>DATE</strong></td></tr>"; for (int k = 0; k < lt_xpri.Count; k++) { html_msg = string.Concat(new object[] { html_msg, "<tr ><td>", k, 1, "</td><td>", t.getCountryName(lt_xpri[k].countryID), "</td>" }); html_msg = html_msg + "<td>" + lt_xpri[k].app_no + "</td><td>" + lt_xpri[k].xdate + "</td></tr>"; } html_msg = html_msg + "</table></td></tr>"; } if (lt_rep.Count > 0) { html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>--- ADDRESS OF SERVICE IN NIGERIA ---</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ATTORNEY CODE :</td>"; html_msg = html_msg + "<td>" + lt_rep[0].agent_code + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ATTORNEY NAME :</td><td>" + lt_rep[0].xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_rep[0].nationality) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>COUNTRY :</td><td>" + t.getCountryName(lt_rep[0].country) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>STATE :</td><td>" + t.getStateName(lt_rep[0].state) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'> ADDRESS :</td>"; html_msg = html_msg + "<td>" + lt_rep[0].address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>PHONE NUMBER : </td><td>" + lt_rep[0].xmobile + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>E-MAIL : </td><td>" + lt_rep[0].xemail + "</td></tr>"; html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>--- DOCUMENTS ATTACHED ---</td></tr>"; html_msg = html_msg + "<tr><td align='right'>LETTER OF AUTHORIZATION OF AGENT(FORM 2) :</td><td >"; if (lt_mi[0].loa_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr><tr><td align='right'>CLAIM(S) :</td><td >"; if (lt_mi[0].claim_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr><tr><td align='right'>PCT DOCUMENT:</td><td >"; if (lt_mi[0].pct_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr><tr><td align='right'>DEED OF ASSIGNMENT:</td><td >"; if (lt_mi[0].doa_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>COMPLETE SPECIFICATION (FORM 3):</td><td >"; if (lt_mi[0].spec_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr>"; } html_msg = html_msg + "<tr><td class='tbbg' colspan='2' align='center'> --- MESSAGE FROM COMMERCIAL LAW DEPARTMENT --- </td></tr>"; html_msg = html_msg + "<tr><td align='center' colspan='2'>" + comment.Text + "</td></tr>"; html_msg = html_msg + "<tr><td class='tbbg' colspan='2' align='center'> </td></tr>"; html_msg = html_msg + "<tr><td align='right'>REQUESTING UNIT: </td><td >" + z.getRoleNameByID(x_admin.xroleID) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>REQUESTING OFFICER: </td><td >" + x_admin.xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>DEADLINE FOR RESPONSE:</td><td >" + txt_response_date.Text + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>CONTACT PHONE NUMBER: </td><td >" + x_admin.xtelephone1 + "</td></tr><tr><td class='tbbg' colspan='2'> </td></tr>"; html_msg = html_msg + "</table></div></form></body></html>"; if (email.sendMail(z.getRoleNameByID(x_admin.xroleID).ToUpper(), lt_rep[0].xemail, from, subject, html_msg, "") == "sent") { if (z.e_Contact_formStatus(succ, "1") > 0) { Response.Write("<script language=JavaScript>alert('Message sent successfully')</script>"); Response.Redirect("./profile.aspx"); } else { Response.Write("<script language=JavaScript>alert('The form could not be updated, Please check your internet connection or try again later')</script>"); } } else { Response.Write("<script language=JavaScript>alert('The E-mail could not be sent, Please check your internet connection or try again later')</script>"); } } else { Response.Write("<script language=JavaScript>alert('The form could not be saved, Please check your internet connection or try again later')</script>"); } }