diff --git a/client/route/src/index/index.html b/client/route/src/index/index.html index 6cdc1a1d8..7b30e6549 100644 --- a/client/route/src/index/index.html +++ b/client/route/src/index/index.html @@ -1,4 +1,4 @@ -< +
@@ -13,7 +13,7 @@ - +
diff --git a/client/route/src/index/item-route.html b/client/route/src/index/item-route.html new file mode 100644 index 000000000..c2837513d --- /dev/null +++ b/client/route/src/index/item-route.html @@ -0,0 +1,15 @@ + + + + + + ID_RUTA: + {{$ctrl.route.id}} + + + + + + + + \ No newline at end of file diff --git a/client/route/src/index/item-route.js b/client/route/src/index/item-route.js index e69de29bb..0eeb9fcd5 100644 --- a/client/route/src/index/item-route.js +++ b/client/route/src/index/item-route.js @@ -0,0 +1,8 @@ +import ngModule from '../module'; + +ngModule.component('vnItemRoute', { + template: require('./item-route.html'), + bindings: { + route: '<' + } +}); diff --git a/services/route/common/models/route.json b/services/route/common/models/delivery.json similarity index 72% rename from services/route/common/models/route.json rename to services/route/common/models/delivery.json index 2cf784483..0317074f3 100644 --- a/services/route/common/models/route.json +++ b/services/route/common/models/delivery.json @@ -1,15 +1,21 @@ { - "name": "Route", + "name": "Delivery", "base": "MyModel", "validateUpsert": true, "properties": { "id": { - "type": "Number", "id": true, - "description": "Identifier" + "type": "Number", + "forceId": false }, "date": { - "type": "date" + "type": "Date" + }, + "m3":{ + "type": "Number" + }, + "warehouseFk":{ + "type": "Number" } }, "acls": [ @@ -25,7 +31,5 @@ "principalId": "root", "permission": "ALLOW" } - ], - "validations": [], - "methods": {} -} \ No newline at end of file + ] +} diff --git a/services/route/server/datasources.json b/services/route/server/datasources.json index 33d77acda..ba7db7577 100644 --- a/services/route/server/datasources.json +++ b/services/route/server/datasources.json @@ -27,15 +27,5 @@ "password": "", "connectTimeout": 20000, "acquireTimeout": 20000 - }, - "client": { - "name": "client", - "connector": "remote", - "url": "http://localhost:3002/api" - }, - "route": { - "name": "route", - "connector": "remote", - "url": "http://localhost:3004/api" } } diff --git a/services/route/server/datasources.test.json b/services/route/server/datasources.test.json index 6e81700ce..9b7ac4e58 100644 --- a/services/route/server/datasources.test.json +++ b/services/route/server/datasources.test.json @@ -27,10 +27,5 @@ "password": "", "connectTimeout": 20000, "acquireTimeout": 20000 - }, - "client": { - "name": "client", - "connector": "remote", - "url": "http://localhost:3002/api" } } diff --git a/services/route/server/model-config.json b/services/route/server/model-config.json index 2391df5b2..904b02b80 100644 --- a/services/route/server/model-config.json +++ b/services/route/server/model-config.json @@ -42,9 +42,7 @@ "Account": { "dataSource": "auth" }, - "Route": { - "dataSource": "route", - "public": true + "Delivery": { + "dataSource": "vn" } - }