diff --git a/codbex-countries/codbex-countries.edm b/codbex-countries/codbex-countries.edm index 184a75a..6efb9cb 100644 --- a/codbex-countries/codbex-countries.edm +++ b/codbex-countries/codbex-countries.edm @@ -1,16 +1,16 @@ - - - - - - + + + + + + - + \ No newline at end of file diff --git a/codbex-countries/codbex-countries.gen b/codbex-countries/codbex-countries.gen index 7a5827e..db1bed4 100644 --- a/codbex-countries/codbex-countries.gen +++ b/codbex-countries/codbex-countries.gen @@ -4,13 +4,21 @@ "brandUrl": "https://www.codbex.com/", "title": "Countries Management Module", "description": "Managing Countries Data", + "fileName": "codbex-countries", + "genFolderName": "codbex-countries", + "dataSource": "DefaultDB", + "roles": [ + { + "entityName": "Country", + "roleRead": "codbex-countries.Countries.CountryReadOnly", + "roleWrite": "codbex-countries.Countries.CountryFullAccess" + } + ], + "tprefix": "codbex-countries-model", "projectName": "codbex-countries", "workspaceName": "workspace", "filePath": "codbex-countries.model", "templateId": "template-application-angular-v2/template/template.js", - "fileName": "codbex-countries", - "genFolderName": "codbex-countries", - "dataSource": "DefaultDB", "perspectives": { "Settings": { "views": [ @@ -25,18 +33,11 @@ "role": "" } }, - "roles": [ - { - "entityName": "Country", - "roleRead": "codbex-countries.Countries.CountryReadOnly", - "roleWrite": "codbex-countries.Countries.CountryFullAccess" - } - ], - "tprefix": "codbex-countries-model", "models": [ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "COUNTRY_ID", "dataNullable": true, @@ -62,6 +63,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "255", "dataName": "COUNTRY_NAME", "dataNullable": false, @@ -90,6 +92,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "2", "dataName": "COUNTRY_CODE2", "dataNullable": false, @@ -118,6 +121,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "3", "dataName": "COUNTRY_CODE3", "dataNullable": false, @@ -146,6 +150,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "3", "dataName": "COUNTRY_NUMERIC", "dataNullable": false, diff --git a/codbex-countries/codbex-countries.model b/codbex-countries/codbex-countries.model index b667102..51469e7 100644 --- a/codbex-countries/codbex-countries.model +++ b/codbex-countries/codbex-countries.model @@ -4,6 +4,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "COUNTRY_ID", "dataNullable": "true", @@ -18,6 +19,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "255", "dataName": "COUNTRY_NAME", "dataNullable": "false", @@ -32,6 +34,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "2", "dataName": "COUNTRY_CODE2", "dataNullable": "false", @@ -46,6 +49,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "3", "dataName": "COUNTRY_CODE3", "dataNullable": "false", @@ -60,6 +64,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "3", "dataName": "COUNTRY_NUMERIC", "dataNullable": "false", @@ -90,7 +95,7 @@ "name": "Country", "perspectiveHeader": "", "perspectiveIcon": "globe", - "perspectiveLabel": "Entities", + "perspectiveLabel": "Settings", "perspectiveName": "Settings", "perspectiveNavId": "", "perspectiveOrder": "990", diff --git a/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts b/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts index 432e8c5..eb69075 100644 --- a/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts +++ b/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts @@ -44,7 +44,7 @@ class CountryController { this.checkPermissions('write'); this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-countries/gen/codbex-countries/api/Settings/CountryService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/codbex-countries/gen/codbex-countries/ui/Settings/Country/dialog-window/index.html b/codbex-countries/gen/codbex-countries/ui/Settings/Country/dialog-window/index.html index a71aabc..e7c3702 100644 --- a/codbex-countries/gen/codbex-countries/ui/Settings/Country/dialog-window/index.html +++ b/codbex-countries/gen/codbex-countries/ui/Settings/Country/dialog-window/index.html @@ -31,7 +31,7 @@ state="{{ forms.details['Name'].$valid ? '' : 'error' }}" ng-required="false" ng-model="entity.Name" - ng-readonly="true" + ng-readonly="action === 'select'" ng-maxlength="20.0" type="text" placeholder="{{ 'codbex-countries:codbex-countries-model.messages.inputEnter' | t:{'name':'$t(codbex-countries:codbex-countries-model.t.COUNTRY_NAME)'} }}"> @@ -52,7 +52,7 @@ state="{{ forms.details['Code2'].$valid ? '' : 'error' }}" ng-required="false" ng-model="entity.Code2" - ng-readonly="true" + ng-readonly="action === 'select'" ng-maxlength="2.0" type="text" placeholder="{{ 'codbex-countries:codbex-countries-model.messages.inputEnter' | t:{'name':'$t(codbex-countries:codbex-countries-model.t.COUNTRY_CODE2)'} }}"> @@ -73,7 +73,7 @@ state="{{ forms.details['Code3'].$valid ? '' : 'error' }}" ng-required="false" ng-model="entity.Code3" - ng-readonly="true" + ng-readonly="action === 'select'" ng-maxlength="3.0" type="text" placeholder="{{ 'codbex-countries:codbex-countries-model.messages.inputEnter' | t:{'name':'$t(codbex-countries:codbex-countries-model.t.COUNTRY_CODE3)'} }}"> @@ -94,7 +94,7 @@ state="{{ forms.details['Numeric'].$valid ? '' : 'error' }}" ng-required="false" ng-model="entity.Numeric" - ng-readonly="true" + ng-readonly="action === 'select'" ng-maxlength="3.0" type="text" placeholder="{{ 'codbex-countries:codbex-countries-model.messages.inputEnter' | t:{'name':'$t(codbex-countries:codbex-countries-model.t.COUNTRY_NUMERIC)'} }}"> diff --git a/codbex-countries/project.json b/codbex-countries/project.json index f8f8c1d..eec31c0 100644 --- a/codbex-countries/project.json +++ b/codbex-countries/project.json @@ -1,20 +1,3 @@ { - "guid": "codbex-countries", - "dependencies": [], - "actions": [ - { - "name": "Build TypeScript", - "commands": [ - { - "os": "unix", - "command": "tsc" - }, - { - "os": "windows", - "command": "cmd /c tsc" - } - ], - "registry": "true" - } - ] -} + "guid": "codbex-countries" +} \ No newline at end of file diff --git a/codbex-countries/tsconfig.json b/codbex-countries/tsconfig.json deleted file mode 100644 index 9b957e3..0000000 --- a/codbex-countries/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "ESNext", - "target": "ES6", - "moduleResolution": "Node", - "baseUrl": "../", - "lib": [ - "ESNext", - "DOM" - ], - "paths": { - "sdk/*": [ - "./modules/src/*" - ], - "/*": [ - "./*" - ] - }, - "types": [ - "../modules/types" - ] - } -} \ No newline at end of file