SGGL_SHJ/SGGL/FineUIPro.Web/Controls/_3DLook.ascx.cs

52 lines
1.2 KiB
C#
Raw Normal View History

2023-02-14 19:59:12 +08:00
using BLL;
using Newtonsoft.Json;
2022-09-05 16:36:31 +08:00
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);
2023-02-14 19:59:12 +08:00
jsonParameter = Funs.JsonReplaceSign(jsonParameter);
2022-09-05 16:36:31 +08:00
PageContext.RegisterStartupScript(String.Format("BindData('{0}','{1}','{2}');", jsonParameter, this.Url_item, this.Url));
}
}
}