Get.ashx.cs 793 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Web;
  4. using System.Data;
  5. namespace Com.Jpsoft.Hospital.Web.Module.Proxy
  6. {
  7. /// <summary>
  8. /// Get 的摘要说明
  9. /// </summary>
  10. public class Get : IHttpHandler
  11. {
  12. public bool IsReusable
  13. {
  14. get
  15. {
  16. return false;
  17. }
  18. }
  19. public void ProcessRequest(HttpContext context)
  20. {
  21. Warning(context);
  22. }
  23. private void Warning(HttpContext context)
  24. {
  25. Com.Jpsoft.Hospital.BLL.ts_ComplainRecord bll = new BLL.ts_ComplainRecord();
  26. DataTable dt = bll.GetList(" IsProcess=0 and IsDel!=1").Tables[0];
  27. context.Response.Write(dt.Rows.Count.ToString());
  28. }
  29. }
  30. }