myBook.Web/myOrder.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myBook.BLL;
using System.Data;

public partial class myOrder : System.Web.UI.Page
{
    orderBLL obll = new orderBLL();

    protected void Page_Load(object sender, EventArgs e)
    {
        common.checkIndexLogin("Login.aspx");
        if (!IsPostBack)
        {
            this.BindOder();
        }
    }



    private void BindOder()
    {
        string strWhere = "  ispay=1 and userid=" + loginSession.loginInfo.session().Id;

        int pageIndex = this.hfPageIndex.Value != "" ? int.Parse(this.hfPageIndex.Value) : 1;

        int rowCount = obll.GetRecordCount(strWhere);

        int pageSize = int.Parse(this.hfPageSize.Value);

        int pageCount = (rowCount - 1) / pageSize + 1;

        this.hfPageCount.Value = pageCount.ToString();

        int startIndex = this.hfStartIndex.Value != "" ? int.Parse(this.hfStartIndex.Value) : 1;//开始条数

        int endIndex = this.hfEndIndex.Value != "" ? int.Parse(this.hfEndIndex.Value) : pageSize;//结束条数



        DataTable dt = obll.GetListByPage(strWhere, "", startIndex, endIndex).Tables[0];

        DataColumn dc = dt.Columns.Add("zt");

        foreach (DataRow row in dt.Rows)
        {
            switch (row["status"].ToString())
            {
                case "0":
                    row["zt"] = "处理中.....";
                    break;
                case "1":
                    row["zt"] = "已发货,等待收货";
                    break;
                case "2":
                    row["zt"] = "交易完成";
后面还有 33 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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