Web/Admin/basic.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WMPT.Common;
using WMPT.SQLServerDAL;
using WMPT.Model;
using System.Collections.Generic;
public partial class HomeDemo_basic : AdminPageBase
{
Custorder bll = new Custorder();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
shwoTodayOrder();
hfisshowupdate.Value = SectionProxyData.GetSetValue(60);
}
}
/// <summary>
/// 绑定指定的数据
/// </summary>
protected void shwoTodayOrder()
{
string orderWhere = " DATEDIFF(day,OrderDateTime,GETDATE()) =0 ";
int[] hours = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 };
IList<OrderCountInfo> shops = bll.GetOrderCount(7, "", "", "", orderWhere);
string xjson = "";
string yjson = "[";
foreach (var hour in hours)
{
int ordercount = 0;
decimal allprice = 0;
foreach (var item in shops)
{
if (hour == Convert.ToInt32(item.CountKey))
{
ordercount = item.CountIntValue;
allprice = item.CountDecimalValue;
break;
}
}
yjson += "{'ordercount':" + ordercount + ",'allprice':" + allprice + "},";
}
后面还有 13 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
