You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
8.4 KiB
169 lines
8.4 KiB
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocumentManage.aspx.cs" Inherits="Swift.web.MobileRemit.Admin.Operation.RenewID.DocumentManage" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<title></title>
|
|
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="/ui/css/style.css" rel="stylesheet" />
|
|
<script src="../../../../ui/js/jquery.min.js"></script>
|
|
<link href="../../../../ui/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
|
<link href="../../../../css/Crop/jquery.Jcrop.min.css" rel="stylesheet" />
|
|
<script src="../../../../js/Crop/jquery.Jcrop.min.js"></script>
|
|
<script src="/js/functions.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
|
|
var isSafari = navigator.userAgent.toLowerCase().indexOf('safari') > -1;
|
|
|
|
<%-- $(window).on("load", function () {
|
|
var width2 = jQuery('#<%=fileDisplay.ClientID%>').prop('naturalWidth');
|
|
var height2 = jQuery('#<%=fileDisplay.ClientID%>').prop('naturalHeight');
|
|
|
|
var editorID = '<%= fileDisplay.ClientID %>';
|
|
|
|
|
|
$('#' + editorID).Jcrop({
|
|
// aspectRatio: 1, //If you want to keep aspectRatio
|
|
onSelect: showCoords,
|
|
trueSize: [width2, height2]
|
|
});
|
|
});--%>
|
|
|
|
//window.addEventListener("beforeunload", function (event) {
|
|
// window.returnValue = msg;
|
|
// window.opener.focus();
|
|
// window.opener.PostMessageToParentProcess(window.returnValue);
|
|
// window.close();
|
|
//});
|
|
|
|
function RefreshParent() {
|
|
if (window.opener != null && !window.opener.closed) {
|
|
|
|
window.opener.focus();
|
|
window.opener.location.reload();
|
|
}
|
|
}
|
|
window.onbeforeunload = RefreshParent;
|
|
|
|
function showCoords(c) {
|
|
console.log(c);
|
|
|
|
var xField = document.getElementById('<%= _xField.ClientID %>');
|
|
var yField = document.getElementById('<%= _yField.ClientID %>');
|
|
var widthField = document.getElementById('<%= _widthField.ClientID %>');
|
|
var heightField = document.getElementById('<%= _heightField.ClientID %>');
|
|
|
|
xField.value = c.x.toFixed();
|
|
yField.value = c.y.toFixed();
|
|
widthField.value = c.w.toFixed();
|
|
heightField.value = c.h.toFixed();
|
|
}
|
|
|
|
|
|
function AfterSave(msg) {
|
|
|
|
window.returnValue = msg;
|
|
window.opener.focus();
|
|
window.opener.PostMessageToParentProcess(window.returnValue);
|
|
window.close();
|
|
}
|
|
|
|
function ErrorMoving(msg) {
|
|
alert(msg);
|
|
}
|
|
function copyToClipboard(element) {
|
|
var $temp = $("<input>");
|
|
$("body").append($temp);
|
|
$temp.val($(element).text()).select();
|
|
document.execCommand("copy");
|
|
$temp.remove();
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<asp:HiddenField ID="hdnFileName" runat="server" />
|
|
<asp:HiddenField ID="hdnDocumentTypeId" runat="server" />
|
|
<asp:HiddenField ID="hdncustomerId" runat="server" />
|
|
<asp:HiddenField ID="hdnMembershipId" runat="server" />
|
|
<asp:HiddenField ID="hdnCreatedBy" runat="server" />
|
|
<asp:HiddenField ID="hdnRegDate" runat="server" />
|
|
<asp:HiddenField ID="hdnFileType" runat="server" />
|
|
|
|
<input type="hidden" runat="server" id="_xField" />
|
|
<input type="hidden" runat="server" id="_yField" />
|
|
<input type="hidden" runat="server" id="_widthField" />
|
|
<input type="hidden" runat="server" id="_heightField" />
|
|
<div class="page-wrapper">
|
|
<div class="report-tab" runat="server" id="regUp">
|
|
<div class="tab-content">
|
|
<div role="tabpanel" class="tab-pane" id="List">
|
|
</div>
|
|
<div role="tabpanel" id="Manage">
|
|
<div class="row">
|
|
<div class="col-sm-12 col-md-12">
|
|
<div class="register-form">
|
|
<div class="panel panel-default clearfix m-b-20">
|
|
<div class="panel-heading">
|
|
<h4 class="panel-title">Customer Document View</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-md-12" id="msgDiv" runat="server" visible="false" style="background-color: red;">
|
|
<asp:Label ID="msgLabel" runat="server" ForeColor="White"></asp:Label>
|
|
</div>
|
|
|
|
<%--body part--%>
|
|
<div id="msg" runat="server" class="alert alert-info"></div>
|
|
<%--End body part--%>
|
|
<div class="col-md-4 form-group">
|
|
<label>Full Name/Membership Id:</label>
|
|
<asp:Label ID="lblName" runat="server"></asp:Label>
|
|
</div>
|
|
<div class="col-md-4 form-group">
|
|
<label>User Name:</label>
|
|
<asp:Label ID="lblUsername" runat="server"></asp:Label>
|
|
</div>
|
|
<div class="col-md-4 form-group">
|
|
<label>Id Type:</label>
|
|
<asp:Label ID="lblIdType" runat="server"></asp:Label>
|
|
</div>
|
|
<div class="col-md-4 form-group">
|
|
<label>Issued/Expiry Date:</label>
|
|
<asp:Label ID="lblIdIssuedExpiryDate" runat="server"></asp:Label>
|
|
</div>
|
|
<div class="col-md-4 form-group">
|
|
<label>ID Number:</label>
|
|
<strong>
|
|
<asp:Label ID="lblIdNumber" runat="server"></asp:Label>
|
|
</strong>
|
|
<span class="action-icon"><i class="fa fa-clipboard" title="Copy" onclick="copyToClipboard('#lblIdNumber')"></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="pdfDiv" runat="server">
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
<asp:Image runat="server" ID="fileDisplay" Style="height: 600px; width: 1100px;" />
|
|
</div>
|
|
<div class="form-group">
|
|
<asp:Button runat="server" ID="btnRotate" CssClass="btn btn-info m-t-25 " OnClick="btnRotate_Click" Text="Rotate" Visible="false" />
|
|
<asp:Button runat="server" ID="btnProcesssFile" CssClass="btn btn-primary m-t-25" Text="Process" OnClick="processsFile_Click" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html>
|