This commit is contained in:
2018-06-29 19:47:36 +00:00
commit be7f501333
3769 changed files with 1425961 additions and 0 deletions

45
source/WBI/sign.aspx.cs Normal file
View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing.Drawing2D;
using System.Drawing;
using System.Drawing.Imaging;
using GZTW.AyaNova.BLL;
public partial class sign : System.Web.UI.Page
{
/**
* Inspired by the:
* Click and drag your mouse or touch and move your finger or stylus in the box below
* jQuery DrawBox Plug-In 1.0
*
* http://github.com/crowdsavings/drawbox
* http://plugins.jquery.com/project/drawbox
*
*/
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
object o = Page.Request["sigpad-data"];
if (o!=null && !string.IsNullOrWhiteSpace(o.ToString()))
{
AySignature sig = new AySignature(o.ToString());
if (sig.HasSignature)
{
Response.ContentType = "image/png";
sig.SignatureBitmap.Save(Response.OutputStream, ImageFormat.Png);
}
}
}
}
}