protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["x"] != null) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); } else { Response.Redirect("../lo.aspx"); } } else { Response.Redirect("../lo.aspx"); } pID = Request.QueryString["x"].ToString(); lt_mi = t.getPtInfoByUserID(pID); lt_p = t.getPwalletDetailsByID(lt_mi[0].log_staff); lt_app = t.getApplicantByUserID(lt_mi[0].log_staff); lt_addy = t.getAddressByLog_staffID(lt_mi[0].log_staff); lt_addy_service = t.getAddressServiceByID(lt_mi[0].log_staff); lt_rep = t.getRepListByUserID(lt_mi[0].log_staff); lt_tm_office = z.getPtOfficeDetailsByID(lt_mi[0].log_staff); lt_stage = t.getStageByUserID(lt_mi[0].log_staff); } else { Response.Redirect("./registrar_c.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["x"] != null) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); } else { Response.Redirect("../lo.aspx"); } } else { Response.Redirect("../lo.aspx"); } pID = Request.QueryString["x"].ToString(); Session["appID"] = Request.QueryString["x"].ToString(); lt_mi = t.getPtInfoByUserID(pID); lt_p = t.getPwalletDetailsByID(lt_mi[0].log_staff); lt_tm_office = z.getPtOfficeDetailsByID(lt_mi[0].log_staff); lt_rep = t.getRepListByUserID(lt_mi[0].log_staff); lt_stage = t.getStageByUserID(lt_mi[0].log_staff); lt_app = t.getApplicantByvalidationID(lt_mi[0].log_staff); lt_inv = t.getInventorByvalidationID(lt_mi[0].log_staff); lt_assinfo = t.getAssignment_infoByvalidationID(lt_mi[0].log_staff); lt_xpri = t.getPriority_infoByvalidationID(lt_mi[0].log_staff); for (int i = 0; i < lt_tm_office.Count; i++) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td align=\"center\" colspan=\"2\">"; xcomments = xcomments + "<strong>" + lt_tm_office[i].xcomment.ToUpper() + "</strong><br />"; lt_x_admin_details = z.getTmAdminDetailsByID(lt_tm_office[i].xofficer); if (lt_x_admin_details.Count > 0) { xcomments = xcomments + "COMMENT BY: <strong>" + lt_x_admin_details[0].xname.ToUpper() + "( " + z.getRoleNameByID(lt_x_admin_details[0].xroleID).ToUpper() + " )</strong><br /> Date: <strong>" + lt_tm_office[i].reg_date.ToUpper() + "</strong>"; } else { xcomments = xcomments + "COMMENT BY: <strong> NA</strong>"; } xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } } else { Response.Redirect("./profile.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if ((Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"].ToString() != "")) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"].ToString(); if (vid.Contains("OAI/PT/")) { vid = vid.Replace("OAI/PT/", ""); } pwalletID = t.getPwalletID(vid); if (pwalletID != "") { lt_mi = t.getPtInfoByPwalletID(pwalletID); lt_rep = t.getRepListByUserID(pwalletID); lt_stage = t.getStageByUserID(pwalletID); lt_app = t.getApplicantByvalidationID(pwalletID); lt_inv = t.getInventorByvalidationID(pwalletID); lt_assinfo = t.getAssignment_infoByvalidationID(pwalletID); lt_xpri = t.getPriority_infoByvalidationID(pwalletID); Session["xserviceaddress"] = null; Session["xrepresentative"] = null; Session["xmarkinfo"] = null; Session["xapplication"] = null; Session["vid"] = null; Session["amt"] = null; Session["aid"] = null; Session["g"] = null; Session["pc"] = null; Session["new_ptID"] = null; Session["loa_newfilename"] = null; Session["claim_newfilename"] = null; Session["pct_newfilename"] = null; Session["doa_newfilename"] = null; Session["spec_newfilename"] = null; Session["txt_loa_no"] = null; Session["txt_claim_no"] = null; Session["txt_pct_no"] = null; Session["txt_doa_no"] = null; } } else { Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } if ((Request.QueryString["94384238SKFGKSDKGFSDKFSKFDKFD"] != null) && (Request.QueryString["94384238SKFGKSDKGFSDKFSKFDKFD"].ToString() != "")) { aid = Request.QueryString["94384238SKFGKSDKGFSDKFSKFDKFD"].ToString(); } else { Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } }
protected void Page_Load(object sender, EventArgs e) { Verify.Visible = false; if (rbValid.SelectedValue == "Valid") { admin_status = "2"; Verify.Visible = true; } else if (rbValid.SelectedValue == "Invalid") { admin_status = "1"; Verify.Visible = true; } else if (rbValid.SelectedValue == "V_Contact") { admin_status = "1"; Verify.Visible = true; } if (Request.QueryString["x"] != null) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); } else { Response.Redirect("../lo.aspx"); } } else { Response.Redirect("../lo.aspx"); } pID = Request.QueryString["x"].ToString(); lt_mi = t.getPtInfoByUserID(pID); lt_rep = t.getRepListByUserID(lt_mi[0].log_staff); lt_stage = t.getStageByUserID(lt_mi[0].log_staff); lt_app = t.getApplicantByvalidationID(lt_mi[0].log_staff); lt_inv = t.getInventorByvalidationID(lt_mi[0].log_staff); lt_assinfo = t.getAssignment_infoByvalidationID(lt_mi[0].log_staff); lt_xpri = t.getPriority_infoByvalidationID(lt_mi[0].log_staff); } else { Response.Redirect("./verify_data.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { // vid = Request.QueryString["x"].ToString(); var Value = Convert.ToString(Request.Form["transID"]); var Value2 = Convert.ToString(Request.Form["recordalid"]); var kk2 = Convert.ToInt32(Value2); pwalletID = t.getPwalletID22(Value); recordal = t.getG_PwalletByID3(kk2); applicant_recordal = t.getApplicantRecordal(Value2); if (pwalletID != "") { lt_mi = t.getPtInfoByPwalletID(pwalletID); lt_rep = t.getRepListByUserID(pwalletID); lt_stage = t.getStageByUserID(pwalletID); lt_app = t.getApplicantByvalidationID(pwalletID); lt_inv = t.getInventorByvalidationID(pwalletID); lt_assinfo = t.getAssignment_infoByvalidationID(pwalletID); lt_xpri = t.getPriority_infoByvalidationID(pwalletID); Session["xserviceaddress"] = null; Session["xrepresentative"] = null; Session["xmarkinfo"] = null; Session["xapplication"] = null; Session["vid"] = null; Session["amt"] = null; Session["aid"] = null; Session["g"] = null; Session["pc"] = null; Session["new_ptID"] = null; Session["loa_newfilename"] = null; Session["claim_newfilename"] = null; Session["pct_newfilename"] = null; Session["doa_newfilename"] = null; Session["spec_newfilename"] = null; Session["txt_loa_no"] = null; Session["txt_claim_no"] = null; Session["txt_pct_no"] = null; Session["txt_doa_no"] = null; } }
protected void Page_Load(object sender, EventArgs e) { Submit.Visible = false; if (rbValid.SelectedValue == "Grant Patent") { admin_status = "6"; Submit.Visible = true; } else if (rbValid.SelectedValue == "Review Patent") { admin_status = "5"; Submit.Visible = true; } serverpath = 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, ""); } } if ((txt_response_date.Text != "") && (comment.Text != "")) { Verify.Visible = true; Confirm.Visible = false; } else { Verify.Visible = false; Confirm.Visible = true; } if (Request.QueryString["x"] != null) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); } else { Response.Redirect("../lo.aspx"); } } else { Response.Redirect("../lo.aspx"); } pID = Request.QueryString["x"].ToString(); lt_mi = t.getPtInfoByUserID(pID); lt_rep = t.getRepListByUserID(lt_mi[0].log_staff); lt_stage = t.getStageByUserID(lt_mi[0].log_staff); lt_app = t.getApplicantByvalidationID(lt_mi[0].log_staff); lt_inv = t.getInventorByvalidationID(lt_mi[0].log_staff); lt_assinfo = t.getAssignment_infoByvalidationID(lt_mi[0].log_staff); lt_xpri = t.getPriority_infoByvalidationID(lt_mi[0].log_staff); lt_tm_office = z.getPtOfficeDetailsByID(lt_mi[0].log_staff); for (int i = 0; i < lt_tm_office.Count; i++) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td align=\"center\" colspan=\"2\">"; xcomments = xcomments + "<strong>" + lt_tm_office[i].xcomment.ToUpper() + "</strong><br />"; lt_x_admin_details = z.getTmAdminDetailsByID(lt_tm_office[i].xofficer); if (lt_x_admin_details.Count > 0) { xcomments = xcomments + "COMMENT BY: <strong>" + lt_x_admin_details[0].xname.ToUpper() + "( " + z.getRoleNameByID(lt_x_admin_details[0].xroleID).ToUpper() + " )</strong><br /> Date: <strong>" + lt_tm_office[i].reg_date.ToUpper() + "</strong>"; } else { xcomments = xcomments + "COMMENT BY: <strong> NA</strong>"; } xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } } else { Response.Redirect("./pt_profile.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { Verify.Visible = false; if (rbValid.SelectedValue == "Patentable") { admin_status = "5"; Verify.Visible = true; } else if (rbValid.SelectedValue == "Not-Patentable") { admin_status = "4"; Verify.Visible = true; } else if (rbValid.SelectedValue == "A_Contact") { admin_status = "4"; Verify.Visible = true; } if (Request.QueryString["x"] != null) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); } else { Response.Redirect("../lo.aspx"); } } else { Response.Redirect("../lo.aspx"); } pID = Request.QueryString["x"].ToString(); swallet = t.getSwalletByID(pID); lt_mi = t.getPtInfoByUserID(pID); lt_p = t.getPwalletDetailsByID(lt_mi[0].log_staff); lt_tm_office = z.getPtOfficeDetailsByID(lt_mi[0].log_staff); lt_rep = t.getRepListByUserID(lt_mi[0].log_staff); lt_stage = t.getStageByUserID(lt_mi[0].log_staff); lt_app = t.getApplicantByvalidationID(lt_mi[0].log_staff); lt_inv = t.getInventorByvalidationID(lt_mi[0].log_staff); lt_assinfo = t.getAssignment_infoByvalidationID(lt_mi[0].log_staff); lt_xpri = t.getPriority_infoByvalidationID(lt_mi[0].log_staff); for (int i = 0; i < lt_tm_office.Count; i++) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td align=\"center\" colspan=\"2\">"; xcomments = xcomments + "<strong>" + lt_tm_office[i].xcomment.ToUpper() + "</strong><br />"; lt_x_admin_details = z.getTmAdminDetailsByID(lt_tm_office[i].xofficer); if (lt_x_admin_details.Count > 0) { xcomments = xcomments + "COMMENT BY: <strong>" + lt_x_admin_details[0].xname.ToUpper() + "( " + z.getRoleNameByID(lt_x_admin_details[0].xroleID).ToUpper() + " )</strong><br /> Date: <strong>" + lt_tm_office[i].reg_date.ToUpper() + "</strong>"; } else { xcomments = xcomments + "COMMENT BY: <strong> NA</strong>"; } xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; if (lt_tm_office[i].xdoc1 != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"2\" align=\"center\">"; xcomments = xcomments + "View Document 1: <a href=" + lt_tm_office[i].xdoc1 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_tm_office[i].xdoc2 != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"2\" align=\"center\">"; xcomments = xcomments + "View Document 2: <a href=" + lt_tm_office[i].xdoc2 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_tm_office[i].xdoc3 != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"2\" align=\"center\">"; xcomments = xcomments + "View Document 3: <a href=" + lt_tm_office[i].xdoc3 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_tm_office[i].admin_status == "3") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; xcomments = xcomments + "--- SUPPORTING SEARCH DOCUMENTS ---"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td align=\"right\">"; xcomments = xcomments + "Attached Document:"; xcomments = xcomments + "</td>"; xcomments = xcomments + "<td>"; if ((swallet.search_str != "") && (swallet.search_str != null)) { xcomments = xcomments + "<a href=view_search_details.aspx?x=" + pID + " target='_blank'>View</a>"; } else { xcomments = xcomments + "NONE"; } xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } } } else { Response.Redirect("./profile.aspx"); } }
protected void Save_Click(object sender, EventArgs e) { if (xref.Text != "") { if (xref.Text.Contains("OAI/PT/")) { xref.Text = xref.Text.Replace("OAI/PT/", ""); } r = xref.Text; lt_pw = t.getStageByUserIDAcc(xref.Text, agt); if (lt_pw.Count > 0) { pt.Stage stage = t.getStatusIDByvalidationID(xref.Text.Trim()); lt_mix = t.getPtInfoByPwalletID(lt_pw[0].ID); lt_repx = t.getRepListByUserID(lt_pw[0].ID); lt_stagex = t.getStageByUserID(lt_pw[0].ID); lt_appx = t.getApplicantByvalidationID(lt_pw[0].ID); lt_invx = t.getInventorByvalidationID(lt_pw[0].ID); lt_assinfox = t.getAssignment_infoByvalidationID(lt_pw[0].ID); lt_xprix = t.getPriority_infoByvalidationID(lt_pw[0].ID); Session["xvid"] = xref.Text; showt = 1; if ((((Convert.ToInt32(stage.status) == 1) && (lt_appx.Count >= 1)) && ((lt_mix.Count == 1) && (lt_stagex.Count == 1))) && (lt_repx.Count == 1)) { if ((((lt_mix[0].pt_desc == "") || (lt_appx[0].address == "")) || ((lt_appx[0].xmobile == "") || (lt_repx[0].address == ""))) || (lt_repx[0].xmobile == "")) { status = "Verification"; data_status = "Uncompleted"; refill = 1; } else { refill = 0; showStatus(lt_pw); } } else if ((Convert.ToInt32(stage.status) == 1) && ((((lt_appx.Count >= 1) || (lt_mix.Count == 1)) || (lt_stagex.Count == 1)) || (lt_repx.Count == 1))) { status = "Verification"; data_status = "Uncompleted"; refill = 1; } else if (Convert.ToInt32(stage.status) > 1) { refill = 0; if (lt_pw.Count != 0) { Session["xvid"] = xref.Text; lt_mi = t.getPtInfoByUserID(lt_pw[0].ID); lt_rep = t.getRepByUserID(lt_pw[0].ID); showStatus(lt_pw); } else { status = "N/A"; } } } } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["XXX1234445"] != null) { vid = Request.QueryString["XXX1234445"].ToString(); if (vid.Contains("OAI/PT/")) { vid = vid.Replace("OAI/TM/", ""); } Session["vid"] = vid; } if (Request.QueryString["XXX94384238"] != null) { aid = Request.QueryString["XXX94384238"].ToString(); Session["aid"] = aid; } if (!Page.IsPostBack) { int num; int num2; Session["loa_doc"] = null; Session["claim_doc"] = null; Session["pct_doc"] = null; Session["doa_doc"] = null; Session["spec_doc"] = null; Session["loa_doc_no"] = null; Session["claim_doc_no"] = null; Session["pct_doc_no"] = null; Session["doa_doc_no"] = null; Session["pc"] = null; lt_pwx = t.getStageByUserIDAcc(vid, aid); if (lt_pwx.Count > 0) { Session["lt_pwx"] = lt_pwx; rep_code.Text = lt_pwx[0].applicantID; if (lt_pwx[0].amt == "25000") { lbl_type.Text = "CONVENTIONAL"; } else { lbl_type.Text = "NON-CONVENTIONAL"; } lt_mix = t.getPtInfoByPwalletID(lt_pwx[0].ID); lt_repx = t.getRepListByUserID(lt_pwx[0].ID); lt_stagex = t.getStageByUserID(lt_pwx[0].ID); lt_appx = t.getApplicantByvalidationID(lt_pwx[0].ID); lt_invx = t.getInventorByvalidationID(lt_pwx[0].ID); lt_assinfox = t.getAssignment_infoByvalidationID(lt_pwx[0].ID); lt_xprix = t.getPriority_infoByvalidationID(lt_pwx[0].ID); } SetInitialRow_App_gv(); SetInitialRow_Inv_gv(); if (Session["vid"] != null) { transID = Session["vid"].ToString(); } if (lt_mix.Count > 0) { string str = "admin/pt/"; Session["lt_mix"] = lt_mix; Session["pc"] = lt_mix[0].xtype; Session["loa_doc"] = str + lt_mix[0].loa_doc; Session["claim_doc"] = str + lt_mix[0].claim_doc; Session["pct_doc"] = str + lt_mix[0].pct_doc; Session["doa_doc"] = str + lt_mix[0].doa_doc; Session["spec_doc"] = str + lt_mix[0].spec_doc; Session["loa_doc_no"] = lt_mix[0].loa_no; Session["claim_doc_no"] = lt_mix[0].claim_no; Session["pct_doc_no"] = lt_mix[0].pct_no; Session["doa_doc_no"] = lt_mix[0].doa_no; lbl_type.Text = lt_mix[0].xtype; txt_title_of_invention.Text = lt_mix[0].title_of_invention; txt_pt_desc.Text = lt_mix[0].pt_desc; } if (lt_assinfox.Count > 0) { Session["lt_assinfox"] = lt_assinfox; txt_assignment_date.Text = lt_assinfox[0].date_of_assignment; txt_assignee_name.Text = lt_assinfox[0].assignee_name; txt_assignee_address.Text = lt_assinfox[0].assignee_address; select_assignee_nationality.SelectedIndex = Convert.ToInt32(lt_assinfox[0].assignee_nationality) - 1; txt_assignor_name.Text = lt_assinfox[0].assignor_name; txt_assignor_address.Text = lt_assinfox[0].assignor_address; select_assignor_nationality.SelectedIndex = Convert.ToInt32(lt_assinfox[0].assignor_nationality) - 1; } if (lt_repx.Count > 0) { Session["lt_repx"] = lt_repx; rep_code.Text = lt_repx[0].agent_code; rep_xname.Text = lt_repx[0].xname; txt_rep_email.Text = lt_repx[0].xemail; txt_rep_telephone.Text = lt_repx[0].xmobile; select_rep_state.SelectedIndex = Convert.ToInt32(lt_repx[0].state) - 1; txt_rep_address.Text = lt_repx[0].address; } if (lt_xprix.Count > 0) { Session["lt_xprix"] = lt_xprix; select_country_pri.SelectedIndex = Convert.ToInt32(lt_xprix[0].countryID) - 1; txt_application_no_pri.Text = lt_xprix[0].app_no; txt_date_pri.Text = lt_xprix[0].xdate; } if (lt_appx.Count > 0) { Session["lt_appx"] = lt_appx; for (num = 0; num < lt_appx.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_App_gv(lt_appx[num].xname, lt_appx[num].address, lt_appx[num].xemail, lt_appx[num].xmobile, Convert.ToInt32(lt_appx[num].nationality), num2); } } if (lt_invx.Count > 0) { Session["lt_invx"] = lt_invx; for (num = 0; num < lt_invx.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_Inv_gv(lt_invx[num].xname, lt_invx[num].address, lt_invx[num].xemail, lt_invx[num].xmobile, Convert.ToInt32(lt_invx[num].nationality), num2); } } } }
protected void Save_Click(object sender, EventArgs e) { if (xref.Text != "") { int num; int num2; lt_pwx = t.getStageByUserIDAdmin(xref.Text.Trim()); int vstatus = Convert.ToInt32(lt_pwx[0].status); string vstatus3 = lt_pwx[0].data_status; if (vstatus > 3 || vstatus3 == "Refused") { Page.ClientScript.RegisterStartupScript(this.GetType(), "showDialogue", "showDialogue('" + "Sorry You Cannot Edit Application At this Stage" + "');", true); return; } else { } if (lt_pwx.Count > 0) { Session["vid"] = xref.Text.Trim(); Session["lt_pwx"] = lt_pwx; Session["log_staff"] = lt_pwx[0].ID; rep_code.Text = lt_pwx[0].applicantID; lt_mix = t.getPtInfoByPwalletID(lt_pwx[0].ID); lt_repx = t.getRepListByUserID(lt_pwx[0].ID); lt_stagex = t.getStageByUserID(lt_pwx[0].ID); lt_appx = t.getApplicantByvalidationID(lt_pwx[0].ID); oldname = lt_appx[0].xname; lt_invx = t.getInventorByvalidationID(lt_pwx[0].ID); lt_assinfox = t.getAssignment_infoByvalidationID(lt_pwx[0].ID); lt_xprix = t.getPriority_infoByvalidationID(lt_pwx[0].ID); } SetInitialRow_App_gv(); SetInitialRow_Inv_gv(); SetInitialRow_Pri_gv(); if (Session["vid"] != null) { transID = Session["vid"].ToString(); } if (lt_mix.Count > 0) { string str = "../"; Session["lt_mix"] = lt_mix; Session["pc"] = lt_mix[0].xtype; Session["loa_doc"] = str + lt_mix[0].loa_doc; Session["claim_doc"] = str + lt_mix[0].claim_doc; Session["pct_doc"] = str + lt_mix[0].pct_doc; Session["doa_doc"] = str + lt_mix[0].doa_doc; Session["spec_doc"] = str + lt_mix[0].spec_doc; Session["loa_doc_no"] = lt_mix[0].loa_no; Session["claim_doc_no"] = lt_mix[0].claim_no; Session["pct_doc_no"] = lt_mix[0].pct_no; Session["doa_doc_no"] = lt_mix[0].doa_no; lbl_type.Text = lt_mix[0].xtype; oldproduct_title = lt_mix[0].title_of_invention; txt_title_of_invention.Text = lt_mix[0].title_of_invention; txt_pt_desc.Text = lt_mix[0].pt_desc; TextBox1.Text = lt_mix[0].reg_date; } if (lt_assinfox.Count > 0) { Session["lt_assinfox"] = lt_assinfox; txt_assignment_date.Text = lt_assinfox[0].date_of_assignment; txt_assignee_name.Text = lt_assinfox[0].assignee_name; txt_assignee_address.Text = lt_assinfox[0].assignee_address; select_assignee_nationality.SelectedIndex = Convert.ToInt32(lt_assinfox[0].assignee_nationality) - 1; txt_assignor_name.Text = lt_assinfox[0].assignor_name; txt_assignor_address.Text = lt_assinfox[0].assignor_address; select_assignor_nationality.SelectedIndex = Convert.ToInt32(lt_assinfox[0].assignor_nationality) - 1; } if (lt_repx.Count > 0) { Session["lt_repx"] = lt_repx; rep_code.Text = lt_repx[0].agent_code; rep_xname.Text = lt_repx[0].xname; txt_rep_email.Text = lt_repx[0].xemail; txt_rep_telephone.Text = lt_repx[0].xmobile; select_rep_state.SelectedIndex = Convert.ToInt32(lt_repx[0].state) - 1; txt_rep_address.Text = lt_repx[0].address; } if (lt_xprix.Count > 0) { Session["lt_xprix"] = lt_xprix; for (num = 0; num < lt_xprix.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_Pri_gv(lt_xprix[num].app_no, lt_xprix[num].xdate, lt_xprix[num].countryID, num2, lt_xprix[num].xID); } // select_country_pri.SelectedIndex = Convert.ToInt32(lt_xprix[0].countryID) - 1; // txt_application_no_pri.Text = lt_xprix[0].app_no; // txt_date_pri.Text = lt_xprix[0].xdate; } if (lt_appx.Count > 0) { Session["lt_appx"] = lt_appx; for (num = 0; num < lt_appx.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_App_gv(lt_appx[num].xname, lt_appx[num].address, lt_appx[num].xemail, lt_appx[num].xmobile, Convert.ToInt32(lt_appx[num].nationality), num2); } } if (lt_invx.Count > 0) { Session["lt_invx"] = lt_invx; for (num = 0; num < lt_invx.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_Inv_gv(lt_invx[num].xname, lt_invx[num].address, lt_invx[num].xemail, lt_invx[num].xmobile, Convert.ToInt32(lt_invx[num].nationality), num2); } } showt = 1; admin = Session["pwalletID"].ToString(); lt_pwx = (List <pt.Stage>)Session["lt_pwx"]; } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Save_Click(object sender, EventArgs e) { if (xref.Text != "") { int num; int num2; lt_pwx = t.getStageByUserIDAdmin(xref.Text.Trim()); if (lt_pwx.Count > 0) { Session["vid"] = xref.Text.Trim(); Session["lt_pwx"] = lt_pwx; Session["log_staff"] = lt_pwx[0].ID; rep_code.Text = lt_pwx[0].applicantID; lt_mix = t.getPtInfoByPwalletID(lt_pwx[0].ID); lt_repx = t.getRepListByUserID(lt_pwx[0].ID); lt_stagex = t.getStageByUserID(lt_pwx[0].ID); lt_appx = t.getApplicantByvalidationID(lt_pwx[0].ID); lt_invx = t.getInventorByvalidationID(lt_pwx[0].ID); lt_assinfox = t.getAssignment_infoByvalidationID(lt_pwx[0].ID); lt_xprix = t.getPriority_infoByvalidationID(lt_pwx[0].ID); } SetInitialRow_App_gv(); SetInitialRow_Inv_gv(); if (Session["vid"] != null) { transID = Session["vid"].ToString(); } if (lt_mix.Count > 0) { string str = "../"; Session["lt_mix"] = lt_mix; Session["pc"] = lt_mix[0].xtype; Session["loa_doc"] = str + lt_mix[0].loa_doc; Session["claim_doc"] = str + lt_mix[0].claim_doc; Session["pct_doc"] = str + lt_mix[0].pct_doc; Session["doa_doc"] = str + lt_mix[0].doa_doc; Session["spec_doc"] = str + lt_mix[0].spec_doc; Session["loa_doc_no"] = lt_mix[0].loa_no; Session["claim_doc_no"] = lt_mix[0].claim_no; Session["pct_doc_no"] = lt_mix[0].pct_no; Session["doa_doc_no"] = lt_mix[0].doa_no; lbl_type.Text = lt_mix[0].xtype; txt_title_of_invention.Text = lt_mix[0].title_of_invention; txt_pt_desc.Text = lt_mix[0].pt_desc; TextBox1.Text = lt_mix[0].reg_date; TextBox2.Text = lt_mix[0].reg_number; } if (lt_assinfox.Count > 0) { Session["lt_assinfox"] = lt_assinfox; txt_assignment_date.Text = lt_assinfox[0].date_of_assignment; txt_assignee_name.Text = lt_assinfox[0].assignee_name; txt_assignee_address.Text = lt_assinfox[0].assignee_address; select_assignee_nationality.SelectedIndex = Convert.ToInt32(lt_assinfox[0].assignee_nationality) - 1; txt_assignor_name.Text = lt_assinfox[0].assignor_name; txt_assignor_address.Text = lt_assinfox[0].assignor_address; select_assignor_nationality.SelectedIndex = Convert.ToInt32(lt_assinfox[0].assignor_nationality) - 1; } if (lt_repx.Count > 0) { Session["lt_repx"] = lt_repx; rep_code.Text = lt_repx[0].agent_code; rep_xname.Text = lt_repx[0].xname; txt_rep_email.Text = lt_repx[0].xemail; txt_rep_telephone.Text = lt_repx[0].xmobile; select_rep_state.SelectedIndex = Convert.ToInt32(lt_repx[0].state) - 1; txt_rep_address.Text = lt_repx[0].address; } if (lt_xprix.Count > 0) { Session["lt_xprix"] = lt_xprix; select_country_pri.SelectedIndex = Convert.ToInt32(lt_xprix[0].countryID) - 1; txt_application_no_pri.Text = lt_xprix[0].app_no; txt_date_pri.Text = lt_xprix[0].xdate; } if (lt_appx.Count > 0) { Session["lt_appx"] = lt_appx; for (num = 0; num < lt_appx.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_App_gv(lt_appx[num].xname, lt_appx[num].address, lt_appx[num].xemail, lt_appx[num].xmobile, Convert.ToInt32(lt_appx[num].nationality), num2); } } if (lt_invx.Count > 0) { Session["lt_invx"] = lt_invx; for (num = 0; num < lt_invx.Count; num++) { num2 = num + 1; UpdateNewRowToGrid_Inv_gv(lt_invx[num].xname, lt_invx[num].address, lt_invx[num].xemail, lt_invx[num].xmobile, Convert.ToInt32(lt_invx[num].nationality), num2); } } showt = 1; } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["x"] != null) { if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); } else { Response.Redirect("../lo.aspx"); } } else { Response.Redirect("../lo.aspx"); } pID = Request.QueryString["x"].ToString(); lt_mi = t.getPtInfoByUserID(pID); lt_p = t.getPwalletDetailsByID(lt_mi[0].log_staff); lt_app = t.getApplicantByUserID(lt_mi[0].log_staff); lt_addy = t.getAddressByLog_staffID(lt_mi[0].log_staff); lt_addy_service = t.getAddressServiceByID(lt_mi[0].log_staff); lt_rep = t.getRepListByUserID(lt_mi[0].log_staff); lt_tm_office = z.getPtOfficeDetailsByID(lt_mi[0].log_staff); lt_stage = t.getStageByUserID(lt_mi[0].log_staff); lt_pri = t.getPriority_infoByvalidationID(lt_mi[0].log_staff); if (lt_tm_office.Count > 0) { for (int i = 0; i < lt_tm_office.Count; i++) { sealing_date = lt_tm_office[lt_tm_office.Count - 1].reg_date; if (lt_tm_office[i].data_status == "Grant Patent") { registrar_date = lt_tm_office[i].reg_date; DateTime time = new DateTime(Convert.ToInt32(registrar_date.Substring(0, 4)), Convert.ToInt32(registrar_date.Substring(5, 2)), Convert.ToInt32(registrar_date.Substring(8, 2))); string str = time.ToString("dd"); string str2 = time.ToString("MMMM"); string str3 = time.ToString("yyyy"); if (str.Substring(0, 1) == "0") { str = str.Substring(1, 1); } if (str.EndsWith("1") && (str != "11")) { str = str + "st"; } else if (str.EndsWith("2") && (str != "12")) { str = str + "nd"; } else if (str.EndsWith("3") && (str != "13")) { str = str + "rd"; } else { str = str + "th"; } registrar_date = str + " day of" + str2 + ", " + str3; } } } } else { Response.Redirect("./registrar_c.aspx"); } }