protected void Page_Load(object sender, EventArgs e) { if ((Session["item_code"] != null) && (Session["item_code"] != null)) { item_code = Session["item_code"].ToString(); } if ((Session["code_title"] != null) && (Session["code_title"] != null)) { code_title = Session["code_title"].ToString(); } serverpath = base.Server.MapPath("~/"); string path = serverpath + @"Handlers\bf.kez"; if (File.Exists(path)) { StreamReader reader = new StreamReader(path, true); file_string = reader.ReadToEnd(); reader.Close(); if (file_string != null) { string oldValue = file_string.Substring(0, file_string.IndexOf("</BitStrength>") + 14); file_string = file_string.Replace(oldValue, ""); } } Verify.Visible = false; if (rbValid.SelectedValue == "Treated") { rbval_text = "Treated"; Verify.Visible = true; } else if (rbValid.SelectedValue == "Kiv") { rbval_text = "Kiv"; Verify.Visible = true; } else if (rbValid.SelectedValue == "Contact") { rbval_text = "Contact"; Verify.Visible = true; } if (Session["pwalletID"] != null) { if (Session["pwalletID"].ToString() != "") { admin = Session["pwalletID"].ToString(); PopulateOffice(admin); } else { base.Response.Redirect("../lo.aspx"); } } else { base.Response.Redirect("../lo.aspx"); } fee_list = ret.getFee_listByCat("tm"); if (!Page.IsPostBack) { if ((base.Request.QueryString["x"] == null) || (base.Request.QueryString["x"] == "")) { base.Response.Redirect("./g_contact.aspx"); } else { vid = base.Request.QueryString["x"]; g_pwallet = ret.getG_PwalletByID(vid); if ((g_pwallet.xid != null) && (g_pwallet.xid != "")) { Session["g_pwallet"] = g_pwallet; Session["xid"] = g_pwallet.xid; Session["validationID"] = g_pwallet.validationID; lt_cur_admin_details = z.getTmAdminDetailsByID(admin); if ((lt_cur_admin_details.xID != null) && (lt_cur_admin_details.xID != "")) { Session["lt_cur_admin_details"] = lt_cur_admin_details; } g_tm_info = ret.getG_Tm_infoByPwalletID(g_pwallet.xid); if ((g_tm_info.xid != null) && (g_tm_info.xid != "")) { Session["g_tm_info"] = g_tm_info; } g_app_info = ret.getG_App_infoByPwalletID(g_pwallet.xid); if ((g_app_info.id != null) && (g_app_info.id != "")) { Session["g_app_info"] = g_app_info; } g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); if ((g_applicant_info.id != null) && (g_applicant_info.id != "")) { Session["g_applicant_info"] = g_applicant_info; } g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); if ((g_agent_info.xid != null) && (g_agent_info.xid != "")) { Session["g_agent_info"] = g_agent_info; } g_ass_info = ret.getG_Ass_infoByPwalletID(g_pwallet.xid); if ((g_ass_info.xid != null) && (g_ass_info.xid != "")) { Session["g_ass_info"] = g_ass_info; } g_cert_info = ret.getG_Cert_infoByPwalletID(g_pwallet.xid); if ((g_cert_info.xid != null) && (g_cert_info.xid != "")) { Session["g_cert_info"] = g_cert_info; } g_change_info = ret.getG_Change_infoByPwalletID(g_pwallet.xid); if ((g_change_info.xid != null) && (g_change_info.xid != "")) { Session["g_change_info"] = g_change_info; } g_merger_info = ret.getG_Merger_infoByPwalletID(g_pwallet.xid); if ((g_merger_info.xid != null) && (g_merger_info.xid != "")) { Session["g_merger_info"] = g_merger_info; } g_renewal_info = ret.getG_Renewal_infoByPwalletID(g_pwallet.xid); if ((g_renewal_info.xid != null) && (g_renewal_info.xid != "")) { Session["g_renewal_info"] = g_renewal_info; } g_prelim_search_info = ret.getG_Prelim_search_infoByPwalletID(g_pwallet.xid); if ((g_prelim_search_info.xid != null) && (g_prelim_search_info.xid != "")) { Session["g_prelim_search_info"] = g_prelim_search_info; } g_other_items_info = ret.getG_Other_items_infoByPwalletID(g_pwallet.xid); if ((g_other_items_info.xid != null) && (g_other_items_info.xid != "")) { Session["g_other_items_info"] = g_other_items_info; } lt_g_tm_office = z.getG_TmOfficeDetailsByID(g_pwallet.xid); if (lt_g_tm_office.Count > 0) { Session["lt_g_tm_office"] = lt_g_tm_office; } for (int i = 0; i < lt_g_tm_office.Count; i++) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td align=\"center\" colspan=\"4\">"; xcomments = xcomments + "<strong>" + lt_g_tm_office[i].xcomment.ToUpper() + "</strong><br />"; lt_x_admin_details = z.getTmAdminDetailsByID(lt_g_tm_office[i].xofficer); xcomments = xcomments + "COMMENT BY: <strong>" + lt_x_admin_details.xname.ToUpper() + "( " + z.getRoleNameByID(lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br /> Date: <strong>" + lt_g_tm_office[i].reg_date.ToUpper() + "</strong>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; string str4 = ""; string str5 = ""; string str6 = ""; if (((lt_g_tm_office[i].xdoc1 != "") || (lt_g_tm_office[i].xdoc2 != "")) || (lt_g_tm_office[i].xdoc3 != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\" class=\"tbbg\">"; xcomments = xcomments + "--- SUPPORTING DOCUMENTS ---"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_g_tm_office[i].xdoc1 != "") { if (lt_g_tm_office[i].xdoc1.Contains("generic/")) { str4 = lt_g_tm_office[i].xdoc1.Replace("generic/", ""); } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "View Document 1: <a href=" + str4 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_g_tm_office[i].xdoc2 != "") { if (lt_g_tm_office[i].xdoc2.Contains("generic/")) { str5 = lt_g_tm_office[i].xdoc2.Replace("generic/", ""); } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "View Document 2: <a href=" + str5 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (lt_g_tm_office[i].xdoc3 != "") { if (lt_g_tm_office[i].xdoc3.Contains("generic/")) { str6 = lt_g_tm_office[i].xdoc3.Replace("generic/", ""); } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "View Document 3: <a href=" + str6 + " target='_blank'>View</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"4\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_tm_info.xid != null) && (g_tm_info.xid != "")) { string str7 = "../../../../admin/tm/gf/"; xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\" class=\"tbbg\">"; xcomments = xcomments + "--- UPLOADED DOCUMENTS ---"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; if (g_tm_info.logo_pic != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_tm_info.logo_pic + " target='_blank'>VIEW TRADEMARK REPRESENTATION</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (g_tm_info.app_letter_doc != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_tm_info.app_letter_doc + " target='_blank'>VIEW APPLICATION LETTER</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if (g_tm_info.sup_doc1 != "") { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_tm_info.sup_doc1 + " target='_blank'>VIEW SUPPORTING DOCUMENT</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_cert_info.cert_doc != null) && (g_cert_info.cert_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_cert_info.cert_doc + " target='_blank'>VIEW COPY OF CERTIFICATE</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_ass_info.ass_doc != null) && (g_ass_info.ass_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_ass_info.ass_doc + " target='_blank'>VIEW COPY OF ASSIGNMENT</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_merger_info.merger_doc != null) && (g_merger_info.merger_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_merger_info.merger_doc + " target='_blank'>VIEW COPY OF MERGER</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } if ((g_cert_info.pub_doc != null) && (g_cert_info.pub_doc != "")) { xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td colspan=\"4\" align=\"center\">"; xcomments = xcomments + "<a href=" + str7 + g_cert_info.pub_doc + " target='_blank'>VIEW COPY OF PUBLICATION</a>"; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; } xcomments = xcomments + "<tr>"; xcomments = xcomments + "<td class=\"coltbbg\" colspan=\"4\" align=\"center\">"; xcomments = xcomments + " "; xcomments = xcomments + "</td>"; xcomments = xcomments + "</tr>"; Session["xcomments"] = xcomments; } foreach (XObjs.Fee_list _list in fee_list) { if (_list.item_code == g_pwallet.log_officer) { lbl_type.Text = _list.item.ToUpper(); Session["code_title"] = _list.xdesc; code_title = _list.xdesc; } } Session["item_code"] = g_pwallet.log_officer; item_code = g_pwallet.log_officer; ShowSection(g_pwallet.log_officer); } } } else { if (Session["xcomments"] != null) { xcomments = Session["xcomments"].ToString(); } if (Session["pwalletID"] != null) { pwalletID = Session["pwalletID"].ToString(); } if (Session["lt_cur_admin_details"] != null) { lt_cur_admin_details = (zues.Adminz)Session["lt_cur_admin_details"]; } if (Session["g_pwallet"] != null) { g_pwallet = (XObjs.G_Pwallet)Session["g_pwallet"]; } if (Session["g_tm_info"] != null) { g_tm_info = (XObjs.G_Tm_info)Session["g_tm_info"]; } if (Session["g_app_info"] != null) { g_app_info = (XObjs.G_App_info)Session["g_app_info"]; } if (Session["g_applicant_info"] != null) { g_applicant_info = (XObjs.G_Applicant_info)Session["g_applicant_info"]; } if (Session["g_agent_info"] != null) { g_agent_info = (XObjs.Gen_Agent_info)Session["g_agent_info"]; } if (Session["g_ass_info"] != null) { g_ass_info = (XObjs.G_Ass_info)Session["g_ass_info"]; } if (Session["g_cert_info"] != null) { g_cert_info = (XObjs.G_Cert_info)Session["g_cert_info"]; } if (Session["g_change_info"] != null) { g_change_info = (XObjs.G_Change_info)Session["g_change_info"]; } if (Session["g_merger_info"] != null) { g_merger_info = (XObjs.G_Merger_info)Session["g_merger_info"]; } if (Session["g_renewal_info"] != null) { g_renewal_info = (XObjs.G_Renewal_info)Session["g_renewal_info"]; } if (Session["g_prelim_search_info"] != null) { g_prelim_search_info = (XObjs.G_Prelim_search_info)Session["g_prelim_search_info"]; } if (Session["g_other_items_info"] != null) { g_other_items_info = (XObjs.G_Other_items_info)Session["g_other_items_info"]; } if (Session["lt_g_tm_office"] != null) { lt_g_tm_office = (List <zues.G_TmOffice>)Session["lt_g_tm_office"]; } if (Session["code_title"] != null) { code_title = Session["code_title"].ToString(); } if (Session["item_code"] != null) { item_code = Session["item_code"].ToString(); } } }
public void ProcessRequest(HttpContext context) { string new_hash = ""; // string ccode = ConfigurationManager.AppSettings["ccode"]; string xcode = ConfigurationManager.AppSettings["xcode"]; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Cld_Generic dd = ser.Deserialize <Cld_Generic>(pp); XObjs.G_Pwallet c_pwall = new XObjs.G_Pwallet(); XObjs.G_App_info g_app_info = new XObjs.G_App_info(); XObjs.G_Applicant_info g_applicant_info = new XObjs.G_Applicant_info(); XObjs.G_Tm_info g_tm_info = new XObjs.G_Tm_info(); XObjs.G_Ass_info g_ass_info = new XObjs.G_Ass_info(); XObjs.G_Merger_info g_merger_info = new XObjs.G_Merger_info(); XObjs.G_Cert_info g_cert_info = new XObjs.G_Cert_info(); XObjs.G_Change_info g_change_info = new XObjs.G_Change_info(); XObjs.G_Renewal_info g_renewal_info = new XObjs.G_Renewal_info(); XObjs.G_Prelim_search_info g_prelim_search_info = new XObjs.G_Prelim_search_info(); XObjs.G_Other_items_info g_other_items_info = new XObjs.G_Other_items_info(); XObjs.Gen_Agent_info g_agent_info = new XObjs.Gen_Agent_info(); HttpPostedFile fu_logo_pic = null; HttpPostedFile fu_sup_doc = null; HttpPostedFile fu_app_doc = null; HttpPostedFile fu_merger_doc = null; HttpPostedFile fu_ass_doc = null; HttpPostedFile fu_pub_doc = null; HttpPostedFile fu_cert_doc = null; c_pwall.twalletID = "0"; c_pwall.validationID = "0"; // vid; c_pwall.applicantID = dd.Agent_Code; //agt; c_pwall.log_officer = dd.Application_Type; // item_code; c_pwall.amt = dd.amount; // amt; g_app_info.filing_date = dd.Application_Date; g_app_info.application_no = dd.Application_No; g_app_info.rtm_number = dd.Rtm_No; g_app_info.item_code = dd.Application_Type;// item_code; g_app_info.log_staff = "0"; g_app_info.reg_no = dd.Application_No; g_app_info.reg_date = dd.Application_Date; g_app_info.visible = "0"; g_applicant_info.trading_as = dd.Trading_As; g_applicant_info.visible = "0"; g_applicant_info.address = dd.Applicant_Address; g_applicant_info.xemail = dd.Applicant_Email; g_applicant_info.xmobile = dd.Applicant_Phone; g_applicant_info.xname = dd.Applicant_name; g_applicant_info.nationality = dd.Nationality; g_applicant_info.log_staff = "0"; g_tm_info.disclaimer = dd.Txt_Discalimer; g_tm_info.tm_class = dd.Trademark_Class; g_tm_info.tm_desc = dd.Goods_Desc; g_tm_info.tm_title = dd.Title_Of_Trademark; g_tm_info.xtype = dd.Trademark_Type; g_tm_info.reg_number = dd.Application_No;; g_tm_info.logo_descID = dd.Logo_Desc; g_tm_info.logo_pic = ""; g_tm_info.auth_doc = ""; g_tm_info.sup_doc1 = ""; g_tm_info.app_letter_doc = ""; g_tm_info.log_staff = "0"; g_tm_info.reg_date = dd.Application_Date; g_tm_info.visible = "0"; g_agent_info.code = dd.Agent_Code; //agt; g_agent_info.xname = dd.Rep_Xname; g_agent_info.xpassword = ""; g_agent_info.nationality = dd.Agent_Rep_Nationality; g_agent_info.country = dd.Agent_Nationality; g_agent_info.state = dd.Agent_State; g_agent_info.address = dd.rep_address; g_agent_info.telephone = dd.Rep_telephone; g_agent_info.email = dd.Rep_email; g_agent_info.log_staff = "0"; g_agent_info.xsync = "0"; g_cert_info.log_staff = "0"; g_cert_info.reg_date = dd.Application_Date; g_cert_info.xvisible = "0"; g_cert_info.pub_date = dd.Cert_publicationdate; g_cert_info.pub_details = dd.cert_details; g_cert_info.cert_doc = ""; g_cert_info.pub_doc = ""; if (context.Request.Files.Count > 0) { var files = new List <string>(); // interate the files and save on the server foreach (string file in context.Request.Files) { if (file == "FileUpload") { fu_logo_pic = context.Request.Files[file]; // var vfile = postedFile.FileName.Replace("\"", string.Empty).Replace("'", string.Empty); // vfile = Stp(vfile); // string FileName = context.Server.MapPath("~/admin/ag_docz/" + vfile); // dd.cac_file = "/images/" + vfile; // dd.cac_file = "admin/ag_docz/" + vfile; // postedFile.SaveAs(FileName); } if (file == "FileUpload2") { fu_app_doc = context.Request.Files[file]; } if (file == "FileUpload3") { fu_cert_doc = context.Request.Files[file]; } if (file == "FileUpload4") { fu_pub_doc = context.Request.Files[file]; } // dd.File_path = "/Images/Patient/" + vfile; } } GetData gg = new GetData(); string sp = ""; string serverpath = context.Server.MapPath("~/"); Registration tt = new Registration(); TransactionOptions transactionOptions = new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted, Timeout = new TimeSpan(0, 15, 0) }; TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, transactionOptions); String vt = null; vt = tt.addTrademarkTx(dd, fu_logo_pic, fu_app_doc, fu_cert_doc, fu_pub_doc, serverpath); if (vt != null) { scope.Complete(); scope.Dispose(); } else { scope.Dispose(); throw new Exception("Test Exception"); } // string sp = gg.addAgent(dd); // Ipong.Classes.Retriever kp = new Ipong.Classes.Retriever(); // sendemail(dd.Email, dd.CompName, sp); try { // kp.updateRegistrationSysID4(sp, "PENDING"); } catch (Exception ee) { } context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(vt)); }
protected void Verify_Click(object sender, EventArgs e) { if (comment.Text != "") { succ = z.a_g_tm_office(Session["xid"].ToString(), Session["OfficeID"].ToString(), rbValid.SelectedValue, comment.Text, "", "", "", admin); if (Convert.ToInt32(succ) > 0) { if (rbValid.SelectedValue == "Treated") { Email email = new Email(); if (Session["g_agent_info"] != null) { g_agent_info = (XObjs.Gen_Agent_info)Session["g_agent_info"]; } if (Session["g_app_info"] != null) { g_app_info = (XObjs.G_App_info)Session["g_app_info"]; } if (Session["g_applicant_info"] != null) { g_applicant_info = (XObjs.G_Applicant_info)Session["g_applicant_info"]; } if (Session["g_tm_info"] != null) { g_tm_info = (XObjs.G_Tm_info)Session["g_tm_info"]; } if (Session["g_ass_info"] != null) { g_ass_info = (XObjs.G_Ass_info)Session["g_ass_info"]; } if (Session["g_cert_info"] != null) { g_cert_info = (XObjs.G_Cert_info)Session["g_cert_info"]; } if (Session["g_change_info"] != null) { g_change_info = (XObjs.G_Change_info)Session["g_change_info"]; } if (Session["g_merger_info"] != null) { g_merger_info = (XObjs.G_Merger_info)Session["g_merger_info"]; } if (Session["g_other_items_info"] != null) { g_other_items_info = (XObjs.G_Other_items_info)Session["g_other_items_info"]; } if (Session["g_prelim_search_info"] != null) { g_prelim_search_info = (XObjs.G_Prelim_search_info)Session["g_prelim_search_info"]; } if (Session["g_renewal_info"] != null) { g_renewal_info = (XObjs.G_Renewal_info)Session["g_renewal_info"]; } if (Session["validationID"] != null) { vid = Session["validationID"].ToString(); } string user_doc = c_ud.returnDoc(vid, g_pwallet, g_app_info, g_applicant_info, g_tm_info, g_agent_info, g_ass_info, g_cert_info, g_change_info, g_merger_info, g_other_items_info, g_prelim_search_info, g_renewal_info, comment.Text.Trim(), z.getTmAdminDetailsByID(pwalletID).xname, code_title, "mail", lt_g_tm_office[lt_g_tm_office.Count - 1].reg_date); Session["user_doc"] = user_doc; // email.sendMail("CLD Status Response", "*****@*****.**", "*****@*****.**", "CLD: Response for: " + g_tm_info.tm_title, user_doc, ""); email.sendMail("CLD Status Response", g_agent_info.email, "*****@*****.**", "CLD: Response for: " + g_tm_info.tm_title, user_doc, ""); // Response.Write(user_doc); } Response.Write("<script type=\"text/javascript\">alert('Data updated successfully')</script>"); Response.Redirect("./g_contact.aspx"); } else { Response.Write("<script type=\"text/javascript\">alert('Data not updated, Please try again later')</script>"); } } else { Response.Write("<script type=\"text/javascript\">alert('Please enter a comment to proceed!!')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { serverpath = Server.MapPath("~/"); fee_list = ret.getFee_listByCat("tm"); if (!Page.IsPostBack) { tm_img.ImageUrl = ""; if ((Session["vid"] != null) && (Session["vid"].ToString() != "")) { vid = Session["vid"].ToString(); g_pwallet = ret.getG_PwalletByValidationID(vid); if ((g_pwallet.xid != null) && (g_pwallet.xid != "")) { g_tm_info = ret.getG_Tm_infoByPwalletID(g_pwallet.xid); g_app_info = ret.getG_App_infoByPwalletID(g_pwallet.xid); g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); g_ass_info = ret.getG_Ass_infoByPwalletID(g_pwallet.xid); g_cert_info = ret.getG_Cert_infoByPwalletID(g_pwallet.xid); g_change_info = ret.getG_Change_infoByPwalletID(g_pwallet.xid); g_merger_info = ret.getG_Merger_infoByPwalletID(g_pwallet.xid); g_renewal_info = ret.getG_Renewal_infoByPwalletID(g_pwallet.xid); g_prelim_search_info = ret.getG_Prelim_search_infoByPwalletID(g_pwallet.xid); g_other_items_info = ret.getG_Other_items_infoByPwalletID(g_pwallet.xid); if (g_tm_info.logo_pic != "") { tm_img.ImageUrl = "../admin/tm/gf/" + g_tm_info.logo_pic; if (File.Exists(serverpath + @"\admin\tm\gf\" + g_tm_info.logo_pic)) { tm_img.Height = new Unit(120.0, UnitType.Pixel); tm_img.Width = new Unit(120.0, UnitType.Pixel); try { FileStream stream = new FileStream(serverpath + @"\admin\tm\gf\" + g_tm_info.logo_pic, FileMode.Open, FileAccess.Read); System.Drawing.Image image = System.Drawing.Image.FromStream(stream); string str = image.Height.ToString(); string str2 = image.Width.ToString(); if (((str != "") && (str2 != "")) && ((str != null) && (str2 != null))) { if (Convert.ToInt32(str) > Convert.ToInt32(str2)) { tm_img.Height = new Unit(320.0, UnitType.Pixel); tm_img.Width = new Unit(240.0, UnitType.Pixel); } else { tm_img.Height = new Unit(240.0, UnitType.Pixel); tm_img.Width = new Unit(320.0, UnitType.Pixel); } } else { tm_img.Visible = false; } } catch (Exception) { tm_img.Visible = false; } } else { tm_img.Visible = false; } } foreach (XObjs.Fee_list _list in fee_list) { if (_list.item_code == g_pwallet.log_officer) { lbl_type.Text = _list.item.ToUpper(); } } ShowSection(g_pwallet.log_officer); } } } else if (Session["pwalletID"] != null) { pwalletID = Session["pwalletID"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); this.fee_list = this.ret.getFee_listByCat("tm"); if (!this.Page.IsPostBack) { if ((base.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (base.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "")) { this.vid = base.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; this.g_pwallet = this.ret.getG_PwalletByValidationID(this.vid); if ((this.g_pwallet.xid != null) && (this.g_pwallet.xid != "")) { this.g_tm_info = this.ret.getG_Tm_infoByPwalletID(this.g_pwallet.xid); this.g_app_info = this.ret.getG_App_infoByPwalletID(this.g_pwallet.xid); this.g_applicant_info = this.ret.getG_Applicant_infoByPwalletID(this.g_pwallet.xid); this.g_agent_info = this.ret.getGenAgentByPwalletID(this.g_pwallet.xid); this.g_ass_info = this.ret.getG_Ass_infoByPwalletID(this.g_pwallet.xid); this.g_cert_info = this.ret.getG_Cert_infoByPwalletID(this.g_pwallet.xid); this.g_change_info = this.ret.getG_Change_infoByPwalletID(this.g_pwallet.xid); this.g_merger_info = this.ret.getG_Merger_infoByPwalletID(this.g_pwallet.xid); this.g_renewal_info = this.ret.getG_Renewal_infoByPwalletID(this.g_pwallet.xid); this.g_prelim_search_info = this.ret.getG_Prelim_search_infoByPwalletID(this.g_pwallet.xid); this.g_other_items_info = this.ret.getG_Other_items_infoByPwalletID(this.g_pwallet.xid); if (this.g_tm_info.logo_pic != "") { this.tm_img.ImageUrl = "../admin/tm/gf/" + this.g_tm_info.logo_pic; if (File.Exists(this.serverpath + @"\admin\tm\gf\" + this.g_tm_info.logo_pic)) { this.tm_img.Height = new Unit(120.0, UnitType.Pixel); this.tm_img.Width = new Unit(120.0, UnitType.Pixel); try { FileStream stream = new FileStream(this.serverpath + @"\admin\tm\gf\" + this.g_tm_info.logo_pic, FileMode.Open, FileAccess.Read); System.Drawing.Image image = System.Drawing.Image.FromStream(stream); string str = image.Height.ToString(); string str2 = image.Width.ToString(); if (((str != "") && (str2 != "")) && ((str != null) && (str2 != null))) { if (Convert.ToInt32(str) > Convert.ToInt32(str2)) { this.tm_img.Height = new Unit(320.0, UnitType.Pixel); this.tm_img.Width = new Unit(240.0, UnitType.Pixel); } else { this.tm_img.Height = new Unit(240.0, UnitType.Pixel); this.tm_img.Width = new Unit(320.0, UnitType.Pixel); } } else { this.tm_img.Visible = false; } } catch (Exception) { this.tm_img.Visible = false; } } else { this.tm_img.Visible = false; } } foreach (XObjs.Fee_list _list in this.fee_list) { if (_list.item_code == this.g_pwallet.log_officer) { this.lbl_type.Text = _list.item.ToUpper(); } } this.ShowSection(this.g_pwallet.log_officer); } } } else if (this.Session["pwalletID"] != null) { this.pwalletID = this.Session["pwalletID"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (base.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) { this.vid = base.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"].ToString(); this.Session["vid"] = this.vid; } this.serverpath = base.Server.MapPath("~/"); this.fee_list = this.ret.getFee_listByCat("tm"); if (this.Session["app_type"] != null) { this.app_type = this.Session["app_type"].ToString(); } if (this.Session["showt"] != null) { this.showt = Convert.ToInt32(this.Session["showt"]); } if (this.Session["item_code"] != null) { this.ShowSection(this.Session["item_code"].ToString()); } this.Session["edit_transID"] = this.vid; this.g_pwallet = this.ret.getG_PwalletByValidationID(this.vid); if ((this.g_pwallet.xid != null) && (this.g_pwallet.xid != "")) { this.rep_code.Text = this.g_pwallet.applicantID; this.Session["g_pwallet"] = this.g_pwallet; this.Session["g_pwalletID"] = this.g_pwallet.xid; this.g_tm_info = this.ret.getG_Tm_infoByPwalletID(this.g_pwallet.xid); this.g_app_info = this.ret.getG_App_infoByPwalletID(this.g_pwallet.xid); this.g_applicant_info = this.ret.getG_Applicant_infoByPwalletID(this.g_pwallet.xid); this.g_agent_info = this.ret.getGenAgentByPwalletID(this.g_pwallet.xid); this.g_ass_info = this.ret.getG_Ass_infoByPwalletID(this.g_pwallet.xid); this.g_cert_info = this.ret.getG_Cert_infoByPwalletID(this.g_pwallet.xid); this.g_change_info = this.ret.getG_Change_infoByPwalletID(this.g_pwallet.xid); this.g_merger_info = this.ret.getG_Merger_infoByPwalletID(this.g_pwallet.xid); this.g_renewal_info = this.ret.getG_Renewal_infoByPwalletID(this.g_pwallet.xid); this.g_prelim_search_info = this.ret.getG_Prelim_search_infoByPwalletID(this.g_pwallet.xid); this.g_other_items_info = this.ret.getG_Other_items_infoByPwalletID(this.g_pwallet.xid); foreach (XObjs.Fee_list _list in this.fee_list) { if (_list.item_code == this.g_pwallet.log_officer) { this.lbl_type.Text = _list.item.ToUpper(); } } if (this.g_app_info.id != null) { this.Session["g_app_info"] = this.g_app_info; this.txt_rtm_no.Text = this.g_app_info.rtm_number; this.txt_application_no.Text = this.g_app_info.application_no; this.txt_application_date.Text = this.g_app_info.filing_date; } if (this.g_applicant_info.id != null) { this.Session["g_applicant_info"] = this.g_applicant_info; this.txt_applicant_name.Text = this.g_applicant_info.xname; this.txt_applicant_address.Text = this.g_applicant_info.address; this.txt_applicant_email.Text = this.g_applicant_info.xemail; this.txt_applicant_mobile.Text = this.g_applicant_info.xmobile; this.txt_trading_as.Text = this.g_applicant_info.trading_as; this.select_applicant_nationality.SelectedIndex = Convert.ToInt32(this.t.getCountryIDByName(this.g_applicant_info.nationality)) - 1; } if (this.g_tm_info.xid != null) { this.Session["g_tm_info"] = this.g_tm_info; this.txt_title_of_trademark.Text = this.g_tm_info.tm_title; this.txt_goods_desc.Text = this.g_tm_info.tm_desc; this.txt_discalimer.Text = this.g_tm_info.disclaimer; this.logo_description.SelectedIndex = Convert.ToInt32(this.t.getLogoDescriptionID(this.g_tm_info.logo_descID)) - 1; this.select_class_of_trademark.SelectedIndex = Convert.ToInt32(this.g_tm_info.tm_class) - 1; this.tmType.SelectedIndex = Convert.ToInt32(this.t.getTmTypeID(this.g_tm_info.xtype)) - 1; } if (this.g_agent_info.xid != null) { this.Session["g_agent_info"] = this.g_agent_info; this.rep_xname.Text = this.g_agent_info.xname; this.txt_rep_address.Text = this.g_agent_info.address; this.txt_rep_email.Text = this.g_agent_info.email; this.txt_rep_telephone.Text = this.g_agent_info.telephone; this.selectRepState.SelectedIndex = Convert.ToInt32(this.ret.getStateIDByName(this.g_agent_info.state)) - 1; } if (this.g_cert_info.xid != null) { this.Session["g_cert_info"] = this.g_cert_info; this.txt_cert_publicationdate.Text = this.g_cert_info.pub_date; this.txt_cert_details.Text = this.g_cert_info.pub_details; } if (this.g_ass_info.xid != null) { this.Session["g_ass_info"] = this.g_ass_info; this.select_merger_ass.SelectedIndex = 0; this.txt_assignee_name.Text = this.g_ass_info.assignee_name; this.txt_assignee_address.Text = this.g_ass_info.assignee_address; this.txt_assignor_name.Text = this.g_ass_info.assignor_name; this.txt_assignor_address.Text = this.g_ass_info.assignor_address; this.txt_assignment_date.Text = this.g_ass_info.date_of_assignment; this.select_assignee_nationality.SelectedIndex = Convert.ToInt32(this.g_ass_info.assignee_nationality) - 1; this.select_assignor_nationality.SelectedIndex = Convert.ToInt32(this.g_ass_info.assignor_nationality) - 1; } if (this.g_merger_info.xid != null) { this.Session["g_merger_info"] = this.g_merger_info; this.select_merger_ass.SelectedIndex = 1; this.txt_original_name.Text = this.g_merger_info.original_name; this.txt_original_address.Text = this.g_merger_info.original_address; this.txt_merging_name.Text = this.g_merger_info.merging_name; this.txt_merging_address.Text = this.g_merger_info.merging_address; this.txt_merged_coy_name.Text = this.g_merger_info.merged_coy_name; this.txt_merger_date.Text = this.g_merger_info.merger_date; } if (this.g_change_info.xid != null) { this.Session["g_change_info"] = this.g_change_info; this.txt_old_applicant_trademark.Text = this.g_change_info.old_name; this.txt_old_applicant_address.Text = this.g_change_info.old_address; this.txt_new_applicant_trademark.Text = this.g_change_info.new_name; this.txt_new_applicant_address.Text = this.g_change_info.new_address; } if (this.g_prelim_search_info.xid != null) { this.Session["g_prelim_search_info"] = this.g_prelim_search_info; this.txt_prelim_title.Text = this.g_prelim_search_info.xtitle; this.select_prelim_class.SelectedIndex = Convert.ToInt32(this.g_prelim_search_info.xclass) - 1; this.txt_prelim_desc.Text = this.g_prelim_search_info.xclass_desc; } if (this.g_renewal_info.xid != null) { this.Session["g_renewal_info"] = this.g_renewal_info; this.txt_renewal_date.Text = this.g_renewal_info.prev_renewal_date; this.select_renewal_type.SelectedIndex = Convert.ToInt32(this.g_renewal_info.renewal_type) - 1; } if (this.g_other_items_info.xid != null) { this.Session["g_other_items_info"] = this.g_other_items_info; this.txt_details_of_request.Text = this.g_other_items_info.req_details; } this.ShowSection(this.g_pwallet.log_officer); this.showt = 1; this.Session["showt"] = this.showt; } else { base.Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); base.Response.Redirect("http://www.ipo.cldng.com/A/v_bask.aspx"); } }
protected void SaveEdit_Click(object sender, EventArgs e) { if (this.Session["item_code"] != null) { this.item_code = this.Session["item_code"].ToString(); } if (this.Session["g_pwallet"] != null) { this.g_pwallet = (XObjs.G_Pwallet) this.Session["g_pwallet"]; } if (this.Session["g_app_info"] != null) { this.g_app_info = (XObjs.G_App_info) this.Session["g_app_info"]; } if (this.Session["g_applicant_info"] != null) { this.g_applicant_info = (XObjs.G_Applicant_info) this.Session["g_applicant_info"]; } if (this.Session["g_tm_info"] != null) { this.g_tm_info = (XObjs.G_Tm_info) this.Session["g_tm_info"]; } if (this.Session["g_agent_info"] != null) { this.g_agent_info = (XObjs.Gen_Agent_info) this.Session["g_agent_info"]; } if (this.Session["g_ass_info"] != null) { this.g_ass_info = (XObjs.G_Ass_info) this.Session["g_ass_info"]; } if (this.Session["g_cert_info"] != null) { this.g_cert_info = (XObjs.G_Cert_info) this.Session["g_cert_info"]; } if (this.Session["g_change_info"] != null) { this.g_change_info = (XObjs.G_Change_info) this.Session["g_change_info"]; } if (this.Session["g_merger_info"] != null) { this.g_merger_info = (XObjs.G_Merger_info) this.Session["g_merger_info"]; } if (this.Session["g_renewal_info"] != null) { this.g_renewal_info = (XObjs.G_Renewal_info) this.Session["g_renewal_info"]; } if (this.Session["g_prelim_search_info"] != null) { this.g_prelim_search_info = (XObjs.G_Prelim_search_info) this.Session["g_prelim_search_info"]; } if (this.Session["g_other_items_info"] != null) { this.g_other_items_info = (XObjs.G_Other_items_info) this.Session["g_other_items_info"]; } this.g_app_info.filing_date = this.txt_application_date.Text; this.g_app_info.application_no = this.txt_application_no.Text; this.g_app_info.rtm_number = this.txt_rtm_no.Text; this.g_app_info.item_code = this.item_code; this.g_app_info.reg_no = ""; this.g_app_info.log_staff = this.g_pwallet.xid; this.g_app_info.reg_date = this.xreg_date; this.g_app_info.visible = this.xvisible; if (this.g_app_info.id != null) { this.app_succ = this.reg.update_App_info(this.g_app_info); this.Session["app_succID"] = this.app_succ; } else { this.app_succ = this.reg.addG_App_info(this.g_app_info); this.Session["app_succID"] = this.app_succ; } this.g_applicant_info.trading_as = this.txt_trading_as.Text; this.g_applicant_info.visible = this.xvisible; this.g_applicant_info.address = this.txt_applicant_address.Text; this.g_applicant_info.xemail = this.txt_applicant_email.Text; this.g_applicant_info.xmobile = this.txt_applicant_mobile.Text; this.g_applicant_info.xname = this.txt_applicant_name.Text; this.g_applicant_info.nationality = this.select_applicant_nationality.SelectedValue; this.g_applicant_info.log_staff = this.g_pwallet.xid; if (this.g_applicant_info.id != null) { this.applicant_succ = this.reg.update_Applicant_info(this.g_applicant_info); this.Session["applicant_succID"] = this.applicant_succ; } else { this.applicant_succ = this.reg.addG_Applicant_info(this.g_applicant_info); this.Session["applicant_succID"] = this.applicant_succ; } string str = "TM/GF/" + this.item_code + "/" + DateTime.Now.ToString("yyyy") + "/" + this.g_pwallet.xid; this.g_tm_info.disclaimer = this.txt_discalimer.Text; this.g_tm_info.tm_class = this.select_class_of_trademark.SelectedValue; this.g_tm_info.tm_desc = this.txt_goods_desc.Text; this.g_tm_info.tm_title = this.txt_title_of_trademark.Text; this.g_tm_info.xtype = this.tmType.SelectedValue; if ((this.g_tm_info.reg_number == null) || (this.g_tm_info.reg_number == "")) { this.g_tm_info.reg_number = ""; } this.g_tm_info.logo_descID = this.logo_description.SelectedValue; if (this.g_tm_info.logo_descID != "WORD MARK") { this.Session["logo_desc"] = "yes"; } if ((this.g_tm_info.logo_pic == null) || (this.g_tm_info.logo_pic == "")) { this.g_tm_info.logo_pic = ""; } if ((this.g_tm_info.auth_doc == null) || (this.g_tm_info.auth_doc == "")) { this.g_tm_info.auth_doc = ""; } if ((this.g_tm_info.sup_doc1 == null) || (this.g_tm_info.sup_doc1 == "")) { this.g_tm_info.sup_doc1 = ""; } if ((this.g_tm_info.app_letter_doc == null) || (this.g_tm_info.app_letter_doc == "")) { this.g_tm_info.app_letter_doc = ""; } this.g_tm_info.log_staff = this.g_pwallet.xid; this.g_tm_info.reg_date = this.xreg_date; this.g_tm_info.visible = this.xvisible; this.g_tm_info.reg_number = str; if (this.g_tm_info.xid != null) { this.Session["new_miID"] = this.g_tm_info.xid; this.tm_info_succ = this.reg.update_Tm_info(this.g_tm_info); } else { this.tm_info_succ = this.reg.addG_Tm_info(this.g_tm_info); this.Session["new_miID"] = this.tm_info_succ; } this.g_agent_info.code = this.rep_code.Text; this.g_agent_info.xname = this.rep_xname.Text; this.g_agent_info.xpassword = ""; this.g_agent_info.nationality = this.txt_rep_nationality.Text; this.g_agent_info.country = this.txt_rep_country.Text; this.g_agent_info.state = this.selectRepState.SelectedValue; this.g_agent_info.address = this.txt_rep_address.Text; this.g_agent_info.telephone = this.txt_rep_telephone.Text; this.g_agent_info.email = this.txt_rep_email.Text; this.g_agent_info.log_staff = this.g_pwallet.xid; this.g_agent_info.xsync = "0"; if (this.g_agent_info.xid != null) { this.agent_info_succ = this.reg.update_Gen_Agent_info(this.g_agent_info); this.Session["agent_info_succID"] = this.agent_info_succ; } else { this.agent_info_succ = this.reg.addGen_Agent_info(this.g_agent_info); this.Session["agent_info_succID"] = this.agent_info_succ; } this.g_ass_info.assignee_address = this.txt_assignee_address.Text; this.g_ass_info.assignee_name = this.txt_assignee_name.Text; this.g_ass_info.assignor_address = this.txt_assignor_address.Text; this.g_ass_info.assignee_nationality = this.select_assignee_nationality.SelectedValue; this.g_ass_info.assignor_name = this.txt_assignor_name.Text; this.g_ass_info.date_of_assignment = this.txt_assignment_date.Text; this.g_ass_info.assignor_nationality = this.select_assignor_nationality.SelectedValue; this.g_ass_info.log_staff = this.g_pwallet.xid; this.g_ass_info.xvisible = this.xvisible; if ((this.g_ass_info.ass_doc == null) || (this.g_ass_info.ass_doc == "")) { this.g_ass_info.ass_doc = ""; } if (this.g_ass_info.xid != null) { this.x_succ = this.reg.update_G_Ass_info(this.g_ass_info); this.Session["assID"] = this.x_succ; this.Session["app_type"] = "ass"; } else if (((this.app_type == "ass/merger") && (this.ass_show > 0)) && (this.select_merger_ass.SelectedValue == "Assignment")) { this.x_succ = this.reg.addG_Ass_info(this.g_ass_info); this.Session["assID"] = this.x_succ; this.Session["app_type"] = "ass"; } this.g_merger_info.original_name = this.txt_original_name.Text; this.g_merger_info.original_address = this.txt_original_address.Text; this.g_merger_info.merging_name = this.txt_merging_name.Text; this.g_merger_info.merging_address = this.txt_merging_address.Text; this.g_merger_info.merged_coy_name = this.txt_merged_coy_name.Text; this.g_merger_info.merger_date = this.txt_merger_date.Text; this.g_merger_info.visible = this.xvisible; this.g_merger_info.log_staff = this.g_pwallet.xid; if ((this.g_merger_info.merger_doc == null) || (this.g_merger_info.merger_doc == "")) { this.g_merger_info.merger_doc = ""; } if (this.g_merger_info.xid != null) { this.x_succ = this.reg.update_G_Merger_info(this.g_merger_info); this.Session["mergerID"] = this.x_succ; this.Session["app_type"] = "merger"; } else if (((this.app_type == "ass/merger") && (this.merger_show > 0)) && (this.select_merger_ass.SelectedValue == "Merger")) { this.x_succ = this.reg.addG_Merger_info(this.g_merger_info); this.Session["mergerID"] = this.x_succ; this.Session["app_type"] = "merger"; } this.g_cert_info.log_staff = this.g_pwallet.xid; this.g_cert_info.reg_date = this.xreg_date; this.g_cert_info.xvisible = this.xvisible; this.g_cert_info.pub_date = this.txt_cert_publicationdate.Text; this.g_cert_info.pub_details = this.txt_cert_details.Text; if ((this.g_cert_info.cert_doc == null) || (this.g_cert_info.cert_doc == "")) { this.g_cert_info.cert_doc = ""; } if ((this.g_cert_info.pub_doc == null) || (this.g_cert_info.pub_doc == "")) { this.g_cert_info.pub_doc = ""; } if (this.g_cert_info.xid != null) { this.x_succ = this.reg.update_G_Cert_info(this.g_cert_info); this.Session["certID"] = this.x_succ; this.Session["app_type"] = "cert"; } else if (this.app_type == "cert") { this.x_succ = this.reg.addG_Cert_info(this.g_cert_info); this.Session["certID"] = this.x_succ; this.Session["app_type"] = "cert"; } this.g_change_info.new_name = this.txt_new_applicant_trademark.Text; this.g_change_info.new_address = this.txt_new_applicant_address.Text; this.g_change_info.old_name = this.txt_old_applicant_trademark.Text; this.g_change_info.old_address = this.txt_old_applicant_address.Text; this.g_change_info.reg_date = this.xreg_date; this.g_change_info.visible = this.xvisible; this.g_change_info.log_staff = this.g_pwallet.xid; if (this.g_change_info.xid != null) { this.x_succ = this.reg.update_G_Change_info(this.g_change_info); this.Session["app_type"] = "change"; } else if (this.app_type == "change") { this.x_succ = this.reg.addG_Change_info(this.g_change_info); this.Session["app_type"] = "change"; } this.g_renewal_info.prev_renewal_date = this.txt_renewal_date.Text; this.g_renewal_info.renewal_type = this.select_renewal_type.SelectedValue; this.g_renewal_info.visible = this.xvisible; this.g_renewal_info.log_staff = this.g_pwallet.xid; this.g_renewal_info.reg_date = this.xreg_date; if (this.g_renewal_info.xid != null) { this.x_succ = this.reg.update_G_Renewal_info(this.g_renewal_info); this.Session["app_type"] = "renewal"; } else if (this.app_type == "renewal") { this.x_succ = this.reg.addG_Renewal_info(this.g_renewal_info); this.Session["app_type"] = "renewal"; } this.g_prelim_search_info.xtitle = this.txt_prelim_title.Text; this.g_prelim_search_info.xclass = this.select_prelim_class.SelectedValue; this.g_prelim_search_info.xclass_desc = this.txt_prelim_desc.Text; this.g_prelim_search_info.visible = this.xvisible; this.g_prelim_search_info.log_staff = this.g_pwallet.xid; this.g_prelim_search_info.reg_date = this.xreg_date; if (this.g_prelim_search_info.xid != null) { this.x_succ = this.reg.update_G_Prelim_search_info(this.g_prelim_search_info); this.Session["app_type"] = "prelim"; } else if (this.app_type == "prelim") { this.x_succ = this.reg.addG_Prelim_search_info(this.g_prelim_search_info); this.Session["app_type"] = "prelim"; } this.g_other_items_info.req_details = this.txt_details_of_request.Text; this.g_other_items_info.visible = this.xvisible; this.g_other_items_info.log_staff = this.g_pwallet.xid; this.g_other_items_info.reg_date = this.xreg_date; if (this.g_other_items_info.xid != null) { this.x_succ = this.reg.update_G_Other_items_info(this.g_other_items_info); this.Session["app_type"] = "others"; } else if (this.app_type == "others") { this.x_succ = this.reg.addG_Other_items_info(this.g_other_items_info); this.Session["app_type"] = "others"; } if (this.x_succ > 0) { base.Response.Redirect("./g_tm_refill_docs.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { this.serverpath = base.Server.MapPath("~/"); string path = this.serverpath + @"Handlers\bf.kez"; if (File.Exists(path)) { StreamReader reader = new StreamReader(path, true); this.file_string = reader.ReadToEnd(); reader.Close(); if (this.file_string != null) { string oldValue = this.file_string.Substring(0, this.file_string.IndexOf("</BitStrength>") + 14); this.file_string = this.file_string.Replace(oldValue, ""); } } this.Verify.Visible = false; if (this.rbValid.SelectedValue == "Valid") { this.rbval_text = "New"; this.Verify.Visible = true; } else if (this.rbValid.SelectedValue == "Invalid") { this.rbval_text = "Invalid"; this.Verify.Visible = true; } this.PopulateOffice(this.admin); if (this.Session["pwalletID"] != null) { if (this.Session["pwalletID"].ToString() != "") { this.admin = this.Session["pwalletID"].ToString(); this.PopulateOffice(this.admin); } else { base.Response.Redirect("../lo.aspx"); } } else { base.Response.Redirect("../lo.aspx"); } this.fee_list = this.ret.getFee_listByCat("tm"); if ((base.Request.QueryString["x"] != null) && (base.Request.QueryString["x"] != "")) { this.vid = base.Request.QueryString["x"]; this.g_pwallet = this.ret.getG_PwalletByID(this.vid); if ((this.g_pwallet.xid != null) && (this.g_pwallet.xid != "")) { this.Session["xid"] = this.g_pwallet.xid; this.Session["validationID"] = this.g_pwallet.validationID; this.lt_cur_admin_details = this.z.getTmAdminDetailsByID(this.admin); if ((this.lt_cur_admin_details.xID != null) && (this.lt_cur_admin_details.xID != "")) { this.Session["lt_cur_admin_details"] = this.lt_cur_admin_details; } this.g_tm_info = this.ret.getG_Tm_infoByPwalletID(this.g_pwallet.xid); if ((this.g_tm_info.xid != null) && (this.g_tm_info.xid != "")) { this.Session["g_tm_info"] = this.g_tm_info; } this.g_app_info = this.ret.getG_App_infoByPwalletID(this.g_pwallet.xid); if ((this.g_app_info.id != null) && (this.g_app_info.id != "")) { this.Session["g_app_info"] = this.g_app_info; } this.g_applicant_info = this.ret.getG_Applicant_infoByPwalletID(this.g_pwallet.xid); if ((this.g_applicant_info.id != null) && (this.g_applicant_info.id != "")) { this.Session["g_applicant_info"] = this.g_applicant_info; } this.g_agent_info = this.ret.getGenAgentByPwalletID(this.g_pwallet.xid); if ((this.g_agent_info.xid != null) && (this.g_agent_info.xid != "")) { this.Session["g_agent_info"] = this.g_agent_info; } this.g_ass_info = this.ret.getG_Ass_infoByPwalletID(this.g_pwallet.xid); if ((this.g_ass_info.xid != null) && (this.g_ass_info.xid != "")) { this.Session["g_ass_info"] = this.g_ass_info; } this.g_cert_info = this.ret.getG_Cert_infoByPwalletID(this.g_pwallet.xid); if ((this.g_cert_info.xid != null) && (this.g_cert_info.xid != "")) { this.Session["g_cert_info"] = this.g_cert_info; } this.g_change_info = this.ret.getG_Change_infoByPwalletID(this.g_pwallet.xid); if ((this.g_change_info.xid != null) && (this.g_change_info.xid != "")) { this.Session["g_change_info"] = this.g_change_info; } this.g_merger_info = this.ret.getG_Merger_infoByPwalletID(this.g_pwallet.xid); if ((this.g_merger_info.xid != null) && (this.g_merger_info.xid != "")) { this.Session["g_merger_info"] = this.g_merger_info; } this.g_renewal_info = this.ret.getG_Renewal_infoByPwalletID(this.g_pwallet.xid); if ((this.g_renewal_info.xid != null) && (this.g_renewal_info.xid != "")) { this.Session["g_renewal_info"] = this.g_renewal_info; } this.g_prelim_search_info = this.ret.getG_Prelim_search_infoByPwalletID(this.g_pwallet.xid); if ((this.g_prelim_search_info.xid != null) && (this.g_prelim_search_info.xid != "")) { this.Session["g_prelim_search_info"] = this.g_prelim_search_info; } this.g_other_items_info = this.ret.getG_Other_items_infoByPwalletID(this.g_pwallet.xid); if ((this.g_other_items_info.xid != null) && (this.g_other_items_info.xid != "")) { this.Session["g_other_items_info"] = this.g_other_items_info; } this.lt_g_tm_office = this.z.getG_TmOfficeDetailsByID(this.g_pwallet.xid); if (this.lt_g_tm_office.Count > 0) { this.Session["lt_g_tm_office"] = this.lt_g_tm_office; } if ((this.g_tm_info.xid != null) && (this.g_tm_info.xid != "")) { string str3 = "../../../admin/tm/gf/"; this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\" class=\"tbbg\">"; this.xcomments = this.xcomments + "--- UPLOADED DOCUMENTS ---"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; if (this.g_tm_info.logo_pic != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_tm_info.logo_pic + " target='_blank'>VIEW TRADEMARK REPRESENTATION</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if (this.g_tm_info.app_letter_doc != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_tm_info.app_letter_doc + " target='_blank'>VIEW APPLICATION LETTER</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if (this.g_tm_info.sup_doc1 != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_tm_info.sup_doc1 + " target='_blank'>VIEW SUPPORTING DOCUMENT</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_cert_info.cert_doc != null) && (this.g_cert_info.cert_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_cert_info.cert_doc + " target='_blank'>VIEW COPY OF CERTIFICATE</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_ass_info.ass_doc != null) && (this.g_ass_info.ass_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_ass_info.ass_doc + " target='_blank'>VIEW COPY OF ASSIGNMENT</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_merger_info.merger_doc != null) && (this.g_merger_info.merger_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_merger_info.merger_doc + " target='_blank'>VIEW COPY OF MERGER</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if ((this.g_cert_info.pub_doc != null) && (this.g_cert_info.pub_doc != "")) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + "<a href=" + str3 + this.g_cert_info.pub_doc + " target='_blank'>VIEW COPY OF PUBLICATION</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"4\" align=\"center\">"; this.xcomments = this.xcomments + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } foreach (XObjs.Fee_list _list in this.fee_list) { if (_list.item_code == this.g_pwallet.log_officer) { this.lbl_type.Text = _list.item.ToUpper(); } } this.ShowSection(this.g_pwallet.log_officer); } else { base.Response.Redirect("./g_applications.aspx"); } } else if (this.Session["pwalletID"] != null) { this.pwalletID = this.Session["pwalletID"].ToString(); } }