Ejemplo n.º 1
0
        void showInfo()
        {
            BLL.wx_fc_yyInfo   yBll  = new BLL.wx_fc_yyInfo();
            BLL.wx_fc_floor    fBll  = new BLL.wx_fc_floor();
            BLL.wx_fc_yySysset ysBll = new BLL.wx_fc_yySysset();
            int yid = MyCommFun.Obj2Int(fBll.GetModel(fid).yid);

            photo = ysBll.GetModel(yid).headImg;
            this.rptDinfo.DataSource = yBll.GetList(string.Format(" openid='{0}' and wid={1} and fid={2}", openid, wid, fid));
            this.rptDinfo.DataBind();
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     id  = MyCommFun.RequestInt("id");
     fid = MyCommFun.RequestInt("fid");
     if (!IsPostBack)
     {
         DataRow dr = yiBll.GetList("id=" + id).Tables[0].Rows[0];
         lblObj.Text                  = dr["hxname"].ToString();
         lblPerson.Text               = dr["name"].ToString();
         lblRemark.Text               = dr["remark"].ToString();
         lblTelephone.Text            = dr["telephone"].ToString();
         lblxddate.Text               = MyCommFun.Obj2DateTime(dr["createdate"]).ToString("yyyy年MM月dd日 hh:mm:ss点");
         lblyydate.Text               = MyCommFun.Obj2DateTime(dr["yydate"]).ToString("yyyy-MM-dd") + " / " + dr["yydatepart"].ToString();
         this.ddlStatus.SelectedValue = dr["orderStatus"].ToString();
         this.txtkfremark.Text        = dr["kfRemark"].ToString();
     }
 }
Ejemplo n.º 3
0
        private void RptBind(string _strWhere, string _orderby)
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            _strWhere = "wId=" + weixin.id + " " + _strWhere;
            if (yyid >= 1)  //根据预约设置得到订单
            {
                _strWhere += " and yid=" + yyid;
            }
            else//根据楼盘得到订单
            {
                _strWhere += " and fid=" + fid;
            }
            this.page        = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;

            this.rptList.DataSource = bll.GetList(this.pageSize, page, _strWhere, _orderby, out totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("yyddMgr.aspx", "keywords={0}&page={1}&id={2}", this.keywords, "__id__", this.fid.ToString());

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }