
以下为晓风彩票软件的部分源代码:
private void BindDataGetWinNumber()
{
int ReturnValue = 0;
string ReturnDescription = "";
string CacheKey = "WinLotteryNumber";
DataSet ds = Shove._Web.Cache.GetCacheAsDataSet(Shove._Web.WebConfig.GetAppSettingsString("SystemPreFix") + _Site.ID.ToString() + CacheKey);
if (ds == null)
{
DAL.Procedures.P_GetWinLotteryNumber(ref ds, _Site.ID, -1, 0, ref ReturnValue, ref ReturnDescription);
Shove._Web.Cache.SetCache(Shove._Web.WebConfig.GetAppSettingsString("SystemPreFix") + _Site.ID.ToString() + CacheKey, ds, 60);
}
if (ds.Tables.Count > 0)
{
this.gOpenWinInfo.DataSource = ds.Tables[0].DefaultView;
this.gOpenWinInfo.DataBind();
}
else
{
return;
}
}
|