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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,11 @@ UoMs Management Module

#### Management

![management](images/uoms-uom-management.png)
![management](images/uom-management.png)


![management](images/uoms-dimension-management.png)
![management](images/dimension-management.png)

#### Converter

http://host:port/services/ts/codbex-uoms/api/converter.ts/CMT/DMT/50

### Infrastructure

#### Build

docker build -t codbex-uoms:1.0.0 .

#### Run

docker run --name codbex-uoms -d -p 8080:8080 codbex-uoms:1.0.0

#### Clean

docker rm codbex-uoms
6 changes: 3 additions & 3 deletions codbex-uoms/codbex-uoms.edm
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<model>
<entities>
<entity name="Dimension" dataName="DIMENSION" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_DIMENSION&quot;" dataQuery="" type="SETTING" title="Dimension" caption="Manage entity Dimension" description="Manage entity Dimension" tooltip="Dimension" icon="cube" menuKey="dimension" menuLabel="Dimension" menuIndex="100" layoutType="MANAGE" navigationPath="/Home" perspectiveName="Dimensions" perspectiveLabel="Dimensions" perspectiveIcon="/services/web/resources/unicons/align-center-h.svg" perspectiveOrder="990" perspectiveRole="" generateReport="false" generateDefaultRoles="false">
<entity name="Dimension" dataName="DIMENSION" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_DIMENSION&quot;" dataQuery="" type="SETTING" title="Dimension" caption="Manage entity Dimension" description="Manage entity Dimension" tooltip="Dimension" icon="cube" menuKey="dimension" menuLabel="Dimension" menuIndex="100" layoutType="MANAGE" navigationPath="/Home" perspectiveName="Dimensions" perspectiveLabel="Dimensions" perspectiveIcon="/services/web/resources/unicons/align-center-h.svg" perspectiveOrder="990" perspectiveRole="" generateReport="false" generateDefaultRoles="true" roleRead="codbex-uoms.Dimensions.DimensionReadOnly" roleWrite="codbex-uoms.Dimensions.DimensionFullAccess">
<property name="Id" description="" tooltip="" dataName="DIMENSION_ID" dataType="INTEGER" dataNullable="true" dataPrimaryKey="true" dataAutoIncrement="true" widgetType="TEXTBOX" widgetSize="" widgetLength="20" widgetIsMajor="true"></property>
<property name="SAP" description="" tooltip="" dataName="DIMENSION_SAP" dataType="VARCHAR" dataLength="20" dataNullable="true" widgetType="TEXTBOX" widgetSize="fd-col-md--4 fd-col--6" widgetLength="20" widgetIsMajor="true"></property>
<property name="Name" description="" tooltip="" dataName="DIMENSION_NAME" dataType="VARCHAR" dataLength="100" dataNullable="false" isRequiredProperty="true" widgetType="TEXTBOX" widgetSize="fd-col-md--4 fd-col--6" widgetLength="100" widgetIsMajor="true"></property>
</entity>
<entity name="UoM" dataName="UOM" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_UOM&quot;" dataQuery="" type="SETTING" title="Unit of Measures" caption="Manage entity UoM" description="Manage entity UoM" tooltip="Unit of Measures" icon="cubes" menuKey="uom" menuLabel="UoM" menuIndex="100" layoutType="MANAGE_MASTER" navigationPath="/Home" perspectiveName="UnitsOfMeasures" perspectiveLabel="Units of Measures" perspectiveIcon="/services/web/resources/unicons/arrows-resize-v.svg" perspectiveOrder="980" perspectiveRole="" generateReport="false" generateDefaultRoles="false">
<entity name="UoM" dataName="UOM" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_UOM&quot;" dataQuery="" type="SETTING" title="Unit of Measures" caption="Manage entity UoM" description="Manage entity UoM" tooltip="Unit of Measures" icon="cubes" menuKey="uom" menuLabel="UoM" menuIndex="100" layoutType="MANAGE_MASTER" navigationPath="/Home" perspectiveName="UnitsOfMeasures" perspectiveLabel="Units of Measures" perspectiveIcon="/services/web/resources/unicons/arrows-resize-v.svg" perspectiveOrder="980" perspectiveRole="" generateReport="false" generateDefaultRoles="true" roleRead="codbex-uoms.UnitsOfMeasures.UoMReadOnly" roleWrite="codbex-uoms.UnitsOfMeasures.UoMFullAccess">
<property name="Id" description="" tooltip="" dataName="UOM_ID" dataType="INTEGER" dataNullable="true" dataPrimaryKey="true" dataAutoIncrement="true" widgetType="TEXTBOX" widgetSize="" widgetLength="20" widgetIsMajor="true"></property>
<property name="Name" description="" tooltip="" dataName="UOM_NAME" dataType="VARCHAR" dataLength="100" dataNullable="true" widgetType="TEXTBOX" widgetSize="fd-col-md--4 fd-col--6" widgetLength="100" widgetIsMajor="true"></property>
<property name="ISO" description="" tooltip="" dataName="UOM_ISO" dataType="VARCHAR" dataLength="20" dataNullable="true" widgetType="TEXTBOX" widgetSize="" widgetLength="20" widgetIsMajor="true"></property>
Expand All @@ -25,5 +25,5 @@
</perspectives>
<navigations>
</navigations>
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" style="entity" parent="1" vertex="1"><Entity name="Dimension" dataName="DIMENSION" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_DIMENSION&quot;" title="Dimension" tooltip="Dimension" menuLabel="Dimension" type="Entity" menuKey="dimension" perspectiveIcon="cubes" perspectiveName="Dimensions" icon="cube" perspectiveOrder="970" caption="Manage entity Dimension" disableGeneration="false" entityType="SETTING" description="Manage entity Dimension" as="value"/><mxGeometry x="80" y="60" width="200" height="106" as="geometry"><mxRectangle width="200" height="28" as="alternateBounds"/></mxGeometry></mxCell><mxCell id="3" parent="2" vertex="1" connectable="0"><Property name="Id" dataName="DIMENSION_ID" dataPrimaryKey="true" dataAutoIncrement="true" dataPrecision="NaN" dataScale="NaN" dataType="INTEGER" as="value"/><mxGeometry y="28" width="200" height="26" as="geometry"/></mxCell><mxCell id="41c7d99b-8531-3878-28fe-d7d841e451d8" parent="2" vertex="1" connectable="0"><Property name="SAP" dataName="DIMENSION_SAP" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="54" width="200" height="26" as="geometry"/></mxCell><mxCell id="4" parent="2" vertex="1" connectable="0"><Property name="Name" dataName="DIMENSION_NAME" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" dataLength="100" widgetLength="100" isRequiredProperty="true" dataNotNull="true" as="value"/><mxGeometry y="80" width="200" height="26" as="geometry"/></mxCell><mxCell id="5" style="entity" parent="1" vertex="1"><Entity name="UoM" dataName="UOM" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_UOM&quot;" title="Unit of Measures" tooltip="Unit of Measures" menuLabel="UoM" type="Entity" menuKey="uom" perspectiveIcon="cubes" perspectiveName="UnitsOfMeasures" icon="cubes" perspectiveOrder="970" caption="Manage entity UoM" disableGeneration="false" entityType="SETTING" description="Manage entity UoM" layoutType="MANAGE_MASTER" as="value"/><mxGeometry x="410" y="70" width="200" height="262" as="geometry"><mxRectangle width="200" height="28" as="alternateBounds"/></mxGeometry></mxCell><mxCell id="6" parent="5" vertex="1" connectable="0"><Property name="Id" dataName="UOM_ID" dataPrimaryKey="true" dataAutoIncrement="true" dataPrecision="NaN" dataScale="NaN" dataType="INTEGER" as="value"/><mxGeometry y="28" width="200" height="26" as="geometry"/></mxCell><mxCell id="7" parent="5" vertex="1" connectable="0"><Property name="Name" dataName="UOM_NAME" dataLength="100" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" widgetLength="100" as="value"/><mxGeometry y="54" width="200" height="26" as="geometry"/></mxCell><mxCell id="c72d63f0-4f92-da59-0d31-710b346852ed" parent="5" vertex="1" connectable="0"><Property name="ISO" dataName="UOM_ISO" dataPrecision="NaN" dataScale="NaN" as="value"/><mxGeometry y="80" width="200" height="26" as="geometry"/></mxCell><mxCell id="ae1a4f7f-bdfa-770b-a8d1-1b766f3ed6f4" vertex="1" connectable="0" parent="5"><Property name="Dimension" dataName="UOM_DIMENSION" dataType="INTEGER" dataPrecision="NaN" dataScale="NaN" widgetType="DROPDOWN" widgetDropDownKey="Id" widgetDropDownValue="Name" as="value"/><mxGeometry y="106" width="200" height="26" as="geometry"/></mxCell><mxCell id="04ee3f0b-0b08-4016-d50d-0db5522ab318" parent="5" vertex="1" connectable="0"><Property name="SAP" dataName="UOM_SAP" dataPrecision="NaN" dataScale="NaN" widgetDependsOnProperty="Dimension" widgetDependsOnEntity="Dimension" widgetDependsOnValueFrom="SAP" widgetDependsOnFilterBy="Dimension" as="value"/><mxGeometry y="132" width="200" height="26" as="geometry"/></mxCell><mxCell id="14" parent="5" vertex="1" connectable="0"><Property name="Numerator" dataName="UOM_NUMERATOR" dataType="BIGINT" dataLength="0" dataPrecision="NaN" dataScale="NaN" widgetType="NUMBER" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="158" width="200" height="26" as="geometry"/></mxCell><mxCell id="15" parent="5" vertex="1" connectable="0"><Property name="Denominator" dataName="UOM_DENOMINATOR" dataType="BIGINT" dataLength="0" dataPrecision="NaN" dataScale="NaN" widgetType="NUMBER" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="184" width="200" height="26" as="geometry"/></mxCell><mxCell id="16" parent="5" vertex="1" connectable="0"><Property name="Rounding" dataName="UOM_ROUNDING" dataType="INTEGER" dataLength="0" dataPrecision="NaN" dataScale="NaN" widgetType="NUMBER" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="210" width="200" height="26" as="geometry"/></mxCell><mxCell id="d92ebcf9-3c6b-948e-85f8-c6c1048d5f7a" parent="5" vertex="1" connectable="0"><Property name="Base" dataName="UOM_BASE" dataType="BOOLEAN" dataPrecision="NaN" dataScale="NaN" widgetType="CHECKBOX" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="236" width="200" height="26" as="geometry"/></mxCell><mxCell id="201ff5cf-e01d-795e-32fa-cfe50dfe69be" edge="1" parent="1" source="ae1a4f7f-bdfa-770b-a8d1-1b766f3ed6f4" target="3"><mxGeometry relative="1" as="geometry"/></mxCell></root></mxGraphModel>
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" style="entity" parent="1" vertex="1"><Entity name="Dimension" dataName="DIMENSION" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_DIMENSION&quot;" title="Dimension" tooltip="Dimension" menuLabel="Dimension" type="Entity" menuKey="dimension" perspectiveIcon="cubes" perspectiveName="Dimensions" icon="cube" perspectiveOrder="970" caption="Manage entity Dimension" disableGeneration="false" description="Manage entity Dimension" generateDefaultRoles="true" roleRead="codbex-uoms.Dimensions.DimensionReadOnly" roleWrite="codbex-uoms.Dimensions.DimensionFullAccess" entityType="SETTING" as="value"><Array as="referenceProjections"/></Entity><mxGeometry x="80" y="60" width="200" height="106" as="geometry"><mxRectangle width="200" height="28" as="alternateBounds"/></mxGeometry></mxCell><mxCell id="3" parent="2" vertex="1" connectable="0"><Property name="Id" dataName="DIMENSION_ID" dataPrimaryKey="true" dataAutoIncrement="true" dataPrecision="NaN" dataScale="NaN" dataType="INTEGER" as="value"/><mxGeometry y="28" width="200" height="26" as="geometry"/></mxCell><mxCell id="41c7d99b-8531-3878-28fe-d7d841e451d8" parent="2" vertex="1" connectable="0"><Property name="SAP" dataName="DIMENSION_SAP" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="54" width="200" height="26" as="geometry"/></mxCell><mxCell id="4" parent="2" vertex="1" connectable="0"><Property name="Name" dataName="DIMENSION_NAME" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" dataLength="100" widgetLength="100" isRequiredProperty="true" dataNotNull="true" as="value"/><mxGeometry y="80" width="200" height="26" as="geometry"/></mxCell><mxCell id="5" style="entity" parent="1" vertex="1"><Entity name="UoM" dataName="UOM" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_UOM&quot;" title="Unit of Measures" tooltip="Unit of Measures" menuLabel="UoM" type="Entity" menuKey="uom" perspectiveIcon="cubes" perspectiveName="UnitsOfMeasures" icon="cubes" perspectiveOrder="970" caption="Manage entity UoM" disableGeneration="false" entityType="SETTING" description="Manage entity UoM" layoutType="MANAGE_MASTER" generateDefaultRoles="true" roleRead="codbex-uoms.UnitsOfMeasures.UoMReadOnly" roleWrite="codbex-uoms.UnitsOfMeasures.UoMFullAccess" as="value"/><mxGeometry x="410" y="70" width="200" height="262" as="geometry"><mxRectangle width="200" height="28" as="alternateBounds"/></mxGeometry></mxCell><mxCell id="6" parent="5" vertex="1" connectable="0"><Property name="Id" dataName="UOM_ID" dataPrimaryKey="true" dataAutoIncrement="true" dataPrecision="NaN" dataScale="NaN" dataType="INTEGER" as="value"/><mxGeometry y="28" width="200" height="26" as="geometry"/></mxCell><mxCell id="7" parent="5" vertex="1" connectable="0"><Property name="Name" dataName="UOM_NAME" dataLength="100" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" widgetLength="100" as="value"/><mxGeometry y="54" width="200" height="26" as="geometry"/></mxCell><mxCell id="c72d63f0-4f92-da59-0d31-710b346852ed" parent="5" vertex="1" connectable="0"><Property name="ISO" dataName="UOM_ISO" dataPrecision="NaN" dataScale="NaN" as="value"/><mxGeometry y="80" width="200" height="26" as="geometry"/></mxCell><mxCell id="ae1a4f7f-bdfa-770b-a8d1-1b766f3ed6f4" parent="5" vertex="1" connectable="0"><Property name="Dimension" dataName="UOM_DIMENSION" dataType="INTEGER" dataPrecision="NaN" dataScale="NaN" widgetType="DROPDOWN" widgetDropDownKey="Id" widgetDropDownValue="Name" as="value"/><mxGeometry y="106" width="200" height="26" as="geometry"/></mxCell><mxCell id="04ee3f0b-0b08-4016-d50d-0db5522ab318" parent="5" vertex="1" connectable="0"><Property name="SAP" dataName="UOM_SAP" dataPrecision="NaN" dataScale="NaN" widgetDependsOnProperty="Dimension" widgetDependsOnEntity="Dimension" widgetDependsOnValueFrom="SAP" widgetDependsOnFilterBy="Dimension" as="value"/><mxGeometry y="132" width="200" height="26" as="geometry"/></mxCell><mxCell id="14" parent="5" vertex="1" connectable="0"><Property name="Numerator" dataName="UOM_NUMERATOR" dataType="BIGINT" dataLength="0" dataPrecision="NaN" dataScale="NaN" widgetType="NUMBER" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="158" width="200" height="26" as="geometry"/></mxCell><mxCell id="15" parent="5" vertex="1" connectable="0"><Property name="Denominator" dataName="UOM_DENOMINATOR" dataType="BIGINT" dataLength="0" dataPrecision="NaN" dataScale="NaN" widgetType="NUMBER" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="184" width="200" height="26" as="geometry"/></mxCell><mxCell id="16" parent="5" vertex="1" connectable="0"><Property name="Rounding" dataName="UOM_ROUNDING" dataType="INTEGER" dataLength="0" dataPrecision="NaN" dataScale="NaN" widgetType="NUMBER" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="210" width="200" height="26" as="geometry"/></mxCell><mxCell id="d92ebcf9-3c6b-948e-85f8-c6c1048d5f7a" parent="5" vertex="1" connectable="0"><Property name="Base" dataName="UOM_BASE" dataType="BOOLEAN" dataPrecision="NaN" dataScale="NaN" widgetType="CHECKBOX" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="236" width="200" height="26" as="geometry"/></mxCell><mxCell id="201ff5cf-e01d-795e-32fa-cfe50dfe69be" parent="1" source="ae1a4f7f-bdfa-770b-a8d1-1b766f3ed6f4" target="3" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell></root></mxGraphModel>
</model>
33 changes: 24 additions & 9 deletions codbex-uoms/codbex-uoms.gen
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"tablePrefix": "CODBEX_",
"brand": "codbex",
"brandUrl": "https://codbex.com",
"title": "Units of Measures Management Module",
"description": "Managing units of measures data",
"dataSource": "DefaultDB",
"fileName": "codbex-uoms",
"genFolderName": "codbex-uoms",
"roles": [],
"brandUrl": "https://www.codbex.com/",
"title": "UoM Management Application",
"description": "Managing UoMs data",
"projectName": "codbex-uoms",
"workspaceName": "workspace",
"filePath": "codbex-uoms.model",
"templateId": "template-application-angular/template/template.js",
"fileName": "codbex-uoms",
"genFolderName": "codbex-uoms",
"dataSource": "DefaultDB",
"perspectives": {
"Dimensions": {
"views": [
Expand Down Expand Up @@ -57,6 +56,18 @@
"role": ""
}
},
"roles": [
{
"entityName": "Dimension",
"roleRead": "codbex-uoms.Dimensions.DimensionReadOnly",
"roleWrite": "codbex-uoms.Dimensions.DimensionFullAccess"
},
{
"entityName": "UoM",
"roleRead": "codbex-uoms.UnitsOfMeasures.UoMReadOnly",
"roleWrite": "codbex-uoms.UnitsOfMeasures.UoMFullAccess"
}
],
"models": [
{
"properties": [
Expand Down Expand Up @@ -141,7 +152,7 @@
"dataName": "DIMENSION",
"dataQuery": "",
"description": "Manage entity Dimension",
"generateDefaultRoles": "false",
"generateDefaultRoles": "true",
"generateReport": "false",
"icon": "cube",
"layoutType": "MANAGE",
Expand All @@ -155,6 +166,8 @@
"perspectiveName": "Dimensions",
"perspectiveOrder": "990",
"perspectiveRole": "",
"roleRead": "codbex-uoms.Dimensions.DimensionReadOnly",
"roleWrite": "codbex-uoms.Dimensions.DimensionFullAccess",
"title": "Dimension",
"tooltip": "Dimension",
"type": "SETTING",
Expand Down Expand Up @@ -399,7 +412,7 @@
"dataName": "UOM",
"dataQuery": "",
"description": "Manage entity UoM",
"generateDefaultRoles": "false",
"generateDefaultRoles": "true",
"generateReport": "false",
"icon": "cubes",
"layoutType": "MANAGE_MASTER",
Expand All @@ -413,6 +426,8 @@
"perspectiveName": "UnitsOfMeasures",
"perspectiveOrder": "980",
"perspectiveRole": "",
"roleRead": "codbex-uoms.UnitsOfMeasures.UoMReadOnly",
"roleWrite": "codbex-uoms.UnitsOfMeasures.UoMFullAccess",
"title": "Unit of Measures",
"tooltip": "Unit of Measures",
"type": "SETTING",
Expand Down
8 changes: 6 additions & 2 deletions codbex-uoms/codbex-uoms.model
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dataName": "DIMENSION",
"dataQuery": "",
"description": "Manage entity Dimension",
"generateDefaultRoles": "false",
"generateDefaultRoles": "true",
"generateReport": "false",
"icon": "cube",
"layoutType": "MANAGE",
Expand All @@ -64,6 +64,8 @@
"perspectiveName": "Dimensions",
"perspectiveOrder": "990",
"perspectiveRole": "",
"roleRead": "codbex-uoms.Dimensions.DimensionReadOnly",
"roleWrite": "codbex-uoms.Dimensions.DimensionFullAccess",
"title": "Dimension",
"tooltip": "Dimension",
"type": "SETTING"
Expand Down Expand Up @@ -199,7 +201,7 @@
"dataName": "UOM",
"dataQuery": "",
"description": "Manage entity UoM",
"generateDefaultRoles": "false",
"generateDefaultRoles": "true",
"generateReport": "false",
"icon": "cubes",
"layoutType": "MANAGE_MASTER",
Expand All @@ -213,6 +215,8 @@
"perspectiveName": "UnitsOfMeasures",
"perspectiveOrder": "980",
"perspectiveRole": "",
"roleRead": "codbex-uoms.UnitsOfMeasures.UoMReadOnly",
"roleWrite": "codbex-uoms.UnitsOfMeasures.UoMFullAccess",
"title": "Unit of Measures",
"tooltip": "Unit of Measures",
"type": "SETTING"
Expand Down
Loading