参数传递
来源:互联网 发布:js调用api截屏 qt mac 编辑:程序博客网 时间:2024/05/22 16:03
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;using Newtonsoft.Json;using Newtonsoft.Json.Converters;using OAServiceBLLBase;using Ynhosp.Portal.BLL;using Ynhosp.Portal.BLL.DTO;namespace Ynhosp.Portal.Web.Portal.ashx{ /// <summary> /// $codebehindclassname$ 的摘要说明 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class QueryEmergencyDep : IHttpHandler { public void ProcessRequest(HttpContext context) { bool success = false; //int limit = Int32.Parse(context.Request.QueryString["limit"].ToString().Trim()); //int offset = Int32.Parse(context.Request.QueryString["offset"].ToString().Trim()); int limit = 100; int offset = 0; IList<DTODutyPerson> outDatas = new List<DTODutyPerson>(); context.Response.ContentType = "text/plain"; try { DateTime date = DateTime.Parse(context.Request.QueryString["date"].ToString().Trim()); QueryEmergencyDepService core = new QueryEmergencyDepService(); var lstRes = new List<DTODutyPerson>(); success = core.Query(date, out outDatas); var total = outDatas.Count; var rows = outDatas.Skip(offset).Take(limit).ToList(); string output = JsonConvert.SerializeObject(new { total = total, rows = rows }, Newtonsoft.Json.Formatting.Indented); HttpContext.Current.Response.Write(output); } catch (Exception e) { } } public bool IsReusable { get { return false; } } }}
阅读全文
0 0
- 参数传递
- 参数传递
- 参数传递
- 传递参数
- 参数传递
- 参数传递
- 参数传递
- 传递参数
- 参数传递
- 参数传递
- 参数传递
- 参数传递
- *参数传递*
- 参数传递
- 参数传递
- 参数传递
- 传递参数
- 参数传递
- openlayers3+中添加地图右键和要素右键菜单
- telnet命令
- ionic侧拉菜单
- 推荐系统论文阅读——BPR Bayesian Personalized Ranking from Implicit Feedback
- Html中让表单、文本框、文本域、按钮等不可编辑,只读的方法
- 参数传递
- windows上编译hadoop遇到的问题
- UVA10048 Floyd最短路径
- WIFI模块的各种配网方式之比较(串口AT、SmartConfig、微信Airkiss、WEB网页配网....)
- Hystrix中的HystrixRuntimeException错误
- netty自定义url过滤器抛引用异常
- Ansible Playbook的角色与包含
- C语言 sizeof关键字详解
- CSS3笔记:Border-radius的形成原理