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-vertical pad-large>
<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-vertical pad-medium>
<vn-title vn-one margin-large-bottom>Mandate</vn-title>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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