Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2017-05-05 12:54:47 +02:00
parent f8cd8ee776
commit f7ec186a77
11 changed files with 40 additions and 21 deletions

View File

@ -73,7 +73,7 @@ export default class Autocomplete extends Component {
let skip = 0;
if (textFilter)
where[this.showField] = {ilike: textFilter};
where[this.showField] = {regexp: textFilter};
if (append && this.data)
skip = this.data.length;

View File

@ -23,15 +23,15 @@ export default class Textfield extends Component {
clearButton.addEventListener('mousedown',
event => event.preventDefault());
// input.value = ' ';
let div = this.element.firstChild;
componentHandler.upgradeElement(div);
}
link($scope, $attrs) {
let mdlTextField = this.element.firstChild.MaterialTextfield;
mdlTextField.updateClasses_();
$scope.$watch($attrs.model,
() => mdlTextField.updateClasses_());
mdlTextField.updateClasses_();
}
onClearClick() {
this.input.value = '';

10
dev.cmd
View File

@ -14,17 +14,15 @@ goto caseUsage
echo "################################ Starting services"
if not exist "%nginxPrefix%\temp" (mkdir "%nginxPrefix%\temp")
start /I nginx -c "%nginxConf%" -p "%nginxPrefix%"
call forever --minUptime 1000 --spinSleepTime 1000 start forever.json
gulp --gulpfile gulpfile.js
goto caseExit
node dev.js
goto caseEnd
:caseStop
echo "################################ Stoping services"
if exist "%nginxPrefix%\temp\nginx.pid" (nginx -c "%nginxConf%" -p "%nginxPrefix%" -s stop)
forever stopall
goto caseExit
goto caseEnd
:caseUsage
echo "Usage: %0 [start|stop]"
:caseExit
:caseEnd

11
dev.js Normal file
View File

@ -0,0 +1,11 @@
require('./gulpfile');
var auth = require('./services/auth/server/server.js');
var client = require('./services/client/server/server.js');
var server = require('./services/salix/server/server.js');
var gulp = require('gulp');
gulp.start(['default']);
auth.start();
client.start();
server.start();

4
dev.sh
View File

@ -13,12 +13,10 @@ case "$1" in
$0 stop
echo "################################ Starting services"
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix"
forever --minUptime 1000 --spinSleepTime 1000 start forever.json
gulp --gulpfile gulpfile.js
node dev.js
;;
stop)
echo "################################ Stoping services"
forever stopall
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop
;;
*)

View File

@ -6,7 +6,7 @@
"auth": {
"name": "mysql",
"connector": "mysql",
"database": "auth",
"database": "salix",
"debug": false,
"host": "localhost",
"port": 3306,

View File

@ -8,9 +8,9 @@ var app = module.exports = loopback();
// modificado
app.set('view engine', 'ejs');
app.set('views',path.join(__dirname,'../client'));
app.set('views', path.join(__dirname,'../client'));
app.use(loopback.static(path.resolve(__dirname, '../client')));
app.set('applications',require("./application.json"));
app.set('applications', require("./application.json"));
// fin
app.start = function() {

View File

@ -80,12 +80,12 @@ module.exports = function(Client) {
return {
where: {
id: p.id,
name: {ilike: p.name},
name: {regexp: p.name},
cif: p.cif,
socialName: {ilike: p.socialName},
city: {ilike: p.city},
socialName: {regexp: p.socialName},
city: {regexp: p.city},
postcode: p.postcode,
email: {ilike: p.email},
email: {regexp: p.email},
phone: p.phone
},
skip: (p.page - 1) * p.size,

View File

@ -88,6 +88,12 @@
"invoiceByEmail": {
"type": "boolean",
"description": "Send invoices by email"
},
"payMethod": {
"type": "Number"
},
"salesPerson": {
"type": "Number"
}
},
"validations": [],

View File

@ -16,6 +16,12 @@
"creationDate": {
"type": "date",
"description": "Creation Date"
},
"client": {
"type": "Number"
},
"salesPerson": {
"type": "Number"
}
},
"relations": {

View File

@ -7,7 +7,7 @@
"auth": {
"name": "mysql",
"connector": "mysql",
"database": "auth",
"database": "salix",
"debug": false,
"host": "localhost",
"port": 3306,
@ -17,7 +17,7 @@
"vn": {
"name": "mysql",
"connector": "mysql",
"database": "vn",
"database": "salix",
"debug": false,
"host": "localhost",
"port": 3306,