forked from as12334/dll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetDrawInfo_kl8.cs
33 lines (30 loc) · 1.17 KB
/
GetDrawInfo_kl8.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using LotterySystem.Common;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using User.Web.WebBase;
public class GetDrawInfo_kl8 : MemberPageBase_Mobile
{
private List<object> balls = new List<object>();
private string str_amt = "";
protected void Page_Load(object sender, EventArgs e)
{
IDictionary<string, object> dictionary = new Dictionary<string, object>();
string str = "";
DataTable kCOpenBall = base.GetKCOpenBall(5);
string[] strArray = null;
if ((kCOpenBall != null) && (kCOpenBall.Rows.Count > 0))
{
string str2 = kCOpenBall.Rows[0]["previousphase"].ToString().Trim();
string str3 = kCOpenBall.Rows[0]["sold"].ToString().Trim();
string str4 = kCOpenBall.Rows[0]["surplus"].ToString().Trim();
str = kCOpenBall.Rows[0]["nns"].ToString().Trim();
strArray = (str2 + "," + str).Split(new char[] { ',' }).ToArray<string>();
}
dictionary.Add("status", "1");
dictionary.Add("kaijiang", strArray);
string strResult = JsonHandle.ObjectToJson(dictionary);
base.OutJson(strResult);
}
}