public void PopulateOffice(string admin) { string str = z.getRoleNameByID(z.getAdminDetails(admin).xroleID).Trim(); if ((str != null) && (str != "")) { if (str == "Search") { Session["Office"] = str; Session["OfficeID"] = "2"; } if (str == "Opposition") { Session["Office"] = str; Session["OfficeID"] = "3"; } if (str == "Certificate") { Session["Office"] = str; Session["OfficeID"] = "4"; } if (str == "Acceptance") { Session["Office"] = str; Session["OfficeID"] = "5"; } } }
public void PopulateOffice(string admin) { string office = z.getRoleNameByID(z.getAdminDetails(admin).xroleID); office = office.Trim(); if ((office != null) && (office != "")) { if (office == "Verification") { x_status = "1"; x_data_status = "Fresh"; } if (office == "Search") { x_status = "2"; x_data_status = "New"; } if (office == "Opposition") { x_status = "3"; x_data_status = "New"; } if (office == "Certificate ") { x_status = "4"; x_data_status = "New"; } if (office == "Acceptance") { x_status = "5"; x_data_status = "New"; } } }
protected void Verify_Click(object sender, EventArgs e) { this.succ = this.z.a_tm_office(this.c_mark.log_staff, this.admin_status, this.rbValid.SelectedValue, this.comment.Text, "", "", "", this.admin); if (comment.Text != "") { Classes.Email em = new Email(); // this.succ = this.z.a_tm_office(this.c_mark.log_staff, this.admin_status, this.rbValid.SelectedValue, this.comment.Text, "", "", "", this.admin); //if (this.succ != "0") //{ // base.Response.Write("<script language=JavaScript>alert('Data updated successfully')</script>"); // base.Response.Redirect("./acceptance_kiv.aspx"); //} //else //{ // base.Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>"); //} zues.Adminz x_admin = z.getAdminDetails(admin); string d_email = ody.DecryptString(x_admin.xemail, file_len, file_string); string sub = "Message from " + z.getRoleNameByID(admin) + " concerning application: " + t.ValidationIDByPwalletID(c_mark.log_staff); string send_succ = em.sendMail(z.getRoleNameByID(admin).ToUpper(), c_rep_addy.email1, d_email, sub, this.comment.Text, ""); if (send_succ == "sent") { Int32 update_succ = z.e_PwalletStatus(this.c_mark.log_staff, admin_status, "kiv"); if (update_succ > 0) { base.Response.Write("<script language=JavaScript>alert('Message sent successfully')</script>"); base.Response.Redirect("./acceptance_kiv.aspx"); } else { base.Response.Write("<script language=JavaScript>alert('The form could not be updated, Please check your internet connection or try again later')</script>"); base.Response.Redirect("./acceptance_kiv.aspx"); } } else { base.Response.Write("<script language=JavaScript>alert('The E-mail could not be sent, Please check your internet connection or try again later')</script>"); base.Response.Redirect("./acceptance_kiv.aspx"); } } else { Response.Write("<script language=JavaScript>alert('Please enter a valid message to send!!')</script>"); Verify.Visible = false; Confirm.Visible = true; } }
protected void getAdmins_SelectedIndexChanged(object sender, EventArgs e) { ad = z.getAdminDetails(getAdmins.SelectedValue); edit_xname.Text = ad.xname; edit_xpass.Text = ody.DecryptString(ad.xpass, file_len, file_string); edit_xemail.Text = ody.DecryptString(ad.xemail, file_len, file_string); edit_telephone1.Text = ad.xtelephone1; edit_telephone2.Text = ad.xtelephone2; Designation.Text = ad.Designation; FilePath.Text = ad.FilePath; if (String.IsNullOrEmpty(ad.FilePath)) { FilePath.Visible = false; } else { FilePath.Visible = true; } edit_xrole.SelectedIndex = Convert.ToInt16(z.getAdmiPriv(ad.xroleID)) - 1; edit_status.SelectedIndex = Convert.ToInt16(ad.xvisible); enable_EditTbl = "1"; }
public void vupdate() { if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != "")) { admin = Convert.ToString(Session["pwalletID"]); } if ((this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "") ) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; vid2 = Request.QueryString["Recordalid"]; spwallet = ret.getCheckStatusDetails(vid); this.c_mark = this.t.getMarkInfoClassByUserID(spwallet); this.c_rep = this.t.getRepClassByUserID(spwallet); this.c_stage = this.t.getStageClassByUserID(spwallet); this.c_app = this.t.getApplicantClassByID(spwallet); 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); } //g_pwallet = ret.getG_PwalletByValidationID(vid); if ((vid != null)) { //g_tm_info = ret.getG_Tm_infoByPwalletID(g_pwallet.xid); //g_app_info = ret.getG_App_infoByPwalletID(g_pwallet.xid); Label1.Text = c_mark.reg_number; Label2.Text = c_stage.rtm; Label3.Text = c_mark.nice_class; //g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); //g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); Label8.Text = c_rep.agent_code; Label9.Text = c_rep.xname; Label10.Text = c_rep_addy.street; Label11.Text = c_rep_addy.email1; //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); zues zz2 = new zues(); Int32 vint2 = zz2.getMaxId(spwallet); // int num = 0; vint2 = Convert.ToInt32(vid2); List <Recordal> vd = ret.getG_PwalletByID3(vint2); // this.lt_tm_office = this.z.getTmOfficeByID(g_pwallet.xid); // List<Recordal> vd = ret.getG_PwalletByID2(spwallet); int vvs = vd.Count() - 1; zues.Adminz xxk = z.getAdminDetails(vd[vvs].OFFICER); Label5.Text = vd[vvs].RECORDAL_REQUEST_DATE.ToString("d");; Label4.Text = vd[vvs].OLD_PRODUCT_TITLE.ToUpper();; Label6.Text = vd[vvs].OLD_PRODUCT_TITLE.ToUpper(); Label7.Text = vd[vvs].NEW_PRODUCT_TITLE.ToUpper(); Label12.Text = vd[vvs].RECORDAL_APPROVE_DATE.ToString("d");; Label13.Text = xxk.xname; if (vd[vvs].OLD_PRODUCT_LOGO != "") { serverpath = base.Server.MapPath("~/"); tm_img.Visible = true; tm_img.ImageUrl = "~/admin/tm/" + vd[vvs].OLD_PRODUCT_LOGO; // tm_img.ImageUrl = ""; if (File.Exists(serverpath + "\\admin\\tm\\" + vd[vvs].OLD_PRODUCT_LOGO)) { tm_img.Height = new Unit(120, UnitType.Pixel); tm_img.Width = new Unit(120, UnitType.Pixel); try { FileStream st = new FileStream(serverpath + "\\admin\\tm\\" + vd[vvs].OLD_PRODUCT_LOGO, 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)) { // tm_img.Height = new Unit(120, UnitType.Pixel); tm_img.Width = new Unit(220, UnitType.Pixel); tm_img.Height = new Unit(50, UnitType.Pixel); tm_img.Width = new Unit(150, UnitType.Pixel); //if (Convert.ToInt32(ht) > Convert.ToInt32(wt)) //{ // // tm_img.Height = new Unit(320, UnitType.Pixel); // // tm_img.Width = new Unit(240, UnitType.Pixel); // // tm_img.Height = new Unit(180, UnitType.Pixel); // // tm_img.Width = new Unit(120, UnitType.Pixel); // tm_img.Height = new Unit(70, UnitType.Pixel); // tm_img.Width = new Unit(170, UnitType.Pixel); //} //else //{ // // tm_img.Height = new Unit(240, UnitType.Pixel); // // tm_img.Width = new Unit(320, UnitType.Pixel); // tm_img.Height = new Unit(70, UnitType.Pixel); // tm_img.Width = new Unit(190, 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 { tt2.Visible = true; tm_img.Visible = false; } if (vd[vvs].NEW_PRODUCT_LOGO != "") { serverpath = base.Server.MapPath("~/"); tm_img2.Visible = true; tm_img2.ImageUrl = "~/admin/tm/" + vd[vvs].NEW_PRODUCT_LOGO; if (File.Exists(serverpath + "\\admin\\tm\\" + vd[vvs].NEW_PRODUCT_LOGO)) { tm_img2.Height = new Unit(120, UnitType.Pixel); tm_img2.Width = new Unit(120, UnitType.Pixel); try { FileStream st = new FileStream(serverpath + "\\admin\\tm\\" + vd[vvs].NEW_PRODUCT_LOGO, 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)) { // tm_img2.Height = new Unit(120, UnitType.Pixel); tm_img2.Width = new Unit(220, UnitType.Pixel); tm_img2.Height = new Unit(50, UnitType.Pixel); tm_img2.Width = new Unit(150, UnitType.Pixel); //if (Convert.ToInt32(ht) > Convert.ToInt32(wt)) //{ // // tm_img.Height = new Unit(320, UnitType.Pixel); // // tm_img.Width = new Unit(240, UnitType.Pixel); // // tm_img.Height = new Unit(180, UnitType.Pixel); // // tm_img.Width = new Unit(120, UnitType.Pixel); // //tm_img2.Height = new Unit(70, UnitType.Pixel); // //tm_img2.Width = new Unit(170, UnitType.Pixel); //} //else //{ // // tm_img.Height = new Unit(240, UnitType.Pixel); // // tm_img.Width = new Unit(320, UnitType.Pixel); // //tm_img2.Height = new Unit(70, UnitType.Pixel); // //tm_img2.Width = new Unit(190, UnitType.Pixel); //} } else { // tm_img.Height = new Unit(120, UnitType.Pixel); // tm_img.Width = new Unit(120, UnitType.Pixel); tm_img2.Visible = false; } } catch (Exception ex) { tm_img2.Visible = false; } } // tm_img2.ImageUrl = ""; } else { tt3.Visible = true; tm_img2.Visible = false; } //if (vd[vvs].LOGO_DESC == "1" || vd[vvs].LOGO_DESC == "3") //{ // tt2.Visible = true; // tm_img.ImageUrl = "../tm/" + vd[vvs].OLD_PRODUCT_LOGO; // tm_img2.ImageUrl = "../tm/" + vd[vvs].NEW_PRODUCT_LOGO; //} //else //{ // tt2.Visible = false; // tm_img.ImageUrl = ""; // tm_img2.ImageUrl = ""; //} //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, UnitType.Pixel); // tm_img.Width = new Unit(120, UnitType.Pixel); // try // { // FileStream st = new FileStream(serverpath + "\\admin\\tm\\gf\\" + g_tm_info.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; // } //} //foreach (Classes.XObjs.Fee_list item in fee_list) //{ // if (item.item_code == g_pwallet.log_officer) // { // lbl_type.Text = item.item.ToUpper(); // } //} //ShowSection(g_pwallet.log_officer); } } }
protected void Verify_Click(object sender, EventArgs e) { if ((txt_response_date.Text != "") && (comment.Text != "")) { Verify.Visible = true; Confirm.Visible = false; } else { Verify.Visible = false; Confirm.Visible = true; } zues.Contact_form cf = new zues.Contact_form(); Email email = new Email(); cf.pwalletID = pID; cf.response_deadline = txt_response_date.Text; cf.xofficerID = admin; cf.xmsg = comment.Text; cf.sent_status = "0"; cf.reg_date = DateTime.Now.ToString("yyyy-MM-dd"); cf.xvisible = "1"; succ = z.a_contact_form(cf); if (succ != "0") { x_admin = z.getAdminDetails(admin); string subject = "Message from " + z.getRoleNameByID(x_admin.xroleID) + " concerning application: " + t.ValidationIDByPwalletID(lt_mi[0].log_staff); string from = ody.DecryptString(x_admin.xemail, file_len, file_string); html_msg = html_msg + "<html><head id='Head1' runat='server'><title></title>"; html_msg = html_msg + "<style type='text/css'>"; html_msg = html_msg + ".tbbg{padding:0;margin:0 auto;width:100%;height:20px;background-color:#006699;text-align:center;color:#fff;font-weight:bold;border-color:#006699;}"; html_msg = html_msg + "</style></head><body><form id='form1' runat='server'><div>"; html_msg = html_msg + "<table align='center' width='800px' >"; if (lt_mi.Count > 0) { html_msg = html_msg + "<tr><td width='100%' colspan='2' style='background-color:#999999;' align='center'>---<b>CONTACT APPLICANT FORM</b> ---</td></tr>"; html_msg = html_msg + "<tr> <td width='50%' align='right'> FILING/APPLICATION DATE : </td>"; html_msg = html_msg + "<td>" + lt_mi[0].reg_date + " </td></tr>"; html_msg = html_msg + "<tr><td align='right'>REGISTRATION NUMBER :</td>"; html_msg = html_msg + "<td>" + lt_mi[0].reg_number + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'> ONLINE APPLICATION ID : </td>"; html_msg = html_msg + "<td>OAI/PT/" + t.ValidationIDByPwalletID(lt_mi[0].log_staff) + "</td></tr>"; html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>---PATENT INFORMATION --- </td></tr>"; html_msg = html_msg + "<tr><td align='right'> PATENT TYPE :</td>"; html_msg = html_msg + "<td>" + lt_mi[0].xtype + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'> TITLE OF INVENTION :</td>"; html_msg = html_msg + "<td>" + lt_mi[0].title_of_invention + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>TRANSACTION ID :</td><td>" + lt_stage[0].validationID + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>TRANSACTION AMOUNT :</td><td>" + lt_stage[0].amt + " NGN</td></tr>"; } if (lt_app.Count > 0) { html_msg = html_msg + "<tr><td class='tbbg' colspan='2'>--- APPLICANT INFORMATION ---</td></tr>"; for (int i = 0; i < lt_app.Count; i++) { html_msg = string.Concat(new object[] { html_msg, "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>APPLICANT ", i, 1, "</strong></td></tr>" }); html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_app[i].xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_app[i].address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>PHONE NUMBER :</td><td>" + lt_app[i].xmobile + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>E-MAILS :</td><td>" + lt_app[i].xemail + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_app[i].nationality) + "</td></tr>"; } } if (lt_inv.Count > 0) { html_msg = html_msg + "<tr><td class='tbbg' colspan='2'>--- TRUE INVENTOR INFORMATION ---</td></tr>"; for (int j = 0; j < lt_inv.Count; j++) { html_msg = string.Concat(new object[] { html_msg, "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>INVENTOR ", j, 1, "</strong></td></tr>" }); html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_inv[j].xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_inv[j].address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>PHONE NUMBER :</td><td>" + lt_inv[j].xmobile + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>E-MAILS :</td><td>" + lt_inv[j].xemail + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_inv[j].nationality) + "</td></tr>"; } } if (lt_assinfo.Count > 0) { html_msg = html_msg + "<tr><td class='tbbg' colspan='2'>--- ASSIGNMENT INFORMATION ---</td></tr>"; html_msg = html_msg + "<tr><td align='right'>DATE OF ASSIGNMENT :</td><td>" + lt_assinfo[0].date_of_assignment + "</td></tr>"; html_msg = html_msg + "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>ASSIGNEE >></strong></td></tr>"; html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_assinfo[0].assignee_name + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_assinfo[0].assignee_address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_assinfo[0].assignee_nationality) + "</td></tr>"; html_msg = html_msg + "<tr><td align='left' colspan='2' style='background-color:#999999;'><strong>ASSIGNOR >></strong></td></tr>"; html_msg = html_msg + "<tr><td align='right'>NAME :</td><td>" + lt_assinfo[0].assignor_name + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ADDRESS :</td><td>" + lt_assinfo[0].assignor_address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_assinfo[0].assignor_nationality) + "</td></tr>"; } if (lt_xpri.Count > 0) { html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>--- PRIORITY INFORMATION ---</td></tr>"; html_msg = html_msg + "<tr><td colspan='2' style='border:0px outset silver; padding: 0px;'><table width='100%'>"; html_msg = html_msg + "<tr style='background-color:#999999;'><td style='width:10%;'><strong>S/N</strong></td><td style='width:30%;'><strong>COUNTRY</strong></td>"; html_msg = html_msg + "<td style='width:30%;'><strong>APPLICATION NUMBER</strong></td><td style='width:30%;'><strong>DATE</strong></td></tr>"; for (int k = 0; k < lt_xpri.Count; k++) { html_msg = string.Concat(new object[] { html_msg, "<tr ><td>", k, 1, "</td><td>", t.getCountryName(lt_xpri[k].countryID), "</td>" }); html_msg = html_msg + "<td>" + lt_xpri[k].app_no + "</td><td>" + lt_xpri[k].xdate + "</td></tr>"; } html_msg = html_msg + "</table></td></tr>"; } if (lt_rep.Count > 0) { html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>--- ADDRESS OF SERVICE IN NIGERIA ---</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ATTORNEY CODE :</td>"; html_msg = html_msg + "<td>" + lt_rep[0].agent_code + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>ATTORNEY NAME :</td><td>" + lt_rep[0].xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>NATIONALITY :</td><td>" + t.getCountryName(lt_rep[0].nationality) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>COUNTRY :</td><td>" + t.getCountryName(lt_rep[0].country) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>STATE :</td><td>" + t.getStateName(lt_rep[0].state) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'> ADDRESS :</td>"; html_msg = html_msg + "<td>" + lt_rep[0].address + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>PHONE NUMBER : </td><td>" + lt_rep[0].xmobile + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>E-MAIL : </td><td>" + lt_rep[0].xemail + "</td></tr>"; html_msg = html_msg + "<tr><td colspan='2' class='tbbg'>--- DOCUMENTS ATTACHED ---</td></tr>"; html_msg = html_msg + "<tr><td align='right'>LETTER OF AUTHORIZATION OF AGENT(FORM 2) :</td><td >"; if (lt_mi[0].loa_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr><tr><td align='right'>CLAIM(S) :</td><td >"; if (lt_mi[0].claim_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr><tr><td align='right'>PCT DOCUMENT:</td><td >"; if (lt_mi[0].pct_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr><tr><td align='right'>DEED OF ASSIGNMENT:</td><td >"; if (lt_mi[0].doa_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>COMPLETE SPECIFICATION (FORM 3):</td><td >"; if (lt_mi[0].spec_doc != "") { html_msg = html_msg + "ATTACHED"; } else { html_msg = html_msg + "NONE"; } html_msg = html_msg + "</td></tr>"; } html_msg = html_msg + "<tr><td class='tbbg' colspan='2' align='center'> --- MESSAGE FROM COMMERCIAL LAW DEPARTMENT --- </td></tr>"; html_msg = html_msg + "<tr><td align='center' colspan='2'>" + comment.Text + "</td></tr>"; html_msg = html_msg + "<tr><td class='tbbg' colspan='2' align='center'> </td></tr>"; html_msg = html_msg + "<tr><td align='right'>REQUESTING UNIT: </td><td >" + z.getRoleNameByID(x_admin.xroleID) + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>REQUESTING OFFICER: </td><td >" + x_admin.xname + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>DEADLINE FOR RESPONSE:</td><td >" + txt_response_date.Text + "</td></tr>"; html_msg = html_msg + "<tr><td align='right'>CONTACT PHONE NUMBER: </td><td >" + x_admin.xtelephone1 + "</td></tr><tr><td class='tbbg' colspan='2'> </td></tr>"; html_msg = html_msg + "</table></div></form></body></html>"; if (email.sendMail(z.getRoleNameByID(x_admin.xroleID).ToUpper(), lt_rep[0].xemail, from, subject, html_msg, "") == "sent") { if (z.e_Contact_formStatus(succ, "1") > 0) { Response.Write("<script language=JavaScript>alert('Message sent successfully')</script>"); Response.Redirect("./pt_profile.aspx"); } else { Response.Write("<script language=JavaScript>alert('The form could not be updated, Please check your internet connection or try again later')</script>"); } } else { Response.Write("<script language=JavaScript>alert('The E-mail could not be sent, Please check your internet connection or try again later')</script>"); } } else { Response.Write("<script language=JavaScript>alert('The form could not be saved, Please check your internet connection or try again later')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { if ((((Session["transID"] != null) && (Session["transID"].ToString() != "")) && (Session["x_code"] != null)) && (Session["x_code"].ToString() != "")) { c_p = t.getXPwalletDetailsByCode(Session["transID"].ToString(), Session["x_code"].ToString()); string admin = Session["pwalletID"].ToString(); ad = z.getAdminDetails(admin); // vame2.Text = z.getRoleName(ad.xroleID).ToUpper(); try { // vame2.Text = z.getRoleName(ad.xroleID).ToUpper(); vame2.Text = ad.Designation.ToUpper(); } catch (Exception ee) { } try { // vame.Text = ad.Designation.ToUpper(); vame.Text = ad.xname.ToUpper(); } catch (Exception ee) { } if (string.IsNullOrEmpty(ad.FilePath)) { img.Visible = false; } else { img.Visible = true; img.ImageUrl = ".." + ad.FilePath; } if (c_p.ID != null) { c_ren = t.getRenewalByLogstaffID(c_p.ID); if (c_ren.xID != null) { transID.Text = c_p.validationID; payment_date.Text = c_p.reg_date; p_title.Text = c_ren.title; p_app_no.Text = c_ren.app_no; p_type.Text = c_ren.type; p_app_date.Text = c_ren.app_date; p_xname.Text = c_ren.xname; p_xaddy.Text = c_ren.xaddy; p_xmobile.Text = c_ren.xmobile; p_xemail.Text = c_ren.xemail; p_agt_code.Text = c_ren.agt_code; p_agt_name.Text = c_ren.agt_name; p_agt_addy.Text = c_ren.agt_addy; p_agt_mobile.Text = c_ren.agt_mobile; p_agt_email.Text = c_ren.agt_email; p_due_date.Text = Convert.ToDateTime(c_ren.last_rwl_date).AddYears(1).ToString("yyyy-MM-dd"); p_next_due_date.Text = Convert.ToDateTime(c_ren.last_rwl_date).AddYears(2).ToString("yyyy-MM-dd"); } } else { msg = "NO ENTRY EXISTS WITH THE DETAILS ABOVE,PLEASE CHECK THE DETAILS AND TRY AGAIN!!"; } } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
public void vupdate() { if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != "")) { admin = Convert.ToString(Session["pwalletID"]); } if ((this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "") ) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; vid2 = Request.QueryString["Recordalid"]; spwallet = ret.getCheckStatusDetails(vid); this.c_mark = this.t.getMarkInfoClassByUserID(spwallet); this.c_rep = this.t.getRepClassByUserID(spwallet); this.c_stage = this.t.getStageClassByUserID(spwallet); this.c_app = this.t.getApplicantClassByID(spwallet); 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); } serverpath = base.Server.MapPath("~/"); 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)) { tm_img.Height = new Unit(120, UnitType.Pixel); tm_img.Width = new Unit(220, UnitType.Pixel); //if (Convert.ToInt32(ht) > Convert.ToInt32(wt)) //{ // tm_img.Height = new Unit(300, UnitType.Pixel); tm_img.Width = new Unit(240, UnitType.Pixel); //} //else //{ // tm_img.Height = new Unit(120, UnitType.Pixel); tm_img.Width = new Unit(220, UnitType.Pixel); //} } else { tm_img.Visible = false;// tm_img.Height = new Unit(120, UnitType.Pixel); tm_img.Width = new Unit(120, UnitType.Pixel); } } catch (Exception ex) { tm_img.Visible = false; } } else { tm_img.Visible = false;// tm_img.Height = new Unit(120, UnitType.Pixel); tm_img.Width = new Unit(120, UnitType.Pixel); } } if ((vid != null)) { //Label1.Text = c_mark.reg_number; //Label2.Text = c_stage.rtm; //Label3.Text = c_mark.nice_class; //Label4.Text = c_mark.product_title; //Label10.Text = c_rep_addy.street; //Label11.Text = c_rep_addy.email1; //this.lt_tm_office = this.z.getG_TmOfficeDetailsByID(g_pwallet.xid); zues zz2 = new zues(); Int32 vint2 = zz2.getMaxId(spwallet); vint2 = Convert.ToInt32(vid2); vd = ret.getG_PwalletByID3(vint2); String vdate = vd[0].RECORDAL_APPROVE_DATE.ToString("yyyy-MM-dd"); string sid = z.getLastTmOfficeByID2(c_mark.log_staff, vdate).xofficer; try { vofficer = z.getAdminDetails(sid).xname.ToUpper(); } catch (Exception ee) { var kk = ee.Message; } //if (vd[0].OFFICER != "" || vd[0].OFFICER != null) { // vofficer = z.getAdminDetails(vd[0].OFFICER).xname.ToUpper(); //} //int vvs = vd.Count() - 1; // xxk = z.getAdminDetails(vd[vvs].OFFICER); xp = ret.get_RecordalDetail(vd[0].Detail_Id); //Label8.Text =xp[0].newApplicantName; //Label9.Text = xp[0].newApplicantAddress; //Label5.Text = vd[vvs].RECORDAL_REQUEST_DATE.ToString("d"); ; //Label6.Text = vd[vvs].OLD_APPLICANTADDRESS; //Label7.Text = vd[vvs].NEW_APPLICANTADDRESS; //Label12.Text = vd[vvs].RECORDAL_APPROVE_DATE.ToString("d"); ; //Label13.Text = xxk.xname; } } }
public void gen_nameAgent2(Recordal vd) { this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> RECORDAL TYPE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong> Change of Agent </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> APPLICATION STATUS </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.data_status + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> OLD AGENT NAME </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.OLD_AGENTNAME + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> OLD AGENT CODE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.OLD_AGENTCODE + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> OLD AGENT EMAIL </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.OLD_AGENTEMAIL + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> OLD AGENT PHONE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.OLD_AGENTPHONE + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> OLD AGENT ADDRESS </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.OLDAGENT_ADDRESS + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td style=\"text-align:center; \" colspan=\"2\"> </td> "; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> NEW AGENT NAME </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.NEW_AGENTNAME + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> NEW AGENT CODE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.NEW_AGENTCODE + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> NEW AGENT EMAIL </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.NEW_AGENTEMAIL + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> NEW AGENT PHONE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.NEW_AGENTPHONE + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> NEW AGENT ADDRESS </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.NEWAGENT_ADDRESS + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> REQUEST DATE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.RECORDAL_REQUEST_DATE + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> APPROVAL DATE </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.RECORDAL_APPROVE_DATE + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> COMMENT </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.Xcomment + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> OFFICER </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + z.getAdminDetails(vd.OFFICER).xname + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> AMOUNT </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + String.Format("{0:N}", vd.AMOUNT) + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> TRANSACTION ID </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong>" + vd.TRANSACTIONID + " </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; this.xhistory = this.xhistory + "<tr>"; this.xhistory = this.xhistory + "<td align=\"right\" >"; this.xhistory = this.xhistory + "<strong> </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "<td align=\"left\" >"; this.xhistory = this.xhistory + "<strong> <br/> <br/> </strong>"; this.xhistory = this.xhistory + "</td>"; this.xhistory = this.xhistory + "</tr>"; // return this.xrecordal; }
public void vupdate() { if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != "")) { admin = Convert.ToString(Session["pwalletID"]); } if ((this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "") ) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; vid2 = Request.QueryString["Recordalid"]; spwallet = ret.getCheckStatusDetails(vid); this.c_mark = this.t.getMarkInfoClassByUserID(spwallet); this.c_rep = this.t.getRepClassByUserID(spwallet); this.c_stage = this.t.getStageClassByUserID(spwallet); this.c_app = this.t.getApplicantClassByID(spwallet); 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 ((vid != null)) { Label1.Text = c_mark.reg_number; Label2.Text = c_stage.rtm; Label3.Text = c_mark.nice_class; Label4.Text = c_mark.product_title; //g_applicant_info = ret.getG_Applicant_infoByPwalletID(g_pwallet.xid); //g_agent_info = ret.getGenAgentByPwalletID(g_pwallet.xid); Label8.Text = c_rep.agent_code; Label9.Text = c_rep.xname; Label10.Text = c_rep_addy.street; Label11.Text = c_rep_addy.email1; this.lt_tm_office = this.z.getG_TmOfficeDetailsByID(g_pwallet.xid); zues zz2 = new zues(); Int32 vint2 = zz2.getMaxId(spwallet); vint2 = Convert.ToInt32(vid2);; // int num = 0; List <Recordal> vd = ret.getG_PwalletByID3(vint2); int vvs = vd.Count() - 1; zues.Adminz xxk = z.getAdminDetails(vd[vvs].OFFICER); Label5.Text = vd[vvs].RECORDAL_REQUEST_DATE.ToString("d");; Label6.Text = vd[vvs].OLD_APPLICANTADDRESS; Label7.Text = vd[vvs].NEW_APPLICANTADDRESS; Label12.Text = vd[vvs].RECORDAL_APPROVE_DATE.ToString("d");; Label13.Text = xxk.xname; //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, UnitType.Pixel); // tm_img.Width = new Unit(120, UnitType.Pixel); // try // { // FileStream st = new FileStream(serverpath + "\\admin\\tm\\gf\\" + g_tm_info.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; // } //} //foreach (Classes.XObjs.Fee_list item in fee_list) //{ // if (item.item_code == g_pwallet.log_officer) // { // lbl_type.Text = item.item.ToUpper(); // } //} //ShowSection(g_pwallet.log_officer); } } }