TestBLL.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using Business.KJH;
  2. using Cache;
  3. using Cache.Cache;
  4. using KJH55128_Rec.ViewModels;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Data;
  8. using System.Linq;
  9. using System.Web;
  10. namespace KJH55128_Rec.Business.Test
  11. {
  12. public static class TestBLL
  13. {
  14. public static void lotteryDatalist()
  15. {
  16. var list= LotteryCache.GetLottery();
  17. }
  18. public static void TypeList()
  19. {
  20. var list = LotteryCache.GetLotteryType();
  21. }
  22. public static void GetLotteryAdTJ()
  23. {
  24. var data=LotteryCache.GetLotteryListAdKjTimeCache();
  25. }
  26. public static void GetLotteryListSingle()
  27. {
  28. //SCCLottery.DF_DF6J1
  29. //var data = KJApiBLL.GetLotteryList("DF_DF6J1", 10);
  30. var data = KJApiBLL.GetLotteryList("QG_TCP3", 50,0,null,null,0,true);// 查天数
  31. var data2 = KJApiBLL.GetLotteryList("QG_FC3D", 0, 0, "Term", null, 10, true);//查倒数多少条
  32. Dictionary<string, object> dict = new Dictionary<string, object>();
  33. dict["Num"] = 2011025;
  34. var data3 = KJApiBLL.GetLotteryList("QG_FC3D", 0,0,null,dict); //查期号
  35. Dictionary<string, object> dict2 = new Dictionary<string, object>();
  36. dict2["MinYear"] = 2017;
  37. dict2["MaxYear"] = 2018;
  38. var data4 = KJApiBLL.GetLotteryList("QG_FC3D", 0, 0, null, dict2);//查一年
  39. Dictionary<string, object> dict4 = new Dictionary<string, object>();
  40. dict4["MinTerm"] = 2018002;
  41. dict4["MaxTerm"] = 2018034;
  42. var data5 = KJApiBLL.GetLotteryList("QG_FC3D", 0, 0, null, dict4);//查期号段
  43. var dataa = KJApiBLL.GetLotteryListKaiJiHao("QG_TCP3", 50, 0, null, null, 0, true);// 开机号
  44. var datab = KJApiBLL.GetLotteryListShiJiHao("QG_TCP3", 50, 0, null, null, 0, true);// 试机号
  45. }
  46. }
  47. }