上传不了 签名
This commit is contained in:
parent
a7ed28cda5
commit
1bd9ba36c3
|
|
@ -88,7 +88,7 @@
|
|||
<script src="../res/js/sign/LC700.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var keyId='<%=keyId%>'
|
||||
function upLoadFile(data) {
|
||||
$.ajax({
|
||||
url: "LC700.aspx/UploadData",
|
||||
|
|
@ -96,7 +96,8 @@
|
|||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
data: JSON.stringify({
|
||||
data: data
|
||||
data: data,
|
||||
keyId: keyId
|
||||
}),
|
||||
success: function (data) {
|
||||
/*window.parent.backData(data.d)*/
|
||||
|
|
|
|||
|
|
@ -13,13 +13,25 @@ namespace FineUIPro.Web.Sign
|
|||
{
|
||||
public partial class LC700 : PageBase
|
||||
{
|
||||
|
||||
public string keyId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["keyId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["keyId"] = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
BLL.Funs.usingMatId = Request.Params["keyId"];
|
||||
keyId = Request.Params["keyId"];
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public static string UploadData(string data)
|
||||
public static string UploadData(string keyId,string data)
|
||||
{
|
||||
byte[] imageBytes = Convert.FromBase64String(data);
|
||||
string filePath = "/FileUpLoad/Sign/" + DateTime.Now.ToString("yyyyMMddhhmmss") + ".jpeg";
|
||||
|
|
@ -40,8 +52,8 @@ namespace FineUIPro.Web.Sign
|
|||
image.Save(BLL.Funs.RootPath + filePath, System.Drawing.Imaging.ImageFormat.Jpeg);
|
||||
}
|
||||
}
|
||||
var usingMat = BLL.UsingMatService.GetUsingMatById(BLL.Funs.usingMatId);
|
||||
BLL.UsingMatService.WelderConfirm(BLL.Funs.usingMatId, true, filePath);
|
||||
var usingMat = BLL.UsingMatService.GetUsingMatById(keyId);
|
||||
BLL.UsingMatService.WelderConfirm(keyId, true, filePath);
|
||||
return filePath;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue