-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmOrdenCarrito.aspx
374 lines (271 loc) · 12.5 KB
/
frmOrdenCarrito.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="frmOrdenCarrito.aspx.vb" Inherits="frmOrdenCarrito" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script src="Scripts/bootstrap-datepicker.min.js"></script>
<link href="Content/bootstrap-datepicker.min.css" rel="stylesheet" />
<style runat="server" id="estilo"></style>
<div id="page-wrapper">
<div class="row">
<style>
.abc table {
background: #f5f5f5;
border-collapse: separate;
box-shadow: inset 0 1px 0 #fff;
font-size: 12px;
line-height: 24px;
margin: 30px auto;
text-align: left;
width: 800px;
}
th {
background: url(http://jackrugile.com/images/misc/noise-diagonal.png), linear-gradient(#777, #444);
border-left: 1px solid #555;
border-right: 1px solid #777;
border-top: 1px solid #555;
border-bottom: 1px solid #333;
box-shadow: inset 0 1px 0 #999;
color: #fff;
font-weight: bold;
padding: 10px 15px;
position: relative;
text-shadow: 0 1px 0 #000;
}
th:after {
background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.08));
content: '';
display: block;
height: 25%;
left: 0;
margin: 1px 0 0 0;
position: absolute;
top: 25%;
width: 100%;
}
th:first-child {
border-left: 1px solid #777;
box-shadow: inset 1px 1px 0 #999;
}
th:last-child {
box-shadow: inset -1px 1px 0 #999;
}
td {
border-right: 1px solid #fff;
border-left: 1px solid #e8e8e8;
border-top: 1px solid #fff;
border-bottom: 1px solid #e8e8e8;
padding: 10px 15px;
position: relative;
transition: all 300ms;
}
td:first-child {
box-shadow: inset 1px 0 0 #fff;
}
td:last-child {
border-right: 1px solid #e8e8e8;
box-shadow: inset -1px 0 0 #fff;
}
tr {
}
tr:nth-child(odd) td {
background: #f1f1f1;
}
tr:last-of-type td {
box-shadow: inset 0 -1px 0 #fff;
}
tr:last-of-type td:first-child {
box-shadow: inset 1px -1px 0 #fff;
}
tr:last-of-type td:last-child {
box-shadow: inset -1px -1px 0 #fff;
}
tbody:hover td {
}
tbody:hover tr:hover td {
color: #444;
}
.row {
margin-right: 0px;
margin-left: 0px;
}
.row-centered {
text-align: center;
}
.col-centered {
display: inline-block;
float: none;
/* reset the text-align */
text-align: left;
/* inline-block space fix */
margin-right: -4px;
}
.col-fixed {
/* custom width */
width: 220px;
}
.col-min {
/* custom min width */
min-width: 320px;
}
.col-max {
/* custom max width */
max-width: 320px;
}
/* visual styles */
h1 {
margin: 40px 0px 20px 0px;
color: #95c500;
font-size: 28px;
line-height: 34px;
text-align: center;
}
[class*="col-"] {
padding-top: 10px;
padding-bottom: 15px;
}
[class*="col-"]:before {
display: block;
position: relative;
margin-bottom: 8px;
font-family: sans-serif;
font-size: 10px;
letter-spacing: 1px;
color: #658600;
text-align: left;
}
.item {
width: 100%;
height: 100%;
border: 1px solid #cecece;
padding: 16px 8px;
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,color-stop(0%, #f4f4f4), color-stop(100%, #ededed));
background: -moz-linear-gradient(top, #f4f4f4 0%, #ededed 100%);
background: -ms-linear-gradient(top, #f4f4f4 0%, #ededed 100%);
}
/* content styles */
.item {
display: table;
}
.content {
display: table-cell;
vertical-align: middle;
text-align: center;
}
.content:before {
content: "Content";
font-family: sans-serif;
font-size: 12px;
letter-spacing: 1px;
color: #747474;
}
/* centering styles for jsbin */
</style>
<div class="titulolink">
<br />
<a href="frmInicio.aspx"><i class="fa fa-home fa-fw"></i></a>>
<a href="frmOrden.aspx">Orden de compra</a>>
<a href="#">Carrito</a>>
<br />
<br />
</div>
<script>
$('.input-group.date').datepicker({
autoclose: true, format: 'yyyy-mm-dd'
});
</script>
<button type="button" runat="server" id="Limpiarcarro" class="btn btn-default btn-md" style="float: right;">
Limpiar carrito <i class="fa fa-trash "></i>
</button>
<br />
<br />
<div id="tablaprueba" runat="server" style="width: auto; overflow-x: auto;">
<div style="min-width: 600px;">
<asp:Table ID="Table1" class="table abc" runat="server" Style="width: 100%; min-width: 600px">
<asp:TableHeaderRow>
<asp:TableHeaderCell>Articulo</asp:TableHeaderCell>
<asp:TableHeaderCell>Cantidad</asp:TableHeaderCell>
<asp:TableHeaderCell>Precio unitario</asp:TableHeaderCell>
<asp:TableHeaderCell>Descuento</asp:TableHeaderCell>
<asp:TableHeaderCell>Precio tras descuento</asp:TableHeaderCell>
<%--<asp:TableHeaderCell>Descuento</asp:TableHeaderCell>--%>
<asp:TableHeaderCell>Precio total</asp:TableHeaderCell>
<asp:TableHeaderCell>Nota de Articulo</asp:TableHeaderCell>
</asp:TableHeaderRow>
</asp:Table>
</div>
</div>
<asp:CheckBox ID="CheckMail" runat="server" Checked /> Envio por Mail
<div style="width: 180px; margin-left: auto">
Notas:<textarea id="TextArea1" cols="20" rows="2" runat="server" class="form-control"></textarea>
</div>
<br />
<button type="button" runat="server" id="regresar" class="btn btn-default btn-md" style="">
<i class="fa fa-arrow-left"></i>Continuar agregando
</button>
<asp:Button type="button" runat="server" ID="confirmar" Text="confirmar" OnClick="OnConfirm" class="btn btn-default btn-md" OnClientClick="Confirm()" Style="float: right" />
<br />
<br />
<br />
<br />
<input type="text" runat="server" id="actuacan" clientidmode="Static" style="display: none" />
<input type="text" runat="server" id="actuaid" clientidmode="Static" style="display: none" />
<button id="secretbutton" runat="server" class="btn btn-default" type="button" style="display: none">dois</button>
<button id="cambioPorcentaje" runat="server" class="btn btn-default" type="button" style="display: none">dois</button>
<button id="cambioNota" runat="server" class="btn btn-default" type="button" style="display: none">dois</button>
<script type="text/javascript">
function Confirm() {
var confirm_value = document.createElement("INPUT");
confirm_value.type = "hidden";
confirm_value.name = "confirm_value";
if (confirm("Desea agregar este documento?")) {
confirm_value.value = "Ok";
} else {
confirm_value.value = "Cancel";
}
document.forms[0].appendChild(confirm_value);
}
</script>
<%--<asp:Button ID="btnConfirm" runat="server" OnClick = "OnConfirm" Text = "Raise Confirm" OnClientClick = "Confirm()"/>--%>
<script>
function myFunction(val, id) {
if (val < 1) {
var confirm_value = document.createElement("INPUT");
confirm_value.type = "hidden";
confirm_value.name = "confirm_value";
if (confirm("Desea borrar del carrito?")) {
document.getElementById("actuacan").value = val;
document.getElementById("actuaid").value = id.substring(3, id.length);
confirm_value.value = "Ok";
} else {
confirm_value.value = "Cancel";
}
document.forms[0].appendChild(confirm_value);
}
else {
var confirm_value = document.createElement("INPUT");
confirm_value.type = "hidden";
confirm_value.name = "confirm_value";
confirm_value.value = "Ok";
document.getElementById("actuacan").value = val;
document.getElementById("actuaid").value = id.substring(3, id.length);
document.forms[0].appendChild(confirm_value);
}
document.getElementById('<%= secretbutton.ClientID%>').click();
reload();
}
function porcentaje(val, id) {
document.getElementById("actuacan").value = val;
document.getElementById("actuaid").value = id.substring(3, id.length);
document.getElementById('<%= cambioPorcentaje.ClientID%>').click();
reload();
}
function NotaArt(val, id) {
document.getElementById("actuacan").value = val;
document.getElementById("actuaid").value = id.substring(3, id.length);
document.getElementById('<%= cambioNota.ClientID%>').click();
reload();
}
</script>
</div>
</asp:Content>