public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; string message = ""; String dd = ""; string vid2 = Convert.ToString(pp); Ipong.Classes.Retriever kp = new Ipong.Classes.Retriever(); Ipong.Classes.XObjs.Registration pp4 = kp.getRegistrationBySubagentRegistrationID(vid2); JavaScriptSerializer ser = new JavaScriptSerializer(); // XObjs.Registration px = kp.getRegistrationBySubagentRegistrationID(vid2); kp.updateRegistrationSysID5(vid2, "0"); message = "success"; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(message)); }
public void ProcessRequest(HttpContext context) { var pp = context.Request["vid"]; string message = ""; String dd = ""; string vid2 = Convert.ToString(pp); Ipong.Classes.Retriever kp = new Ipong.Classes.Retriever(); int vmax = kp.getMaxSysId(); vmax = vmax + 1; String vsys_id = "CLD/RA/0" + vmax; kp.updateRegistrationSysID2(vid2, vsys_id); kp.updateRegistrationSysID4(vid2, "APPROVED"); JavaScriptSerializer ser = new JavaScriptSerializer(); message = "success"; context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(message)); }
public void ProcessRequest(HttpContext context) { string new_hash = ""; // string ccode = ConfigurationManager.AppSettings["ccode"]; string xcode = ConfigurationManager.AppSettings["xcode"]; JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Register dd = ser.Deserialize<Register>(pp); if (context.Request.Files.Count > 0) { var files = new List<string>(); // interate the files and save on the server foreach (string file in context.Request.Files) { if (file == "FileUpload") { 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; // dd.cac_file = "admin/ag_docz/" + vfile; // postedFile.SaveAs(FileName); } if (file == "FileUpload2") { var postedFile = context.Request.Files[file]; } if (file == "FileUpload3") { var postedFile = context.Request.Files[file]; } // dd.File_path = "/Images/Patient/" + vfile; } } GetData gg = new GetData(); string sp = gg.addAgent(dd); Ipong.Classes.Retriever kp = new Ipong.Classes.Retriever(); // sendemail(dd.Email, dd.CompName, sp); try { // kp.updateRegistrationSysID4(sp, "PENDING"); } catch (Exception ee) { } context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(sp)); }