示例#1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType     = "application/json";
            context.Response.ContentEncoding = Encoding.UTF8;

            // The Request QueryString here is protected against XSS attacks by Request Validation
            QuerySettings settings = CCHSerializer.DeserializeSettings <QuerySettings>(context.Request.QueryString);

            if (settings.Lat == 0.0)
            {
                settings.Lat = context.GetLatitude <Double>();
            }                                                                         // Convert.ToDouble(context.GetLatitude<String>()); }
            if (settings.Lng == 0.0)
            {
                settings.Lng = context.GetLongitude <Double>();
            }                                                                          // Convert.ToDouble(ThisSession.PatientLongitude); }

            ResultsBack rb = new ResultsBack();

            using (GetFacilitiesForServicePastCare gffspc = new GetFacilitiesForServicePastCare())
            {
                gffspc.ServiceID     = context.GetServiceID <Int32>();              //ThisSession.ServiceID;
                gffspc.ProcedureCode = context.GetPastCareProcedureCode <String>(); // ThisSession.PastCareProcedureCode;
                gffspc.Latitude      = settings.Lat;
                gffspc.Longitude     = settings.Lng;
                gffspc.SpecialtyID   = context.GetSpecialtyID <Int32>(); //ThisSession.SpecialtyID;
                gffspc.PastCareID    = context.GetPastCareID <Int32>();  //Convert.ToInt32(ThisSession.PastCareID);
                //gffspc.MemberMedicalID = ThisSession.SubscriberMedicalID;
                gffspc.CCHID     = context.GetCCHID <Int32>();           //ThisSession.CCHID;
                gffspc.UserID    = context.GetUserLogginID <String>();   //System.Web.Security.Membership.GetUser(ThisSession.PatientEmail).ProviderUserKey.ToString();
                gffspc.SessionID = context.GetSessionID <String>();
                gffspc.Domain    = context.GetDomain <String>();
                gffspc.GetData();

                if (!gffspc.HasErrors)
                {
                    //ResultData rd;
                    gffspc.ForEachResult <DataRow>(delegate(DataRow dr)
                    {
                        //rd = new ResultData();
                    });
                }
            }
        }
示例#2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            context.Response.ContentEncoding = Encoding.UTF8;

            // The Request QueryString here is protected against XSS attacks by Request Validation
            QuerySettings settings = CCHSerializer.DeserializeSettings<QuerySettings>(context.Request.QueryString);
            if (settings.Lat == 0.0) { settings.Lat = context.GetLatitude<Double>(); }// Convert.ToDouble(context.GetLatitude<String>()); }
            if (settings.Lng == 0.0) { settings.Lng = context.GetLongitude<Double>(); }// Convert.ToDouble(ThisSession.PatientLongitude); }

            ResultsBack rb = new ResultsBack();
            using (GetFacilitiesForServicePastCare gffspc = new GetFacilitiesForServicePastCare())
            {
                gffspc.ServiceID = context.GetServiceID<Int32>();//ThisSession.ServiceID;
                gffspc.ProcedureCode = context.GetPastCareProcedureCode<String>();// ThisSession.PastCareProcedureCode;
                gffspc.Latitude = settings.Lat;
                gffspc.Longitude = settings.Lng;
                gffspc.SpecialtyID = context.GetSpecialtyID<Int32>();//ThisSession.SpecialtyID;
                gffspc.PastCareID = context.GetPastCareID<Int32>();//Convert.ToInt32(ThisSession.PastCareID);
                //gffspc.MemberMedicalID = ThisSession.SubscriberMedicalID;
                gffspc.CCHID = context.GetCCHID<Int32>();//ThisSession.CCHID;
                gffspc.UserID = context.GetUserLogginID<String>();//System.Web.Security.Membership.GetUser(ThisSession.PatientEmail).ProviderUserKey.ToString();
                gffspc.SessionID = context.GetSessionID<String>();
                gffspc.Domain = context.GetDomain<String>();
                gffspc.GetData();

                if (!gffspc.HasErrors)
                {
                    //ResultData rd;
                    gffspc.ForEachResult<DataRow>(delegate(DataRow dr)
                    {
                        //rd = new ResultData();

                    });
                }
            }
        }