ZHJA_HJGL/HJGL_ZH/FineUIPro.Web/common/WelderManage/SeeQRImage.aspx.cs

34 lines
1.1 KiB
C#

using System;
using System.Web;
using System.Web.UI;
namespace FineUIPro.Web.PersonManage
{
public partial class SeeQRImage : Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!string.IsNullOrEmpty(Request.Params["WelderId"]))
{
var welder = BLL.HJGL_PersonManageService.GetWelderByWenId(Request.Params["WelderId"]);
if (welder != null && !string.IsNullOrEmpty(welder.AttachUrl))
{
this.Image1.ImageUrl = "~/" + welder.AttachUrl;
}
}
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = this.Image1.ImageUrl;
process.StartInfo.Arguments = "rundll32.exe C://WINDOWS//system32//shimgvw.dll";
process.StartInfo.UseShellExecute = true;
process.Start();
}
}
}