Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            string sessionId  = context.Request.QueryString["sessionId"].ToString();
            string questionId = context.Request.QueryString["questionId"].ToString();
            string happenDate = context.Request.QueryString["happenDate"].ToString();
            string userId     = context.Request.QueryString["userId"].ToString();
            string classId    = context.Request.QueryString["classId"].ToString();
            string companyId  = context.Request.QueryString["companyId"].ToString();
            string sortid     = context.Request.QueryString["sortid"].ToString();
            string name       = context.Request.QueryString["name"].ToString();

            if (name == "业务一")
            {
                name = "1";
            }
            else if (name == "业务二")
            {
                name = "2";
            }
            else
            {
                name = "3";
            }
            publicmethod p          = new publicmethod();
            string       coursepath = System.Web.Configuration.WebConfigurationManager.AppSettings["Practicepath"] + "/APIPractice/BILJXFP.asmx/getbyquestionid?questionId=" + questionId;
            string       courseId   = p.HttpGetFunction(coursepath);
            string       path       = System.Web.Configuration.WebConfigurationManager.AppSettings["FPpath"] + "/index.php?sessionId=" + sessionId + "&questionId=" + questionId + "&happenDate=" + happenDate + "&userId=" + userId + "&classId=" + classId + "&companyId=" + companyId + "&courseId=" + courseId + "&sortid=" + sortid + "&name=" + name;

            context.Response.Redirect(path);
        }
Ejemplo n.º 2
0
        public void ProcessRequest(HttpContext context)
        {
            string method  = context.Request.QueryString["Method"].ToString();
            string ClassId = context.Request.QueryString["ClassId"].ToString();
            string userId  = context.Request.QueryString["userId"].ToString();
            string SortId  = context.Request.QueryString["SortId"].ToString();
            string res     = "";

            try
            {
                if (method == "Clear")
                {
                    //国地税题目
                    publicmethod p        = new publicmethod();
                    string       path     = System.Web.Configuration.WebConfigurationManager.AppSettings["Practicepath"] + "/APIPractice/Chongzuo.asmx/GetTongYongTAXData?UserId=" + userId + "&ClassId=" + ClassId + "&SortId=" + SortId + "&courseId=" + ConfigurationManager.AppSettings["CourseId"];
                    string       resut    = p.HttpGetFunction(path).Replace("+", "%2B").Replace("#", "%23").Replace("=", "%3D").Replace("&", "%26");
                    string       billpath = System.Web.Configuration.WebConfigurationManager.AppSettings["tikupath"] + "/GTX/GDTXTYTAXUserYSBQC/RedoAllQuestionsTYTAX";
                    res = p.HttpPost(billpath, string.Format("jsonData={0}", resut));
                }
            }
            catch
            {
            }
            context.Response.Clear();
            context.Response.ContentType = "text/html";
            context.Response.Write(res);
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string    userid   = Request.QueryString["userid"].ToString();
                string    username = Request.QueryString["username"].ToString();
                string    classid  = Request.QueryString["classid"].ToString();
                string    courseid = Request.QueryString["courseid"].ToString();
                string    sortid   = Request.QueryString["sortid"].ToString();
                APIResult obj      = new APIResult();
                if (string.IsNullOrEmpty(userid) || string.IsNullOrEmpty(username) || string.IsNullOrEmpty(classid) || string.IsNullOrEmpty(courseid) || string.IsNullOrEmpty(sortid))
                {
                    //Response.Redirect("Error/500.html");
                }
                else
                {
                    Check c   = new Check();
                    bool  res = c.ProcessRequest("get", userid, "", "");
                    if (res == false)
                    {
                        //Response.Redirect("Error/500.html");
                    }
                }

                publicmethod p = new publicmethod();
                questionstr = p.HttpGetFunction(System.Web.Configuration.WebConfigurationManager.AppSettings["tikupath"] + "/GTX/GTXUserQuestion/GetQID?classid=" + classid + "&userid=" + userid + "&sortid=" + sortid);
            }
            catch
            {
                //Response.Redirect("Error/500.html");
            }
        }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         publicmethod p     = new publicmethod();
         string       path  = System.Web.Configuration.WebConfigurationManager.AppSettings["Practicepath"] + "/APIPractice/VideoManage.asmx/GetByCourseId?CourseId=" + System.Web.Configuration.WebConfigurationManager.AppSettings["CourseId"];
         string       resut = p.HttpGetFunction(path);
         ActionResult ar    = JsonConvert.DeserializeObject <ActionResult>(resut);
         Session["VideoManage"] = ar.Data;
     }
     catch
     {
     }
 }