-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f67288
commit 4dab402
Showing
105 changed files
with
53,862 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"auth": { | ||
"passport": { | ||
"strategy": "mock", | ||
"users": { | ||
"bp-viewer": { | ||
"password": "123", | ||
"ID": "bp-viewer" | ||
}, | ||
"bp-admin": { | ||
"password": "123", | ||
"ID": "bp-admin", | ||
"roles": [ | ||
"BPAdmin" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2017 | ||
}, | ||
"globals": { | ||
"SELECT": true, | ||
"INSERT": true, | ||
"UPDATE": true, | ||
"DELETE": true, | ||
"CREATE": true, | ||
"DROP": true, | ||
"cds": true | ||
}, | ||
"rules": { | ||
"no-console": "off", | ||
"require-atomic-updates": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Project configuration | ||
general: | ||
pipeline: 'sap-cloud-sdk' # this line is mandatory | ||
buildTool: 'mta' # or 'npm' | ||
|
||
# Stages configuration | ||
stages: | ||
Build: | ||
npmExecuteLint: true # true, if you want to run a lint check that verifies the syntax of your JavaScript code | ||
|
||
Release: | ||
cloudFoundryDeploy: true # true, if you want to deploy to Cloud Foundry. If you set this parameter to true, the CloudFoundryDeploy step is mandatory | ||
tmsUpload: true # true if you want to upload your artifact to SAP Cloud Transport Management. If you set this parameter to true, the tmsUpload step is mandatory | ||
|
||
# Steps configuration | ||
steps: | ||
|
||
npmExecuteLint: | ||
failOnError: false # true, if you want your pipeline to fail, if the lint check reveals any errors | ||
|
||
mtaBuild: | ||
buildTarget: "CF" | ||
extensions: "live.mtaext" | ||
mtaBuildTool: "cloudMbt" | ||
|
||
cloudFoundryDeploy: # only relevant, if you set the cloudFoundryDeploy parameter in the Release stage to true | ||
cloudFoundry: | ||
credentialsId: 'cf-credential' | ||
apiEndpoint: 'https://api.cf.eu10.hana.ondemand.com' # for example, https://api.cf.eu10.hana.ondemand.com | ||
org: 'tfe-dev' | ||
space: 'DEV' | ||
mtaDeployParameters: '-f --version-rule ALL' | ||
|
||
tmsUpload: # only relevant, if you set the tmsUpload parameter in the Release stage to true | ||
nodeName: 'QA' | ||
credentialsId: 'tms' | ||
customDescription: 'TMS Upload' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
using tfe.service.businessPartnerValidation.AdminService as service from '../../srv/catalog'; | ||
|
||
annotate service.Addresses with @(UI : { | ||
HeaderInfo : { | ||
TypeName : 'Address', | ||
TypeNamePlural : 'Addresses', | ||
Title : { | ||
$Type : 'UI.DataField', | ||
Value : addressId | ||
} | ||
}, | ||
SelectionFields : [ | ||
addressId, | ||
streetName, | ||
cityName, | ||
country, | ||
postalCode | ||
], | ||
LineItem : [ | ||
|
||
{ | ||
$Type : 'UI.DataField', | ||
Value : verifications.businessPartnerId | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : addressId | ||
}, | ||
|
||
{ | ||
$Type : 'UI.DataField', | ||
Value : streetName | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : houseNumber | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : postalCode | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : cityName | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : country | ||
} | ||
|
||
], | ||
HeaderFacets : [ | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
ID : 'BP', | ||
Target : '@UI.DataPoint#BP' | ||
}, | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
ID : 'Status', | ||
Target : '@UI.DataPoint#Status' | ||
} | ||
], | ||
DataPoint #BP : { | ||
Value : verifications.businessPartnerId, | ||
Title : 'Business Partner ID' | ||
}, | ||
DataPoint #Status : { | ||
Value : verifications.verificationStatus_code, | ||
Title : 'Verification Status' | ||
} | ||
|
||
}); | ||
|
||
annotate service.Addresses with { | ||
addressId @(Common.Label : 'Address ID') @readonly; | ||
businessPartnerId @(Common.Label : 'Business Partner ID') @readonly; | ||
streetName @(Common.Label : 'Street Name'); | ||
cityName @(Common.Label : 'City Name'); | ||
country @(Common.Label : 'Country'); | ||
postalCode @(Common.Label : 'Postal Code'); | ||
houseNumber @(Common.Label : 'House Number'); | ||
} | ||
|
||
annotate service.BusinessPartnerVerification with { | ||
businessPartnerId @(Common.Label : 'Business Partner ID'); | ||
businessPartnerFirstName @(Common.Label : 'First Name') @readonly; | ||
businessPartnerLastName @(Common.Label : 'Last Name') @readonly; | ||
verificationStatus @(Common.Label : 'Verification Status'); | ||
businessPartnerIsBlocked @(Common.Label : 'Blocked?'); | ||
} | ||
|
||
annotate service.BusinessPartnerVerification with @(UI : { | ||
UpdateHidden : verificationStatus.updateCode, | ||
|
||
HeaderInfo : { | ||
TypeName : '{i18n>Verification}', | ||
TypeNamePlural : '{i18n>Verifications}', | ||
Title : { | ||
$Type : 'UI.DataField', | ||
Value : businessPartnerId | ||
} | ||
}, | ||
SelectionFields : [ | ||
businessPartnerId, | ||
businessPartnerFirstName, | ||
businessPartnerLastName, | ||
verificationStatus_code, | ||
businessPartnerIsBlocked | ||
], | ||
LineItem : [ | ||
{ | ||
$Type : 'UI.DataFieldForAction', | ||
Action : 'tfe.service.businessPartnerValidation.AdminService.block', | ||
Label : 'Block' | ||
}, | ||
{ | ||
$Type : 'UI.DataFieldForAction', | ||
Action : 'tfe.service.businessPartnerValidation.AdminService.unblock', | ||
Label : 'Unblock' | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : businessPartnerId | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : businessPartnerFirstName | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : businessPartnerLastName | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : verificationStatus.value, | ||
Criticality : verificationStatus.criticality | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : businessPartnerIsBlocked | ||
}, | ||
{ | ||
$Type : 'UI.DataField', | ||
Value : modifiedAt, | ||
|
||
}, | ||
], | ||
HeaderFacets : [ | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
ID : 'HeaderBpFirstName', | ||
Target : '@UI.DataPoint#BpFName' | ||
}, | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
ID : 'HeaderBPLastName', | ||
Target : '@UI.DataPoint#BpLName' | ||
}, | ||
{ | ||
$Type : 'UI.ReferenceFacet', | ||
Target : '@UI.FieldGroup#Detail' | ||
} | ||
|
||
], | ||
Facets : [{ | ||
$Type : 'UI.ReferenceFacet', | ||
Target : 'addresses/@UI.LineItem', | ||
Label : 'Address Facet' | ||
}, ], | ||
DataPoint #BpFName : { | ||
Value : businessPartnerFirstName, | ||
Title : 'First Name' | ||
}, | ||
DataPoint #BpLName : { | ||
Value : businessPartnerLastName, | ||
Title : 'Last Name' | ||
}, | ||
PresentationVariant : { | ||
$Type : 'UI.PresentationVariantType', | ||
SortOrder : [{ | ||
$Type : 'Common.SortOrderType', | ||
Property : modifiedAt, | ||
Descending : true | ||
}], | ||
Visualizations : ['@UI.LineItem'] | ||
}, | ||
FieldGroup #Detail : {Data : [{ | ||
$Type : 'UI.DataField', | ||
Value : verificationStatus_code, | ||
Label : 'Verification Status' | ||
}]} | ||
}); | ||
|
||
annotate service.BusinessPartnerVerification @(Capabilities : { | ||
Insertable : false, | ||
Deletable : false, | ||
Updatable : true, | ||
}); | ||
|
||
annotate service.Addresses @(Capabilities : { | ||
Deletable : false, | ||
Insertable : false, | ||
}); | ||
|
||
annotate service.BusinessPartnerVerification with { | ||
verificationStatus @(Common : { | ||
ValueList : { | ||
CollectionPath : 'StatusValues', | ||
$Type : 'Common.ValueListType', | ||
SelectionVariantQualifier : 'code', | ||
PresentationVariantQualifier : 'code', | ||
Parameters : [{ | ||
$Type : 'Common.ValueListParameterInOut', | ||
LocalDataProperty : verificationStatus_code, | ||
ValueListProperty : 'code', | ||
}, ] | ||
//entity: 'StatusValues' | ||
}, | ||
ValueListWithFixedValues | ||
//FieldControl: #Mandatory | ||
}); | ||
}; | ||
|
||
annotate service.StatusValues with { | ||
code @Common : { | ||
Text : value, | ||
TextArrangement : #TextOnly | ||
} @title : 'Code'; | ||
value @title : 'Verification Status'; | ||
}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sap.ui.define(['sap/fe/core/AppComponent'], function(AppComponent) { | ||
'use strict'; | ||
|
||
return AppComponent.extend("com.sap.tfe.bp.businesspartners.Component", { | ||
metadata: { | ||
manifest: "json" | ||
} | ||
}); | ||
}); |
Oops, something went wrong.