diff --git a/codbex-partners/codbex-partners.edm b/codbex-partners/codbex-partners.edm
index a59e06d..83c2678 100644
--- a/codbex-partners/codbex-partners.edm
+++ b/codbex-partners/codbex-partners.edm
@@ -15,8 +15,7 @@
-
-
+
@@ -139,23 +138,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Customerspartners-navigation-group/services/web/resources/unicons/user-plus.svg300
@@ -164,5 +146,5 @@
-
+
\ No newline at end of file
diff --git a/codbex-partners/codbex-partners.gen b/codbex-partners/codbex-partners.gen
index 7317a9d..a07762f 100644
--- a/codbex-partners/codbex-partners.gen
+++ b/codbex-partners/codbex-partners.gen
@@ -3,13 +3,14 @@
"brand": "codbex",
"brandUrl": "https://www.codbex.com/",
"title": "Partners Management Module",
- "description": "Managing partners data",
+ "description": "Managing Partners Data",
"projectName": "codbex-partners",
"workspaceName": "workspace",
"filePath": "codbex-partners.model",
"templateId": "template-application-angular-v2/template/template.js",
"fileName": "codbex-partners",
"genFolderName": "codbex-partners",
+ "javaGenFolderName": "codbex_partners",
"dataSource": "DefaultDB",
"perspectives": {
"Customers": {
@@ -123,18 +124,6 @@
"navId": "",
"icon": "/services/web/resources/unicons/globe.svg",
"role": ""
- },
- "Employees": {
- "views": [
- "Employee"
- ],
- "name": "Employees",
- "label": "Employees",
- "header": "",
- "order": "100",
- "navId": "",
- "icon": "/services/web/resources/unicons/user.svg",
- "role": ""
}
},
"roles": [
@@ -202,6 +191,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -229,6 +219,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -258,6 +249,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -287,6 +279,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -318,6 +311,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -347,6 +341,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -376,6 +371,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -405,6 +401,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -439,6 +436,7 @@
"widgetDropdownControllerUrl": "/services/ts/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -475,6 +473,7 @@
"widgetDropdownControllerUrl": "/services/ts/codbex-cities/gen/codbex-cities/api/Settings/CityController.ts",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -502,6 +501,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -531,6 +531,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 10,
"inputRule": ""
@@ -560,6 +561,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -590,69 +592,39 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 34,
"inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
},
{
"auditType": "NONE",
+ "dataLength": "150",
"dataName": "CUSTOMER_RESPONSIBLEPERSON",
- "dataNullable": false,
- "dataType": "INTEGER",
+ "dataNullable": true,
+ "dataType": "VARCHAR",
"description": "",
- "isRequiredProperty": true,
"name": "ResponsiblePerson",
"tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
"widgetIsMajor": true,
- "widgetLength": "20",
+ "widgetLength": "150",
"widgetSize": "",
- "widgetType": "DROPDOWN",
- "relationshipName": "Customer_Employee",
- "relationshipEntityName": "Employee",
- "relationshipEntityPerspectiveName": "Employees",
- "relationshipEntityPerspectiveLabel": "Employees",
- "dataNotNull": true,
+ "widgetType": "TEXTBOX",
+ "dataNotNull": false,
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"dataUnique": false,
+ "isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "ResponsiblePerson",
- "widgetDropdownUrl": "/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeService.ts",
- "widgetDropdownControllerUrl": "/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts",
- "dataTypeJava": "int",
- "dataTypeTypescript": "number",
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "36",
- "dataName": "CUSTOMER_IDENTIFIER",
- "dataNullable": false,
- "dataType": "VARCHAR",
- "dataUnique": true,
- "description": "",
- "isRequiredProperty": true,
- "name": "Identifier",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "36",
- "widgetSize": "",
- "widgetType": "TEXTBOX",
- "dataNotNull": true,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Identifier",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
- "maxLength": 36,
+ "maxLength": 150,
"inputRule": ""
},
{
@@ -680,6 +652,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -708,6 +681,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -736,6 +710,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -764,6 +739,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -796,6 +772,7 @@
"tooltip": "Customer",
"type": "PRIMARY",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "customers",
"referencedProjections": [
{
"name": "Country",
@@ -806,11 +783,6 @@
"name": "City",
"project": "codbex-cities",
"genFolderName": "codbex-cities"
- },
- {
- "name": "Employee",
- "project": "codbex-employees",
- "genFolderName": "codbex-employees"
}
],
"primaryKeys": [
@@ -843,6 +815,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -873,6 +846,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -902,6 +876,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -933,6 +908,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -962,6 +938,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -991,6 +968,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -1020,6 +998,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -1054,6 +1033,7 @@
"widgetDropdownControllerUrl": "/services/ts/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -1090,6 +1070,7 @@
"widgetDropdownControllerUrl": "/services/ts/codbex-cities/gen/codbex-cities/api/Settings/CityController.ts",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -1117,6 +1098,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -1146,6 +1128,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 10,
"inputRule": ""
@@ -1175,6 +1158,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -1205,69 +1189,39 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 34,
"inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
},
{
"auditType": "NONE",
+ "dataLength": "150",
"dataName": "CUSTOMER_RESPONSIBLEPERSON",
- "dataNullable": false,
- "dataType": "INTEGER",
+ "dataNullable": true,
+ "dataType": "VARCHAR",
"description": "",
- "isRequiredProperty": true,
"name": "ResponsiblePerson",
"tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
"widgetIsMajor": true,
- "widgetLength": "20",
+ "widgetLength": "150",
"widgetSize": "",
- "widgetType": "DROPDOWN",
- "relationshipName": "Customer_Employee",
- "relationshipEntityName": "Employee",
- "relationshipEntityPerspectiveName": "Employees",
- "relationshipEntityPerspectiveLabel": "Employees",
- "dataNotNull": true,
+ "widgetType": "TEXTBOX",
+ "dataNotNull": false,
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"dataUnique": false,
+ "isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "ResponsiblePerson",
- "widgetDropdownUrl": "/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeService.ts",
- "widgetDropdownControllerUrl": "/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts",
- "dataTypeJava": "int",
- "dataTypeTypescript": "number",
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "36",
- "dataName": "CUSTOMER_IDENTIFIER",
- "dataNullable": false,
- "dataType": "VARCHAR",
- "dataUnique": true,
- "description": "",
- "isRequiredProperty": true,
- "name": "Identifier",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "36",
- "widgetSize": "",
- "widgetType": "TEXTBOX",
- "dataNotNull": true,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Identifier",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
- "maxLength": 36,
+ "maxLength": 150,
"inputRule": ""
},
{
@@ -1295,6 +1249,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -1323,6 +1278,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -1351,6 +1307,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -1379,6 +1336,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -1414,6 +1372,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -1441,6 +1400,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -1470,6 +1430,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -1499,6 +1460,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -1530,6 +1492,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -1559,6 +1522,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -1588,6 +1552,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -1617,6 +1582,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -1646,6 +1612,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -1676,6 +1643,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 34,
"inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
@@ -1704,6 +1672,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -1732,6 +1701,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -1760,6 +1730,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -1788,6 +1759,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -1820,6 +1792,7 @@
"tooltip": "Supplier",
"type": "PRIMARY",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "suppliers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -1851,6 +1824,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -1881,6 +1855,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -1910,6 +1885,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -1941,6 +1917,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -1970,6 +1947,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -1999,6 +1977,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -2028,6 +2007,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2057,6 +2037,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -2087,6 +2068,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 34,
"inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
@@ -2115,6 +2097,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2143,6 +2126,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2171,6 +2155,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2199,6 +2184,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2233,6 +2219,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2265,6 +2252,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2292,6 +2280,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 5000,
"inputRule": ""
@@ -2320,6 +2309,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2348,6 +2338,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2376,6 +2367,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2404,6 +2396,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2436,6 +2429,7 @@
"tooltip": "CustomerNote",
"type": "DEPENDENT",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "customers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -2471,6 +2465,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2503,6 +2498,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2530,6 +2526,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 5000,
"inputRule": ""
@@ -2558,6 +2555,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2586,6 +2584,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2614,6 +2613,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2642,6 +2642,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2674,6 +2675,7 @@
"tooltip": "SupplierNote",
"type": "DEPENDENT",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "suppliers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -2709,6 +2711,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2741,6 +2744,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2768,6 +2772,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 5000,
"inputRule": ""
@@ -2796,6 +2801,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2824,6 +2830,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2852,6 +2859,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -2880,6 +2888,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -2912,6 +2921,7 @@
"tooltip": "ManufacturerNote",
"type": "DEPENDENT",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "manufacturers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -2947,6 +2957,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -2974,6 +2985,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -3006,6 +3018,7 @@
"widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedController.ts",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
}
],
@@ -3036,6 +3049,7 @@
"tooltip": "City",
"type": "PROJECTION",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "settings",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -3071,6 +3085,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -3100,6 +3115,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -3131,6 +3147,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 2,
"inputRule": ""
@@ -3162,6 +3179,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 3,
"inputRule": ""
@@ -3193,6 +3211,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 3,
"inputRule": ""
@@ -3225,6 +3244,7 @@
"tooltip": "Country",
"type": "PROJECTION",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "settings",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -3257,6 +3277,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -3284,6 +3305,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -3313,6 +3335,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -3342,6 +3365,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -3373,6 +3397,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -3402,6 +3427,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -3431,6 +3457,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -3460,6 +3487,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -3489,6 +3517,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -3519,6 +3548,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 34,
"inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
@@ -3547,6 +3577,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -3575,6 +3606,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -3603,6 +3635,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -3631,6 +3664,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -3663,6 +3697,7 @@
"tooltip": "Manufacturer",
"type": "PRIMARY",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "manufacturers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -3694,6 +3729,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -3724,6 +3760,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 50,
"inputRule": ""
@@ -3753,6 +3790,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -3784,6 +3822,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -3813,6 +3852,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -3842,6 +3882,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -3871,6 +3912,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -3900,6 +3942,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -3930,6 +3973,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 34,
"inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
@@ -3958,6 +4002,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -3986,6 +4031,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -4014,6 +4060,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -4042,6 +4089,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -4076,6 +4124,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -4110,6 +4159,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -4137,6 +4187,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -4166,6 +4217,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -4195,6 +4247,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -4224,6 +4277,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -4252,6 +4306,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -4280,6 +4335,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -4314,6 +4370,7 @@
"tooltip": "CustomerContact",
"type": "DEPENDENT",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "customers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -4349,6 +4406,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -4381,6 +4439,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -4408,6 +4467,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -4437,6 +4497,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -4466,6 +4527,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -4495,6 +4557,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -4523,6 +4586,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -4551,6 +4615,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -4581,6 +4646,7 @@
"tooltip": "SupplierContact",
"type": "DEPENDENT",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "suppliers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -4616,6 +4682,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -4648,6 +4715,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
+ "dataTypeJavaClass": "Integer",
"inputRule": ""
},
{
@@ -4675,6 +4743,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -4704,6 +4773,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 255,
"inputRule": ""
@@ -4733,6 +4803,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 100,
"inputRule": ""
@@ -4762,6 +4833,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 15,
"inputRule": ""
@@ -4790,6 +4862,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "timestamp",
"dataTypeTypescript": "Date",
+ "dataTypeJavaClass": "java.time.Instant",
"isDateType": true,
"inputRule": ""
},
@@ -4818,6 +4891,7 @@
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
+ "dataTypeJavaClass": "String",
"minLength": 0,
"maxLength": 20,
"inputRule": ""
@@ -4848,6 +4922,7 @@
"tooltip": "ManufacturerContact",
"type": "DEPENDENT",
"dataSource": "DefaultDB",
+ "javaPerspectiveName": "manufacturers",
"referencedProjections": [],
"primaryKeys": [
"Id"
@@ -4856,428 +4931,6 @@
"masterEntity": "Manufacturer",
"masterEntityId": "Manufacturer",
"hasDates": true
- },
- {
- "properties": [
- {
- "auditType": "NONE",
- "dataAutoIncrement": true,
- "dataName": "EMPLOYEE_ID",
- "dataNullable": true,
- "dataPrimaryKey": true,
- "dataType": "INTEGER",
- "description": "",
- "name": "Id",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "20",
- "widgetSize": "",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataUnique": false,
- "isRequiredProperty": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Id",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "int",
- "dataTypeTypescript": "number",
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "50",
- "dataName": "EMPLOYEE_FIRSTNAME",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "description": "",
- "isRequiredProperty": true,
- "name": "FirstName",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLabel": "First Name",
- "widgetLength": "50",
- "widgetShortLabel": "First Name",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 50,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "50",
- "dataName": "EMPLOYEE_MIDDLENAME",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "description": "",
- "name": "MiddleName",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLabel": "Middle Name",
- "widgetLength": "50",
- "widgetShortLabel": "Middle Name",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isRequiredProperty": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 50,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "50",
- "dataName": "EMPLOYEE_LASTNAME",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "description": "",
- "isRequiredProperty": true,
- "name": "LastName",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLabel": "Last Name",
- "widgetLength": "50",
- "widgetShortLabel": "Last Name",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 50,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "calculatedPropertyExpressionCreate": "entity[\"FirstName\"] + \" \" + entity[\"LastName\"]",
- "calculatedPropertyExpressionUpdate": "entity[\"FirstName\"] + \" \" + entity[\"LastName\"]",
- "dataLength": "70",
- "dataName": "EMPLOYEE_NAME",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "description": "",
- "isCalculatedProperty": true,
- "name": "Name",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "70",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isRequiredProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Name",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 70,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "40",
- "dataName": "EMPLOYEE_EMAIL",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "dataUnique": true,
- "description": "",
- "isRequiredProperty": true,
- "name": "Email",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "40",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "EMAIL",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Email",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 40,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "20",
- "dataName": "EMPLOYEE_PHONENUMBER",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "dataUnique": true,
- "description": "",
- "isRequiredProperty": true,
- "name": "PhoneNumber",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEL",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "PhoneNumber",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 20,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_BIRTHDATE",
- "dataNullable": true,
- "dataType": "DATE",
- "description": "",
- "isRequiredProperty": true,
- "name": "BirthDate",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DATE",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "BirthDate",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "date",
- "dataTypeTypescript": "Date",
- "isDateType": true,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "10",
- "dataName": "EMPLOYEE_PERSONALNUMBER",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "dataUnique": true,
- "description": "",
- "isRequiredProperty": true,
- "name": "PersonalNumber",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "10",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "PersonalNumber",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 10,
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_NATIONALITY",
- "dataNullable": true,
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": true,
- "name": "Nationality",
- "relationshipEntityPerspectiveLabel": "Settings",
- "relationshipEntityPerspectiveName": "Settings",
- "relationshipName": "Employee_Country",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": true,
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DROPDOWN",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Nationality",
- "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedService.ts",
- "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedController.ts",
- "dataTypeJava": "int",
- "dataTypeTypescript": "number",
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_GENDER",
- "dataNullable": true,
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": true,
- "name": "Gender",
- "relationshipEntityPerspectiveLabel": "Settings",
- "relationshipEntityPerspectiveName": "Settings",
- "relationshipName": "Employee_Gender",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": true,
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DROPDOWN",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "Gender",
- "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedService.ts",
- "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedController.ts",
- "dataTypeJava": "int",
- "dataTypeTypescript": "number",
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_MARTIALSTATUS",
- "dataNullable": true,
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": true,
- "name": "MartialStatus",
- "relationshipEntityPerspectiveLabel": "Settings",
- "relationshipEntityPerspectiveName": "Settings",
- "relationshipName": "Employee_MartialStatus",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": true,
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DROPDOWN",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "dataUnique": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "MartialStatus",
- "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedService.ts",
- "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Settings/undefinedController.ts",
- "dataTypeJava": "int",
- "dataTypeTypescript": "number",
- "inputRule": ""
- },
- {
- "auditType": "NONE",
- "dataLength": "34",
- "dataName": "EMPLOYEE_IBAN",
- "dataNullable": true,
- "dataType": "VARCHAR",
- "dataUnique": true,
- "description": "",
- "isRequiredProperty": true,
- "name": "IBAN",
- "tooltip": "",
- "widgetIsMajor": true,
- "widgetLength": "34",
- "widgetPattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX",
- "dataNotNull": false,
- "dataAutoIncrement": false,
- "dataPrimaryKey": false,
- "isCalculatedProperty": false,
- "isReadOnlyProperty": false,
- "widgetLabel": "IBAN",
- "widgetDropdownUrl": "",
- "widgetDropdownControllerUrl": "",
- "dataTypeJava": "string",
- "dataTypeTypescript": "string",
- "minLength": 0,
- "maxLength": 34,
- "inputRule": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
- }
- ],
- "caption": "Manage entity Employee",
- "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CODBEX_EMPLOYEE\"",
- "dataName": "EMPLOYEE",
- "dataQuery": "",
- "description": "Manage entity Employee",
- "generateDefaultRoles": "false",
- "generateReport": "false",
- "icon": "/services/web/resources/unicons/file.svg",
- "layoutType": "MANAGE",
- "menuIndex": "100",
- "menuKey": "employee",
- "menuLabel": "Employee",
- "multilingual": "false",
- "name": "Employee",
- "perspectiveHeader": "",
- "perspectiveIcon": "/services/web/resources/unicons/user.svg",
- "perspectiveLabel": "Employees",
- "perspectiveName": "Employees",
- "perspectiveNavId": "",
- "perspectiveOrder": "100",
- "perspectiveRole": "",
- "projectionReferencedEntity": "Employee",
- "projectionReferencedModel": "/workspace/codbex-employees/codbex-employees.model",
- "title": "Employee",
- "tooltip": "Employee",
- "type": "PROJECTION",
- "dataSource": "DefaultDB",
- "referencedProjections": [],
- "primaryKeys": [
- "Id"
- ],
- "primaryKeysString": "Id",
- "hasDates": true,
- "hasDropdowns": true
}
]
}
\ No newline at end of file
diff --git a/codbex-partners/codbex-partners.model b/codbex-partners/codbex-partners.model
index 2abe816..ee32bc8 100644
--- a/codbex-partners/codbex-partners.model
+++ b/codbex-partners/codbex-partners.model
@@ -231,37 +231,15 @@
},
{
"auditType": "NONE",
+ "dataLength": "150",
"dataName": "CUSTOMER_RESPONSIBLEPERSON",
- "dataNullable": "false",
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": "true",
- "name": "ResponsiblePerson",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "",
- "widgetType": "DROPDOWN",
- "relationshipName": "Customer_Employee",
- "relationshipEntityName": "Employee",
- "relationshipEntityPerspectiveName": "Employees",
- "relationshipEntityPerspectiveLabel": "Employees"
- },
- {
- "auditType": "NONE",
- "dataLength": "36",
- "dataName": "CUSTOMER_IDENTIFIER",
- "dataNullable": "false",
+ "dataNullable": "true",
"dataType": "VARCHAR",
- "dataUnique": "true",
"description": "",
- "isRequiredProperty": "true",
- "name": "Identifier",
+ "name": "ResponsiblePerson",
"tooltip": "",
"widgetIsMajor": "true",
- "widgetLength": "36",
+ "widgetLength": "150",
"widgetSize": "",
"widgetType": "TEXTBOX"
},
@@ -1894,254 +1872,6 @@
"title": "ManufacturerContact",
"tooltip": "ManufacturerContact",
"type": "DEPENDENT"
- },
- {
- "properties": [
- {
- "auditType": "NONE",
- "dataAutoIncrement": "true",
- "dataName": "EMPLOYEE_ID",
- "dataNullable": "true",
- "dataPrimaryKey": "true",
- "dataType": "INTEGER",
- "description": "",
- "name": "Id",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "",
- "widgetType": "TEXTBOX"
- },
- {
- "auditType": "NONE",
- "dataLength": "50",
- "dataName": "EMPLOYEE_FIRSTNAME",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "description": "",
- "isRequiredProperty": "true",
- "name": "FirstName",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLabel": "First Name",
- "widgetLength": "50",
- "widgetShortLabel": "First Name",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX"
- },
- {
- "auditType": "NONE",
- "dataLength": "50",
- "dataName": "EMPLOYEE_MIDDLENAME",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "description": "",
- "name": "MiddleName",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLabel": "Middle Name",
- "widgetLength": "50",
- "widgetShortLabel": "Middle Name",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX"
- },
- {
- "auditType": "NONE",
- "dataLength": "50",
- "dataName": "EMPLOYEE_LASTNAME",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "description": "",
- "isRequiredProperty": "true",
- "name": "LastName",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLabel": "Last Name",
- "widgetLength": "50",
- "widgetShortLabel": "Last Name",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX"
- },
- {
- "auditType": "NONE",
- "calculatedPropertyExpressionCreate": "entity[\"FirstName\"] + \" \" + entity[\"LastName\"]",
- "calculatedPropertyExpressionUpdate": "entity[\"FirstName\"] + \" \" + entity[\"LastName\"]",
- "dataLength": "70",
- "dataName": "EMPLOYEE_NAME",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "description": "",
- "isCalculatedProperty": "true",
- "name": "Name",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "70",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX"
- },
- {
- "auditType": "NONE",
- "dataLength": "40",
- "dataName": "EMPLOYEE_EMAIL",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "dataUnique": "true",
- "description": "",
- "isRequiredProperty": "true",
- "name": "Email",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "40",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "EMAIL"
- },
- {
- "auditType": "NONE",
- "dataLength": "20",
- "dataName": "EMPLOYEE_PHONENUMBER",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "dataUnique": "true",
- "description": "",
- "isRequiredProperty": "true",
- "name": "PhoneNumber",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEL"
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_BIRTHDATE",
- "dataNullable": "true",
- "dataType": "DATE",
- "description": "",
- "isRequiredProperty": "true",
- "name": "BirthDate",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DATE"
- },
- {
- "auditType": "NONE",
- "dataLength": "10",
- "dataName": "EMPLOYEE_PERSONALNUMBER",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "dataUnique": "true",
- "description": "",
- "isRequiredProperty": "true",
- "name": "PersonalNumber",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "10",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX"
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_NATIONALITY",
- "dataNullable": "true",
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": "true",
- "name": "Nationality",
- "relationshipEntityPerspectiveLabel": "Settings",
- "relationshipEntityPerspectiveName": "Settings",
- "relationshipName": "Employee_Country",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DROPDOWN"
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_GENDER",
- "dataNullable": "true",
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": "true",
- "name": "Gender",
- "relationshipEntityPerspectiveLabel": "Settings",
- "relationshipEntityPerspectiveName": "Settings",
- "relationshipName": "Employee_Gender",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DROPDOWN"
- },
- {
- "auditType": "NONE",
- "dataName": "EMPLOYEE_MARTIALSTATUS",
- "dataNullable": "true",
- "dataType": "INTEGER",
- "description": "",
- "isRequiredProperty": "true",
- "name": "MartialStatus",
- "relationshipEntityPerspectiveLabel": "Settings",
- "relationshipEntityPerspectiveName": "Settings",
- "relationshipName": "Employee_MartialStatus",
- "tooltip": "",
- "widgetDropDownKey": "Id",
- "widgetDropDownValue": "Name",
- "widgetIsMajor": "true",
- "widgetLength": "20",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "DROPDOWN"
- },
- {
- "auditType": "NONE",
- "dataLength": "34",
- "dataName": "EMPLOYEE_IBAN",
- "dataNullable": "true",
- "dataType": "VARCHAR",
- "dataUnique": "true",
- "description": "",
- "isRequiredProperty": "true",
- "name": "IBAN",
- "tooltip": "",
- "widgetIsMajor": "true",
- "widgetLength": "34",
- "widgetPattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$",
- "widgetSize": "fd-col-md--4 fd-col--6",
- "widgetType": "TEXTBOX"
- }
- ],
- "caption": "Manage entity Employee",
- "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}EMPLOYEE\"",
- "dataName": "EMPLOYEE",
- "dataQuery": "",
- "description": "Manage entity Employee",
- "generateDefaultRoles": "false",
- "generateReport": "false",
- "icon": "/services/web/resources/unicons/file.svg",
- "layoutType": "MANAGE",
- "menuIndex": "100",
- "menuKey": "employee",
- "menuLabel": "Employee",
- "multilingual": "false",
- "name": "Employee",
- "perspectiveHeader": "",
- "perspectiveIcon": "/services/web/resources/unicons/user.svg",
- "perspectiveLabel": "Employees",
- "perspectiveName": "Employees",
- "perspectiveNavId": "",
- "perspectiveOrder": "100",
- "perspectiveRole": "",
- "projectionReferencedEntity": "Employee",
- "projectionReferencedModel": "/workspace/codbex-employees/codbex-employees.model",
- "title": "Employee",
- "tooltip": "Employee",
- "type": "PROJECTION"
}
],
"perspectives": [
diff --git a/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts b/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts
index 6991ac0..92c9404 100644
--- a/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts
+++ b/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts
@@ -224,14 +224,8 @@ class CustomerController {
if (!RegExp(/^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$/).test(entity.IBAN)) {
throw new ValidationError(`The value provided for the 'IBAN' property ('[${entity.IBAN}]') doesn't match the required pattern '^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$'`);
}
- if (entity.ResponsiblePerson === null || entity.ResponsiblePerson === undefined) {
- throw new ValidationError(`The 'ResponsiblePerson' property is required, provide a valid value`);
- }
- if (entity.Identifier === null || entity.Identifier === undefined) {
- throw new ValidationError(`The 'Identifier' property is required, provide a valid value`);
- }
- if (entity.Identifier?.length > 36) {
- throw new ValidationError(`The 'Identifier' exceeds the maximum length of [36] characters`);
+ if (entity.ResponsiblePerson?.length > 150) {
+ throw new ValidationError(`The 'ResponsiblePerson' exceeds the maximum length of [150] characters`);
}
if (entity.CreatedBy?.length > 20) {
throw new ValidationError(`The 'CreatedBy' exceeds the maximum length of [20] characters`);
diff --git a/codbex-partners/gen/codbex-partners/data/Customers/CustomerEntity.ts b/codbex-partners/gen/codbex-partners/data/Customers/CustomerEntity.ts
index 026721b..04ac1f5 100644
--- a/codbex-partners/gen/codbex-partners/data/Customers/CustomerEntity.ts
+++ b/codbex-partners/gen/codbex-partners/data/Customers/CustomerEntity.ts
@@ -124,17 +124,11 @@ export class CustomerEntity {
@Documentation('ResponsiblePerson')
@Column({
name: 'CUSTOMER_RESPONSIBLEPERSON',
- type: 'integer',
- })
- public ResponsiblePerson!: number;
-
- @Documentation('Identifier')
- @Column({
- name: 'CUSTOMER_IDENTIFIER',
type: 'string',
- length: 36,
+ length: 150,
+ nullable: true,
})
- public Identifier!: string;
+ public ResponsiblePerson?: string;
@Documentation('CreatedAt')
@Column({
diff --git a/codbex-partners/gen/codbex-partners/schema/codbex-partners.schema b/codbex-partners/gen/codbex-partners/schema/codbex-partners.schema
index 25ea6fd..9845650 100644
--- a/codbex-partners/gen/codbex-partners/schema/codbex-partners.schema
+++ b/codbex-partners/gen/codbex-partners/schema/codbex-partners.schema
@@ -83,15 +83,11 @@
"unique": true,
"name": "CUSTOMER_IBAN"
},
- {
- "type": "INTEGER",
- "name": "CUSTOMER_RESPONSIBLEPERSON"
- },
{
"type": "VARCHAR",
- "length": 36,
- "unique": true,
- "name": "CUSTOMER_IDENTIFIER"
+ "length": 150,
+ "nullable": true,
+ "name": "CUSTOMER_RESPONSIBLEPERSON"
},
{
"type": "TIMESTAMP",
@@ -594,15 +590,6 @@
"referencedTable": "CODBEX_CITY",
"referencedColumns": "CITY_ID"
},
- {
- "name": "Customer_Employee",
- "type": "foreignKey",
- "table": "CODBEX_CUSTOMER",
- "constraintName": "Customer_Employee",
- "columns": "CUSTOMER_RESPONSIBLEPERSON",
- "referencedTable": "CODBEX_EMPLOYEE",
- "referencedColumns": "EMPLOYEE_ID"
- },
{
"name": "CustomerNote_Customer",
"type": "foreignKey",
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/controller.js b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/controller.js
index 737a59d..64aa145 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/controller.js
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/controller.js
@@ -148,29 +148,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
});
}
}
- if (optionsResponsiblePersonHasMore) {
- const optionsResponsiblePersonSearchValues = Array.from(new Set(response.data.map(e => e.ResponsiblePerson)));
- if (optionsResponsiblePersonSearchValues.length > 0) {
- $http.post('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts/search', {
- conditions: [
- { propertyName: 'Id', operator: 'IN', value: optionsResponsiblePersonSearchValues }
- ]
- }).then((response) => {
- $scope.optionsResponsiblePerson.push(...response.data.map(e => ({
- value: e.Id,
- text: e.Name
- })));
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- }
- }
response.data.forEach(e => {
if (e.CreatedAt) {
e.CreatedAt = new Date(e.CreatedAt);
@@ -210,7 +187,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
selectedMainEntityId: entity.Id,
optionsCountry: $scope.optionsCountry,
optionsCity: $scope.optionsCity,
- optionsResponsiblePerson: $scope.optionsResponsiblePerson,
}});
};
@@ -222,7 +198,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
entity: {},
optionsCountry: $scope.optionsCountry,
optionsCity: $scope.optionsCity,
- optionsResponsiblePerson: $scope.optionsResponsiblePerson,
}});
};
@@ -232,7 +207,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
entity: $scope.selectedEntity,
optionsCountry: $scope.optionsCountry,
optionsCity: $scope.optionsCity,
- optionsResponsiblePerson: $scope.optionsResponsiblePerson,
}});
};
@@ -276,7 +250,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
entity: $scope.filterEntity,
optionsCountry: $scope.optionsCountry,
optionsCity: $scope.optionsCity,
- optionsResponsiblePerson: $scope.optionsResponsiblePerson,
},
});
};
@@ -284,7 +257,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
//----------------Dropdowns-----------------//
$scope.optionsCountry = [];
$scope.optionsCity = [];
- $scope.optionsResponsiblePerson = [];
let optionsCountryHasMore = true;
@@ -342,34 +314,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
type: AlertTypes.Error
});
});
- let optionsResponsiblePersonHasMore = true;
-
- $http.get('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts/count').then((response) => {
- const optionsResponsiblePersonCount = response.data.count;
- $http.get('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts').then((response) => {
- $scope.optionsResponsiblePerson = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- optionsResponsiblePersonHasMore = optionsResponsiblePersonCount > $scope.optionsResponsiblePerson.length;
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
$scope.optionsCountryValue = (optionKey) => {
for (let i = 0; i < $scope.optionsCountry.length; i++) {
@@ -387,13 +331,5 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}
return null;
};
- $scope.optionsResponsiblePersonValue = (optionKey) => {
- for (let i = 0; i < $scope.optionsResponsiblePerson.length; i++) {
- if ($scope.optionsResponsiblePerson[i].value === optionKey) {
- return $scope.optionsResponsiblePerson[i].text;
- }
- }
- return null;
- };
//----------------Dropdowns-----------------//
});
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/controller.js b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/controller.js
index 053d8e8..9702060 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/controller.js
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/controller.js
@@ -28,9 +28,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
const optionsCityMap = new Map();
params.optionsCity.forEach(e => optionsCityMap.set(e.value, e));
$scope.optionsCity = Array.from(optionsCityMap.values());
- const optionsResponsiblePersonMap = new Map();
- params.optionsResponsiblePerson.forEach(e => optionsResponsiblePersonMap.set(e.value, e));
- $scope.optionsResponsiblePerson = Array.from(optionsResponsiblePersonMap.values());
}
$scope.filter = () => {
@@ -99,12 +96,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
const condition = { propertyName: 'IBAN', operator: 'LIKE', value: `%${entity.IBAN}%` };
filter.$filter.conditions.push(condition);
}
- if (entity.ResponsiblePerson !== undefined) {
- const condition = { propertyName: 'ResponsiblePerson', operator: 'EQ', value: entity.ResponsiblePerson };
- filter.$filter.conditions.push(condition);
- }
- if (entity.Identifier) {
- const condition = { propertyName: 'Identifier', operator: 'LIKE', value: `%${entity.Identifier}%` };
+ if (entity.ResponsiblePerson) {
+ const condition = { propertyName: 'ResponsiblePerson', operator: 'LIKE', value: `%${entity.ResponsiblePerson}%` };
filter.$filter.conditions.push(condition);
}
if (entity.CreatedAtFrom) {
@@ -146,8 +139,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
allValuesCountry.length = 0;
lastSearchValuesCity.clear();
allValuesCity.length = 0;
- lastSearchValuesResponsiblePerson.clear();
- allValuesResponsiblePerson.length = 0;
};
$scope.cancel = () => {
@@ -336,95 +327,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
}
};
- const lastSearchValuesResponsiblePerson = new Set();
- const allValuesResponsiblePerson = [];
- let loadMoreOptionsResponsiblePersonCounter = 0;
- $scope.optionsResponsiblePersonLoading = false;
- $scope.optionsResponsiblePersonHasMore = true;
-
- $scope.loadMoreOptionsResponsiblePerson = () => {
- const limit = 20;
- $scope.optionsResponsiblePersonLoading = true;
- $http.get(`/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts?$limit=${limit}&$offset=${++loadMoreOptionsResponsiblePersonCounter * limit}`)
- .then((response) => {
- const optionValues = allValuesResponsiblePerson.map(e => e.value);
- const resultValues = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- const newValues = [];
- resultValues.forEach(e => {
- if (!optionValues.includes(e.value)) {
- allValuesResponsiblePerson.push(e);
- newValues.push(e);
- }
- });
- newValues.forEach(e => {
- if (!$scope.optionsResponsiblePerson.find(o => o.value === e.value)) {
- $scope.optionsResponsiblePerson.push(e);
- }
- })
- $scope.optionsResponsiblePersonHasMore = resultValues.length > 0;
- $scope.optionsResponsiblePersonLoading = false;
- }, (error) => {
- $scope.optionsResponsiblePersonLoading = false;
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- };
-
- $scope.onOptionsResponsiblePersonChange = (event) => {
- if (allValuesResponsiblePerson.length === 0) {
- allValuesResponsiblePerson.push(...$scope.optionsResponsiblePerson);
- }
- if (event.originalEvent.target.value === '') {
- allValuesResponsiblePerson.sort((a, b) => a.text.localeCompare(b.text));
- $scope.optionsResponsiblePerson = allValuesResponsiblePerson;
- $scope.optionsResponsiblePersonHasMore = true;
- } else if (isText(event.which)) {
- $scope.optionsResponsiblePersonHasMore = false;
- let cacheHit = false;
- Array.from(lastSearchValuesResponsiblePerson).forEach(e => {
- if (event.originalEvent.target.value.startsWith(e)) {
- cacheHit = true;
- }
- })
- if (!cacheHit) {
- $http.post('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts/search', {
- conditions: [
- { propertyName: 'Name', operator: 'LIKE', value: `${event.originalEvent.target.value}%` }
- ]
- }).then((response) => {
- const optionValues = allValuesResponsiblePerson.map(e => e.value);
- const searchResult = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- searchResult.forEach(e => {
- if (!optionValues.includes(e.value)) {
- allValuesResponsiblePerson.push(e);
- }
- });
- $scope.optionsResponsiblePerson = allValuesResponsiblePerson.filter(e => e.text.toLowerCase().startsWith(event.originalEvent.target.value.toLowerCase()));
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- lastSearchValuesResponsiblePerson.add(event.originalEvent.target.value);
- }
- }
- };
-
function isText(keycode) {
if ((keycode >= 48 && keycode <= 90) || (keycode >= 96 && keycode <= 111) || (keycode >= 186 && keycode <= 222) || [8, 46, 173].includes(keycode)) return true;
return false;
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/index.html b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/index.html
index a8a47f5..949319a 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/index.html
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-filter/index.html
@@ -251,35 +251,14 @@
{{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON' | t }}
-
-
-
-
- More Options
-
-
-
-
-
-
- {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_IDENTIFIER' | t }}
-
-
-
-
+
+ placeholder="{{ 'codbex-partners:codbex-partners-model.messages.inputEnter' | t:{'name':'$t(codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON)'} }}">
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/controller.js b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/controller.js
index c01738c..1d7abb7 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/controller.js
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/controller.js
@@ -46,9 +46,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
const optionsCityMap = new Map();
params.optionsCity?.forEach(e => optionsCityMap.set(e.value, e));
$scope.optionsCity = Array.from(optionsCityMap.values());
- const optionsResponsiblePersonMap = new Map();
- params.optionsResponsiblePerson?.forEach(e => optionsResponsiblePersonMap.set(e.value, e));
- $scope.optionsResponsiblePerson = Array.from(optionsResponsiblePersonMap.values());
}
$scope.create = () => {
@@ -306,113 +303,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}
}
};
- $scope.serviceResponsiblePerson = '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts';
-
- $scope.optionsResponsiblePerson = [];
-
- $http.get('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts').then((response) => {
- $scope.optionsResponsiblePerson = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
-
- const lastSearchValuesResponsiblePerson = new Set();
- const allValuesResponsiblePerson = [];
- let loadMoreOptionsResponsiblePersonCounter = 0;
- $scope.optionsResponsiblePersonLoading = false;
- $scope.optionsResponsiblePersonHasMore = true;
-
- $scope.loadMoreOptionsResponsiblePerson = () => {
- const limit = 20;
- $scope.optionsResponsiblePersonLoading = true;
- $http.get(`/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts?$limit=${limit}&$offset=${++loadMoreOptionsResponsiblePersonCounter * limit}`)
- .then((response) => {
- const optionValues = allValuesResponsiblePerson.map(e => e.value);
- const resultValues = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- const newValues = [];
- resultValues.forEach(e => {
- if (!optionValues.includes(e.value)) {
- allValuesResponsiblePerson.push(e);
- newValues.push(e);
- }
- });
- newValues.forEach(e => {
- if (!$scope.optionsResponsiblePerson.find(o => o.value === e.value)) {
- $scope.optionsResponsiblePerson.push(e);
- }
- })
- $scope.optionsResponsiblePersonHasMore = resultValues.length > 0;
- $scope.optionsResponsiblePersonLoading = false;
- }, (error) => {
- $scope.optionsResponsiblePersonLoading = false;
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- };
-
- $scope.onOptionsResponsiblePersonChange = (event) => {
- if (allValuesResponsiblePerson.length === 0) {
- allValuesResponsiblePerson.push(...$scope.optionsResponsiblePerson);
- }
- if (event.originalEvent.target.value === '') {
- allValuesResponsiblePerson.sort((a, b) => a.text.localeCompare(b.text));
- $scope.optionsResponsiblePerson = allValuesResponsiblePerson;
- $scope.optionsResponsiblePersonHasMore = true;
- } else if (isText(event.which)) {
- $scope.optionsResponsiblePersonHasMore = false;
- let cacheHit = false;
- Array.from(lastSearchValuesResponsiblePerson).forEach(e => {
- if (event.originalEvent.target.value.startsWith(e)) {
- cacheHit = true;
- }
- })
- if (!cacheHit) {
- $http.post('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts/search', {
- conditions: [
- { propertyName: 'Name', operator: 'LIKE', value: `${event.originalEvent.target.value}%` }
- ]
- }).then((response) => {
- const optionValues = allValuesResponsiblePerson.map(e => e.value);
- const searchResult = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- searchResult.forEach(e => {
- if (!optionValues.includes(e.value)) {
- allValuesResponsiblePerson.push(e);
- }
- });
- $scope.optionsResponsiblePerson = allValuesResponsiblePerson.filter(e => e.text.toLowerCase().startsWith(event.originalEvent.target.value.toLowerCase()));
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- lastSearchValuesResponsiblePerson.add(event.originalEvent.target.value);
- }
- }
- };
function isText(keycode) {
if ((keycode >= 48 && keycode <= 90) || (keycode >= 96 && keycode <= 111) || (keycode >= 186 && keycode <= 222) || [8, 46, 173].includes(keycode)) return true;
return false;
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/index.html b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/index.html
index f469868..b6fbf56 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/index.html
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/dialog-window/index.html
@@ -296,44 +296,21 @@
- {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON' | t }}
-
-
-
-
-
-
- More Options
-
-
-
-
-
-
- {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_IDENTIFIER' | t }}
+ {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON' | t }}
-
+
+ placeholder="{{ 'codbex-partners:codbex-partners-model.messages.inputEnter' | t:{'name':'$t(codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON)'} }}">
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/index.html b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/index.html
index 67a2e55..d9aa8de 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/index.html
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/index.html
@@ -52,8 +52,7 @@
{{next.PostalCode}} |
{{next.TIN}} |
{{next.IBAN}} |
- {{optionsResponsiblePersonValue(next.ResponsiblePerson)}} |
- {{next.Identifier}} |
+ {{next.ResponsiblePerson}} |
{{next.CreatedAt | date: "dd/MMM/yyyy HH:MM"}} |
{{next.CreatedBy}} |
{{next.UpdatedAt}} |
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/controller.js b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/controller.js
index 907aa91..3517ece 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/controller.js
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/controller.js
@@ -52,7 +52,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.entity = {};
$scope.optionsCountry = [];
$scope.optionsCity = [];
- $scope.optionsResponsiblePerson = [];
$scope.action = 'select';
});
}});
@@ -67,7 +66,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.entity = data.entity;
$scope.optionsCountry = data.optionsCountry;
$scope.optionsCity = data.optionsCity;
- $scope.optionsResponsiblePerson = data.optionsResponsiblePerson;
$scope.action = 'select';
});
}});
@@ -76,7 +74,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.entity = {};
$scope.optionsCountry = data.optionsCountry;
$scope.optionsCity = data.optionsCity;
- $scope.optionsResponsiblePerson = data.optionsResponsiblePerson;
$scope.action = 'create';
});
}});
@@ -91,14 +88,12 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.entity = data.entity;
$scope.optionsCountry = data.optionsCountry;
$scope.optionsCity = data.optionsCity;
- $scope.optionsResponsiblePerson = data.optionsResponsiblePerson;
$scope.action = 'update';
});
}});
$scope.serviceCountry = '/services/ts/codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts';
$scope.serviceCity = '/services/ts/codbex-cities/gen/codbex-cities/api/Settings/CityController.ts';
- $scope.serviceResponsiblePerson = '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts';
$scope.$watch('entity.Country', (newValue, oldValue) => {
@@ -205,16 +200,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
closeButton: false
});
};
- $scope.createResponsiblePerson = () => {
- Dialogs.showWindow({
- id: 'Employee-details',
- params: {
- action: 'create',
- entity: {},
- },
- closeButton: false
- });
- };
//-----------------Dialogs-------------------//
@@ -436,113 +421,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
});
});
};
- const lastSearchValuesResponsiblePerson = new Set();
- const allValuesResponsiblePerson = [];
- let loadMoreOptionsResponsiblePersonCounter = 0;
- $scope.optionsResponsiblePersonLoading = false;
- $scope.optionsResponsiblePersonHasMore = true;
-
- $scope.loadMoreOptionsResponsiblePerson = () => {
- const limit = 20;
- $scope.optionsResponsiblePersonLoading = true;
- $http.get(`/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts?$limit=${limit}&$offset=${++loadMoreOptionsResponsiblePersonCounter * limit}`)
- .then((response) => {
- const optionValues = allValuesResponsiblePerson.map(e => e.value);
- const resultValues = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- const newValues = [];
- resultValues.forEach(e => {
- if (!optionValues.includes(e.value)) {
- allValuesResponsiblePerson.push(e);
- newValues.push(e);
- }
- });
- newValues.forEach(e => {
- if (!$scope.optionsResponsiblePerson.find(o => o.value === e.value)) {
- $scope.optionsResponsiblePerson.push(e);
- }
- })
- $scope.optionsResponsiblePersonHasMore = resultValues.length > 0;
- $scope.optionsResponsiblePersonLoading = false;
- }, (error) => {
- $scope.optionsResponsiblePersonLoading = false;
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- };
-
- $scope.onOptionsResponsiblePersonChange = (event) => {
- if (allValuesResponsiblePerson.length === 0) {
- allValuesResponsiblePerson.push(...$scope.optionsResponsiblePerson);
- }
- if (event.originalEvent.target.value === '') {
- allValuesResponsiblePerson.sort((a, b) => a.text.localeCompare(b.text));
- $scope.optionsResponsiblePerson = allValuesResponsiblePerson;
- $scope.optionsResponsiblePersonHasMore = true;
- } else if (isText(event.which)) {
- $scope.optionsResponsiblePersonHasMore = false;
- let cacheHit = false;
- Array.from(lastSearchValuesResponsiblePerson).forEach(e => {
- if (event.originalEvent.target.value.startsWith(e)) {
- cacheHit = true;
- }
- })
- if (!cacheHit) {
- $http.post('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts/search', {
- conditions: [
- { propertyName: 'Name', operator: 'LIKE', value: `${event.originalEvent.target.value}%` }
- ]
- }).then((response) => {
- const optionValues = allValuesResponsiblePerson.map(e => e.value);
- const searchResult = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- searchResult.forEach(e => {
- if (!optionValues.includes(e.value)) {
- allValuesResponsiblePerson.push(e);
- }
- });
- $scope.optionsResponsiblePerson = allValuesResponsiblePerson.filter(e => e.text.toLowerCase().startsWith(event.originalEvent.target.value.toLowerCase()));
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- lastSearchValuesResponsiblePerson.add(event.originalEvent.target.value);
- }
- }
- };
-
- $scope.refreshResponsiblePerson = () => {
- $scope.optionsResponsiblePerson = [];
- $http.get('/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts').then((response) => {
- $scope.optionsResponsiblePerson = response.data.map(e => ({
- value: e.Id,
- text: e.Name
- }));
- allValuesResponsiblePerson.length === 0;
- }, (error) => {
- console.error(error);
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: 'ResponsiblePerson',
- message: LocaleService.t('codbex-partners:codbex-partners-model.messages.error.unableToLoad', { message: message }),
- type: AlertTypes.Error
- });
- });
- };
function isText(keycode) {
if ((keycode >= 48 && keycode <= 90) || (keycode >= 96 && keycode <= 111) || (keycode >= 186 && keycode <= 222) || [8, 46, 173].includes(keycode)) return true;
diff --git a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/index.html b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/index.html
index e1b7874..ac04c8f 100644
--- a/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/index.html
+++ b/codbex-partners/gen/codbex-partners/ui/Customers/Customer/main-details/index.html
@@ -302,48 +302,21 @@
- {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON' | t }}
-
-
-
-
-
-
- More Options
-
-
-
-
-
-
-
-
-
-
- {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_IDENTIFIER' | t }}
+ {{ 'codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON' | t }}
-
+
+ placeholder="{{ 'codbex-partners:codbex-partners-model.messages.inputEnter' | t:{'name':'$t(codbex-partners:codbex-partners-model.t.CUSTOMER_RESPONSIBLEPERSON)'} }}">
diff --git a/codbex-partners/translations/en-US/codbex-partners.model.json b/codbex-partners/translations/en-US/codbex-partners.model.json
index 61cc30d..590f92d 100644
--- a/codbex-partners/translations/en-US/codbex-partners.model.json
+++ b/codbex-partners/translations/en-US/codbex-partners.model.json
@@ -82,7 +82,6 @@
"CUSTOMER_TIN": "TIN",
"CUSTOMER_IBAN": "IBAN",
"CUSTOMER_RESPONSIBLEPERSON": "ResponsiblePerson",
- "CUSTOMER_IDENTIFIER": "Identifier",
"CUSTOMER_CREATEDAT": "CreatedAt",
"CUSTOMER_CREATEDBY": "CreatedBy",
"CUSTOMER_UPDATEDAT": "UpdatedAt",
@@ -178,20 +177,6 @@
"MANUFACTURERCONTACT_PHONE": "Phone",
"MANUFACTURERCONTACT_CREATEDAT": "CreatedAt",
"MANUFACTURERCONTACT_CREATEDBY": "CreatedBy",
- "EMPLOYEE": "Employee",
- "EMPLOYEE_ID": "Id",
- "EMPLOYEE_FIRSTNAME": "First Name",
- "EMPLOYEE_MIDDLENAME": "Middle Name",
- "EMPLOYEE_LASTNAME": "Last Name",
- "EMPLOYEE_NAME": "Name",
- "EMPLOYEE_EMAIL": "Email",
- "EMPLOYEE_PHONENUMBER": "PhoneNumber",
- "EMPLOYEE_BIRTHDATE": "BirthDate",
- "EMPLOYEE_PERSONALNUMBER": "PersonalNumber",
- "EMPLOYEE_NATIONALITY": "Nationality",
- "EMPLOYEE_GENDER": "Gender",
- "EMPLOYEE_MARTIALSTATUS": "MartialStatus",
- "EMPLOYEE_IBAN": "IBAN",
"Customers": "Customers",
"Suppliers": "Suppliers",
"Manufacturers": "Manufacturers"