Esempio n. 1
0
 private void ShowInfo(int _id)
 {
     Model.wx_fc_aboutWe model = bll.GetModel(_id);
     this.txtAddress.Text     = model.address;
     this.txtDetail.InnerText = model.newsDetail;
     this.txtLatXPoint.Text   = model.lngX.ToString();
     this.txtLngYPoint.Text   = model.latY.ToString();
     this.txtLogo.Text        = model.logoAddress;
     this.imgLogo.ImageUrl    = model.logoAddress;
     this.txtMobilephone.Text = model.mobilephone;
     this.txtName.Text        = model.name;
     this.txtSort_id.Text     = model.sort_id.ToString();
     this.txtTelephone.Text   = model.telephone.ToString();
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     gid = MXRequest.GetQueryInt("gid");
     fid = MXRequest.GetQueryInt("fid");
     if (!IsPostBack)
     {
         BLL.wx_fc_aboutWe awBll = new BLL.wx_fc_aboutWe();
         BLL.wx_fc_floor   fBll  = new BLL.wx_fc_floor();
         if (gid > 0)
         {
             Model.wx_fc_aboutWe awModel = awBll.GetModel(gid);
             address = awModel.address;
             name    = awModel.name;
             logourl = awModel.logoAddress;
             tel     = awModel.telephone;
             x       = awModel.latY;
             y       = awModel.lngX;
         }
         if (fid > 0)
         {
             Model.wx_fc_floor fModel = fBll.GetModel(fid);
             address = fModel.Address;
             name    = fModel.newsTitle;
             logourl = fModel.newsCover;
             y       = fModel.latY;
             x       = fModel.lngX;
         }
     }
 }