protected void Page_Load(object sender, EventArgs e) { wid = MyCommFun.RequestInt("wid"); fid = MyCommFun.RequestInt("fid"); id = MyCommFun.RequestInt("id"); int pid = MyCommFun.RequestInt("pid"); openid = MyCommFun.QueryString("openid"); if (!IsPostBack) { BLL.wx_fc_panorama pBll = new BLL.wx_fc_panorama(); Model.wx_fc_panorama pModel = null; if (pid != 0)//当页面从户型页面过来 { id = getPid(pid); pModel = pBll.GetModel(MyCommFun.Obj2Int(id)); } else//当页面从全景图页面过来 { pModel = pBll.GetModel(MyCommFun.Obj2Int(id)); } title = pModel.jdname; this.Title = title; } }
private void TreeBind() { Model.wx_userweixin weixin = GetWeiXinCode(); //全景图 BLL.wx_fc_panorama pBll = new BLL.wx_fc_panorama(); DataTable pdt = pBll.GetList(" wid=" + weixin.id).Tables[0]; this.ddlPanorama.Items.Clear(); this.ddlPanorama.Items.Add(new ListItem("请选择全景相册...", "")); foreach (DataRow dr in pdt.Rows) { string Id = dr["id"].ToString(); string Title = dr["jdname"].ToString().Trim(); this.ddlPanorama.Items.Add(new ListItem(Title, Id)); } //子楼盘 BLL.wx_fc_sonfloor sBll = new BLL.wx_fc_sonfloor(); DataTable sdt = sBll.GetList(" wid=" + weixin.id + " and fid=" + fid).Tables[0]; this.ddlSonfloor.Items.Clear(); this.ddlSonfloor.Items.Add(new ListItem("请选择子楼盘...", "")); foreach (DataRow dr in sdt.Rows) { string Id = dr["id"].ToString(); string Title = dr["name"].ToString().Trim(); this.ddlSonfloor.Items.Add(new ListItem(Title, Id)); } }
private void TreeBind() { Model.wx_userweixin weixin = GetWeiXinCode(); BLL.wx_fc_yySysset bll = new BLL.wx_fc_yySysset(); BLL.wx_fc_panorama pBll = new BLL.wx_fc_panorama(); DataTable pDt = pBll.GetList(" wid=" + weixin.id).Tables[0]; this.ddlQjt.Items.Clear(); this.ddlQjt.Items.Add(new ListItem("请选择全景图...", "")); foreach (DataRow dr in pDt.Rows) { string Id = dr["id"].ToString(); string Title = dr["jdname"].ToString().Trim(); this.ddlQjt.Items.Add(new ListItem(Title, Id)); } DataTable dt = bll.GetList(" wid=" + weixin.id).Tables[0]; this.ddlYybm.Items.Clear(); this.ddlYybm.Items.Add(new ListItem("请选择预约版面...", "")); foreach (DataRow dr in dt.Rows) { string Id = dr["id"].ToString(); string Title = dr["address"].ToString().Trim(); this.ddlYybm.Items.Add(new ListItem(Title, Id)); } }
protected void Page_Load(object sender, EventArgs e) { wid = MyCommFun.RequestInt("wid"); fid = MyCommFun.RequestInt("fid"); id = MyCommFun.RequestInt("id"); openid = MyCommFun.QueryString("openid"); if (!IsPostBack) { BLL.wx_fc_panorama pBll = new BLL.wx_fc_panorama(); this.rptView.DataSource = pBll.GetModelList(" fid=" + fid); this.rptView.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Response.ContentType = "text/xml"; int id = MyCommFun.RequestInt("id"); if (id <= 0) { return; } BLL.wx_fc_panorama pbll = new BLL.wx_fc_panorama(); Model.wx_fc_panorama pano = pbll.GetModel(id); StringBuilder sb = new StringBuilder(""); sb.Append("<panorama id=\"\">"); sb.Append("<view fovmode=\"0\" pannorth=\"0\"><start pan=\"0\" fov=\"70\" tilt=\"0\"/><min pan=\"0\" fov=\"5\" tilt=\"-90\"/>"); sb.Append("<max pan=\"360\" fov=\"120\" tilt=\"90\"/></view>"); sb.Append("<input tilesize=\"685\" tilescale=\"1.014598540145985\" tile0url=\"" + getPicUrl(pano.pri_front) + "\" tile1url=\"" + getPicUrl(pano.pic_right) + "\" tile2url=\"" + getPicUrl(pano.pic_behind) + "\" tile3url=\"" + getPicUrl(pano.pic_left) + "\" tile4url=\"" + getPicUrl(pano.pic_top) + "\" tile5url=\"" + getPicUrl(pano.pic_bottom) + "\" />"); sb.Append("<userdata title=\"mxweixin_pano\" datetime=\"2011:11:03 09:41:07\" description=\"description\" copyright=\"copyright\" tags=\"tags\" author=\"author\" source=\"source\" comment=\"comment\" info=\"info\" longitude=\"0\" latitude=\"\"/>"); sb.Append("<autorotate speed=\"0.200\" nodedelay=\"0.00\" startloaded=\"1\" returntohorizon=\"0.000\" delay=\"5.00\"/>"); sb.Append("<control sensitivity=\"8\" simulatemass=\"1\" lockedmouse=\"0\" lockedkeyboard=\"0\" lockedwheel=\"0\" invertwheel=\"0\" speedwheel=\"1\" dblclickfullscreen=\"0\" invertcontrol=\"1\" />"); sb.Append("<sounds></sounds>"); sb.Append("</panorama>"); //string one = pano.pri_front; //string two = pano.pic_right; //string thr = pano.pic_behind; //string fou = pano.pic_left; //string fiv = pano.pic_top; //string six = pano.pic_bottom; //sb.Append("<panorama id=\"\" hideabout=\"1\"><view fovmode=\"0\" pannorth=\"0\">"); //sb.Append("<start pan=\"5.5\" fov=\"80\" tilt=\"1.5\"/><min pan=\"0\" fov=\"80\" tilt=\"-90\"/>"); //sb.Append("<max pan=\"360\" fov=\"80\" tilt=\"90\"/></view>"); //sb.Append("<userdata title=\"\" datetime=\"2013:05:23 21:01:02\" description=\"\" copyright=\"\" tags=\"\" author=\"\" source=\"\" comment=\"\" info=\"\" longitude=\"\" latitude=\"\"/>"); //sb.Append("<hotspots width=\"180\" height=\"20\" wordwrap=\"1\">"); //sb.Append("<label width=\"180\" backgroundalpha=\"1\" enabled=\"1\" height=\"20\" backgroundcolor=\"0xffffff\" bordercolor=\"0x000000\" border=\"1\" textcolor=\"0x000000\" background=\"1\" borderalpha=\"1\" borderradius=\"1\" wordwrap=\"1\" textalpha=\"1\"/>"); //sb.Append("<polystyle mode=\"0\" backgroundalpha=\"0.2509803921568627\" backgroundcolor=\"0x0000ff\" bordercolor=\"0x0000ff\" borderalpha=\"1\"/></hotspots><media/>"); //sb.Append("<input tilesize=\"700\" tilescale=\"1.014285714285714\" tile0url=\"" + one + "\" tile1url=\"" + two + "\" tile2url=\"" + thr + "\" tile3url=\"" + fou + "\" tile4url=\"" + fiv + "\" tile5url=\"" + six + "\"/>"); //sb.Append("<autorotate speed=\"0.200\" nodedelay=\"0.00\" startloaded=\"1\" returntohorizon=\"0.000\" delay=\"5.00\"/>"); //sb.Append("<control simulatemass=\"1\" lockedmouse=\"0\" lockedkeyboard=\"0\" dblclickfullscreen=\"0\" invertwheel=\"0\" lockedwheel=\"0\" invertcontrol=\"1\" speedwheel=\"1\" sensitivity=\"8\"/>"); //sb.Append("</panorama>"); Response.Write(sb.ToString()); } }