52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using BLL;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
|
|
namespace FineUIPro.Web.Controls
|
|
{
|
|
public partial class _3DLook : System.Web.UI.UserControl
|
|
{
|
|
public string Height { get; set; }
|
|
public string Width { get; set; }
|
|
/// <summary>
|
|
/// 数据包Json
|
|
/// </summary>
|
|
public Model.Parameter3D data
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
/// <summary>
|
|
/// 施工平台图纸页面
|
|
/// </summary>
|
|
public string Url
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public string Url_item
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
|
|
PageContext.RegisterStartupScript(String.Format("Bindiframe('{0}','{1}','{2}');", Url, Height, Width));
|
|
|
|
}
|
|
|
|
}
|
|
public void BindData()
|
|
{
|
|
string jsonParameter = JsonConvert.SerializeObject(data);
|
|
jsonParameter = Funs.JsonReplaceSign(jsonParameter);
|
|
PageContext.RegisterStartupScript(String.Format("BindData('{0}','{1}','{2}');", jsonParameter, this.Url_item, this.Url));
|
|
|
|
}
|
|
|
|
}
|
|
} |