Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 42 additions & 18 deletions codbex-uoms/codbex-uoms.gen
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,15 @@
"tablePrefix": "CODBEX_",
"brand": "codbex",
"brandUrl": "https://www.codbex.com/",
"title": "UOMs Management Module",
"description": "Managing UOMs Data",
"fileName": "codbex-uoms",
"genFolderName": "codbex-uoms",
"dataSource": "DefaultDB",
"roles": [
{
"entityName": "Dimension",
"roleRead": "codbex-uoms.Dimensions.DimensionReadOnly",
"roleWrite": "codbex-uoms.Dimensions.DimensionFullAccess"
},
{
"entityName": "UoM",
"roleRead": "codbex-uoms.UnitsOfMeasures.UoMReadOnly",
"roleWrite": "codbex-uoms.UnitsOfMeasures.UoMFullAccess"
}
],
"tprefix": "codbex-uoms-model",
"title": "Uoms Management Module",
"description": "Managing Uoms Data",
"projectName": "codbex-uoms",
"workspaceName": "workspace",
"filePath": "codbex-uoms.model",
"templateId": "template-application-angular-v2/template/template.js",
"fileName": "codbex-uoms",
"genFolderName": "codbex-uoms",
"dataSource": "DefaultDB",
"perspectives": {
"Settings": {
"views": [
Expand All @@ -39,10 +26,24 @@
"role": ""
}
},
"roles": [
{
"entityName": "Dimension",
"roleRead": "codbex-uoms.Dimensions.DimensionReadOnly",
"roleWrite": "codbex-uoms.Dimensions.DimensionFullAccess"
},
{
"entityName": "UoM",
"roleRead": "codbex-uoms.UnitsOfMeasures.UoMReadOnly",
"roleWrite": "codbex-uoms.UnitsOfMeasures.UoMFullAccess"
}
],
"tprefix": "codbex-uoms-model",
"models": [
{
"properties": [
{
"auditType": "NONE",
"dataAutoIncrement": true,
"dataName": "DIMENSION_ID",
"dataNullable": true,
Expand All @@ -59,6 +60,7 @@
"dataUnique": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Id",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -67,6 +69,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataLength": "100",
"dataName": "DIMENSION_NAME",
"dataNullable": false,
Expand All @@ -84,6 +87,7 @@
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Name",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -94,6 +98,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataLength": "20",
"dataName": "DIMENSION_SAP",
"dataNullable": true,
Expand All @@ -111,6 +116,7 @@
"dataPrimaryKey": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "SAP",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand Down Expand Up @@ -157,6 +163,7 @@
{
"properties": [
{
"auditType": "NONE",
"dataAutoIncrement": true,
"dataName": "UOM_ID",
"dataNullable": true,
Expand All @@ -173,6 +180,7 @@
"dataUnique": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Id",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -181,6 +189,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataLength": "100",
"dataName": "UOM_NAME",
"dataNullable": false,
Expand All @@ -198,6 +207,7 @@
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Name",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -208,6 +218,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataLength": "20",
"dataName": "UOM_ISO",
"dataNullable": false,
Expand All @@ -225,6 +236,7 @@
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "ISO",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -235,6 +247,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataName": "UOM_DIMENSION",
"dataNullable": false,
"dataType": "INTEGER",
Expand All @@ -257,6 +270,7 @@
"dataPrimaryKey": false,
"dataUnique": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Dimension",
"widgetDropdownUrl": "/services/ts/codbex-uoms/gen/codbex-uoms/api/Settings/DimensionService.ts",
"widgetDropdownControllerUrl": "/services/ts/codbex-uoms/gen/codbex-uoms/api/Settings/DimensionController.ts",
Expand All @@ -265,6 +279,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataLength": "20",
"dataName": "UOM_SAP",
"dataNullable": true,
Expand All @@ -286,6 +301,7 @@
"dataPrimaryKey": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "SAP",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -296,6 +312,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataName": "UOM_NUMERATOR",
"dataNullable": false,
"dataType": "BIGINT",
Expand All @@ -312,6 +329,7 @@
"dataPrimaryKey": false,
"dataUnique": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Numerator",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -320,6 +338,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataName": "UOM_DENOMINATOR",
"dataNullable": false,
"dataType": "BIGINT",
Expand All @@ -336,6 +355,7 @@
"dataPrimaryKey": false,
"dataUnique": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Denominator",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -344,6 +364,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataDefaultValue": "0",
"dataName": "UOM_ROUNDING",
"dataNullable": false,
Expand All @@ -361,6 +382,7 @@
"dataPrimaryKey": false,
"dataUnique": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Rounding",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -369,6 +391,7 @@
"inputRule": ""
},
{
"auditType": "NONE",
"dataDefaultValue": "false",
"dataName": "UOM_BASE",
"dataNullable": false,
Expand All @@ -386,6 +409,7 @@
"dataUnique": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Base",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DimensionController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class DimensionController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
4 changes: 2 additions & 2 deletions codbex-uoms/gen/codbex-uoms/api/Settings/UoMController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class UoMController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class UoMController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down

This file was deleted.

Loading
Loading