CY_ZZJY.Web/admin/subpackage/query.ashx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CY_ZZJY.Service.Bus;
using CY_ZZJY.EasyUI;
using CY_ZZJY.Model.Bus;
namespace CY_ZZJY.Web.admin.subpackage
{
/// <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;
}
case "执行分包操作":
{
string result = string.Empty;
int resultCount = 0;
double totalCount = 0;//总包数
#region 参数
string resulBH = string.Empty;
decimal? weight = 0;
int? term = 1;//默认1年
后面还有 45 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。