-
Notifications
You must be signed in to change notification settings - Fork 0
/
Scan.aspx
145 lines (125 loc) · 6.98 KB
/
Scan.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<%@ Page Title="" Language="C#" MasterPageFile="~/CherryPantry.Master" AutoEventWireup="true" CodeBehind="Scan.aspx.cs" Inherits="FoodPantry.Scan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="css/scan.css" />
<link href="QuaggaJS/example/css/styles.css" rel="stylesheet" />
<link href="css/DatatableMaster.css" rel="stylesheet" />
<link href="tooltipster/dist/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-noir.min.css" rel="stylesheet" />
<script src="DataTables/datatables.min.js"></script>
<link href="DataTables/datatables.min.css" rel="stylesheet" />
<script src="DataTables/Responsive-2.2.2/js/responsive.bootstrap.min.js"></script>
<%--<script src="DataTables/Responsive-2.2.2/js/dataTables.responsive.min.js"></script>--%>
<%--<script src="js/scantest.js"></script>--%>
<script src="js/Scan.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script>
<script type="text/javascript" src="https://unpkg.com/rmodal/dist/rmodal.js"></script>
<link rel="stylesheet" href="https://unpkg.com/animate.css/animate.css" type="text/css" />
<link rel="stylesheet" href="https://unpkg.com/rmodal/dist/rmodal.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="tooltipster/dist/css/tooltipster.bundle.min.css" />
<script type="text/javascript" src="tooltipster/dist/js/tooltipster.bundle.min.js"></script>
<meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=no" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageTitle" runat="server">
<%-- Checkout Items--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="modal" class="modal">
<div class="modal-dialog animated">
<div class="modal-content">
<form class="form-horizontal" method="get">
<div class="modal-header">
<strong>Add New Item</strong>
</div>
<div class="modal-body">
<div class="modal-error"></div>
<div class="form-group">
<label for="txtUPC" class="control-label col-xs-4">UPC Code</label>
<div class="input-group-fluid col-xs-7">
<input type="text" id="txtUPC" class="form-control" readonly />
</div>
<label for="txtCategory" class="control-label col-xs-4">Category</label>
<div class="input-group-fluid col-xs-7">
<input type="text" id="txtCategory" class="form-control" />
</div>
<label for="txtWeight" class="control-label col-xs-4">Weight</label>
<div class="input-group-fluid col-xs-7">
<input type="text" id="txtWeight" class="form-control" />
</div>
<%--<label for="txtQuantity" class="control-label col-xs-4">Quantity</label>
<div class="input-group-fluid col-xs-7">
<input type="text" id="txtQuantity" class="form-control" />
</div>--%>
<label for="txtPoint" class="control-label col-xs-4">Point Value</label>
<div class="input-group-fluid col-xs-7">
<input type="text" id="txtPoint" class="form-control" />
</div>
</div>
</div>
<div class="modal-footer">
<button id="btnModalCancel" class="btn btn-default" type="button" onclick="modal.close();">Cancel</button>
<button id="btnModalSave" class="btn btn-primary" type="button">Save</button>
</div>
</form>
</div>
</div>
</div>
<div class="content" id="mainContent">
029385728395
<div class="row" id="controlRow">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-header">
<h3>Scan UPC Code</h3>
</div>
<div class="box-body">
<input type="text" id="txtSearchUPC" title="Please Continue Using Scanner Device" class="form-control form-control-danger tooltipper" placeholder="UPC Code" />
<div class="buttonWrapper">
<asp:Button runat="server" ID="btnSearch" Text="Search" OnClientClick="return false;" CssClass="btn btn-info scanButton" />
</div>
</div>
</div>
<div class="box box-success">
<div class="box-header">
<h3>Cart</h3>
</div>
<div class="box-body">
<table id="table" class="table table-bordered">
<thead>
<tr>
<th></th>
<th>UPC</th>
<th>Category</th>
<th>Quantity</th>
<th>Weight</th>
<th>Points</th>
<th style="width: 20%;">Total Points</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th style="text-align: right">Total:</th>
<th id="totalCell"></th>
</tr>
</tfoot>
</table>
</div>
</div>
<div class="box box-success">
<div class="box-body">
<div class="buttonWrapper">
<input id="btnCheckout" class="btn btn-success scanButton" type="button" value="Checkout" onclick="checkout()" />
<input id="btnClearCart" class="btn btn-warning scanButton" type="button" value="Clear Cart" onclick="clearCart()" />
</div>
</div>
</div>
</div>
</div>
</div>
</asp:Content>