MxWeiXinPF.Web/weixin/wqiche/czInfo.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 MxWeiXinPF.Common;

namespace MxWeiXinPF.Web.weixin.wqiche
{
    public partial class czInfo : WeiXinPage
    {
        protected string openid;
        protected int wid;
        protected string spdate = "";
        protected string gcdate = "";
        protected Model.wx_wq_chezhu czModel;
        protected void Page_Load(object sender, EventArgs e)
        {
            wid = MXRequest.GetQueryInt("wid");
            openid = MXRequest.GetQueryString("openid");

            if (!IsPostBack)
            {
                showInfo();
            }
        }

        void showInfo()
        {
            BLL.wx_wq_pinpai ppBll = new BLL.wx_wq_pinpai();

            BLL.wx_wq_chezhu czBll = new BLL.wx_wq_chezhu();
            IList<Model.wx_wq_chezhu> czList = czBll.GetModelList(" openid='" + openid + "'");
            if (czList.Count > 0)
            {
                czModel = czList[0];
            }
            else
            {
                czModel = new Model.wx_wq_chezhu();
            }
            this.rptPinpai.DataSource = ppBll.GetModelList("wid=" + wid);
            this.rptPinpai.DataBind();
            if (czModel.gcdate != null)
                gcdate = MyCommFun.Obj2DateTime(czModel.gcdate).ToString("yyyy-MM-dd");
            else
                gcdate = DateTime.Now.ToString("yyyy-MM-dd");

            if (czModel.spdate != null)
                spdate = MyCommFun.Obj2DateTime(czModel.spdate).ToString("yyyy-MM-dd");
            else
                spdate = DateTime.Now.ToString("yyyy-MM-dd");
        }

        protected void rptPinpai_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                Model.wx_wq_pinpai drv = (Model.wx_wq_pinpai)e.Item.DataItem;
后面还有 12 行代码,购买后查看完整代码

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

AI 解读

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

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