protected void Page_Load(object sender, EventArgs e) { if (base.Request.QueryString["0001234445"] != null) { this.vid = base.Request.QueryString["0001234445"].ToString(); if (this.vid.Contains("OAI/TM/")) { this.vid = this.vid.Replace("OAI/TM/", ""); } } else { base.Response.Redirect("./appstatusc.aspx"); } //if (base.Request.QueryString["94384238"] != null) //{ // this.agt = base.Request.QueryString["94384238"].ToString(); //} //else //{ // base.Response.Redirect("./appstatusc.aspx"); //} this.pwalletID = this.t.getCheckStatusDetails2(this.vid); if (this.pwalletID != "") { this.c_mark = this.t.getMarkInfoClassByUserID(this.pwalletID); this.c_rep = this.t.getRepClassByUserID(this.pwalletID); this.c_stage = this.t.getStageClassByUserID(this.pwalletID); this.c_app = this.t.getApplicantClassByID(this.pwalletID); 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("./appstatusc.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["vid"] != null) { this.vid = Session["vid"].ToString(); } if (Session["amt"] != null) { this.amt = Session["amt"].ToString(); } if (Session["aid"] != null) { this.aid = Session["aid"].ToString(); } if (Session["gt"] != null) { this.gt = Session["gt"].ToString(); } this.pwalletID = this.t.getPwalletID(this.vid); if (this.pwalletID != "") { this.c_mark = this.t.getMarkInfoClassByUserID(this.pwalletID); this.c_rep = this.t.getRepClassByUserID(this.pwalletID); this.c_stage = this.t.getStageClassByUserID(this.pwalletID); this.c_app = this.t.getApplicantClassByID(this.pwalletID); this.c_app_addy = this.t.getAddressClassByID(this.c_app.addressID); 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; } }
protected void SaveAll_Click(object sender, EventArgs e) { string[] tx = null; TransactionOptions transactionOptions = new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted, Timeout = new TimeSpan(0, 15, 0) }; TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, transactionOptions); try { if (Session["c_pwall"] != null) { c_pwall = (tm.Stage)Session["c_pwall"]; } if (Session["c_app"] != null) { c_app = (tm.Applicant)Session["c_app"]; } if (Session["c_app_addy"] != null) { c_app_addy = (tm.Address)Session["c_app_addy"]; } if (Session["c_rep_addy"] != null) { c_rep_addy = (tm.Address)Session["c_rep_addy"]; } if (Session["c_mark"] != null) { c_mark = (tm.MarkInfo)Session["c_mark"]; } if (Session["c_aos"] != null) { c_aos = (tm.AddressService)Session["c_aos"]; } if (Session["c_rep"] != null) { c_rep = (tm.Representative)Session["c_rep"]; } tx = c_pwall.validationID.Trim().Split('-'); if (tx.Length == 3) { hwalletID = tx[2]; } else { hwalletID = "0"; } c_pwall.rtm = txt_rtm.Text; if (txt_new_date.Text != "") { c_pwall.reg_date = txt_new_date.Text; } oldname = c_app.xname; c_app.xname = xname.Text; c_app.nationality = nationality.Text; if (txt_new_date.Text != "") { c_app.reg_date = txt_new_date.Text; } c_app_addy.countryID = residence.Text; c_app_addy.stateID = xselectState.Text; c_app_addy.street = xaddress.Text; c_app_addy.telephone1 = xtelephone.Text; c_app_addy.email1 = xemail.Text; if (txt_new_date.Text != "") { c_app_addy.reg_date = txt_new_date.Text; } c_mark.tm_typeID = tmType.SelectedValue; c_mark.logo_descriptionID = logo_description.SelectedValue; oldproduct_title = c_mark.product_title; c_mark.product_title = title_of_product.Text; oldclass = c_mark.nice_class; c_mark.nice_class = national_class.SelectedValue; c_mark.nice_class_desc = nice_class_desc.Text; c_mark.national_classID = national_class.SelectedValue; c_mark.disclaimer = txt_discalimer.Text; c_mark.reg_number = TextBox1.Text; if (txt_new_date.Text != "") { c_mark.reg_date = txt_new_date.Text; } c_aos.countryID = "160"; c_aos.stateID = aos_xselectState.Text; c_aos.city = ""; c_aos.street = aos_xaddress.Text; c_aos.telephone1 = aos_xtelephone.Text; c_aos.email1 = aos_xemail.Text; if (txt_new_date.Text != "") { c_aos.reg_date = txt_new_date.Text; } c_rep.agent_code = xcode.Text; c_rep.xname = rep_xname.Text; c_rep.nationality = rep_nationality.SelectedValue; c_rep.log_staff = "0"; if (txt_new_date.Text != "") { c_rep.reg_date = txt_new_date.Text; } c_rep_addy.countryID = rep_residence.SelectedValue; c_rep_addy.stateID = xselectRepState.SelectedValue; c_rep_addy.city = ""; c_rep_addy.street = rep_address.Text; c_rep_addy.telephone1 = rep_xtelephone.Text; c_rep_addy.email1 = rep_xemail.Text; if (txt_new_date.Text != "") { c_rep_addy.reg_date = txt_new_date.Text; } if (Session["hwalletID"] != null) { hwalletID = Session["hwalletID"].ToString(); } Boolean vfile = false; if (logo_description.SelectedItem.Value != "2") { vfile = true; } else { vfile = false; } succ = t.editTrademarkTx(c_app, c_mark, c_aos, c_rep, c_app_addy, c_rep_addy, c_pwall, sl_docz, logo_pic, auth_doc, sup_doc1, sup_doc2, Server.MapPath("~/"), vfile); if (Convert.ToInt32(succ) > 0) { //ws_payx.payx ws_p = new ws_payx.payx(); //status = ws_p.UpdateHwallet(hwalletID, "Used", reg_date, title_of_product.Text); //if (status >= 0) //{ scope.Complete(); scope.Dispose(); //} //else //{ // scope.Dispose(); // succ_msg = "Record Not Edited Successfully! Please try again"; // showsearch = 0; //} } else { scope.Dispose(); succ_msg = "Record Not Edited Successfully! Please try again"; showsearch = 0; } this.adminID = this.Session["pwalletID"].ToString(); t.activity_log(this.adminID, "Edit Application", "Update", c_app.log_staff, c_pwall.data_status, title_of_product.Text, oldproduct_title, oldname, xname.Text, oldclass, national_class.SelectedValue); ///// } catch (Exception exception) { exception.ToString(); scope.Dispose(); succ_msg = "Record Not Edited Successfully! Please try again"; showsearch = 0; } finally { if (scope != null) { scope.Dispose(); } } succ_msg = "Record Edited Successfully!!!"; txt_search.Text = ""; showsearch = 0; }
protected void SearchApplicant_Click(object sender, EventArgs e) { if (txt_search.Text != "") { try { succ_msg = "0"; string c_id = t.getPwalletID(txt_search.Text); if (Convert.ToInt32(c_id) > 0) { c_pwall = t.getStageClassByUserID(c_id); if (Convert.ToInt32(c_pwall.ID) > 0) { Session["c_pwall"] = c_pwall; c_app = t.getApplicantClassByID(c_id); Session["c_app"] = c_app; c_mark = t.getMarkInfoClassByUserID(c_id); Session["c_mark"] = c_mark; c_aos = t.getAddressServiceByID(c_id); Session["c_aos"] = c_aos; c_rep = t.getRepClassByUserID(c_id); Session["c_rep"] = c_rep; if (Convert.ToInt32(c_app.ID) > 0) { c_app_addy = t.getAddressClassByID(c_app.addressID); Session["c_app_addy"] = c_app_addy; } if (Convert.ToInt32(c_rep.ID) > 0) { c_rep_addy = t.getAddressClassByID(c_rep.addressID); Session["c_rep_addy"] = c_rep_addy; } xname.Text = c_app.xname; xaddress.Text = c_app_addy.street; xtelephone.Text = c_app_addy.telephone1; xemail.Text = c_app_addy.email1; try { nationality.SelectedIndex = Convert.ToInt32(c_app.nationality) - 1; } catch (Exception ee) { } try { residence.SelectedIndex = Convert.ToInt32(c_app_addy.countryID) - 1; } catch (Exception ee) { } try { xselectState.SelectedIndex = Convert.ToInt32(c_app_addy.stateID) - 1; } catch (Exception ee) { } txt_rtm.Text = c_pwall.rtm; curtime.Value = c_pwall.reg_date; title_of_product.Text = c_mark.product_title; nice_class_desc.Text = c_mark.nice_class_desc; txt_discalimer.Text = c_mark.disclaimer; TextBox1.Text = c_mark.reg_number; tmType.SelectedIndex = Convert.ToInt32(c_mark.tm_typeID) - 1; logo_description.SelectedIndex = Convert.ToInt32(c_mark.logo_descriptionID) - 1; national_class.SelectedIndex = Convert.ToInt32(c_mark.national_classID) - 1; aos_xaddress.Text = c_aos.street; aos_xtelephone.Text = c_aos.telephone1; aos_xemail.Text = c_aos.email1; try { aos_xselectState.SelectedIndex = Convert.ToInt32(c_aos.stateID) - 1; } catch (Exception ee) { } xcode.Text = c_rep.agent_code; rep_xname.Text = c_rep.xname; rep_address.Text = c_rep_addy.street; rep_xtelephone.Text = c_rep_addy.telephone1; rep_xemail.Text = c_rep_addy.email1; try { rep_nationality.SelectedIndex = Convert.ToInt32(c_rep.nationality) - 1; } catch (Exception ee) { } try { xselectRepState.SelectedIndex = Convert.ToInt32(c_rep_addy.stateID) - 1; } catch (Exception ee) { } ///application Session["showsearch"] = 1; showsearch = 1; if (logo_description.SelectedItem.Value != "2") { logo_pic_text = "1"; } else { logo_pic_text = "0"; } } } } catch (Exception ee) { } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["fee_detailsID"] = null; Session["item_code"] = null; Session["hwalletID"] = null; Session["vid"] = null; Session["amt"] = null; Session["aid"] = null; Session["pc"] = null; Session["agentemail"] = null; Session["agentpnumber"] = null; Session["applicantname"] = null; Session["applicant_addy"] = null; Session["applicantemail"] = null; Session["applicant_no"] = null; Session["product_title"] = null; Session["xapplication"] = null; Session["pwalletID"] = null; Session["log_staffID"] = null; Session["xapplication"] = null; Session["new_miID"] = null; Session["pwalletID"] = null; Session["logo_desc"] = null; Session["app_succID"] = null; Session["applicant_succID"] = null; Session["agent_succID"] = null; Session["assID"] = null; Session["app_type"] = null; Session["mergerID"] = null; Session["certID"] = null; Session["vid"] = null; Session["amt"] = null; Session["agt"] = null; Session["xgt"] = null; Session["agentname"] = null; Session["agentemail"] = null; Session["agentpnumber"] = null; Session["applicantname"] = null; Session["applicantemail"] = null; Session["applicantpnumber"] = null; Session["product_title"] = null; Session["item_code"] = null; Session["cert_doc_newfilename"] = null; Session["ass_doc_newfilename"] = null; Session["merger_doc_newfilename"] = null; Session["logo_pic_newfilename"] = null; Session["app_doc_newfilename"] = null; Session["pub_doc_newfilename"] = null; Session["sup_doc_newfilename"] = null; Session["hwalletID"] = null; string serverpath = Server.MapPath("~/"); if (Request.Form["item_code"] != null) { this.item_code = Request.Form["item_code"]; } if (Request.Form["agt"] != null) { this.agt = Request.Form["agt"]; } if (Request.Form["xgt"] != null) { this.xgt = Request.Form["xgt"]; } if (Request.Form["transID"] != null) { this.transID = Request.Form["transID"]; } if (Request.Form["amt"] != null) { this.amt = Request.Form["amt"]; } if (Request.Form["agentemail"] != null) { this.agentemail = Request.Form["agentemail"]; } if (Request.Form["agentpnumber"] != null) { this.agentpnumber = Request.Form["agentpnumber"]; } if (Request.Form["applicantemail"] != null) { this.applicantemail = Request.Form["applicantemail"]; } if (Request.Form["applicantpnumber"] != null) { this.applicantpnumber = Request.Form["applicantpnumber"]; } if (Request.Form["agentname"] != null) { if (Request.Form["agentname"].ToString().Contains("%26")) { this.agentname = Request.Form["agentname"].Replace("%26", "&"); } else { this.agentname = Request.Form["agentname"]; } } if (Request.Form["applicantname"] != null) { if (Request.Form["applicantname"].ToString().Contains("%26")) { this.applicantname = Request.Form["applicantname"].Replace("%26", "&"); } else { this.applicantname = Request.Form["applicantname"]; } } if (Request.Form["product_title"] != null) { if (Request.Form["product_title"].ToString().Contains("%26")) { this.product_title = Request.Form["product_title"].Replace("%26", "&"); } else { this.product_title = Request.Form["product_title"]; } } if ( (this.item_code != "") && (this.agt != "") && (this.xgt != "") && (this.transID != "") && (this.amt != "") && (this.agentname != "") && (this.agentemail != "") && (this.agentpnumber != "") && (this.applicantname != "") && (this.applicantemail != "") && (this.applicantpnumber != "") && (this.product_title != "") ) { if (Session["xapplication"] != null) { this.xapplication = Session["xapplication"].ToString(); if (this.xapplication != this.transID) { if (Session["Trademark_item"] == null) { Response.Redirect("../violation.aspx"); } else { Response.Redirect("../violation.aspx"); } } } else { Session["xapplication"] = this.transID; } Session["item_code"] = this.item_code; Session["agt"] = this.agt; Session["xgt"] = this.xgt; Session["vid"] = this.transID; Session["amt"] = this.amt; Session["agentemail"] = this.agentemail; Session["agentname"] = this.agentname; Session["agentpnumber"] = this.agentpnumber; Session["applicantname"] = this.applicantname; Session["applicantemail"] = this.applicantemail; Session["applicantpnumber"] = this.applicantpnumber; Session["product_title"] = this.product_title; tm.Stage s = this.t.getStageBy_G_ValidationID(this.transID.Trim()); if ((s.ID != null) && (Convert.ToInt32(s.ID) > 0)) { Response.Redirect("./xreturn.aspx"); } } else { Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } } }
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"); //} this.serverpath = base.Server.MapPath("~/"); if (base.Request.QueryString["0001234445"] != null) { this.vid = base.Request.QueryString["0001234445"].ToString(); if (this.vid.Contains("OAI/TM/")) { this.vid = this.vid.Replace("OAI/TM/", ""); } } else { // base.Response.Redirect("./xcontrol.aspx"); } if (base.Request.QueryString["94384238"] != null) { this.agt = base.Request.QueryString["94384238"].ToString(); } else { // base.Response.Redirect("./xcontrol.aspx"); } this.pwalletID = this.t.getCheckStatusDetails(this.vid, this.agt); if (this.pwalletID != "") { this.c_mark = this.t.getMarkInfoClassByUserID(this.pwalletID); this.c_rep = this.t.getRepClassByUserID(this.pwalletID); this.c_stage = this.t.getStageClassByUserID(this.pwalletID); this.c_app = this.t.getApplicantClassByID(this.pwalletID); 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_mark.logo_pic != "") { tm_img.ImageUrl = "../../admin/tm/" + c_mark.logo_pic; } } else { // base.Response.Redirect("./xcontrol.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { this.Session["vid"] = null; this.Session["amt"] = null; this.Session["aid"] = null; this.Session["gt"] = null; this.Session["pc"] = null; this.Session["agentemail"] = null; this.Session["cname"] = null; this.Session["agentpnumber"] = null; this.Session["applicantname"] = null; this.Session["product_title"] = null; this.Session["xapplication"] = null; this.Session["pwalletID"] = null; this.Session["log_staffID"] = null; this.Session["xapplication"] = null; this.Session["log_staffID"] = this.log_staffID; string serverpath = base.Server.MapPath("~/"); if (Session["Trademark_item"] == null) { this.transID = base.Request.Params["transID"]; this.amt = base.Request.Params["amt"]; this.agent = base.Request.Params["agent"]; this.xgt = base.Request.Params["xgt"]; this.cname = base.Request.Params["cname"].Replace("%26", "&"); this.agentemail = base.Request.Params["agentemail"]; this.agentpnumber = base.Request.Params["agentpnumber"]; this.applicantname = base.Request.Params["applicantname"].Replace("%26", "&"); this.product_title = base.Request.Params["product_title"].Replace("%26", "&"); } else if (Session["Trademark_item"] != null) { ti = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"]; c_pwall = ret.getPwalletByID(ti.xmemberID); c_xagt = ret.getAgentByID(c_pwall.xmemberID); this.transID = ti.transID; this.amt = ti.amt; this.agent = c_xagt.sys_ID; this.xgt = ti.xgt; this.cname = c_xagt.cname; this.agentemail = c_pwall.xemail; this.agentpnumber = c_pwall.xmobile; this.applicantname = ti.applicant_name; this.product_title = ti.product_title; } if (((((this.transID != "") && (this.amt != "")) && ((this.agent != "") && (this.xgt != ""))) && (((this.cname != "") && (this.agentemail != "")) && ((this.agentpnumber != "") && (this.applicantname != "")))) && (this.product_title != "")) { if (this.Session["xapplication"] != null) { this.xapplication = this.Session["xapplication"].ToString(); if (this.xapplication != this.transID) { if (this.Session["Trademark_item"] == null) { base.Response.Redirect("./violation.aspx"); } else { Response.Redirect("./a_violation.aspx"); } } } else { this.Session["xapplication"] = this.transID; } this.Session["vid"] = this.transID; this.Session["amt"] = this.amt; this.Session["aid"] = this.agent; this.Session["gt"] = this.xgt; this.Session["agentemail"] = this.agentemail; this.Session["cname"] = this.cname; this.Session["agentpnumber"] = this.agentpnumber; this.Session["applicantname"] = this.applicantname; this.Session["product_title"] = this.product_title; tm.Stage s = this.t.getStatusIDByvalidationID(this.transID.Trim()); lt_app = t.getApplicantListByUserID(s.ID); lt_mi = t.getMarkInfoByUserID(s.ID); lt_aos = t.getAddressServiceListByID(s.ID); lt_rep = t.getRepListByUserID(s.ID); if (this.lt_app.Count > 0) { if ((lt_app[0].addressID != null) && (lt_app[0].addressID != "") && (lt_app[0].addressID != "0")) { lt_appaddy = t.getAddressByID(lt_app[0].addressID); } } if (this.lt_rep.Count > 0) { if ((lt_rep[0].addressID != null) && (lt_rep[0].addressID != "") && (lt_rep[0].addressID != "0")) { lt_repaddy = t.getAddressByID(lt_rep[0].addressID); } } if (this.lt_mi.Count > 0) { if ((lt_mi[0].logo_descriptionID != "2") && (lt_mi[0].logo_pic == "")) { islogopic = false; } } if (Convert.ToInt32(s.status) > 1) { this.status = this.t.updateIpoApplicationReferenceStatus(this.transID, this.xgt, "1"); Response.Redirect("./xreturn.aspx"); } else if (Convert.ToInt32(s.status) == 1) { if ((lt_app.Count == 0) || (lt_aos.Count == 0) || (lt_rep.Count == 0) || (lt_mi.Count == 0) || (lt_appaddy.Count == 0) || (lt_repaddy.Count == 0)) { Response.Redirect("./xrefill.aspx"); } else { if (islogopic == false)//Trademark is missing { Response.Redirect("./xrefill.aspx"); } else { Response.Redirect("./xreturn.aspx"); } } } else if ((Convert.ToInt32(s.status) == 0) || (s.status == null) || (s.status == "")) { this.pwalletID = this.t.addPwallet(this.transID, this.agent, this.amt, this.log_staffID); if (this.pwalletID != "0") { this.Session["pwalletID"] = this.pwalletID; } } } else { if (this.Session["Trademark_item"] == null) { base.Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } else { // Response.Redirect("./XPay/A/profile.aspx"); } } }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; string serverpath = context.Server.MapPath("~/"); if ( (context.Request.Headers["transID"] != null) && (context.Request.Headers["transID"].ToString() != "") && (context.Request.Headers["amt"] != null) && (context.Request.Headers["amt"].ToString() != "") && (context.Request.Headers["agt"] != null) && (context.Request.Headers["agt"].ToString() != "") && (context.Request.Headers["cname"] != null) && (context.Request.Headers["cname"].ToString() != "") && (context.Request.Headers["agentemail"] != null) && (context.Request.Headers["agentemail"].ToString() != "") && (context.Request.Headers["agentpnumber"] != null) && (context.Request.Headers["agentpnumber"].ToString() != "") && (context.Request.Headers["applicantname"] != null) && (context.Request.Headers["applicantname"].ToString() != "") && (context.Request.Headers["product_title"] != null) && (context.Request.Headers["product_title"].ToString() != "") && (context.Request.Headers["item_code"] != null) && (context.Request.Headers["item_code"].ToString() != "") ) { this.transID = context.Request.Headers["transID"]; this.amt = context.Request.Headers["amt"]; this.agent = context.Request.Headers["agt"]; this.xgt = context.Request.Headers["xgt"]; if (context.Request.Headers["cname"].Contains("%26") == true) { this.cname = context.Request.Headers["cname"].Replace("%26", "&"); } else { this.cname = context.Request.Headers["cname"]; } this.agentemail = context.Request.Headers["agentemail"]; this.agentpnumber = context.Request.Headers["agentpnumber"]; if (context.Request.Headers["applicantname"].Contains("%26") == true) { this.applicantname = context.Request.Headers["applicantname"].Replace("%26", "&"); } else { this.applicantname = context.Request.Headers["applicantname"]; } if (context.Request.Headers["product_title"].Contains("%26") == true) { this.product_title = context.Request.Headers["product_title"].Replace("%26", "&"); } else { this.product_title = context.Request.Headers["product_title"]; } this.item_code = context.Request.Headers["item_code"]; if (((((this.transID != "") && (this.amt != "")) && ((this.agent != "") && (this.xgt != ""))) && (((this.cname != "") && (this.agentemail != "")) && ((this.agentpnumber != "") && (this.applicantname != "")))) && (this.product_title != "") && (this.item_code != "")) { context.Session["vid"] = this.transID; context.Session["amt"] = this.amt; context.Session["agt"] = this.agent; context.Session["xgt"] = this.xgt; context.Session["agentemail"] = this.agentemail; context.Session["cname"] = this.cname; context.Session["agentpnumber"] = this.agentpnumber; context.Session["applicantname"] = this.applicantname; context.Session["product_title"] = this.product_title; context.Session["item_code"] = this.item_code; tm.Stage s = this.t.getStageBy_G_ValidationID(this.transID.Trim()); if (Convert.ToInt32(s.status) > 1) { context.Response.Redirect("./g_appstatus.aspx?agt=" + context.Session["agt"].ToString()); } else if (Convert.ToInt32(s.status) == 1) { context.Response.Redirect("./g_appstatus.aspx?agt=" + context.Session["agt"].ToString()); // Response.Redirect("./xrefill.aspx"); } else if (Convert.ToInt32(s.status) == 0) { this.pwalletID = this.t.addPwalletG(serverpath, "0", this.transID, this.agent, this.amt, this.item_code); if (this.pwalletID != "0") { context.Session["pwalletID"] = this.pwalletID; context.Response.Write(this.pwalletID); } } } else { //context.Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } } // context.Response.Write("Hello World"); }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); if (Session["vid"] != null) { this.vid = Session["vid"].ToString(); } if (Session["amt"] != null) { this.amt = Session["amt"].ToString(); } if (Session["aid"] != null) { this.aid = Session["aid"].ToString(); } if (Session["gt"] != null) { this.gt = Session["gt"].ToString(); } this.pwalletID = this.t.getPwalletID(this.vid); if (this.pwalletID != "") { this.c_mark = this.t.getMarkInfoClassByUserID(this.pwalletID); this.c_rep = this.t.getRepClassByUserID(this.pwalletID); this.c_stage = this.t.getStageClassByUserID(this.pwalletID); this.c_app = this.t.getApplicantClassByID(this.pwalletID); 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_mark.logo_pic != "") { tm_img.ImageUrl = "./admin/tm/" + 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.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; //} } 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; } }
protected void SearchApplicant_Click(object sender, EventArgs e) { if (txt_search.Text != "") { try { succ_msg = "0"; string c_id = t.getPwalletID(txt_search.Text); if (Convert.ToInt32(c_id) > 0) { c_pwall = t.getStageClassByUserID(c_id); int vstatus = Convert.ToInt32(c_pwall.status); if (c_pwall.data_status == "Fresh" || c_pwall.data_status == "Valid" || c_pwall.data_status == "Re-conduct search" || c_pwall.data_status == "Search Conducted" || c_pwall.data_status == "Search 2 Conducted" || c_pwall.data_status == "Re-examine" || c_pwall.data_status == "Registrable" || vstatus <= 5 || ((c_pwall.data_status == "Kiv") && (Convert.ToInt32(c_pwall.status) == 14))) { } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "showDialogue", "showDialogue('" + "Sorry You Cannot Edit Application At this Stage" + "');", true); return; } if (Convert.ToInt32(c_pwall.ID) > 0) { Session["c_pwall"] = c_pwall; c_app = t.getApplicantClassByID(c_id); Session["c_app"] = c_app; c_mark = t.getMarkInfoClassByUserID(c_id); Session["c_mark"] = c_mark; c_aos = t.getAddressServiceByID(c_id); Session["c_aos"] = c_aos; c_rep = t.getRepClassByUserID(c_id); Session["c_rep"] = c_rep; if (Convert.ToInt32(c_app.ID) > 0) { c_app_addy = t.getAddressClassByID(c_app.addressID); Session["c_app_addy"] = c_app_addy; } if (Convert.ToInt32(c_rep.ID) > 0) { c_rep_addy = t.getAddressClassByID(c_rep.addressID); Session["c_rep_addy"] = c_rep_addy; } xname.Text = c_app.xname; xaddress.Text = c_app_addy.street; xtelephone.Text = c_app_addy.telephone1; xemail.Text = c_app_addy.email1; try { nationality.SelectedIndex = Convert.ToInt32(c_app.nationality) - 1; } catch (Exception ee) { } try { residence.SelectedIndex = Convert.ToInt32(c_app_addy.countryID) - 1; } catch (Exception ee) { } try { xselectState.SelectedIndex = Convert.ToInt32(c_app_addy.stateID) - 1; } catch (Exception ee) { } txt_rtm.Text = c_pwall.rtm; curtime.Value = c_pwall.reg_date; title_of_product.Text = c_mark.product_title; nice_class_desc.Text = c_mark.nice_class_desc; txt_discalimer.Text = c_mark.disclaimer; TextBox1.Text = c_mark.reg_number; tmType.SelectedIndex = Convert.ToInt32(c_mark.tm_typeID) - 1; logo_description.SelectedIndex = Convert.ToInt32(c_mark.logo_descriptionID) - 1; national_class.SelectedIndex = Convert.ToInt32(c_mark.national_classID) - 1; aos_xaddress.Text = c_aos.street; aos_xtelephone.Text = c_aos.telephone1; aos_xemail.Text = c_aos.email1; try { aos_xselectState.SelectedIndex = Convert.ToInt32(c_aos.stateID) - 1; } catch (Exception ee) { } xcode.Text = c_rep.agent_code; rep_xname.Text = c_rep.xname; rep_address.Text = c_rep_addy.street; rep_xtelephone.Text = c_rep_addy.telephone1; rep_xemail.Text = c_rep_addy.email1; try { rep_nationality.SelectedIndex = Convert.ToInt32(c_rep.nationality) - 1; } catch (Exception ee) { } try { xselectRepState.SelectedIndex = Convert.ToInt32(c_rep_addy.stateID) - 1; } catch (Exception ee) { } ///application Session["showsearch"] = 1; showsearch = 1; if (logo_description.SelectedItem.Value != "2") { logo_pic_text = "1"; } else { logo_pic_text = "0"; } } } } catch (Exception ee) { } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["fee_detailsID"] = null; Session["item_code"] = null; Session["hwalletID"] = null; Session["vid"] = null; Session["amt"] = null; Session["aid"] = null; Session["pc"] = null; Session["agentemail"] = null; Session["agentpnumber"] = null; Session["applicantname"] = null; Session["applicant_addy"] = null; Session["applicantemail"] = null; Session["applicant_no"] = null; Session["product_title"] = null; Session["xapplication"] = null; Session["pwalletID"] = null; Session["log_staffID"] = null; Session["xapplication"] = null; Session["new_miID"] = null; Session["pwalletID"] = null; Session["logo_desc"] = null; Session["app_succID"] = null; Session["applicant_succID"] = null; Session["agent_succID"] = null; Session["assID"] = null; Session["app_type"] = null; Session["mergerID"] = null; Session["certID"] = null; Session["vid"] = null; Session["amt"] = null; Session["agt"] = null; Session["xgt"] = null; Session["agentname"] = null; Session["agentemail"] = null; Session["agentpnumber"] = null; Session["applicantname"] = null; Session["applicantemail"] = null; Session["applicantpnumber"] = null; Session["product_title"] = null; Session["item_code"] = null; Session["cert_doc_newfilename"] = null; Session["ass_doc_newfilename"] = null; Session["merger_doc_newfilename"] = null; Session["logo_pic_newfilename"] = null; Session["app_doc_newfilename"] = null; Session["pub_doc_newfilename"] = null; Session["sup_doc_newfilename"] = null; Session["hwalletID"] = null; string serverpath = Server.MapPath("~/"); if (Request.Form["item_code"] != null) { this.item_code = Request.Form["item_code"]; } if (Request.Form["fee_detailsID"] != null) { this.fee_detailsID = Request.Form["fee_detailsID"]; } if (Request.Form["hwalletID"] != null) { this.hwalletID = Request.Form["hwalletID"]; } if (Request.Form["transID"] != null) { this.transID = Request.Form["transID"]; } if (Request.Form["amt"] != null) { this.amt = Request.Form["amt"]; } if (Request.Form["agent"] != null) { this.agent = Request.Form["agent"]; } if (Request.Form["agentemail"] != null) { this.agentemail = Request.Form["agentemail"]; } if (Request.Form["agentpnumber"] != null) { this.agentpnumber = Request.Form["agentpnumber"]; } if (Request.Form["applicantemail"] != null) { this.applicantemail = Request.Form["applicantemail"]; } if (Request.Form["applicantpnumber"] != null) { this.applicantpnumber = Request.Form["applicantpnumber"]; } if (Request.Form["applicant_addy"] != null) { if (Request.Form["applicant_addy"].ToString().Contains("%26")) { this.applicant_addy = Request.Form["applicant_addy"].Replace("%26", "&"); } else { this.applicant_addy = Request.Form["applicant_addy"]; } } if (Request.Form["agentname"] != null) { if (Request.Form["agentname"].ToString().Contains("%26")) { this.agentname = Request.Form["agentname"].Replace("%26", "&"); } else { this.agentname = Request.Form["agentname"]; } } if (Request.Form["applicantname"] != null) { if (Request.Form["applicantname"].ToString().Contains("%26")) { this.applicantname = Request.Form["applicantname"].Replace("%26", "&"); } else { this.applicantname = Request.Form["applicantname"]; } } if (Request.Form["product_title"] != null) { if (Request.Form["product_title"].ToString().Contains("%26")) { this.product_title = Request.Form["product_title"].Replace("%26", "&"); } else { this.product_title = Request.Form["product_title"]; } } if ( (this.item_code != "") && (this.fee_detailsID != "") && (this.hwalletID != "") && (this.transID != "") && (this.amt != "") && (this.agent != "") && (this.agentname != "") && (this.agentemail != "") && (this.agentpnumber != "") && (this.applicantname != "") && (this.applicant_addy != "") && (this.applicantemail != "") && (this.applicantpnumber != "") && (this.product_title != "") ) { if (Session["xapplication"] != null) { this.xapplication = Session["xapplication"].ToString(); if (this.xapplication != this.transID) { if (Session["Trademark_item"] == null) { Response.Redirect("../a_violation.aspx"); } else { Response.Redirect("../a_violation.aspx"); } } } else { Session["xapplication"] = this.transID; } Session["item_code"] = this.item_code; Session["fee_detailsID"] = this.fee_detailsID; Session["hwalletID"] = this.hwalletID; Session["vid"] = this.transID; Session["amt"] = this.amt; Session["aid"] = this.agent; Session["agentemail"] = this.agentemail; Session["agentname"] = this.agentname; Session["agentpnumber"] = this.agentpnumber; Session["applicantname"] = this.applicantname; Session["applicant_addy"] = this.applicant_addy; Session["applicantemail"] = this.applicantemail; Session["applicantpnumber"] = this.applicantpnumber; Session["product_title"] = this.product_title; tm.Stage s = this.t.getStageBy_G_ValidationID(this.transID.Trim()); Retriever ret = new Retriever(); XObjs.G_Tm_info m = new XObjs.G_Tm_info(); if ((s.ID != null) && (Convert.ToInt32(s.ID) > 0)) { m = ret.getG_Tm_infoByPwalletID(s.ID); if ((m.xid != null) && (Convert.ToInt32(m.xid) > 0)) { ws_payx.payx ws_p = new ws_payx.payx(); status = ws_p.UpdateHwallet(hwalletID, "Used", s.reg_date, m.tm_title); Response.Redirect("./xxreturn.aspx"); } else { int del = t.deleteGPwallet(s.ID); //delete pwallet } } } else { Response.Redirect(ConfigurationManager.AppSettings["ipo_profile_page"]); } } }
protected void Save_Click(object sender, EventArgs e) { if (this.xref.Text != "") { if (this.xref.Text.Contains("OAI/TM/")) { this.xref.Text = this.xref.Text.Replace("OAI/TM/", ""); } this.r = this.xref.Text; this.lt_pwx = this.t.getStageByUserIDAcc(this.xref.Text, this.agt); if (this.lt_pwx.Count > 0) { Session["app_no"] = "OAI/TM/" + lt_pwx[0].validationID; tm.Stage s = this.t.getStatusIDByvalidationID(this.xref.Text.Trim()); this.showt = 1; lt_appx = t.getApplicantListByUserID(s.ID); lt_mix = t.getMarkInfoByUserID(s.ID); lt_aosx = t.getAddressServiceListByID(s.ID); lt_repx = t.getRepListByUserID(s.ID); if (this.lt_appx.Count > 0) { if ((lt_appx[0].addressID != null) && (lt_appx[0].addressID != "") && (lt_appx[0].addressID != "0")) { lt_appaddyx = t.getAddressByID(lt_appx[0].addressID); if (lt_appaddyx.Count > 0) { Session["app_email"] = lt_appaddyx[0].email1; } } } if (this.lt_repx.Count > 0) { Session["fullname"] = lt_repx[0].xname; if ((lt_repx[0].addressID != null) && (lt_repx[0].addressID != "") && (lt_repx[0].addressID != "0")) { lt_repaddyx = t.getAddressByID(lt_repx[0].addressID); if (lt_appaddyx.Count > 0) { Session["rep_email"] = lt_repaddyx[0].email1; } } } if (this.lt_mix.Count > 0) { if ((lt_mix[0].logo_descriptionID != "2") && (lt_mix[0].logo_pic == "")) { islogopic = false; } } if ((Convert.ToInt32(s.status) == 1) && (lt_appx.Count == 1) && (lt_mix.Count == 1) && (lt_aosx.Count == 1) && (lt_repx.Count == 1) && (lt_appaddyx.Count == 1) && (lt_repaddyx.Count == 1) ) { if (lt_mix[0].logo_descriptionID != "2") { if (lt_mix[0].logo_pic != "") { refill = 0; showStatus(lt_pwx); } else { status = "Filing"; data_status = "Uncompleted"; refill = 1; } } else { refill = 0; showStatus(lt_pwx); } } else if ((Convert.ToInt32(s.status) == 1) && ((lt_appx.Count != 1) || (lt_mix.Count != 1) || (lt_aosx.Count != 1) || (lt_repx.Count != 1) || (lt_appaddyx.Count != 1) || (lt_repaddyx.Count != 1) )) { status = "Filing"; data_status = "Uncompleted"; refill = 1; } else if (Convert.ToInt32(s.status) > 1) { refill = 0; showStatus(lt_pwx); } } } else { base.Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { Session["fee_detailsID"] = null; Session["item_code"] = null; Session["hwalletID"] = null; Session["vid"] = null; Session["amt"] = null; Session["aid"] = null; Session["pc"] = null; Session["agentname"] = null; Session["agentemail"] = null; Session["agentpnumber"] = null; Session["applicantname"] = null; Session["applicant_addy"] = null; Session["applicantemail"] = null; Session["applicantpnumber"] = null; Session["product_title"] = null; Session["xapplication"] = null; Session["pwalletID"] = null; Session["log_staffID"] = null; Session["xapplication"] = null; Session["log_staffID"] = log_staffID; string serverpath = Server.MapPath("~/"); if (Request.Form["item_code"] != null) { this.item_code = Request.Form["item_code"]; } if (Request.Form["fee_detailsID"] != null) { this.fee_detailsID = Request.Form["fee_detailsID"]; } if (Request.Form["hwalletID"] != null) { this.hwalletID = Request.Form["hwalletID"]; } if (Request.Form["transID"] != null) { this.transID = Request.Form["transID"]; } if (Request.Form["amt"] != null) { this.amt = Request.Form["amt"]; } if (Request.Form["agent"] != null) { this.agent = Request.Form["agent"]; } if (Request.Form["agentemail"] != null) { this.agentemail = Request.Form["agentemail"]; } if (Request.Form["agentpnumber"] != null) { this.agentpnumber = Request.Form["agentpnumber"]; } if (Request.Form["applicantemail"] != null) { this.applicantemail = Request.Form["applicantemail"]; } if (Request.Form["applicantpnumber"] != null) { this.applicantpnumber = Request.Form["applicantpnumber"]; } if (Request.Form["applicant_addy"] != null) { if (Request.Form["applicant_addy"].ToString().Contains("%26")) { this.applicant_addy = Request.Form["applicant_addy"].Replace("%26", "&"); } else { this.applicant_addy = Request.Form["applicant_addy"]; } } if (Request.Form["agentname"] != null) { if (Request.Form["agentname"].ToString().Contains("%26")) { this.agentname = Request.Form["agentname"].Replace("%26", "&"); } else { this.agentname = Request.Form["agentname"]; } } if (Request.Form["applicantname"] != null) { if (Request.Form["applicantname"].ToString().Contains("%26")) { this.applicantname = Request.Form["applicantname"].Replace("%26", "&"); } else { this.applicantname = Request.Form["applicantname"]; } } if (Request.Form["product_title"] != null) { if (Request.Form["product_title"].ToString().Contains("%26")) { this.product_title = Request.Form["product_title"].Replace("%26", "&"); } else { this.product_title = Request.Form["product_title"]; } } if ( (this.item_code != "") && (this.fee_detailsID != "") && (this.hwalletID != "") && (this.transID != "") && (this.amt != "") && (this.agent != "") && (this.agentname != "") && (this.agentemail != "") && (this.agentpnumber != "") && (this.applicantname != "") && (this.applicant_addy != "") && (this.applicantemail != "") && (this.applicantpnumber != "") && (this.product_title != "") ) { if (Session["xapplication"] != null) { this.xapplication = Session["xapplication"].ToString(); if (this.xapplication != this.transID) { if (Session["Trademark_item"] == null) { Response.Redirect("./violation.aspx"); } else { Response.Redirect("./a_violation.aspx"); } } } else { Session["xapplication"] = this.transID; } Session["item_code"] = this.item_code; Session["fee_detailsID"] = this.fee_detailsID; Session["hwalletID"] = this.hwalletID; Session["vid"] = this.transID; Session["amt"] = this.amt; Session["aid"] = this.agent; Session["agentemail"] = this.agentemail; Session["agentname"] = this.agentname; Session["agentpnumber"] = this.agentpnumber; Session["applicantname"] = this.applicantname; Session["applicant_addy"] = this.applicant_addy; Session["applicantemail"] = this.applicantemail; Session["applicantpnumber"] = this.applicantpnumber; Session["product_title"] = this.product_title; tm.Stage s = this.t.getStageBy_G_ValidationID(this.transID.Trim()); if (Convert.ToInt32(s.status) > 1) { Response.Redirect("./xreturn.aspx"); } else if (Convert.ToInt32(s.status) == 1) { Response.Redirect("./g_tm_refill.aspx"); } else if ((Convert.ToInt32(s.status) == 0) || (s.status == null) || (s.status == "")) { this.pwalletID = this.t.addPwalletG(serverpath, "0", this.transID, this.agent, this.amt, this.item_code); if (this.pwalletID != "0") { Session["pwalletID"] = this.pwalletID; } } } else { Response.Redirect(ConfigurationManager.AppSettings["ipo_profile_page"]); } }