protected void Page_Load(object sender, EventArgs e) { if (Session["Trademark_item"] != null) { ti = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"]; c_pwall = ret.getPwalletByID(ti.xmemberID); c_xmem = ret.getMemberByID(c_pwall.xmemberID); c_addy = ret.getAddressByID(c_xmem.addressID); title_of_product.Text = ti.product_title; xname.Text = c_xmem.cname; residence.SelectedIndex = Convert.ToInt32(c_addy.countryID) - 1; xselectState.SelectedIndex = Convert.ToInt32(c_addy.stateID) - 1; aos_xselectState.SelectedIndex = Convert.ToInt32(c_addy.stateID) - 1; aos_xcity.Text = c_addy.city; aos_xemail.Text = c_addy.email1; xemail.Text = c_addy.email1; aos_xtelephone.Text = c_addy.telephone1; xtelephone.Text = c_addy.telephone1; aos_xaddress.Text = c_addy.street; xaddress.Text = c_addy.street; } base.Server.MapPath("~/"); if (this.Session["aid"] != null) { this.xaid.Value = this.Session["aid"].ToString(); } else { base.Response.Redirect("./XPay/C/profile.aspx"); } if (this.Session["vid"] != null) { this.xvid.Value = this.Session["vid"].ToString(); } else { base.Response.Redirect("./XPay/C/profile.aspx"); } if (this.Session["amt"] != null) { this.xamt.Value = this.Session["amt"].ToString(); } else { base.Response.Redirect("./XPay/C/profile.aspx"); } if (this.Session["gt"] != null) { this.xgt.Value = this.Session["gt"].ToString(); } else { base.Response.Redirect("./XPay/C/profile.aspx"); } if (this.Session["pwalletID"] != null) { this.xpwalletID.Value = this.Session["pwalletID"].ToString(); } if (this.Session["xofficer"] != null) { this.log_staffID = this.Session["xofficer"].ToString(); } if (this.Session["transID"] != null) { this.transID = this.Session["transID"].ToString(); } this.Session["xapplication"] = this.xvid.Value; if (base.IsPostBack) { this.lt_state = this.t.getState(this.residence.SelectedValue); if (this.lt_state.Count == 0) { this.state_row = "1"; this.state_visible = "1"; } this.national_class_desc.Text = this.t.getNationalClassDesc((this.national_class.SelectedIndex + 1).ToString()); } else { this.residence.SelectedIndex = 0x9f; this.lt_nclass = this.t.getJNationalClasses(); this.national_class_desc.Text = this.lt_nclass[0].xdescription.ToString(); } this.xdesc_national_class = "1"; if (this.rbDisclaimer.SelectedValue == "YES") { this.disclaimer_text = "1"; } else { this.disclaimer_text = "0"; } if (this.logo_description.SelectedValue != "2") { this.logo_text = "1"; } else { this.logo_text = ""; } if ((this.Session["logo_pic"] == null) && this.logo_pic.HasFile) { this.Session["logo_pic"] = this.logo_pic; this.lblLogoPic.Text = this.logo_pic.FileName; } else if ((this.Session["logo_pic"] != null) && !this.logo_pic.HasFile) { this.logo_pic = (FileUpload)this.Session["logo_pic"]; this.lblLogoPic.Text = this.logo_pic.FileName; } else if (this.logo_pic.HasFile) { this.Session["logo_pic"] = this.logo_pic; this.lblLogoPic.Text = this.logo_pic.FileName; } if ((this.Session["auth_doc"] == null) && this.auth_doc.HasFile) { this.Session["auth_doc"] = this.auth_doc; this.lblPoa.Text = this.auth_doc.FileName; } else if ((this.Session["auth_doc"] != null) && !this.auth_doc.HasFile) { this.auth_doc = (FileUpload)this.Session["auth_doc"]; this.lblPoa.Text = this.auth_doc.FileName; } else if (this.auth_doc.HasFile) { this.Session["auth_doc"] = this.auth_doc; this.lblPoa.Text = this.auth_doc.FileName; } if ((this.Session["sup_doc1"] == null) && this.sup_doc1.HasFile) { this.Session["sup_doc1"] = this.sup_doc1; this.lblDoc1.Text = this.sup_doc1.FileName; } else if ((this.Session["sup_doc1"] != null) && !this.sup_doc1.HasFile) { this.sup_doc1 = (FileUpload)this.Session["sup_doc1"]; this.lblDoc1.Text = this.sup_doc1.FileName; } else if (this.sup_doc1.HasFile) { this.Session["sup_doc1"] = this.sup_doc1; this.lblDoc1.Text = this.sup_doc1.FileName; } if ((this.Session["sup_doc2"] == null) && this.sup_doc2.HasFile) { this.Session["sup_doc2"] = this.sup_doc2; this.lblDoc2.Text = this.sup_doc2.FileName; } else if ((this.Session["sup_doc2"] != null) && !this.sup_doc2.HasFile) { this.sup_doc2 = (FileUpload)this.Session["sup_doc2"]; this.lblDoc2.Text = this.sup_doc2.FileName; } else if (this.sup_doc2.HasFile) { this.Session["sup_doc2"] = this.sup_doc2; this.lblDoc2.Text = this.sup_doc2.FileName; } }
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) { ti = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"]; c_pwall = ret.getPwalletByID(ti.xmemberID); c_xmem = ret.getMemberByID(c_pwall.xmemberID); this.transID = ti.transID; this.amt = ti.amt; this.agent = c_xmem.sys_ID; this.xgt = ti.xgt; this.cname = c_xmem.cname; this.agentemail = c_pwall.xemail; this.agentpnumber = c_pwall.xmobile; this.applicantname = c_xmem.xname; 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) { base.Response.Redirect("./c_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; this.pwalletID = this.t.addPwallet(this.transID, this.agent, this.amt, this.log_staffID); if (this.pwalletID != "0") { this.Session["pwalletID"] = this.pwalletID; } } else { base.Response.Redirect("./XPay/C/profile.aspx"); } }