protected void Page_Load(object sender, EventArgs e) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { this.admin = Session["pwalletID"].ToString(); } else { base.Response.Redirect("./xcontrol.aspx"); } } else { base.Response.Redirect("./xcontrol.aspx"); } if (base.Request.QueryString["x"] != null) { this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); this.c_app = this.t.getApplicantByUserID(this.c_p.ID); this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID); this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID); } else { base.Response.Redirect("./profilea_data.aspx"); } }
protected void Verify_Click(object sender, EventArgs e) { this.succ = this.z.a_tm_office(this.c_mark.log_staff, this.admin_status, this.rbValid.SelectedValue, this.comment.Text, "", "", "", this.admin); if (this.succ != "0") { if (this.rbValid.SelectedValue == "kiv") { this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); String ssss = "The Application with Tp number <b>" + this.c_mark.reg_number + "</b> Is at Acceptance unit Kiv Folder . Reason for the action is <br/> <em>" + this.comment.Text + "</em>"; String ssss4 = "Application " + this.c_mark.reg_number + " Status"; Retriever pp3 = new Retriever(); String ss = pp3.addEmail(ssss, ssss4, this.c_p.applicantID, this.c_mark.log_staff); // this.z.sendemail4(this.c_aos.email1, this.c_rep.xname, this.comment.Text, this.c_mark.reg_number); } base.Response.Write("<script language=JavaScript>alert('Data updated successfully')</script>"); base.Response.Redirect("./acceptance.aspx"); } else { base.Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>"); } }
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 (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { this.admin = Session["pwalletID"].ToString(); } else { base.Response.Redirect("./xcontrol.aspx"); } } else { base.Response.Redirect("./xcontrol.aspx"); } this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); this.c_app = this.t.getApplicantByUserID(this.c_p.ID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0")) { this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID); } if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0")) { this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID); } this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID); this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer); if (c_mark.logo_pic != "") { tm_img.ImageUrl = "./" + c_mark.logo_pic; } } else { base.Response.Redirect("./registrar_acpt.aspx"); } }
protected void Verify_Click(object sender, EventArgs e) { if (this.rbval_text == "") { this.rbval_text = "Valid"; } this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); string repname = c_rep.xname; string repemail = c_aos.email1; var vapplicant = z.getApplicant(c_mark.log_staff); TmOffice toffice = z.getLastTmOfficeByID(c_mark.log_staff); string oldstatus = "Verification"; string olddatastatus = "Fresh"; //if (toffice != null) //{ // oldstatus = z.getCurrentStage2(toffice); // olddatastatus = toffice.data_status; //} this.succ = this.z.a_tm_office(this.c_mark.log_staff, this.admin_status, this.rbValid.SelectedValue, this.comment.Text, "", "", "", this.admin); if (this.succ != "0") { if (this.rbValid.SelectedValue == "Kiv") { z.sendemail2(repname, c_mark, repemail, this.comment.Text, this.admin_status, this.admin_status, oldstatus, olddatastatus, c_p.validationID); } base.Response.Write("<script language=JavaScript>alert('Data verified successfully')</script>"); base.Response.Redirect("./verify_data.aspx"); } else { base.Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); if (base.Request.QueryString["x"] != null) { Label44.Text = "<br/>PLEASE NOTE THAT THIS IS NOT AN ORIGINAL CERTIFICATE , PRINT THIS COPY AND PRESENT IT TO THE REGISTRY TO COLLECT YOUR ORIGINAL CERTIFICATE.<br/> CONTACT THE REGISTRY FOR MORE INFORMATION ON HOW TO COLLECT YOUR ORIGINAL COPY. WWW.IPONIGERIA.COM."; Label33.Text = "<br/>PLEASE NOTE THAT THIS IS NOT AN ORIGINAL CERTIFICATE , PRINT THIS COPY AND PRESENT IT TO THE REGISTRY TO COLLECT YOUR ORIGINAL CERTIFICATE .<br/> CONTACT THE REGISTRY FOR MORE INFORMATION ON HOW TO COLLECT YOUR ORIGINAL COPY. WWW.IPONIGERIA.COM."; //if (Session["pwalletID"] != null) //{ // if (Session["pwalletID"].ToString() != "") // { // this.admin = Session["pwalletID"].ToString(); // // xname.Value = this.admin; // } // else // { // base.Response.Redirect("./xcontrol.aspx"); // } //} //else //{ // base.Response.Redirect("./xcontrol.aspx"); //} this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); // xname2.Value = this.c_mark.log_staff; this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); this.c_app = this.t.getApplicantByUserID(this.c_p.ID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); xrtm.Value = c_mark.reg_number; if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0")) { this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID); } if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0")) { this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID); } this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID); //ToString("yyyy-MM-dd") // string day =getDayFormat( Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).ToString("dd") ); string day = getDayFormat(Convert.ToString(Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).Day)); sealed_date = Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).ToString("dd") + day + " " + Convert.ToDateTime(lt_tm_office[lt_tm_office.Count - 1].reg_date).ToString("MMMM, yyyy"); this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer); if (c_mark.logo_pic != "") { tm_img.ImageUrl = "./" + c_mark.logo_pic; if (File.Exists(serverpath + "\\admin\\tm\\" + c_mark.logo_pic)) { tm_img.Height = new Unit(70, UnitType.Pixel); tm_img.Width = new Unit(180, UnitType.Pixel); try { FileStream st = new FileStream(serverpath + "\\admin\\tm\\" + c_mark.logo_pic, FileMode.Open, FileAccess.Read); System.Drawing.Image new_img = System.Drawing.Image.FromStream(st); string ht = new_img.Height.ToString(); string wt = new_img.Width.ToString(); if ((ht != "") && (wt != "") && (ht != null) && (wt != null)) { if (Convert.ToInt32(ht) > Convert.ToInt32(wt)) { // tm_img.Height = new Unit(320, UnitType.Pixel); // tm_img.Width = new Unit(240, UnitType.Pixel); // tm_img.Height = new Unit(180, UnitType.Pixel); // tm_img.Width = new Unit(120, UnitType.Pixel); // tm_img.Height = new Unit(70, UnitType.Pixel); // tm_img.Width = new Unit(170, UnitType.Pixel); } else { // tm_img.Height = new Unit(240, UnitType.Pixel); // tm_img.Width = new Unit(320, UnitType.Pixel); // tm_img.Height = new Unit(70, UnitType.Pixel); // tm_img.Width = new Unit(190, UnitType.Pixel); } } else { // tm_img.Height = new Unit(120, UnitType.Pixel); // tm_img.Width = new Unit(120, UnitType.Pixel); tm_img.Visible = false; } } catch (Exception ex) { tm_img.Visible = false; } } else { // tm_img.Height = new Unit(120, UnitType.Pixel); // tm_img.Width = new Unit(120, UnitType.Pixel); tm_img.Visible = false; } } } else { base.Response.Redirect("./registrar_c.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); 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_app_addy = this.t.getAddressClassByID(this.c_app.addressID); if ((c_mark.xID != "") && (c_mark.xID != null)) { lt_tm_office = z.getTmOfficeDetailsByID(c_mark.log_staff); foreach (zues.TmOffice t in lt_tm_office) { if ((t.data_status == "Accepted") && (t.admin_status == "5")) { acceptance_date.Add(t.reg_date); } } } 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(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.Visible = false; } } catch (Exception ex) { tm_img.Visible = false; } } else { tm_img.Visible = false; } } xcomments = this.z.getTmAdminDetailsByID(admin).xname; } else { base.Response.Redirect("./acceptance_unit/profile.aspx"); } }
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) { 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 == "Kiv") { this.admin_status = "14"; Verify.Visible = true; } if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { this.admin = Session["pwalletID"].ToString(); } else { base.Response.Redirect("./xcontrol.aspx"); } } else { // base.Response.Redirect("./xcontrol.aspx"); } if (base.Request.QueryString["x"] != null) { this.pID = base.Request.QueryString["x"].ToString(); string tt2 = base.Request.QueryString["x2"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); appealupload = this.t.getAppealRefusal(tt2); if (appealupload.Status != "Pending") { showvisible = false; rbValid.Visible = false; comment.Visible = false; } txtAddress.Text = appealupload.Comment; 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); xname.Value = c_p.applicantID; 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; 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>"; 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>"; 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("./verify_data.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { Verify.Visible = false; if (this.rbValid.SelectedValue == "Valid") { this.admin_status = "2"; Verify.Visible = true; } else if (this.rbValid.SelectedValue == "Invalid") { this.admin_status = "1"; Verify.Visible = true; } else if (this.rbValid.SelectedValue == "Kiv") { this.admin_status = "14"; Verify.Visible = true; } if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { this.admin = Session["pwalletID"].ToString(); } else { base.Response.Redirect("./xcontrol.aspx"); } } else { base.Response.Redirect("./xcontrol.aspx"); } if (base.Request.QueryString["x"] != null) { this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); this.c_app = this.t.getApplicantByUserID(this.c_p.ID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); 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); } xname.Value = c_p.applicantID; 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; } else { base.Response.Redirect("./verify_data.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { Verify.Visible = false; if (this.rbValid.SelectedValue == "Valid") { this.admin_status = "2"; Verify.Visible = true; } else if (this.rbValid.SelectedValue == "Invalid") { this.admin_status = "1"; Verify.Visible = true; } else if (this.rbValid.SelectedValue == "Kiv") { this.admin_status = "14"; Verify.Visible = true; } if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { this.admin = Session["pwalletID"].ToString(); } else { base.Response.Redirect("./xcontrol.aspx"); } } else { base.Response.Redirect("./xcontrol.aspx"); } if (base.Request.QueryString["x"] != null) { this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); this.c_app = this.t.getApplicantByUserID(this.c_p.ID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); // MarkInfo markinfo = getMarkInfoByUserID(pwalletID); // string repname = getAgentInfo(pwalletID).Agent_Name; // string repemail = getAgentInfo(pwalletID).Email; // sendemail2(repname, markinfo, repemail, xcomment, admin_status, data_status); if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0")) { this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID); } if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0")) { this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID); } } else { base.Response.Redirect("./verify_data.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); if (base.Request.QueryString["x"] != null) { //if (Session["pwalletID"] != null) //{ // if (Session["pwalletID"].ToString() != "") // { // this.admin = Session["pwalletID"].ToString(); // } // else // { // base.Response.Redirect("./xcontrol.aspx"); // } //} //else //{ // base.Response.Redirect("./xcontrol.aspx"); //} if (!this.IsPostBack) { //string script = "document.getElementById('bgMark').style.background = \"url(\" + document.getElementById('" //+ imgWaterMark.ClientID + "').src + \") 0 20 repeat \";"; //if (ScriptManager.GetCurrent(this.Page) == null) // Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "block", script, true); //else // ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "block", script, true); string ID = "test"; if (base.Request.QueryString["x2"] != null) { // imgWaterMark.ImageUrl = ResolveUrl("~") + string.Format("Handlers/WaterMarks.ashx?id={0}", ID); pp7.BackImageUrl = ResolveUrl("~") + string.Format("Handlers/WaterMarks.ashx?id={0}", ID); } } this.pID = base.Request.QueryString["x"].ToString(); this.c_mark = this.z.getMarkInfoByUserID(this.pID); this.c_p = this.z.getPwalletDetailsByID(this.c_mark.log_staff); this.c_app = this.t.getApplicantByUserID(this.c_p.ID); this.c_aos = this.t.getAddressServiceByID(this.c_p.ID); this.c_rep = this.t.getRepByUserID(this.c_p.ID); if ((c_app.addressID != null) && (c_app.addressID != "") && (c_app.addressID != "0")) { this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID); } if ((c_rep.addressID != null) && (c_rep.addressID != "") && (c_rep.addressID != "0")) { this.c_rep_addy = this.t.getAddressClassByID(this.c_rep.addressID); } this.lt_tm_office = this.z.getTmOfficeDetailsByID(this.c_p.ID); this.lt_tm_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[0].xofficer); xreason = lt_tm_office[lt_tm_office.Count - 1].xcomment; if (c_mark.logo_pic != "") { tm_img.ImageUrl = "./" + c_mark.logo_pic; //added //if (File.Exists("./" + c_mark.logo_pic)) //// if (File.Exists(serverpath + "\\admin\\tm\\" + c_mark.logo_pic)) //{ // // tm_img.Height = new Unit(120, UnitType.Pixel); // // tm_img.Width = new Unit(120, UnitType.Pixel); // tm_img.Height = new Unit(200, UnitType.Pixel); // tm_img.Width = new Unit(141, UnitType.Pixel); // try // { // FileStream st = new FileStream(serverpath + "\\admin\\tm\\" + c_mark.logo_pic, FileMode.Open, FileAccess.Read); // System.Drawing.Image new_img = System.Drawing.Image.FromStream(st); // string ht = new_img.Height.ToString(); // string wt = new_img.Width.ToString(); // if ((ht != "") && (wt != "") && (ht != null) && (wt != null)) // { // if (Convert.ToInt32(ht) > Convert.ToInt32(wt)) // { // // tm_img.Height = new Unit(320, UnitType.Pixel); // // tm_img.Width = new Unit(240, UnitType.Pixel); // tm_img.Height = new Unit(200, UnitType.Pixel); // tm_img.Width = new Unit(141, UnitType.Pixel); // } // else // { // // tm_img.Height = new Unit(240, UnitType.Pixel); // // tm_img.Width = new Unit(320, UnitType.Pixel); // tm_img.Height = new Unit(141, UnitType.Pixel); // tm_img.Width = new Unit(200, UnitType.Pixel); // } // } // else // { // // tm_img.Height = new Unit(120, UnitType.Pixel); // // tm_img.Width = new Unit(120, UnitType.Pixel); // tm_img.Visible = false; // } // } // catch (Exception ex) // { // tm_img.Visible = false; // } //} //else //{ // // tm_img.Height = new Unit(120, UnitType.Pixel); // // tm_img.Width = new Unit(120, UnitType.Pixel); // tm_img.Visible = false; //} //added } } else { base.Response.Redirect("./rejection_slip.aspx"); } }
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"); } }