webAccess sin error dialog

This commit is contained in:
Javi Gallego 2017-01-18 13:49:04 +01:00
parent eab5af19b5
commit 8a3dcb4698
9 changed files with 18 additions and 6 deletions

View File

@ -8,13 +8,19 @@ export const COMPONENT = {
controller: function($http, $stateParams) {
this.address = {};
$http.get(`/client/api/Addresses/${$stateParams.addressId}`).then(
json => this.address = json.data
json => {
this.address = json.data;
}
);
$http.get('/client/api/Agencies').then(
json => this.agencies = json.data
json => {
this.agencies = json.data;
}
);
$http.get('/client/api/Provinces').then(
json => this.provinces = json.data
json => {
this.provinces = json.data;
}
);
this.submit = function() {

View File

@ -9,7 +9,7 @@
"Country": 3,
"Province": 3,
"Agency": 4,
"Account": 19,
"Account": 20,
"ClientObservation": 1265
},
"models": {
@ -54,8 +54,7 @@
},
"Account": {
"1": "{\"id\":1,\"password\":\"joselito\",\"name\":\"asdf\"}",
"12": "{\"id\":12,\"name\":\"\",\"active\":true}",
"14": "{\"id\":14,\"name\":\"us14\",\"active\":false}",
"14": "{\"id\":14,\"active\":true,\"name\":\"f\"}",
"15": "{\"id\":15,\"name\":\"asdf\"}"
},
"ClientObservation": {

View File

@ -1,6 +1,7 @@
{
"name": "Address",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",

View File

@ -1,6 +1,7 @@
{
"name": "Agency",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",

View File

@ -1,6 +1,7 @@
{
"name": "Country",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",

View File

@ -1,6 +1,7 @@
{
"name": "PaymentMethod",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",

View File

@ -1,6 +1,7 @@
{
"name": "Province",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",

View File

@ -1,6 +1,7 @@
{
"name": "SalesPerson",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",

View File

@ -1,6 +1,7 @@
{
"name": "Account",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",