Commit 94455a14e0e4796d01cafca247c5b419218b8829
1 parent
c230ab04ed
Exists in
master
Limite de caracteres en cheque
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
package.json
1 | { | 1 | { |
2 | "name": "foca-modal-cheque", | 2 | "name": "foca-modal-cheque", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "Modal de carga de cheques", | 4 | "description": "Modal de carga de cheques", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | "gulp-pre-commit": "gulp pre-commit", | 8 | "gulp-pre-commit": "gulp pre-commit", |
9 | "compile": "gulp uglify", | 9 | "compile": "gulp uglify", |
10 | "postinstall": "npm run compile && gulp clean-post-install", | 10 | "postinstall": "npm run compile && gulp clean-post-install", |
11 | "install-dev": "npm install -D angular font-awesome pump jquery bootstrap ui-bootstrap4 jshint gulp gulp-uglify gulp-concat gulp-htmlmin gulp-rename gulp-uglify gulp-jshint gulp-replace gulp-connect gulp-clean gulp-angular-templatecache git+http://git.focasoftware.com/npm/foca-directivas.git" | 11 | "install-dev": "npm install -D angular font-awesome pump jquery bootstrap ui-bootstrap4 jshint gulp gulp-uglify gulp-concat gulp-htmlmin gulp-rename gulp-uglify gulp-jshint gulp-replace gulp-connect gulp-clean gulp-angular-templatecache git+http://git.focasoftware.com/npm/foca-directivas.git" |
12 | }, | 12 | }, |
13 | "pre-commit": [ | 13 | "pre-commit": [ |
14 | "gulp-pre-commit" | 14 | "gulp-pre-commit" |
15 | ], | 15 | ], |
16 | "repository": { | 16 | "repository": { |
17 | "type": "git", | 17 | "type": "git", |
18 | "url": "http://git.focasoftware.com/npm/foca-modal-cheque.git" | 18 | "url": "http://git.focasoftware.com/npm/foca-modal-cheque.git" |
19 | }, | 19 | }, |
20 | "author": "Foca Software", | 20 | "author": "Foca Software", |
21 | "license": "ISC", | 21 | "license": "ISC", |
22 | "devDependencies": { | 22 | "devDependencies": { |
23 | "angular": "^1.7.5", | 23 | "angular": "^1.7.5", |
24 | "bootstrap": "^4.1.3", | 24 | "bootstrap": "^4.1.3", |
25 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", | 25 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", |
26 | "font-awesome": "^4.7.0", | 26 | "font-awesome": "^4.7.0", |
27 | "gulp": "^3.9.1", | 27 | "gulp": "^3.9.1", |
28 | "gulp-angular-templatecache": "^2.2.5", | 28 | "gulp-angular-templatecache": "^2.2.7", |
29 | "gulp-clean": "^0.4.0", | 29 | "gulp-clean": "^0.4.0", |
30 | "gulp-concat": "^2.6.1", | 30 | "gulp-concat": "^2.6.1", |
31 | "gulp-connect": "^5.6.1", | 31 | "gulp-connect": "^5.6.1", |
32 | "gulp-htmlmin": "^5.0.1", | 32 | "gulp-htmlmin": "^5.0.1", |
33 | "gulp-jshint": "^2.1.0", | 33 | "gulp-jshint": "^2.1.0", |
34 | "gulp-rename": "^1.4.0", | 34 | "gulp-rename": "^1.4.0", |
35 | "gulp-replace": "^1.0.0", | 35 | "gulp-replace": "^1.0.0", |
36 | "gulp-uglify": "^3.0.1", | 36 | "gulp-uglify": "^3.0.1", |
37 | "jquery": "^3.3.1", | 37 | "jquery": "^3.4.1", |
38 | "jshint": "^2.9.6", | 38 | "jshint": "^2.9.6", |
39 | "pump": "^3.0.0", | 39 | "pump": "^3.0.0", |
40 | "ui-bootstrap4": "^3.0.5" | 40 | "ui-bootstrap4": "^3.0.5" |
41 | } | 41 | } |
42 | } | 42 | } |
43 | 43 |
src/views/modal-cheque.html
1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
2 | <h3 class="modal-title">Cobro con cheques</h3> | 2 | <h3 class="modal-title">Cobro con cheques</h3> |
3 | </div> | 3 | </div> |
4 | <div class="modal-body" id="modal-body"> | 4 | <div class="modal-body" id="modal-body"> |
5 | <form name="formCheque"> | 5 | <form name="formCheque"> |
6 | <div class="row"> | 6 | <div class="row"> |
7 | <div class="col-12 col-md-2"> | 7 | <div class="col-12 col-md-2"> |
8 | <label class="form-control-sm">Banco:</label> | 8 | <label class="form-control-sm">Banco:</label> |
9 | </div> | 9 | </div> |
10 | <div class="col-12 col-md-10 input-group"> | 10 | <div class="col-12 col-md-10 input-group"> |
11 | <input | 11 | <input |
12 | type="text" | 12 | type="text" |
13 | teclado-virtual | 13 | teclado-virtual |
14 | class="form-control form-control-sm" | 14 | class="form-control form-control-sm" |
15 | placeholder="Nombre del banco o código" | 15 | placeholder="Nombre del banco o código" |
16 | ng-model="cheque.banco.desbco" | 16 | ng-model="cheque.banco.desbco" |
17 | ng-required="true" | 17 | ng-required="true" |
18 | ng-keypress="seleccionarBanco($event.keyCode)" | 18 | ng-keypress="seleccionarBanco($event.keyCode)" |
19 | foca-focus="focused == 1" | 19 | foca-focus="focused == 1" |
20 | ng-focus="focused = 1" | 20 | ng-focus="focused = 1" |
21 | /> | 21 | /> |
22 | <div class="input-group-append"> | 22 | <div class="input-group-append"> |
23 | <button | 23 | <button |
24 | ladda="searchLoading" | 24 | ladda="searchLoading" |
25 | class="btn btn-outline-secondary form-control-sm" | 25 | class="btn btn-outline-secondary form-control-sm" |
26 | type="button" | 26 | type="button" |
27 | ng-click="seleccionarBanco(13)" | 27 | ng-click="seleccionarBanco(13)" |
28 | > | 28 | > |
29 | <i class="fa fa-search" aria-hidden="true"></i> | 29 | <i class="fa fa-search" aria-hidden="true"></i> |
30 | </button> | 30 | </button> |
31 | </div> | 31 | </div> |
32 | </div> | 32 | </div> |
33 | <div class="col-12 col-md-2"> | 33 | <div class="col-12 col-md-2"> |
34 | <label class="form-control-sm">Provincia:</label> | 34 | <label class="form-control-sm">Provincia:</label> |
35 | </div> | 35 | </div> |
36 | <div class="col-12 col-md-5 input-group"> | 36 | <div class="col-12 col-md-5 input-group"> |
37 | <input | 37 | <input |
38 | type="text" | 38 | type="text" |
39 | teclado-virtual | 39 | teclado-virtual |
40 | class="form-control form-control-sm" | 40 | class="form-control form-control-sm" |
41 | placeholder="Nombre o Código de Provincia " | 41 | placeholder="Nombre o Código de Provincia " |
42 | ng-model="cheque.provincia.NOMBRE" | 42 | ng-model="cheque.provincia.NOMBRE" |
43 | ng-required="true" | 43 | ng-required="true" |
44 | ng-keypress="seleccionarProvincia($event.keyCode)" | 44 | ng-keypress="seleccionarProvincia($event.keyCode)" |
45 | foca-focus="focused == 2" | 45 | foca-focus="focused == 2" |
46 | ng-focus="focused = 2"/> | 46 | ng-focus="focused = 2"/> |
47 | <div class="input-group-append"> | 47 | <div class="input-group-append"> |
48 | <button | 48 | <button |
49 | ladda="searchLoading" | 49 | ladda="searchLoading" |
50 | class="btn btn-outline-secondary form-control-sm" | 50 | class="btn btn-outline-secondary form-control-sm" |
51 | type="button" | 51 | type="button" |
52 | ng-click="seleccionarProvincia(13)" | 52 | ng-click="seleccionarProvincia(13)" |
53 | > | 53 | > |
54 | <i class="fa fa-search" aria-hidden="true"></i> | 54 | <i class="fa fa-search" aria-hidden="true"></i> |
55 | </button> | 55 | </button> |
56 | </div> | 56 | </div> |
57 | </div> | 57 | </div> |
58 | <div class="col-12 col-md-1"> | 58 | <div class="col-12 col-md-1"> |
59 | <label class="form-control-sm">Lugar:</label> | 59 | <label class="form-control-sm">Lugar:</label> |
60 | </div> | 60 | </div> |
61 | <div class="col-12 col-md-4 input-group"> | 61 | <div class="col-12 col-md-4 input-group"> |
62 | <input | 62 | <input |
63 | type="text" | 63 | type="text" |
64 | teclado-virtual | 64 | teclado-virtual |
65 | class="form-control form-control-sm" | 65 | class="form-control form-control-sm" |
66 | placeholder="Nombre o código del lugar" | 66 | placeholder="Nombre o código del lugar" |
67 | ng-model="cheque.localidad.NOMBRE" | 67 | ng-model="cheque.localidad.NOMBRE" |
68 | ng-required="true" | 68 | ng-required="true" |
69 | ng-keypress="seleccionarLocalidad($event.keyCode)" | 69 | ng-keypress="seleccionarLocalidad($event.keyCode)" |
70 | foca-focus="focused == 3" | 70 | foca-focus="focused == 3" |
71 | ng-focus="focused = 3"/> | 71 | ng-focus="focused = 3"/> |
72 | <div class="input-group-append"> | 72 | <div class="input-group-append"> |
73 | <button | 73 | <button |
74 | ladda="searchLoading" | 74 | ladda="searchLoading" |
75 | class="btn btn-outline-secondary form-control-sm" | 75 | class="btn btn-outline-secondary form-control-sm" |
76 | type="button" | 76 | type="button" |
77 | ng-click="seleccionarLocalidad(13)" | 77 | ng-click="seleccionarLocalidad(13)" |
78 | > | 78 | > |
79 | <i class="fa fa-search" aria-hidden="true"></i> | 79 | <i class="fa fa-search" aria-hidden="true"></i> |
80 | </button> | 80 | </button> |
81 | </div> | 81 | </div> |
82 | </div> | 82 | </div> |
83 | <div class="col-12 col-md-2"> | 83 | <div class="col-12 col-md-2"> |
84 | <label class="form-control-sm">Librador:</label> | 84 | <label class="form-control-sm">Librador:</label> |
85 | </div> | 85 | </div> |
86 | <div class="col-12 col-md-10"> | 86 | <div class="col-12 col-md-10"> |
87 | <input | 87 | <input |
88 | type="text" | 88 | type="text" |
89 | teclado-virtual | 89 | teclado-virtual |
90 | class="form-control form-control-sm" | 90 | class="form-control form-control-sm" |
91 | placeholder="Librador" | 91 | placeholder="Librador" |
92 | ng-model="cheque.librador" | 92 | ng-model="cheque.librador" |
93 | ng-required="true" | 93 | ng-required="true" |
94 | ng-keypress="next($event.keyCode)" | 94 | ng-keypress="next($event.keyCode)" |
95 | foca-focus="focused == 4" | 95 | foca-focus="focused == 4" |
96 | ng-focus="focused = 4"/> | 96 | ng-focus="focused = 4"/> |
97 | </div> | 97 | </div> |
98 | <div class="col-12 col-md-2"> | 98 | <div class="col-12 col-md-2"> |
99 | <label class="form-control-sm">Cheque:</label> | 99 | <label class="form-control-sm">Cheque:</label> |
100 | </div> | 100 | </div> |
101 | <div class="col-6 col-md-3"> | 101 | <div class="col-6 col-md-3"> |
102 | <input | 102 | <input |
103 | foca-tipo-input | 103 | foca-tipo-input |
104 | teclado-virtual | 104 | teclado-virtual |
105 | class="form-control form-control-sm" | 105 | class="form-control form-control-sm" |
106 | placeholder="Número" | 106 | placeholder="Número" |
107 | limite-numeros-max="30" | ||
107 | ng-model="cheque.numero" | 108 | ng-model="cheque.numero" |
108 | ng-required="true" | 109 | ng-required="true" |
109 | ng-keypress="next($event.keyCode)" | 110 | ng-keypress="next($event.keyCode)" |
110 | foca-focus="focused == 5" | 111 | foca-focus="focused == 5" |
111 | ng-focus="focused = 5"/> | 112 | ng-focus="focused = 5"/> |
112 | </div> | 113 | </div> |
113 | <div class="col-6 col-md-7 input-group mb-2"> | 114 | <div class="col-6 col-md-7 input-group mb-2"> |
114 | <div class="input-group-prepend"> | 115 | <div class="input-group-prepend"> |
115 | <div class="input-group-text form-control form-control-sm">$</div> | 116 | <div class="input-group-text form-control form-control-sm">$</div> |
116 | </div> | 117 | </div> |
117 | <input | 118 | <input |
118 | foca-tipo-input | 119 | foca-tipo-input |
119 | teclado-virtual | 120 | teclado-virtual |
120 | class="form-control form-control-sm" | 121 | class="form-control form-control-sm" |
121 | placeholder="Importe" | 122 | placeholder="Importe" |
122 | ng-model="cheque.importe" | 123 | ng-model="cheque.importe" |
123 | ng-keypress="next($event.keyCode)" | 124 | ng-keypress="next($event.keyCode)" |
124 | ng-required="true" | 125 | ng-required="true" |
125 | foca-focus="focused == 6" | 126 | foca-focus="focused == 6" |
126 | ng-focus="focused = 6"/> | 127 | ng-focus="focused = 6"/> |
127 | </div> | 128 | </div> |
128 | <div class="col-12 col-md-2"> | 129 | <div class="col-12 col-md-2"> |
129 | <label class="form-control-sm">Emisión:</label> | 130 | <label class="form-control-sm">Emisión:</label> |
130 | </div> | 131 | </div> |
131 | <div class="col-12 col-md-4 input-group"> | 132 | <div class="col-12 col-md-4 input-group"> |
132 | <div class="input-group-prepend"> | 133 | <div class="input-group-prepend"> |
133 | <div class="input-group-text form-control form-control-sm"> | 134 | <div class="input-group-text form-control form-control-sm"> |
134 | <i class="fa fa-calendar"></i> | 135 | <i class="fa fa-calendar"></i> |
135 | </div> | 136 | </div> |
136 | </div> | 137 | </div> |
137 | <input | 138 | <input |
138 | type="text" | 139 | type="text" |
139 | class="form-control form-control-sm" | 140 | class="form-control form-control-sm" |
140 | placeholder="Fecha" | 141 | placeholder="Fecha" |
141 | ng-model="cheque.fechaEmision" | 142 | ng-model="cheque.fechaEmision" |
142 | uib-datepicker-popup="dd/MM/yyyy" | 143 | uib-datepicker-popup="dd/MM/yyyy" |
143 | show-button-bar="false" | 144 | show-button-bar="false" |
144 | is-open="datepickerOpen" | 145 | is-open="datepickerOpen" |
145 | on-open-focus="false" | 146 | on-open-focus="false" |
146 | ng-focus="datepickerOpen = true; focused = 7" | 147 | ng-focus="datepickerOpen = true; focused = 7" |
147 | ng-required="true" | 148 | ng-required="true" |
148 | foca-focus="focused == 7" | 149 | foca-focus="focused == 7" |
149 | ng-blur="focused = 8"/> | 150 | ng-blur="focused = 8"/> |
150 | </div> | 151 | </div> |
151 | <div class="col-12 col-md-2"> | 152 | <div class="col-12 col-md-2"> |
152 | <label class="form-control-sm">Presentación:</label> | 153 | <label class="form-control-sm">Presentación:</label> |
153 | </div> | 154 | </div> |
154 | <div class="col-12 col-md-4 input-group"> | 155 | <div class="col-12 col-md-4 input-group"> |
155 | <div class="input-group-prepend"> | 156 | <div class="input-group-prepend"> |
156 | <div class="input-group-text form-control form-control-sm"> | 157 | <div class="input-group-text form-control form-control-sm"> |
157 | <i class="fa fa-calendar"></i> | 158 | <i class="fa fa-calendar"></i> |
158 | </div> | 159 | </div> |
159 | </div> | 160 | </div> |
160 | <input | 161 | <input |
161 | type="text" | 162 | type="text" |
162 | class="form-control form-control-sm" | 163 | class="form-control form-control-sm" |
163 | placeholder="Fecha" | 164 | placeholder="Fecha" |
164 | ng-model="cheque.fechaPresentacion" | 165 | ng-model="cheque.fechaPresentacion" |
165 | uib-datepicker-popup="dd/MM/yyyy" | 166 | uib-datepicker-popup="dd/MM/yyyy" |
166 | show-button-bar="false" | 167 | show-button-bar="false" |
167 | is-open="datepicker2Open" | 168 | is-open="datepicker2Open" |
168 | on-open-focus="false" | 169 | on-open-focus="false" |
169 | ng-focus="datepicker2Open = true; focused = 8" | 170 | ng-focus="datepicker2Open = true; focused = 8" |
170 | ng-required="true" | 171 | ng-required="true" |
171 | foca-focus="focused == 8" | 172 | foca-focus="focused == 8" |
172 | ng-blur="focused = 9"/> | 173 | ng-blur="focused = 9"/> |
173 | </div> | 174 | </div> |
174 | <div class="col-12 col-md-2"> | 175 | <div class="col-12 col-md-2"> |
175 | <label class="form-control-sm">Observaciones:</label> | 176 | <label class="form-control-sm">Observaciones:</label> |
176 | </div> | 177 | </div> |
177 | <div class="col-12 col-md-10"> | 178 | <div class="col-12 col-md-10"> |
178 | <textarea teclado-virtual | 179 | <textarea teclado-virtual |
179 | ng-model="cheque.observaciones" | 180 | ng-model="cheque.observaciones" |
180 | class="form-control form-control-sm" | 181 | class="form-control form-control-sm foca-input" |
181 | foca-focus="focused == 9" | 182 | foca-focus="focused == 9" |
182 | ng-focus="focused = 9"></textarea> | 183 | ng-focus="focused = 9"></textarea> |
183 | </div> | 184 | </div> |
184 | </div> | 185 | </div> |
185 | </form> | 186 | </form> |
186 | </div> | 187 | </div> |
187 | <div class="modal-footer"> | 188 | <div class="modal-footer"> |
188 | <button | 189 | <button |
189 | class="btn btn-primary" | 190 | class="btn btn-primary" |
190 | type="button" | 191 | type="button" |
191 | ng-click="aceptar()" | 192 | ng-click="aceptar()" |
192 | ng-disabled="!formCheque.$valid" | 193 | ng-disabled="!formCheque.$valid" |
193 | >Aceptar</button> | 194 | >Aceptar</button> |
194 | <button class="btn btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 195 | <button class="btn btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
195 | </div> | 196 | </div> |
196 | 197 |