Beispiel #1
0
    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>");
        }
    }
Beispiel #2
0
    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.getStageByUserIDAdmin(xref.Text);
            if (lt_pw.Count > 0)
            {
                agt            = lt_pw[0].applicantID;
                Session["agt"] = lt_pw[0].applicantID;

                pt.Stage s = 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(s.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_mix[0].spec_doc == "") || (lt_mix[0].loa_doc == "") || (lt_mix[0].claim_doc == "") ||
                        (lt_mix[0].pct_doc == "") || (lt_mix[0].doa_doc == "") || (lt_appx[0].address == "") || (lt_appx[0].xmobile == "") ||
                        (lt_repx[0].address == "") || (lt_repx[0].xmobile == "")
                        )
                    {
                        status = "Filing"; data_status = "Uncompleted";
                        refill = 1;
                    }
                    else
                    {
                        refill = 0;
                        showStatus(lt_pw);
                    }
                }
                else if ((Convert.ToInt32(s.status) == 1) &&
                         ((lt_appx.Count >= 1) || (lt_mix.Count == 1) ||
                          (lt_stagex.Count == 1) || (lt_repx.Count == 1)
                         ))
                {
                    status = "Filing"; data_status = "Uncompleted";
                    refill = 1;
                }
                else if (Convert.ToInt32(s.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>");
        }
    }
Beispiel #3
0
    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.getStageByUserIDAdmin(xref.Text);

            if (lt_pw.Count > 0)
            {
                Session["pwID"]         = lt_pw[0].ID;
                agt                     = lt_pw[0].applicantID;
                Session["xvid"]         = xref.Text;
                Session["edit_transID"] = xref.Text;
                lt_mi                   = t.getPtInfoByUserID(lt_pw[0].ID);
                lt_rep                  = t.getRepByUserID(lt_pw[0].ID);
                if (lt_pw[0].status == "1")
                {
                    status = "Payment Verification Office";
                    if (lt_pw[0].data_status == "Fresh")
                    {
                        data_status = "Untreated";
                    }
                    else if (lt_pw[0].data_status == "Invalid")
                    {
                        data_status = "Invalid";
                    }
                    else if (lt_pw[0].data_status == "V_Contact")
                    {
                        data_status = "Being processed";
                    }
                }
                if (lt_pw[0].status == "2")
                {
                    status = "Patent Search Office";
                    if (lt_pw[0].data_status == "Valid")
                    {
                        data_status = "Successfully reviewed";
                    }
                    else if (lt_pw[0].data_status == "S_Contact")
                    {
                        data_status = "Being processed";
                    }
                }
                if (lt_pw[0].status == "3")
                {
                    status = "Patent Examiner 1 Office";
                    if (lt_pw[0].data_status == "Further Search")
                    {
                        data_status = "Further search required";
                        status      = "Patent Search Office";
                    }
                    else if (lt_pw[0].data_status == "E_Contact")
                    {
                        data_status = "Being processed";
                    }
                    else if (lt_pw[0].data_status == "Search Conducted")
                    {
                        data_status = "Successfully reviewed";
                    }
                    else if (lt_pw[0].data_status == "Refused")
                    {
                        data_status = "Refused";
                    }
                }
                if (lt_pw[0].status == "4")
                {
                    status = "Patent Approving Office";
                    if (lt_pw[0].data_status == "Not-Patentable")
                    {
                        data_status = "Not-patentable";
                        status      = "Patent Examiner 1 Office";
                    }
                    else if (lt_pw[0].data_status == "A_Contact")
                    {
                        data_status = "Being processed";
                    }
                    else if (lt_pw[0].data_status == "Futher Review")
                    {
                        data_status = "Successfully reviewed";
                    }
                }
                if (lt_pw[0].status == "5")
                {
                    status = "Registrars Office";
                    if (lt_pw[0].data_status == "Review Patent")
                    {
                        data_status = "Being reviewed";
                        status      = "Patent Approving Office";
                    }
                    else if (lt_pw[0].data_status == "R_Contact")
                    {
                        data_status = "Being processed";
                    }
                    else if (lt_pw[0].data_status == "Patentable")
                    {
                        data_status = "Successfully reviewed";
                    }
                }
                if (lt_pw[0].status == "6")
                {
                    status = "Registrars Office";
                    if (lt_pw[0].data_status == "Grant Patent")
                    {
                        data_status = "Patent granted";
                    }
                }
                showt        = 1;
                trans_status = "Current Office: <b>" + status + "</b>; Status: <b>" + data_status + "</b>";
            }
            else
            {
                status       = "N/A";
                trans_status = "Current Office: " + status;
            }
        }
        else
        {
            Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>");
        }
        lt_pw = t.getStageByUserIDAdmin(xref.Text);
        t.activity_log(admin, "Edit Status", "Update", lt_pw[0].ID, lt_pw[0].data_status, "", "", "", "", "", "");
    }
Beispiel #4
0
    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>");
        }
    }