Files
NKC/NKC_WF/WebUserControls/cmp_offOrderDetail.ascx.cs
T
2019-10-15 18:37:02 +02:00

55 lines
1.2 KiB
C#

using System;
using System.IO;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace NKC_WF.WebUserControls
{
public partial class cmp_offOrderDetail : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
public int OffOrdId
{
get
{
int answ = 0;
int.TryParse(hfOffOrderId.Value, out answ);
return answ;
}
set
{
hfOffOrderId.Value = value.ToString();
// faccio udpate svg...
frmView.DataBind();
}
}
protected void frmView_DataBound(object sender, EventArgs e)
{
try
{
Label filePath = (Label)frmView.FindControl("DrawFilePathLabel");
string filename = Server.MapPath(filePath.Text);
string svgRawData = File.ReadAllText(filename);
HtmlGenericControl svgControl = (HtmlGenericControl)frmView.FindControl("svgTable");
svgControl.InnerHtml = svgRawData;
}
catch (Exception exc)
{ }
}
protected void lbtMakeCnc_Click(object sender, EventArgs e)
{
}
protected void lbtPrintLabels_Click(object sender, EventArgs e)
{
}
}
}