Ejemplo n.º 1
0
 void showInfo()
 {
     BLL.wx_wq_pinpai  ppBll = new BLL.wx_wq_pinpai();
     BLL.wx_wq_yuyue   yyBll = new BLL.wx_wq_yuyue();
     BLL.wx_wq_yyOrder yoBll = new BLL.wx_wq_yyOrder();
     yyModel = yyBll.GetModelList("type=" + type + " and wid=" + wid)[0];
     ddnum   = yoBll.GetRecordCount("yid=" + type + " and wid=" + wid + " and openid='" + openid + "'");
     this.rptPinpai.DataSource = ppBll.GetList("wid=" + wid);
     this.rptPinpai.DataBind();
     if (type == "1")
     {
         this.Title        = "预约保养";
         this.litShow.Text = "<dd class=\"tbox\">" +
                             "<div><label>车牌</label></div><div>" +
                             "<input type=\"text\" name=\"carnum\" id=\"carnum\" value=\"\" placeholder=\"如:京M 88888\"/></div></dd>" +
                             "<dd class=\"tbox\"><div><label>公里数</label></div><div>" +
                             "<input type=\"number\" name=\"km\" id=\"km\"  value=\"\" placeholder=\"请输入您的公里数\"  /></div></dd>";
     }
     else
     {
         this.Title        = "预约试驾";
         this.litShow.Text = "<input type=\"hidden\" name=\"carnum\" id=\"carnum\" value=\"\" placeholder=\"如:京M 88888\"/><br/>" +
                             "<input type=\"hidden\" name=\"km\" id=\"km\"  value=\"\" placeholder=\"请输入您的公里数\"  />";
     }
 }
Ejemplo n.º 2
0
        private void TreeBind()
        {
            Model.wx_userweixin weixin = GetWeiXinCode();

            BLL.wx_wq_pinpai bll = new BLL.wx_wq_pinpai();
            //品牌
            DataTable dt = bll.GetList(" wid=" + weixin.id).Tables[0];

            this.ddlPinpai.Items.Clear();
            this.ddlPinpai.Items.Add(new ListItem("请选择品牌...", ""));
            foreach (DataRow dr in dt.Rows)
            {
                string Id    = dr["id"].ToString();
                string Title = dr["Name"].ToString().Trim();
                this.ddlPinpai.Items.Add(new ListItem(Title, Id));
            }

            //全景相册
            BLL.wx_wq_panorama pbll = new BLL.wx_wq_panorama();
            DataTable          xcdt = pbll.GetList(" wid=" + weixin.id).Tables[0];

            this.ddlQjxc.Items.Clear();
            this.ddlQjxc.Items.Add(new ListItem("请选择全景图", ""));
            foreach (DataRow dr in xcdt.Rows)
            {
                string Id    = dr["id"].ToString();
                string Title = dr["jdname"].ToString().Trim();
                this.ddlQjxc.Items.Add(new ListItem(Title, Id));
            }

            //初始化车系
            this.ddlChexi.Items.Clear();
            this.ddlChexi.Items.Add(new ListItem("请选择车系....", ""));
        }
Ejemplo n.º 3
0
        private void ShowInfo(int _id)
        {
            BLL.wx_wq_pinpai    ppBll = new BLL.wx_wq_pinpai();
            BLL.wx_wq_chexi     cxBll = new BLL.wx_wq_chexi();
            Model.wx_wq_yyOrder model = bll.GetModel(_id);
            if (type == 1)//保养
            {
                this.pelShow.Visible = true;
                this.lblCarnum.Text  = model.carnum;
                this.lblKm.Text      = model.km.ToString();
            }
            else       //试驾
            {
                this.pelShow.Visible = false;
            }
            string pinpai = ppBll.GetModel(MyCommFun.Obj2Int(model.pid)).name;
            string chexi  = cxBll.GetModel(MyCommFun.Obj2Int(model.xid)).Name;

            this.lblObj.Text             = pinpai + "/" + chexi;
            this.lblremark.Text          = model.remark;
            this.lblTelephone.Text       = model.telephone.ToString();
            this.lblYYPerson.Text        = model.Name;
            this.lblYytime.Text          = MyCommFun.Obj2DateTime(model.yydate).ToString("yyyy-MM-dd") + "/" + model.yytime;
            this.lblXdtime.Text          = MyCommFun.Obj2DateTime(model.createdate).ToString("yyyy年MM月dd日 hh:mm:ss点");
            this.txtfSummary.InnerText   = model.kfremark;
            this.ddlStatus.SelectedValue = model.ddstatus;
        }
Ejemplo n.º 4
0
        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");
            }
        }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     wid    = MXRequest.GetQueryInt("wid");
     openid = MXRequest.GetQueryString("openid");
     if (!IsPostBack)
     {
         BLL.wx_wq_pinpai ppBll = new BLL.wx_wq_pinpai();
         this.rptList.DataSource = ppBll.GetList(" wid=" + wid + " order by sort_id asc,id asc");
         this.rptList.DataBind();
     }
 }
Ejemplo n.º 6
0
        private void TreeBind()
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            BLL.wx_wq_pinpai    bll    = new BLL.wx_wq_pinpai();
            DataTable           dt     = bll.GetList(" wid=" + weixin.id).Tables[0];

            this.ddlPinpai.Items.Clear();
            this.ddlPinpai.Items.Add(new ListItem("请选择品牌...", ""));
            foreach (DataRow dr in dt.Rows)
            {
                string Id    = dr["id"].ToString();
                string Title = dr["Name"].ToString().Trim();
                this.ddlPinpai.Items.Add(new ListItem(Title, Id));
            }
        }
Ejemplo n.º 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     wid    = MXRequest.GetQueryInt("wid");
     pid    = MXRequest.GetQueryInt("pid");
     openid = MXRequest.GetQueryString("openid");
     if (!IsPostBack)
     {
         BLL.wx_wq_pinpai   ppBll   = new BLL.wx_wq_pinpai();
         BLL.wx_wq_chexi    cxBll   = new BLL.wx_wq_chexi();
         Model.wx_wq_pinpai ppModel = ppBll.GetModel(pid);
         ppLogo = ppModel.logo;
         pinpai = ppModel.name;
         this.rptList.DataSource = cxBll.GetList(string.Format(" wid={0} and pid={1} order by sort_id asc,id asc", wid, pid));
         this.rptList.DataBind();
     }
 }