Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            var pp = context.Request["vid"];
            String dd = "";
            JavaScriptSerializer ser = new JavaScriptSerializer();

            Retriever pp2 = new Retriever();
            XObjs.Registration kk = pp2.getRegistrationBySubagentRegistrationID(pp);

            context.Response.ContentType = "application/json";
            context.Response.Write(ser.Serialize(kk));
        }
Ejemplo n.º 2
0
        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);
            if (pp4.Sys_ID == null || pp4.Sys_ID == "")
            {

                int vmax = kp.getMaxSysId();
                vmax = vmax + 1;
                String vsys_id = "CLD/RA/0" + vmax;

                kp.updateRegistrationSysID(vid2, vsys_id);

                kp.addRoles(vsys_id, "Agent");
                kp.addRoles(vsys_id, "Payment");

                pp4.Sys_ID = vsys_id;
                sendemail(pp4);

                message = "success";

            }

            else
            {

                kp.addRoles(pp4.Sys_ID, "Agent");

                kp.addRoles(pp4.Sys_ID, "Payment");
                sendemail(pp4);
                message = "success";
            }

            context.Response.ContentType = "application/json";
            context.Response.Write(ser.Serialize(message));
        }
Ejemplo n.º 3
0
        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.updateRegistrationSysID4(vid2, "REFUSED");

                sendemail(pp4);

                message = "success";

            context.Response.ContentType = "application/json";
            context.Response.Write(ser.Serialize(message));
        }