public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; string vfile1 = ""; Encrypt dd = ser.Deserialize <Encrypt>(pp); //var pp = context.Request["vv"]; //var pp2 = context.Request["vv2"]; //var pp3 = context.Request["vv3"]; //var pp4 = context.Request["vv4"]; //var pp5 = context.Request["vv5"]; //var pp6 = context.Request["ff"]; //var pp7 = context.Request["ff2"]; //var pp8 = context.Request["ff3"]; //var pp9 = context.Request["ff4"]; //var pp10 = context.Request["ff5"]; //var pp11 = context.Request["ff6"]; //var pp12 = context.Request["ff7"]; //var pp13 = context.Request["ff8"]; if (context.Request.Files.Count > 0) { var files = new List <string>(); foreach (string file in context.Request.Files) { if (file == "FileUpload") { var postedFile = 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); string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile1 = xpath; } } } cld.Classes.zues ff = new cld.Classes.zues(); Recordal_Result sp = ff.InsertRecordal3(dd.vv, dd.vv2, dd.vv3, dd.vv4, dd.vv5, dd.ff, dd.ff2, dd.ff3, dd.ff4, dd.ff5, dd.ff6, dd.ff7, dd.ff8, vfile1); // String vip = ff.getApplicantName(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(sp)); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); cld.Classes.zues ff = new cld.Classes.zues(); List <Payments> dd3 = ff.getPayment(); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(dd3)); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Recordal_Data dd = ser.Deserialize <Recordal_Data>(pp); if (context.Request.Files.Count > 0) { var files = new List <string>(); foreach (string file in context.Request.Files) { if (file == "FileUpload") { var postedFile = 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; string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); dd.vv8 = xpath; cld.Classes.zues ff = new cld.Classes.zues(); Recordal_Result xk = ff.InsertRecordal4(dd.vv, dd.vv2, dd.vv3, dd.vv4, dd.vv5, dd.vv6, dd.vv8, dd.vv7, dd.vv8); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(xk)); // postedFile.SaveAs(FileName); } } } else { cld.Classes.zues ff = new cld.Classes.zues(); Recordal_Result xk = ff.InsertRecordal4(dd.vv, dd.vv2, dd.vv3, dd.vv4, dd.vv5, dd.vv6, "", dd.vv7, dd.vv8); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(xk)); } }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; cld.Classes.zues ff = new cld.Classes.zues(); Agent_Info vip = ff.getAgentInfo(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(vip)); }
public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; String dd = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); cld.Classes.zues ff = new cld.Classes.zues(); string vtrans_id = pp; Applicant dd3 = ff.getApplicant2ByID(vtrans_id); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(dd3)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Applicant dd = ser.Deserialize <Applicant>(pp); cld.Classes.zues ff = new cld.Classes.zues(); Int32 vip = ff.UpdateApplicant(dd); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(vip)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; // var pp = "1134"; cld.Classes.zues ff = new cld.Classes.zues(); Int32 pp2 = Convert.ToInt32(pp); ChangeAplicant_Name vip = ff.getApplicantName2(pp2); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(vip)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; var pp2 = context.Request["vv2"]; var pp3 = context.Request["vv3"]; var pp4 = context.Request["vv4"]; // var pp = "1134"; cld.Classes.zues ff = new cld.Classes.zues(); Int32 vip = ff.update_recordal(pp, pp2, pp3, pp4); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(vip)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Login dd = ser.Deserialize <Login>(pp); cld.Classes.zues ff = new cld.Classes.zues(); String vip = ff.CheckLogin(dd); //var session = HttpContext.Current.Session; context.Session["pwalletID"] = vip; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(vip)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; var pp2 = context.Request["vv2"]; var pp3 = context.Request["vv3"]; var pp4 = context.Request["vv4"]; var pp5 = context.Request["vv5"]; var pp6 = context.Request["vv6"]; cld.Classes.zues ff = new cld.Classes.zues(); Recordal_Result sp = ff.InsertRecordal(pp, pp2, pp3, pp4, pp5, pp6); // String vip = ff.getApplicantName(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(sp)); }
public void ProcessRequest(HttpContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Recordal_Data dd = ser.Deserialize <Recordal_Data>(pp); string vfile1 = ""; string vfile2 = ""; string vfile3 = ""; string vfile4 = ""; string vfile5 = ""; string vfile6 = ""; string vfile7 = ""; string vfile8 = ""; if (context.Request.Files.Count > 0) { var files = new List <string>(); foreach (string file in context.Request.Files) { if (file == "FileUpload") { var postedFile = 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); string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile1 = xpath; } if (file == "FileUpload2") { var postedFile = 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; string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile2 = xpath; } if (file == "FileUpload3") { var postedFile = 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; string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile3 = xpath; } } } cld.Classes.zues ff = new cld.Classes.zues(); string xk = ff.InsertRecordal5(dd.vv, dd.vv2, dd.vv4, dd.vv3, dd.vv6, dd.vv5, dd.vv16, dd.vv7, dd.vv8, vfile4, vfile5, vfile6, vfile7, vfile8, dd.vv9, dd.vv10, dd.vv11, dd.vv12, vfile1, vfile2, vfile3, dd.vv17); Recordal_Result xk2 = ff.InsertRecordal7(dd.vv13, dd.vv14, dd.vv15, xk, dd.vv16); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(xk2)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; JavaScriptSerializer ser = new JavaScriptSerializer(); //var pp = context.Request["vv"]; //var pp2 = context.Request["vv2"]; //var pp3 = context.Request["vv3"]; //var pp4 = context.Request["vv4"]; //var pp5 = context.Request["vv5"]; //var pp6 = context.Request["vv6"]; //var pp7 = context.Request["vv7"]; //var pp8 = context.Request["vv8"]; var pp = context.Request["vv"]; string vfile1 = ""; string vfile2 = ""; string vfile3 = ""; RegisteredUsers dd = ser.Deserialize <RegisteredUsers>(pp); if (context.Request.Files.Count > 0) { var files = new List <string>(); foreach (string file in context.Request.Files) { if (file == "FileUpload") { var postedFile = 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); string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile1 = xpath; } if (file == "FileUpload2") { var postedFile = 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); string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile2 = xpath; } if (file == "FileUpload3") { var postedFile = 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); string serverpath = context.Server.MapPath("~/"); string ssp = Generate15UniqueDigits(); String xpath = doUploadPic(ssp, vfile, serverpath + "admin/tm/Picz/", postedFile); xpath = xpath.Replace(serverpath + "admin/tm/", ""); vfile3 = xpath; } } } cld.Classes.zues ff = new cld.Classes.zues(); // Recordal_Result sp = ff.InsertRecordalB(pp, pp2, pp3, pp4, pp5, pp6,pp7,pp8); Recordal_Result sp = ff.InsertRecordalB(dd.vv, dd.vv2, dd.vv3, dd.vv4, dd.vv5, dd.vv6, dd.vv7, dd.vv8, vfile1, vfile2, vfile3); // String vip = ff.getApplicantName(pp); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(sp)); }