-
Notifications
You must be signed in to change notification settings - Fork 19
/
mh_nuevo_cliente.html
302 lines (264 loc) · 15.9 KB
/
mh_nuevo_cliente.html
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Facturador</title>
<!-- Prevent the demo from appearing in search engines -->
<meta name="robots" content="noindex" />
<!-- App CSS -->
<link type="text/css" href="./assets/css/app.css" rel="stylesheet" />
<link type="text/css" href="./assets/css/app.rtl.css" rel="stylesheet" />
<link type="text/css" href="./assets/css/sweetalert.css" rel="stylesheet" />
<!-- Simplebar -->
<link type="text/css" href="./assets/vendor/simplebar.css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Import de Js -->
<script src="./assets/js/jquery-3.3.1.min.js"></script>
<script src="./assets/js/crLibreFront.js"></script>
<script src="./assets/js/crLibreApi.js"></script>
<script src="./assets/js/sweetalert.min.js"></script>
</head>
<body>
<div class="mdk-drawer-layout js-mdk-drawer-layout" data-fullbleed="" data-push="" data-responsive-width="992px" data-has-scrolling-region="">
<div class="mdk-drawer-layout__content">
<!-- header-layout -->
<div class="mdk-header-layout js-mdk-header-layout mdk-header--fixed mdk-header-layout__content--scrollable">
<!-- header -->
<div class="mdk-header js-mdk-header bg-primary" data-fixed="">
<div class="mdk-header__content">
<nav class="navbar navbar-expand-md bg-primary navbar-dark d-flex-none">
<button class="btn btn-link text-white pl-0" type="button" data-toggle="sidebar">
<i class="material-icons align-middle md-36">short_text</i>
</button>
<div class="page-title m-0">Creacion de Cliente</div>
</nav>
</div>
</div>
<!-- content -->
<div class="mdk-header-layout__content ls-top-navbar mdk-header-layout__content--scrollable h-100">
<!-- main content -->
<div class="container-fluid container--wide">
<div class="row align-items-center mb-3">
<div class="col-md-8">
<h1 class="h2 mb-0">Registro de nuevo cliente</h1>
<ol class="breadcrumb">
<li>
<a href="#">Inicio</a>
</li>
<li>
<a href="#">Clientes</a>
</li>
<li>
<a href="#">nuevo</a>
</li>
</ol>
</div>
<div class="col-md-4 text-md-right">
<button class="btn btn-white">
<i class="material-icons md-18 align-middle">chevron_left</i>
<span class="align-middle">Atras</span>
</button>
</div>
</div>
<div class="card card-body card-padded">
<h1 class="h4 mb-0">1. Ubicacion</h1>
<hr />
<div class="row mb-3">
<div class="col">
<div class="form-group">
<label for="supplier">Provincia</label>
<select id="provinceSelect" class="select-2">
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<label for="supplier">Canton</label>
<select id="cantonSelect" class="select-2">
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<label for="supplier">Distrito</label>
<select id="distritoSelect" class="select-2">
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<label for="supplier">Barrio</label>
<select id="barrioSelect" class="select-2">
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_expected">Otras Señas</label>
<input type="text" class="form-control" id="otrasSenas" placeholder="">
</div>
</div>
</div>
</div>
<h1 class="h4 mb-0">2. Informacion de Facturacion</h1>
<hr />
<div class="row mb-3">
<div class="col">
<div class="form-group">
<label for="order_expected">Nombre de Cliente</label>
<input type="text" class="form-control" id="nombreCliente" placeholder="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="supplier">Tipo Cedula</label>
<select id="typeIdSelect" class="select-2">
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_expected">Numero de Cedula</label>
<input type="number" class="form-control" id="numeroCedula" placeholder="702320717">
</div>
</div>
</div>
<div class="row mb-3">
<div class="col">
<div class="form-group">
<label for="order_expected">Nombre Comercial</label>
<input type="text" class="form-control" id="nombreComercial" placeholder="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_expected">Correo Electronico</label>
<input type="text" class="form-control" id="correoPrincipal" placeholder="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_expected">Copias en correo (separado por comas ;)</label>
<input type="text" class="form-control" id="copiasCorreo" placeholder="">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="order_expected">Telefono</label>
<input type="text" class="form-control" id="telefono" placeholder="">
</div>
</div>
<div class="col">
<div class="form-group">
<label for="order_expected">Fax</label>
<input type="text" class="form-control" id="numeroFax" placeholder="">
</div>
</div>
<div class="form-group">
<hr/>
<input type="button" onclick="crLibreApi_add_companny_reciver();" class="btn btn-primary" value="Guardar Cliente"></input>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- drawer -->
<div class="mdk-drawer js-mdk-drawer" id="default-drawer">
</div>
<!-- // END drawer -->
</div>
<!-- // END drawer-layout -->
<!-- jQuery -->
<script src="./assets/vendor/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="./assets/vendor/popper.js"></script>
<script src="./assets/vendor/bootstrap.min.js"></script>
<!-- Simplebar -->
<!-- Used for adding a custom scrollbar to the drawer -->
<script src="./assets/vendor/simplebar.js"></script>
<!-- Vendor -->
<script src="./assets/vendor/Chart.min.js"></script>
<script src="./assets/vendor/moment.min.js"></script>
<!-- APP -->
<script src="./assets/js/color_variables.js"></script>
<script src="./assets/js/app.js"></script>
<script src="./assets/vendor/dom-factory.js"></script>
<!-- DOM Factory -->
<script src="./assets/vendor/material-design-kit.js"></script>
<!-- MDK -->
<script>
checkUserLogin();
addmenu();
(function () {
'use strict';
// Self Initialize DOM Factory Components
domFactory.handler.autoInit()
// Connect button(s) to drawer(s)
var sidebarToggle = document.querySelectorAll('[data-toggle="sidebar"]')
sidebarToggle.forEach(function (toggle) {
toggle.addEventListener('click', function (e) {
var selector = e.currentTarget.getAttribute('data-target') || '#default-drawer'
var drawer = document.querySelector(selector)
if (drawer) {
if (selector == '#default-drawer') {
$('.container-fluid').toggleClass('container--max');
}
drawer.mdkDrawer.toggle();
}
})
})
})()
</script>
<script src="./assets/vendor/select2.full.min.js"></script>
<script src="./assets/vendor/bootstrap-datepicker.min.js"></script>
<script>
$('.select-2').select2({
theme: 'bootstrap',
placeholder: 'Select an option'
});
$('.datepicker-new-order').datepicker({
orientation: 'auto'
});
crLibreApi_getAllProvinces('provinceSelect');
crLibreApi_getTypeOfId('typeIdSelect');
$("#provinceSelect").change(function () {
crLibreApi_getCanton($("#provinceSelect").val(), 'cantonSelect');
});
$("#provinceSelect").change(function () {
crLibreApi_getCanton($("#provinceSelect").val(), 'cantonSelect');
});
$("#cantonSelect").change(function () {
crLibreApi_getDistrict($("#provinceSelect").val(), $("#cantonSelect").val(), 'distritoSelect');
});
$("#distritoSelect").change(function () {
crLibreApi_getNeighborhood($("#provinceSelect").val(), $("#cantonSelect").val(), $("#distritoSelect").val(), 'barrioSelect');
});
// Get current date
let today = new Date();
let dd = today.getDate();
let mm = today.getMonth() + 1;
const yyyy = today.getFullYear();
let hora = today.getHours();
let minute = today.getMinutes();
let segundos = today.getSeconds();
if (dd < 10) {
dd = '0' + dd
}
if (mm < 10) {
mm = '0' + mm
}
//2018-05-15T16:00:00-06:00
today = yyyy + '-' + mm + '-' + dd + 'T' + hora + ':' + minute + ':' + segundos + '-06:00';
$('.datepicker-disabled').val(today)
$('.select2-results').append(`<a href="#">
<i class="material-icons md-18 align-middle">add_circle_outline</i>
<span class="align-middle">Add Supplier</span>
</a>`);
</script>
</body>
</html>