TestBLL.cs 1.9 KB

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