CY_ZZJY.Web/admin/subpackagesearch/query.ashx.cs

(完整代码) 2KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CY_ZZJY.Model.Bus;
using CY_ZZJY.Service.Bus;
using CY_ZZJY.EasyUI;

namespace CY_ZZJY.Web.admin.subpackagesearch
{
    /// <summary>
    /// query 的摘要说明
    /// </summary>
    public class query : IHttpHandler
    {
        private T_CHECKRESULT_Service _T_CHECKRESULT_Service = new T_CHECKRESULT_Service();
        private T_PACKAGES_Service _T_PACKAGES_Service = new T_PACKAGES_Service();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int pageIndex = Convert.ToInt32(context.Request.Params["page"]);
            int pageSize = Convert.ToInt32(context.Request.Params["rows"]);
            string action = string.Empty;
            if (!string.IsNullOrEmpty(context.Request.Params["action"].ToString()))
                action = context.Request.Params["action"].ToString().Trim();
            switch (action.Trim())
            {
                #region 检验结果信息
                case "一条检验结果":
                    {
                        #region 参数
                        string resulBH = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["resulBH"].ToString()))
                            resulBH = context.Request.Params["resulBH"].ToString().Trim();
                        #endregion
                        Mdl_T_CHECKRESULT _Mdl_T_CHECKRESULT = this._T_CHECKRESULT_Service.GetEntityByResultBH(resulBH);
                        string result = JsonHelper_New.ObjectToJson(_Mdl_T_CHECKRESULT);
                        context.Response.Write(result);
                        break;
                    }
                case "查询分包数量":
                    {
                        #region 参数
                        string resulBH = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["resulBH"].ToString()))
                            resulBH = context.Request.Params["resulBH"].ToString().Trim();
                        #endregion
                        int count = this._T_PACKAGES_Service.GetCount(resulBH);
                        context.Response.Write(count.ToString());
                        break;
                    }
                #endregion
            }
        }
        public bool IsReusable
        {
            get { return false; }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。