Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.ViewState["PreviousPage"] = base.Request.UrlReferrer;
     }
     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.getSwalletByID(this.xmarkID.Value);
     if (this.swallet.mark_infoID != null)
     {
         string item   = this.swallet.search_str.Replace("'", "");
         string xclass = this.swallet.xclass;
         foreach (string str3 in item.Split(new char[] { ' ' }))
         {
             if (str3 != "")
             {
                 List <pt.PtInfo> list = new List <pt.PtInfo>();
                 int count             = 0;
                 list = this.t.getSearchPtInfoRS(str3, null, xclass);
                 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(str3);
                     count = list.Count;
                     this.lt_tot.Add(count);
                     this.lt_lt_mi.Add(list);
                 }
             }
         }
         foreach (string str4 in this.fulltext)
         {
             string str5 = str4 + " ";
             this.new_search_text.Add(str5);
             this.sbFulltext.Append(str5);
         }
         this.kword_cnt = this.fulltext.Count;
         if (this.new_search_text.Count > 0)
         {
             List <pt.PtInfo> list2 = new List <pt.PtInfo>();
             list2 = this.t.getSearchPtInfoRS("", this.new_search_text, xclass);
             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=\"7\">";
             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>";
         }
     }
 }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Verify.Visible = false;
        this.Refuse.Visible = false;
        if (this.rbValid.SelectedValue == "Futher Review")
        {
            this.admin_status   = "4";
            this.Verify.Visible = true;
            this.Refuse.Visible = false;
        }
        else if (this.rbValid.SelectedValue == "Further Search")
        {
            this.admin_status   = "3";
            this.Verify.Visible = true;
            this.Refuse.Visible = false;
        }
        else if (this.rbValid.SelectedValue == "E_Contact")
        {
            this.admin_status   = "3";
            this.Verify.Visible = true;
            this.Refuse.Visible = false;
        }

        else if (this.rbValid.SelectedValue == "Refused")
        {
            this.admin_status   = "3";
            this.Verify.Visible = false;
            this.Refuse.Visible = true;
        }
        else if (this.rbValid.SelectedValue == "Patentable")
        {
            this.admin_status   = "5";
            this.Verify.Visible = true;
            this.Refuse.Visible = false;
        }
        if (base.Request.QueryString["x"] != null)
        {
            if (base.Session["pwalletID"] != null)
            {
                if (base.Session["pwalletID"].ToString() != "")
                {
                    this.admin = base.Session["pwalletID"].ToString();
                }
                else
                {
                    base.Response.Redirect("../lo.aspx");
                }
            }
            else
            {
                base.Response.Redirect("../lo.aspx");
            }
            this.pID          = base.Request.QueryString["x"].ToString();
            this.swallet      = this.t.getSwalletByID(this.pID);
            this.lt_mi        = this.t.getPtInfoByUserID(this.pID);
            this.lt_p         = this.t.getPwalletDetailsByID(this.lt_mi[0].log_staff);
            this.lt_tm_office = this.z.getPtOfficeDetailsByID(this.lt_mi[0].log_staff);
            this.lt_rep       = this.t.getRepListByUserID(this.lt_mi[0].log_staff);
            this.lt_stage     = this.t.getStageByUserID(this.lt_mi[0].log_staff);
            this.lt_app       = this.t.getApplicantByvalidationID(this.lt_mi[0].log_staff);
            this.lt_inv       = this.t.getInventorByvalidationID(this.lt_mi[0].log_staff);
            this.lt_assinfo   = this.t.getAssignment_infoByvalidationID(this.lt_mi[0].log_staff);
            this.lt_xpri      = this.t.getPriority_infoByvalidationID(this.lt_mi[0].log_staff);

            xname.Value  = lt_rep[0].agent_code;
            xname2.Value = lt_mi[0].title_of_invention;

            xname3.Value = lt_mi[0].reg_number;
            xname4.Value = "OAI/PT/" + t.ValidationIDByPwalletID(lt_mi[0].log_staff);
            xname5.Value = lt_mi[0].log_staff;
            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);
                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>";
                }
                this.xcomments = this.xcomments + "</td>";
                this.xcomments = this.xcomments + "</tr>";
                if (this.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=" + this.lt_tm_office[i].xdoc1 + " target='_blank'>View</a>";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                }
                if (this.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=" + this.lt_tm_office[i].xdoc2 + " target='_blank'>View</a>";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                }
                if (this.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=" + this.lt_tm_office[i].xdoc3 + " target='_blank'>View</a>";
                    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_search_details.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 + "&nbsp;";
                    this.xcomments = this.xcomments + "</td>";
                    this.xcomments = this.xcomments + "</tr>";
                }
            }
        }
        else
        {
            base.Response.Redirect("./profile.aspx");
        }
    }
Esempio n. 3
0
 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 + "&nbsp;";
                 xcomments = xcomments + "</td>";
                 xcomments = xcomments + "</tr>";
             }
         }
     }
     else
     {
         Response.Redirect("./profile.aspx");
     }
 }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.Verify.Visible = false;
     if (this.rbValid.SelectedValue == "Search Conducted")
     {
         this.admin_status   = "3";
         this.Verify.Visible = true;
     }
     else if (this.rbValid.SelectedValue == "S_Contact")
     {
         this.admin_status   = "2";
         this.Verify.Visible = true;
     }
     if (base.Request.QueryString["x"] != null)
     {
         if (base.Session["pwalletID"] != null)
         {
             if (base.Session["pwalletID"].ToString() != "")
             {
                 this.admin = base.Session["pwalletID"].ToString();
             }
             else
             {
                 base.Response.Redirect("../lo.aspx");
             }
         }
         else
         {
             base.Response.Redirect("../lo.aspx");
         }
         this.pID = base.Request.QueryString["x"].ToString();
         this.Session["appID"] = base.Request.QueryString["x"].ToString();
         this.swallet          = this.t.getSwalletByID(this.pID);
         this.lt_mi            = this.t.getPtInfoByUserID(this.pID);
         this.lt_p             = this.t.getPwalletDetailsByID(this.lt_mi[0].log_staff);
         this.lt_tm_office     = this.z.getPtOfficeDetailsByID(this.lt_mi[0].log_staff);
         this.lt_rep           = this.t.getRepListByUserID(this.lt_mi[0].log_staff);
         this.lt_stage         = this.t.getStageByUserID(this.lt_mi[0].log_staff);
         this.lt_app           = this.t.getApplicantByvalidationID(this.lt_mi[0].log_staff);
         this.lt_inv           = this.t.getInventorByvalidationID(this.lt_mi[0].log_staff);
         this.lt_assinfo       = this.t.getAssignment_infoByvalidationID(this.lt_mi[0].log_staff);
         this.lt_xpri          = this.t.getPriority_infoByvalidationID(this.lt_mi[0].log_staff);
         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);
             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>";
             }
             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 + "&nbsp;";
             this.xcomments = this.xcomments + "</td>";
             this.xcomments = this.xcomments + "</tr>";
         }
     }
     else
     {
         base.Response.Redirect("./profile.aspx");
     }
 }