115 lines
3.8 KiB
Plaintext
115 lines
3.8 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LC700.aspx.cs" Inherits="FineUIPro.Web.Sign.LC700" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server" >
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<link rel="stylesheet" href="../res/css/sign/main.css">
|
|
<link rel="stylesheet" href="../res/css/sign/LC700.css">
|
|
<script src="../res/js/sign/vendor/modernizr.js"></script>
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"></f:PageManager>
|
|
<f:Panel ID="Panel1" Layout="Region" ShowBorder="false" ShowHeader="false" runat="server">
|
|
<Items>
|
|
<f:ContentPanel ID="topPanel" CssClass="topregion" RegionPosition="Top" ShowBorder="false" ShowHeader="false" EnableCollapse="true" runat="server">
|
|
<div class="container">
|
|
|
|
|
|
<div class="row-canvas">
|
|
<canvas id="ppCanvas" width="740" height="480"></canvas>
|
|
<div class="shutdown"></div>
|
|
</div>
|
|
|
|
|
|
<div class="row" style="display:none">
|
|
<div class="col-md-12">
|
|
|
|
<!-- Table 1 -->
|
|
<table width="100%" class="functions">
|
|
<tbody>
|
|
<!-- Cols 1 -->
|
|
<tr>
|
|
<td width="16.65%">
|
|
<button type="button" id="initBtn" class="btn btn-block btn-success btn-sm" onclick="initDevice()">Initialize Device</button>
|
|
</td>
|
|
<td width="16.65%">
|
|
<button type="button" id="uninitBtn" class="btn btn-block btn-success btn-sm init" onclick="uninitDevice()" disabled>Uninitialize Device</button>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- Cols 3 -->
|
|
<tr >
|
|
<td>
|
|
<button type="button" class="btn btn-block btn-success btn-sm init" onclick="saveDrawing()" disabled>Save Drawing Image</button>
|
|
</td>
|
|
<td>
|
|
<select id="sdType" class="form-control init" disabled>
|
|
<option value="1">BMP</option>
|
|
<option value="2" selected="selected">JPG</option>
|
|
<option value="3">PNG</option>
|
|
<option value="4">GIF</option>
|
|
<option value="5">TIFF</option>
|
|
<option value="7">PDF</option>
|
|
<option value="8">SVG</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<select id="sdDpi" class="form-control init" disabled>
|
|
<option value="0">150 dpi</option>
|
|
<option value="1">300 dpi</option>
|
|
</select>
|
|
</td>
|
|
<input type="file" id="fileInput"/>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</f:ContentPanel>
|
|
</Items>
|
|
</f:Panel>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|
|
<%--<script src="../res/js/sign/vendor.js"></script>--%>
|
|
<%--<script src="../res/js/sign/plugins.js"></script>--%>
|
|
<script src="../res/js/sign/LC700.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function upLoadFile(data) {
|
|
$.ajax({
|
|
url: "LC700.aspx/UploadData",
|
|
type: "POST",
|
|
contentType: "application/json; charset=utf-8",
|
|
dataType: "json",
|
|
data: JSON.stringify({
|
|
data: data
|
|
}),
|
|
success: function (data) {
|
|
/*window.parent.backData(data.d)*/
|
|
|
|
var activeWindow = F.getActiveWindow();
|
|
activeWindow.window.backData(data.d);
|
|
activeWindow.hide();
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|