modelos con inicial mayuscula

This commit is contained in:
Daniel Herrero 2017-12-13 13:40:21 +01:00
parent 2680bc52ec
commit 9fe0aadff8
10 changed files with 55 additions and 18 deletions

View File

@ -1,4 +1,4 @@
<mg-ajax path="/client/api/clientCredits/filter" options="vnIndexNonAuto"></mg-ajax> <mg-ajax path="/client/api/ClientCredits/filter" options="vnIndexNonAuto"></mg-ajax>
<vn-card pad-medium> <vn-card pad-medium>
<vn-vertical pad-large> <vn-vertical pad-large>
<vn-title vn-one margin-large-bottom>Credit</vn-title> <vn-title vn-one margin-large-bottom>Credit</vn-title>

View File

@ -1,4 +1,4 @@
<mg-ajax path="/client/api/mandates/filter" options="vnIndexNonAuto"></mg-ajax> <mg-ajax path="/client/api/Mandates/filter" options="vnIndexNonAuto"></mg-ajax>
<vn-card pad-medium> <vn-card pad-medium>
<vn-vertical pad-medium> <vn-vertical pad-medium>
<vn-title vn-one margin-large-bottom>Mandate</vn-title> <vn-title vn-one margin-large-bottom>Mandate</vn-title>

View File

@ -17,6 +17,7 @@ export default class ColumnHeader {
} }
this.gridHeader.selectColum(this); this.gridHeader.selectColum(this);
} }
if (event)
event.preventDefault(); event.preventDefault();
} }
showArrow(type) { showArrow(type) {

View File

@ -1,6 +1,12 @@
{ {
"name": "clientCredit", "name": "ClientCredit",
"base": "VnModel", "base": "VnModel",
"options": {
"mysql": {
"table": "clientCredit",
"database": "vn"
}
},
"validateUpsert": true, "validateUpsert": true,
"properties": { "properties": {
"id": { "id": {

View File

@ -1,6 +1,12 @@
{ {
"name": "company", "name": "Company",
"base": "VnModel", "base": "VnModel",
"options": {
"mysql": {
"table": "company",
"database": "vn"
}
},
"properties": { "properties": {
"id": { "id": {
"id": true, "id": true,

View File

@ -1,6 +1,12 @@
{ {
"name": "greugeType", "name": "GreugeType",
"base": "VnModel", "base": "VnModel",
"options": {
"mysql": {
"table": "greugeType",
"database": "vn"
}
},
"properties": { "properties": {
"id": { "id": {
"id": true, "id": true,

View File

@ -1,6 +1,12 @@
{ {
"name": "greuge", "name": "Greuge",
"base": "VnModel", "base": "VnModel",
"options": {
"mysql": {
"table": "greuge",
"database": "vn"
}
},
"properties": { "properties": {
"id": { "id": {
"id": true, "id": true,
@ -28,7 +34,7 @@
}, },
"greugeType": { "greugeType": {
"type": "belongsTo", "type": "belongsTo",
"model": "greugeType", "model": "GreugeType",
"foreignKey": "greugeTypeFk" "foreignKey": "greugeTypeFk"
} }
} }

View File

@ -1,6 +1,12 @@
{ {
"name": "mandate", "name": "Mandate",
"base": "VnModel", "base": "VnModel",
"options": {
"mysql": {
"table": "mandate",
"database": "vn"
}
},
"properties": { "properties": {
"id": { "id": {
"id": true, "id": true,
@ -25,12 +31,12 @@
}, },
"company": { "company": {
"type": "belongsTo", "type": "belongsTo",
"model": "company", "model": "Company",
"foreignKey": "companyFk" "foreignKey": "companyFk"
}, },
"mandateType": { "mandateType": {
"type": "belongsTo", "type": "belongsTo",
"model": "mandateType", "model": "MandateType",
"foreignKey": "mandateTypeFk" "foreignKey": "mandateTypeFk"
} }
} }

View File

@ -1,6 +1,12 @@
{ {
"name": "mandateType", "name": "MandateType",
"base": "VnModel", "base": "VnModel",
"options": {
"mysql": {
"table": "mandateType",
"database": "vn"
}
},
"properties": { "properties": {
"id": { "id": {
"id": true, "id": true,

View File

@ -27,7 +27,7 @@
"Client": { "Client": {
"dataSource": "vn" "dataSource": "vn"
}, },
"clientCredit": { "ClientCredit": {
"dataSource": "vn" "dataSource": "vn"
}, },
"ClientCreditLimit": { "ClientCreditLimit": {
@ -60,19 +60,19 @@
"CreditClassification": { "CreditClassification": {
"dataSource": "salix" "dataSource": "salix"
}, },
"greuge": { "Greuge": {
"dataSource": "vn" "dataSource": "vn"
}, },
"greugeType": { "GreugeType": {
"dataSource": "vn" "dataSource": "vn"
}, },
"mandate": { "Mandate": {
"dataSource": "vn" "dataSource": "vn"
}, },
"mandateType": { "MandateType": {
"dataSource": "vn" "dataSource": "vn"
}, },
"company": { "Company": {
"dataSource": "vn" "dataSource": "vn"
} }
} }