• R/O
  • HTTP
  • SSH
  • HTTPS

e-dokyumento: Commit

e-Dokyumento is an opensource Document Management System that stores, organizes, indexes, routes, and tracks electronic documents. It automates the basic office document workflow such as receiving, filing, routing, and approving of hard-printed documents through capturing (scanning), digitizing (OCR Reading), storing, tagging, and electronically routing and approving (e-signature) of documents.


Commit MetaInfo

Revisionad3a9076f64a37f79c749adeca81cc7ac49c4424 (tree)
Zeit2020-08-25 21:44:29
AutorNelson Maligro <nelsonmaligro@gmai...>
CommiterNelson Maligro

Log Message

25 Aug 2020

Ändern Zusammenfassung

Diff

--- a/controllers/login.js
+++ b/controllers/login.js
@@ -32,6 +32,10 @@ module.exports = function(app){
3232 app.use(passport.initialize());
3333 app.use(passport.session());
3434
35+ //get verify documents QR Code
36+ app.get('/verifydoc', function(req, res){
37+ return res.render('verifydoc', {layout:'empty'});
38+ });
3539 //post incoming with params
3640 app.post('/', function(req,res, next) {
3741 passport.authenticate('login', {session:false}, function (err,passportuser,info){
Binary files /dev/null and b/docs/Administrator Guide.docx differ
Binary files /dev/null and b/docs/Administrator Guide.pdf differ
Binary files /dev/null and b/docs/Annotate and Sign Documents.docx differ
Binary files /dev/null and b/docs/Annotate and Sign Documents.pdf differ
--- /dev/null
+++ b/public/assets/verifydoc.js
@@ -0,0 +1,51 @@
1+var scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
2+scanner.addListener('scan', function (content, image) {
3+ submitQRPass(content);
4+});
5+
6+function openCam(){
7+ Instascan.Camera.getCameras().then(function (cameras) {
8+ if (cameras.length > 0) {
9+ scanner.start(cameras[0]);
10+ }
11+ });
12+}
13+
14+function submitQRPass(content){
15+ alert(content);
16+ /*
17+ var hash = new Hashes.SHA512().b64(content); var branch= "N6"; var action= '6';
18+ if ($('#disLevel').val().toUpperCase()=='DEP') {branch = "N6"; action='1';}
19+ else if ($('#disLevel').val().toUpperCase()=='EAGM') {branch = "G.M."; action='1';}
20+ else if ($('#disLevel').val().toUpperCase()=='DUTYADMIN') branch = "Duty Admin";
21+ else branch = "Receiving";
22+ var todo = {filename:$('#fileroute').val(),monitfile:$('#fileroute').val(),user:getCookie('me'),hashval:hash, action:action,remark:'', branch:branch,subject:''};
23+ $.ajax({
24+ type: 'POST',
25+ url: '/scancode',
26+ data: todo,
27+ success: function(data){
28+ if (data=='successful') {
29+ lastQRCode = hash;
30+ $('#routeattachPage').hide();
31+ var options = {
32+ height: "400px",
33+ };
34+ PDFObject.embed('/drive/PDF-temp/route-'+$('#fileroute').val()+'.pdf', "#routeattachPage",options);
35+ scanner.stop();$('#app').hide();$('#passapp').hide(); valPass = false;togglecam=false;
36+ releasethisdoc();
37+ } else {
38+ alert('QR Code or Password Fail!');$('#verPass').val('');
39+ }
40+ }
41+ });
42+ */
43+}
44+function closeDialog(){
45+ scanner.stop();
46+}
47+
48+//Load when html renders
49+$(document).ready(function(){
50+ openCam();
51+});
Binary files /dev/null and b/public/drive/PDF-temp/Bibliography 14Feb2019.docx.eric.pdf differ
Binary files /dev/null and b/public/drive/PDF-temp/route-Bibliography 14Feb2019.docx.eric.pdf.pdf differ
Binary files a/public/drive/PDF-temp/sam.pdf and b/public/drive/PDF-temp/sam.pdf differ
Binary files /dev/null and b/public/drive/PDF-temp/sam.res.pdf differ
--- a/views/empty.ejs
+++ b/views/empty.ejs
@@ -21,7 +21,6 @@
2121 <link rel="stylesheet" href="/vendors/themify-icons/css/themify-icons.css">
2222 <link rel="stylesheet" href="/vendors/flag-icon-css/css/flag-icon.min.css">
2323 <link rel="stylesheet" href="/vendors/selectFX/css/cs-skin-elastic.css">
24-
2524 <link rel="stylesheet" href="/assets/css/style.css">
2625 <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800' rel='stylesheet' type='text/css'>
2726
--- a/views/layout.ejs
+++ b/views/layout.ejs
@@ -9,8 +9,8 @@
99 <head>
1010 <meta charset="utf-8">
1111 <meta http-equiv="X-UA-Compatible" content="IE=edge">
12- <title>Philippine Navy Document Management System</title>
13- <meta name="description" content="PN Dokyu - HTML5 Dokyu Template">
12+ <title>Electronic Document Management System</title>
13+ <meta name="description" content="e-Dokyumento - HTML5 Dokyu Template">
1414 <meta name="viewport" content="width=device-width, initial-scale=1">
1515
1616 <link rel="apple-touch-icon" href="/logo2.png">
@@ -46,7 +46,7 @@
4646 <li class="active">
4747 <a href="/incoming"> <i class="menu-icon fa fa-dashboard"></i>Incoming </a>
4848 </li>
49-
49+
5050 </ul>
5151 </div><!-- /.navbar-collapse -->
5252 </nav>
--- /dev/null
+++ b/views/verifydoc.ejs
@@ -0,0 +1,27 @@
1+ <div class="sufee-login d-flex align-content-center flex-wrap">
2+ <div class="container">
3+ <div class="login-content">
4+ <div class="login-logo">
5+ <a href="index.html">
6+ <img class="align-content" src="/images/logolarge.png" alt="">
7+ </a>
8+ </div>
9+ <div style="height:420px;width:660px;" class="login-form">
10+ <div style="background:#263238; align-items: stretch;justify-content:stretch;height:100%;" class='col-lg-12' id="app">
11+ <div class="preview-container" style="align-items:center;justify-content: center;">
12+ <video style="margin-left:-15px;margin-top:-5px;width:600px;" id="preview"></video>
13+ </div>
14+ </div>
15+ </div>
16+ <br>
17+ <div id="alert" class="alert alert-success" style="width:660px;text-align:center;" role="alert"> Document Verified! Record Exist.
18+ </div>
19+
20+ </div>
21+ </div>
22+ </div>
23+ <script src="/vendors/jquery/dist/jquery.min.js"></script>
24+ <script type="text/javascript" src="/assets/js/adapter.min.js"></script>
25+ <script type="text/javascript" src="/assets/js/vue.min.js"></script>
26+ <script type="text/javascript" src="/assets/js/instascan.min.js"></script>
27+ <script src="/assets/verifydoc.js"></script>
Show on old repository browser