Web/Admin/shop/shopStatisticsYear.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using WMPT.Common;
using WMPT.Model;
using WMPT.SQLServerDAL;

public partial class Admin_Sale_shopStatisticsYear : System.Web.UI.Page
{
    Custorder dal = new Custorder();
    Points daltogo = new Points();

    private string SqlWhere
    {
        get
        {
            object o = ViewState["SqlWhere"];
            return (o == null) ? "" : Convert.ToString(o);
        }
        set
        {
            ViewState["SqlWhere"] = value;
        }
    }

    private string orderWhere
    {
        get
        {
            object o = ViewState["orderWhere"];
            return (o == null) ? "1=1" : Convert.ToString(o);
        }
        set
        {
            ViewState["orderWhere"] = value;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            SqlWhere = " 1= 1 and isdelete = 0";

            DateTime now = DateTime.Now;
            WebUtility.SelectValue(ddlyear, now.Year.ToString());
            WebUtility.SelectValue(ddlmounth, now.Month.ToString());
        }
    }

    protected void search_click(object sender, EventArgs e)
    {
        orderWhere = "OrderStatus = 3 and TogoId = Points.Unid ";
        if (ddlmounth.SelectedValue != "0")//统计月
        {
            string otart = ddlyear.SelectedValue + "-" + ddlmounth.SelectedValue + "-1";
后面还有 105 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。