コード例 #1
0
 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");
     }
 }
コード例 #2
0
 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 + "&nbsp;";
             xcomments = xcomments + "</td>";
             xcomments = xcomments + "</tr>";
         }
     }
     else
     {
         Response.Redirect("./profile.aspx");
     }
 }
コード例 #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");
     }
 }
コード例 #4
0
 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");
     }
 }