public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); string[] words = pp.Split('-'); //if (pp.Contains("-")) //{ // context.Response.Write(ser.Serialize("Full Transaction Id Search Not Allowed ")); // return; //} zues z2 = new zues(); Applicant kk = z2.getApplicant3ByID(words[0], words[2]); // Applicant kk = z2.getApplicant3bByID(pp); var vresult = ""; if (kk != null) { vresult = kk.Applicant_Name; } context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { // Encrypt3 pp = new Encrypt3(); try { zues kt = new zues(); kt.CldMigrate(base.Server.MapPath("~/")); // var kk = Encrypt3.EncryptString("patATTAH3#", "patATTAH3#"); // var kk2 = Encrypt3.DecryptString(kk, "patATTAH3#"); // var pp = kk2; } catch (Exception ee) { var kd = ee.Message; } // string script = "document.getElementById('bgMark').style.background = \"url(\" + document.getElementById('" // + imgWaterMark.ClientID + "').src + \") 0 20 repeat \";"; // if (ScriptManager.GetCurrent(this.Page) == null) // Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "block", script, true); //else // ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "block", script, true); //The watermark picture // string ID = "test"; // imgWaterMark.Src = ResolveUrl("~") + string.Format("Handlers/WaterMarks.ashx?id={0}", ID); } }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; List <XObjs.Office_view> lt_m = new List <XObjs.Office_view>(); // SearchDb dd = ser.Deserialize<SearchDb>(pp); zues z = new zues(); // var pp2 = context.Request["vv2"]; List <string> fulltext = new List <string>(); // string str = dd.Productitle.Replace("'", ""); string str = pp.Replace("'", ""); foreach (string str2 in str.Split(new char[] { ' ' })) { if (str2 != "") { fulltext.Add(str2); } } lt_m = z.getNewAdminSearchMarkInfoRS222("2", "Valid", "product_title", fulltext, "", ""); ser.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(lt_m)); }
public void ProcessRequest(HttpContext context) { zues z = new zues(); JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = (context.Request["vid"]); // List<String>dd = ser.Deserialize<List<String>>(pp); AppTransaction[] dd = ser.Deserialize <AppTransaction[]>(pp); int vlength = dd.Length; zues bb = new zues(); for (int i = 0; i < dd.Length; i++) { if (dd[i].Status == "Registrable") { // bb.g_pwalletStatus2(dd[i].online_id, "33", "Search 2 Conducted"); // bb.g_pwalletStatus2(dd[i].online_id, "4", "Registrable"); z.a_mul_tm_office(dd[i].online_id, "4", "Registrable", dd[i].xcomment, "", "", "", dd[i].userid); } if (dd[i].Status == "Non-registrable") { // bb.g_pwalletStatus2(dd[i].online_id, "2", "Valid"); // bb.g_pwalletStatus2(dd[i].online_id, "4", "Non-registrable"); z.a_mul_tm_office(dd[i].online_id, "4", "Non-registrable", dd[i].xcomment, "", "", "", dd[i].userid); } if (dd[i].Status == "Re-conduct search") { //bb.g_pwalletStatus2(dd[i].online_id, "11", "Accepted"); //bb.update_RecordalStatus3(dd[i].Recordid, "11", "Accepted"); // bb.g_pwalletStatus2(dd[i].online_id, "22", "Re-conduct search 1"); z.a_mul_tm_office(dd[i].online_id, "2", "Re-conduct search", dd[i].xcomment, "", "", "", dd[i].userid); } if (dd[i].Status == "Re-examine") { //bb.g_pwalletStatus2(dd[i].online_id, "11", "Accepted"); //bb.update_RecordalStatus3(dd[i].Recordid, "11", "Accepted"); // bb.g_pwalletStatus2(dd[i].online_id, "22", "Re-conduct search 1"); z.a_mul_tm_office(dd[i].online_id, "3", "Re-examine", dd[i].xcomment, "", "", "", dd[i].userid); } // String ds2 = dd[i].online_id; } //string online = dd[0].online_id; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(dd)); }
public void ProcessRequest(HttpContext context) { System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer(); zues z2 = new zues(); System.Collections.Generic.List <XObjs.Office_view> kk = z2.getNew_MarkInfoRSX333("12", "PrintedCertificate", 1, 1); ser.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
public void ProcessRequest(HttpContext context) { System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer(); zues z2 = new zues(); var ppp = (context.Request["vid3"]); GetNewData dd3 = ser.Deserialize <GetNewData>(ppp); // var pp3 = (context.Request["vid2"]).ToString(); int pp2 = Convert.ToInt32(dd3.pageno); // string pp3 = words[1]; string pp3 = dd3.criteria; string pp4 = dd3.valueentered; string pp5 = dd3.valueentered2; string pp6 = dd3.valueentered3; // string pp3 = ""; // System.Collections.Generic.List<XObjs.Office_view> kk = z2.getNew_MarkInfoRSX222b("8", "Certified", 1, 1); GetReport dd = new GetReport(); if (dd3.datastatus == "Accepted") { dd = z2.getNew_MarkInfoRSX222bbx5(dd3.status, dd3.datastatus, pp2, 100, pp3, pp4, pp5, pp6); } else { dd = z2.getNew_MarkInfoRSX222bbx4(dd3.status, dd3.datastatus, pp2, 100, pp3, pp4); } // dd = z2.getNew_MarkInfoRSX222bbx4("8", "Certified", pp2, 100, pp3, pp4); // System.Collections.Generic.List<XObjs.Office_view> kk = z2.getNew_MarkInfoRSX9("8", "Certified", 1, 1); ser.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; // int lt_mi_n = z2.getCriRegisteredMarkInfoRSCnt("8", "Certified"); //dd.data = kk; //dd.count = lt_mi_n; // context.Response.Write(ser.Serialize(kk)); context.Response.Write(ser.Serialize(dd)); }
public void ProcessRequest(HttpContext context) { System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer(); zues z2 = new zues(); // System.Collections.Generic.List<XObjs.G_App_info> kk = z2.getGAppInfoRSX12("1", "Fresh", "1", "1"); System.Collections.Generic.List <XObjs.G_App_info> kk = z2.getGAppInfoRSX12("2", "New", "1", "1"); ser.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
public void ProcessRequest(HttpContext context) { System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer(); zues z2 = new zues(); // var pp =Convert.ToInt32( context.Request["page"]); // var pp2 = Convert.ToInt32(context.Request["itemsPerPage"]); System.Collections.Generic.List <XObjs.Office_view> kk = z2.getNew_MarkInfoRSX222("5", "Accepted", 1, 1); ser.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = (context.Request["vid"]); // List<String>dd = ser.Deserialize<List<String>>(pp); AppTransaction[] dd = ser.Deserialize <AppTransaction[]>(pp); int vlength = dd.Length; zues bb = new zues(); for (int i = 0; i < dd.Length; i++) { if (dd[i].Status == "Examiner") { bb.g_pwalletStatus2(dd[i].online_id, "33", "Search 2 Conducted"); } if (dd[i].Status == "Search") { bb.g_pwalletStatus2(dd[i].online_id, "2", "Valid"); } if (dd[i].Status == "Published") { bb.g_pwalletStatus2(dd[i].online_id, "7", "Not Opposed"); } if (dd[i].Status == "Acceptance") { bb.g_pwalletStatus2(dd[i].online_id, "11", "Accepted"); bb.update_RecordalStatus3(dd[i].Recordid, "11", "Accepted"); } if (dd[i].Status == "Certificate") { bb.g_pwalletStatus2(dd[i].online_id, "13", "Certified"); bb.update_RecordalStatus3(dd[i].Recordid, "13", "Certified"); } // String ds2 = dd[i].online_id; } //string online = dd[0].online_id; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(dd)); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = (context.Request["vid"]); // List<String>dd = ser.Deserialize<List<String>>(pp); AppTransaction[] dd = ser.Deserialize <AppTransaction[]>(pp); int vlength = dd.Length; zues bb = new zues(); for (int i = 0; i < dd.Length; i++) { if (dd[i].Status == "Search") { bb.g_pwalletStatus3(dd[i].online_id, "2", "New"); } if (dd[i].Status == "Acceptance") { bb.g_pwalletStatus3(dd[i].online_id, "5", "New"); } if (dd[i].Status == "Certificate") { bb.g_pwalletStatus3(dd[i].online_id, "4", "New"); } if (dd[i].Status == "Opposition") { bb.g_pwalletStatus3(dd[i].online_id, "3", "New"); } if (dd[i].Status == "PrintedCertificate") { // bb.g_pwalletStatus(dd[i].online_id, "12", "PrintedCertificate"); bb.a_tm_office(dd[i].online_id, "12", "PrintedCertificate", "", "", "", "", dd[i].adminid); } // String ds2 = dd[i].online_id; } //string online = dd[0].online_id; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(dd)); }
public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); zues z2 = new zues(); Applicant kk = z2.getApplicant6ByID(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); zues z2 = new zues(); System.Collections.Generic.List <XObjs.Office_view> kk = z2.getNew_MarkInfoRSX19(pp); // Applicant kk = z2.getApplicant6ByID(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
protected void Verify_Click2(object sender, EventArgs e) { Retriever ret = new Retriever(); zues zz = new zues(); Int32 vint = zz.getMaxId(spwallet); int num = 0; vint = Convert.ToInt32(vid2); List <Recordal> xk = ret.getG_PwalletByID3(vint); if (xk[0].RECORDAL_TYPE == "Change_Agent") { Response.Redirect("Change_Agent_Certificate.aspx?0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD=" + c_stage.validationID + "&Recordalid=" + vid2); } }
public void ProcessRequest(HttpContext context) { String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); zues pp3 = new zues(); List <AuditReport> ss = pp3.getLogReport(); // XObjs.Registration kk = pp2.getRegistrationBySubagentRegistrationID(pp); ser.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(ss)); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; // string[] words = pp.Split('-'); zues rr = new zues(); List <XObjs.G_App_info> xxj = rr.getGAppInfoRSX13(pp); // Agent_Info vip = ff.getAgentInfo(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(xxj)); }
public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); zues pp2 = new zues(); List <XObjs.Office_view> kk = pp2.getNew_MarkInfoRSXX3("8", "Certified", pp, 1, 1); // XObjs.Registration kk = pp2.getRegistrationBySubagentRegistrationID(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }
public void ProcessRequest(HttpContext context) { zues ret = new zues(); // var pp = (context.Request["vid"]); // var pp2 = (context.Request["vid2"]); var pp = context.Request["vv"]; JavaScriptSerializer ser = new JavaScriptSerializer(); SelectDate dd = ser.Deserialize <SelectDate>(pp); ser.MaxJsonLength = Int32.MaxValue; List <ApplicationOfficer2> lt_gen_isw = ret.ApplicationOff(dd.startdate, dd.enddate); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(lt_gen_isw)); }
protected void btnSearch_Click2(object sender, EventArgs e) { string ss = ""; string ss2 = ""; string succ = ""; foreach (GridViewRow row in gvX.Rows) { CheckBox chkBox = row.FindControl("cbSelect") as CheckBox; if (chkBox.Checked) { Label Id = row.FindControl("lblLogStaff") as Label; ss = Id.Text; Label Id2 = row.FindControl("applicantID") as Label; ss2 = Id2.Text; zues z = new zues(); succ = this.z.a_tm_office(ss, "7", "Not Opposed", "", "", "", "", this.admin); Retriever vv = new Retriever(); XObjs.Registration ts = vv.getRegistrationByID2(ss2); SendMail(ts); } } Response.Redirect("opposition.aspx"); // Response.Write("<script>window.opener.location.href = window.opener.location.href </script>"); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser2 = new JavaScriptSerializer(); var pp = context.Request["vid"]; zues z = new zues(); Publication2 dd = ser2.Deserialize <Publication2>(pp); List <zues.MarkInfo> lt_mi = new List <zues.MarkInfo>(); int kk = Convert.ToInt32(dd.batchno); kk = kk + 1; dd.batchno = Convert.ToString(kk); lt_mi = z.getBatchPublishMarkInfoRSAA("5", "Published", dd.batchno); string ss = "test"; ser2.MaxJsonLength = Int32.MaxValue; context.Response.ContentType = "application/json"; context.Response.Write(ser2.Serialize(lt_mi)); }
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); } } }
public void vupdate() { if ((this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != null) && (this.Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"] != "") ) { vid = Request.QueryString["0001234445XXX43943OPFDSMZXUHSJFDSKFGKSDKGFSDKFSKFDKFD"]; // g_pwallet = ret.getG_PwalletByValidationID(vid); String 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)) { //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); //this.lt_tm_office = this.z.getG_TmOfficeDetailsByID(g_pwallet.xid); // List<Recordal> vd = ret.getG_PwalletByID2(g_pwallet.xid); zues zz2 = new zues(); Int32 vint = zz2.getMaxId(spwallet); int num = 0; vd = ret.getG_PwalletByID3(vint); foreach (var ddp in vd) { if (ddp.TRANSACTIONID.Contains("-")) { string[] words = ddp.TRANSACTIONID.Split('-'); vp = ret.getAgent(words[0]); } else { vp = ret.getAgent(ddp.TRANSACTIONID); } if (ddp.RECORDAL_TYPE == "Change_Name") { Px = ddp; Px.RECORDAL_TYPE = "FORM 22"; xusr = "******"; xusr2 = "NEW APPLICANT NAME"; xusr3 = ddp.OLD_APPLICANTNAME; xusr4 = ddp.NEW_APPLICANTNAME; gen_nameHis(ddp); } else if (ddp.RECORDAL_TYPE == "Change_Address") { //Px = ddp; //Px.RECORDAL_TYPE = "FORM 22"; //xusr = "******"; //xusr2 = "NEW PRODUCT TITLE"; //xusr3 = ddp.OLD_PRODUCT_TITLE; //xusr4 = ddp.; //gen_nameAddress(ddp); } else if (ddp.RECORDAL_TYPE == "Change_Rectification") { Px = ddp; Px.RECORDAL_TYPE = "FORM 26"; xusr = "******"; xusr2 = "NEW PRODUCT TITLE"; xusr3 = ddp.OLD_PRODUCT_TITLE; xusr4 = ddp.NEW_PRODUCT_TITLE; //if (ddp.LOGO_DESC == "1" || ddp.LOGO_DESC == "3") //{ // dd2.Visible = true; //} // gen_nameAddress(ddp); } else if (ddp.RECORDAL_TYPE == "Change_Assignment") { Px = ddp; List <Recordal_Detail> xp = new List <Recordal_Detail>(); xp = ret.get_RecordalDetail(ddp.Detail_Id); Px.RECORDAL_TYPE = "FORM 16"; xusr = "******"; xusr2 = "NEW APPLICANT NAME"; xusr3 = xp[0].oldApplicantName; xusr4 = xp[0].newApplicantName; xusr5 = "OLD APPLICANT ADDRESS"; xusr6 = "NEW APPLICANT ADDRESS"; xusr7 = xp[0].oldApplicantAddress; xusr8 = xp[0].newApplicantAddress; xusr9 = "OLD APPLICANT NATIONALITY"; xusr10 = "NEW APPLICANT NATIONALITY"; xusr11 = ret.getCountryName(xp[0].OldApplicantNationality); xusr12 = ret.getCountryName(xp[0].newApplicantNationality); //if (ddp.LOGO_DESC == "1" || ddp.LOGO_DESC == "3") //{ // dd2.Visible = true; //} // gen_nameAddress(ddp); } else if (ddp.RECORDAL_TYPE == "Change_Assignment2") { Px = ddp; List <Recordal_Detail> xp = new List <Recordal_Detail>(); xp = ret.get_RecordalDetail(ddp.Detail_Id); Px.RECORDAL_TYPE = "FORM 17"; xusr = "******"; xusr2 = "NEW APPLICANT NAME"; xusr3 = xp[0].oldApplicantName; xusr4 = xp[0].newApplicantName; xusr5 = "OLD APPLICANT ADDRESS"; xusr6 = "NEW APPLICANT ADDRESS"; xusr7 = xp[0].oldApplicantAddress; xusr8 = xp[0].newApplicantAddress; xusr9 = "OLD APPLICANT NATIONALITY"; xusr10 = "NEW APPLICANT NATIONALITY"; xusr11 = ret.getCountryName(xp[0].OldApplicantNationality); xusr12 = ret.getCountryName(xp[0].newApplicantNationality); //if (ddp.LOGO_DESC == "1" || ddp.LOGO_DESC == "3") //{ // dd2.Visible = true; //} // gen_nameAddress(ddp); } else if (ddp.RECORDAL_TYPE == "Change_Renewal") { Px = ddp; List <Recordal_Detail2> xp = new List <Recordal_Detail2>(); xp = ret.get_RecordalDetail2(ddp.Detail_Id); Px.RECORDAL_TYPE = "FORM 12"; xusr = "******"; xusr2 = "RENEWAL TYPE"; xusr3 = xp[0].Renewal_DueDate; xusr4 = xp[0].Renewal_Type; //if (ddp.LOGO_DESC == "1" || ddp.LOGO_DESC == "3") //{ // dd2.Visible = true; //} // gen_nameAddress(ddp); } } //for (int i = 0; i < this.lt_tm_office.Count; i++) //{ // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td align=\"center\" colspan=\"2\">"; // this.xcomments = this.xcomments + "<strong>" + this.lt_tm_office[i].xcomment.ToUpper() + "</strong><br />"; // this.lt_x_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[i].xofficer); // string xcomments = this.xcomments; // this.xcomments = xcomments + "COMMENT BY: <strong>" + this.lt_x_admin_details.xname.ToUpper() + "( " + this.z.getRoleNameByID(this.lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br /> Date: <strong>" + this.lt_tm_office[i].reg_date.ToUpper() + "</strong>"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // if (lt_tm_office[i].xdoc1 != "") // { // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + "View Document 1: <a href=" + lt_tm_office[i].xdoc1 + " target='_blank'>View</a>"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // } // if (lt_tm_office[i].xdoc2 != "") // { // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + "View Document 2: <a href=" + lt_tm_office[i].xdoc2 + " target='_blank'>View</a>"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // } // if (lt_tm_office[i].xdoc3 != "") // { // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + "View Document 3: <a href=" + lt_tm_office[i].xdoc3 + " target='_blank'>View</a>"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // } // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + " "; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // if (this.lt_tm_office[i].admin_status == "3") // { // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + "--- SUPPORTING SEARCH DOCUMENTS ---"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td align=\"right\">"; // this.xcomments = this.xcomments + "Attached Document:"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "<td>"; // //if ((this.swallet.search_str != "") && (this.swallet.search_str != null)) // //{ // // this.xcomments = this.xcomments + "<a href=view_searcho.aspx?x=" + this.pID + " target='_blank'>View</a>"; // //} // //else // //{ // // this.xcomments = this.xcomments + "NONE"; // //} // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + " "; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // } // ////////// // if (this.lt_tm_office[i].admin_status == "33") // { // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + "--- SUPPORTING SEARCH 2 DOCUMENTS ---"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td align=\"right\">"; // this.xcomments = this.xcomments + "Attached Document:"; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "<td>"; // //if ((this.swallet2.search_str != "") && (this.swallet2.search_str != null)) // //{ // // this.xcomments = this.xcomments + "<a href=view_searcho2.aspx?x=" + this.pID + " target='_blank'>View</a>"; // //} // //else // //{ // // this.xcomments = this.xcomments + "NONE"; // //} // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // this.xcomments = this.xcomments + "<tr>"; // this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; // this.xcomments = this.xcomments + " "; // this.xcomments = this.xcomments + "</td>"; // this.xcomments = this.xcomments + "</tr>"; // } ////////// //} //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); } } }
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"]; 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; //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); vd = ret.getG_PwalletByID3(vint2); //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 ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; var pp2 = context.Request["vid2"]; String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); context.Response.ContentType = "application/json"; zues z2 = new zues(); int vcount = z2.updateTransID2b(pp2, pp); // UserError ppp = new UserError(); if (vcount > 0) { // ppp.message = "Id Already Exist"; context.Response.Write(ser.Serialize("Id Already Used")); return; // throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Record Has been Migrated Before")); // throw new System.InvalidOperationException(context.Response.Write(ser.Serialize("Id Already Exist"))); } // string[] words = pp.Split('-'); // var xxp = z2.getAgentID(words[2]); // var xxp2 = z2.getAgentID3(pp2); //if (xxp != xxp2) //{ // context.Response.Write(ser.Serialize("This Payment Id is not For This Transaction")); // return; //} //if (pp2.Contains("-")) //{ // string[] words = pp2.Split('-'); // if (words[0] !=pp) // { // context.Response.Write(ser.Serialize("This Payment Id is not For This Transaction")); // return; // } //} //if (pp2 != pp) //{ // context.Response.Write(ser.Serialize("This Payment Id is not For This Transaction")); // return; //} Int32 kk = z2.updateTransID2(pp2, pp); context.Response.Write(ser.Serialize("Record Updated Successfully")); }
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(220, UnitType.Pixel); tm_img.Width = new Unit(320, 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); //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 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); } } }
public void ProcessRequest(HttpContext context) { try { JavaScriptSerializer ser = new JavaScriptSerializer(); zues z = new zues(); tm t = new tm(); context.Response.ContentType = "application/json"; var pp2 = context.Request["vv"]; var pp3 = context.Request["vv2"]; string[] words = pp2.Split('/'); string[] words2 = pp3.Split('/'); List <zues.MarkInfo> lt_mi = new List <zues.MarkInfo>(); string vfirst = words[1] + "/" + words[2] + "/" + words[3] + "/" + words[4]; string vsecond = words2[1] + "/" + words2[2] + "/" + words2[3] + "/" + words2[4]; lt_mi = z.getIndexInfoRS3("5", "Published", vfirst, vsecond); foreach (var pp in lt_mi) { try { Cards xk = new Cards(); xk.MarkInfo = pp; xk.Pwallet = z.getPwalletListDetailsByID2(xk.MarkInfo.log_staff); xk.Applicant = t.getApplicantListByUserID2(xk.MarkInfo.log_staff); xk.lt_addy = t.getAddressListByID2(xk.MarkInfo.log_staff); xk.Representative = t.getRepListByUserID2(xk.MarkInfo.log_staff); xk.lt_rep_addy = t.getAddressByID2(xk.MarkInfo.log_staff); var lt_tm_office = z.getTmOfficeDetailsByID(xk.MarkInfo.log_staff); foreach (zues.TmOffice t2 in lt_tm_office) { if ((t2.data_status == "Accepted") && (t2.admin_status == "5")) { xk.AcceptanceDate = t2.reg_date; // acceptance_date.Add(t.reg_date); } } cards.Add(xk); } catch (Exception ee) { var dsp = ee.Message; } } string xxp = ""; ser.MaxJsonLength = Int32.MaxValue; context.Response.Write(ser.Serialize(cards)); } catch (Exception ee) { var dss = ee.Message; } }
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"]; 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); this.cert = this.t.getCertByID(spwallet); if (cert.Pub_Doc != null || cert.Pub_Details != null) { cert_show2 = true; } else { cert_show2 = false; } 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); //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); // this.lt_tm_office = this.z.getG_TmOfficeDetailsByID(g_pwallet.xid); this.lt_tm_office = this.z.getTmOfficeDetailsByID(spwallet); // List<Recordal> vd = ret.getG_PwalletByID2(g_pwallet.xid); zues zz2 = new zues(); // Int32 vint2 = zz2.getMaxId(spwallet); // int num = 0; //List<Recordal> vd = ret.getG_PwalletByID3(vint2); //foreach (var ddp in vd) //{ // if (ddp.RECORDAL_TYPE == "Change_Name") // { // gen_nameHis(ddp); // } // else if (ddp.RECORDAL_TYPE == "Change_Address") // { // gen_nameAddress(ddp); // } //} for (int i = 0; i < this.lt_tm_office.Count; i++) { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td align=\"center\" colspan=\"2\">"; this.xcomments = this.xcomments + "<strong>" + this.lt_tm_office[i].xcomment.ToUpper() + "</strong><br />"; this.lt_x_admin_details = this.z.getTmAdminDetailsByID(this.lt_tm_office[i].xofficer); string xcomments = this.xcomments; this.xcomments = xcomments + "COMMENT BY: <strong>" + this.lt_x_admin_details.xname.ToUpper() + "( " + this.z.getRoleNameByID(this.lt_x_admin_details.xroleID).ToUpper() + " UNIT)</strong><br /> Date: <strong>" + this.lt_tm_office[i].reg_date.ToUpper() + "</strong>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; if (lt_tm_office[i].xdoc1 != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + "View Document 1: <a href=" + lt_tm_office[i].xdoc1 + " target='_blank'>View</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if (lt_tm_office[i].xdoc2 != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + "View Document 2: <a href=" + lt_tm_office[i].xdoc2 + " target='_blank'>View</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } if (lt_tm_office[i].xdoc3 != "") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + "View Document 3: <a href=" + lt_tm_office[i].xdoc3 + " target='_blank'>View</a>"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; if (this.lt_tm_office[i].admin_status == "3") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + "--- SUPPORTING SEARCH DOCUMENTS ---"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td align=\"right\">"; this.xcomments = this.xcomments + "Attached Document:"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "<td>"; //if ((this.swallet.search_str != "") && (this.swallet.search_str != null)) //{ // this.xcomments = this.xcomments + "<a href=view_searcho.aspx?x=" + this.pID + " target='_blank'>View</a>"; //} //else //{ // this.xcomments = this.xcomments + "NONE"; //} this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } ////////// if (this.lt_tm_office[i].admin_status == "33") { this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + "--- SUPPORTING SEARCH 2 DOCUMENTS ---"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td align=\"right\">"; this.xcomments = this.xcomments + "Attached Document:"; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "<td>"; //if ((this.swallet2.search_str != "") && (this.swallet2.search_str != null)) //{ // this.xcomments = this.xcomments + "<a href=view_searcho2.aspx?x=" + this.pID + " target='_blank'>View</a>"; //} //else //{ // this.xcomments = this.xcomments + "NONE"; //} this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; this.xcomments = this.xcomments + "<tr>"; this.xcomments = this.xcomments + "<td class=\"coltbbg\" colspan=\"2\" align=\"center\">"; this.xcomments = this.xcomments + " "; this.xcomments = this.xcomments + "</td>"; this.xcomments = this.xcomments + "</tr>"; } ////////// } //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); } } }