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 + " "; 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("./opposition.aspx"); } }
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(); Session["appID"] = base.Request.QueryString["x"].ToString(); this.swallet = this.t.getSwalletByID(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>"; 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) { if (this.Session["pwalletID"] != null) { if (this.Session["pwalletID"].ToString() != "") { this.admin = this.Session["pwalletID"].ToString(); } else { base.Response.Redirect("./xcontrol.aspx"); } } else { base.Response.Redirect("./xcontrol.aspx"); } if (base.Request.QueryString["x"] != null) { this.xmarkID.Value = base.Request.QueryString["x"].ToString(); this.xlof_officer.Value = this.admin; } this.swallet = this.t.getSwalletByID2(this.xmarkID.Value); /////// if (swallet.mark_infoID != null) { string[] chars = new string[] { ",", ".", "/", "!", "@", "#", "$", "%", "^", "&", "*", "'", "\"", ";", "_", "(", ")", ":", "|", "[", "]" }; string item = this.swallet.search_str; for (int i = 0; i < chars.Length; i++) { item = item.Replace(chars[i], ""); } string selectSearchClass = swallet.xclass; foreach (string str2 in item.Split(new char[] { ' ' })) { if (str2 != "") { List <zues.MarkInfo> list = new List <zues.MarkInfo>(); int count = 0; list = this.z.getSearchMarkInfoRS(str2, null, selectSearchClass); if (list.Count > 0) { for (int k = 0; k < list.Count; k++) { if (!this.lt_searchcri.Contains(list[k].xID)) { this.lt_searchcri.Add(list[k].xID); } } this.fulltext.Add(str2); count = list.Count; this.lt_tot.Add(count); this.lt_lt_mi.Add(list); } } } foreach (string str3 in this.fulltext) { string str4 = str3 + " "; this.new_search_text.Add(str4); this.sbFulltext.Append(str4); } this.kword_cnt = this.fulltext.Count; if (this.new_search_text.Count > 0) { List <zues.MarkInfo> list2 = new List <zues.MarkInfo>(); list2 = this.z.getSearchMarkInfoRS("", this.new_search_text, selectSearchClass); if (list2.Count > 0) { for (int m = 0; m < list2.Count; m++) { if (!this.lt_searchcri.Contains(list2[m].xID)) { this.lt_searchcri.Add(list2[m].xID); } } this.lt_tot.Add(list2.Count); this.totsearch += this.lt_tot[this.lt_tot.Count - 1]; this.lt_lt_mi.Add(list2); } } this.fulltext.Add(item); this.searchstr = this.sbFulltext.ToString().Trim(); for (int i = 0; i < this.lt_searchcri.Count; i++) { if (i != (this.lt_searchcri.Count - 1)) { this.searchcri = this.searchcri + this.lt_searchcri[i] + ","; } else { this.searchcri = this.searchcri + this.lt_searchcri[i]; } } this.xsearchcri.Value = this.searchcri; this.xsearchstr.Value = this.searchstr; string final = ""; for (int j = 0; j < this.lt_lt_mi.Count; j++) { if (j != (this.lt_lt_mi.Count - 1)) { this.xresults = this.xresults + this.convertMarkList2Html(this.lt_lt_mi[j], this.fulltext[j], this.totsearch, this.lt_tot[j], ""); } else { final = "100"; this.xresults = this.xresults + this.convertMarkList2Html(this.lt_lt_mi[j], this.fulltext[j], this.totsearch, this.lt_tot[j], final); } } if (this.xresults == "") { this.xresults = this.xresults + "<tr >"; this.xresults = this.xresults + "<td class=\"\" align=\"center\" colspan=\"8\">"; this.xresults = this.xresults + "<strong>NO</strong> RECORD WAS FOUND FOR SEARCH QUERY <strong>\"" + item.ToUpper() + " \" </strong> </td>"; this.xresults = this.xresults + "</td>"; this.xresults = this.xresults + "</tr>"; } } }
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"); } }