diff --git a/app/_i18n/i18n.properties b/app/_i18n/i18n.properties index 20109968..4fa82a6f 100644 --- a/app/_i18n/i18n.properties +++ b/app/_i18n/i18n.properties @@ -110,4 +110,6 @@ URL=URL GeneralInformation=General Information #XFLD,50: Label for a section -Attachments=Attachments \ No newline at end of file +Attachments=Attachments +uploadStatus=Upload Status +type=Type \ No newline at end of file diff --git a/app/common.cds b/app/common.cds index 15d6d49b..57a455a9 100644 --- a/app/common.cds +++ b/app/common.cds @@ -73,11 +73,16 @@ annotate my.Books.attachments with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Attachments', @@ -154,11 +159,16 @@ annotate my.Books.references with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Attachments', @@ -229,11 +239,16 @@ annotate my.Books.footnotes with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Attachments', @@ -304,11 +319,16 @@ annotate my.Chapters.attachments with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Attachments', @@ -378,11 +398,16 @@ annotate my.Chapters.references with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy References', @@ -452,11 +477,16 @@ annotate my.Chapters.footnotes with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Footnotes', @@ -526,11 +556,16 @@ annotate my.Pages.attachments with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Attachments', @@ -600,11 +635,16 @@ annotate my.Pages.references with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy References', @@ -674,11 +714,16 @@ annotate my.Pages.footnotes with @UI: { }, LineItem : [ {Value: type, @HTML5.CssDefaults: {width: '10%'}}, - {Value: fileName, @HTML5.CssDefaults: {width: '25%'}}, + {Value: fileName, @HTML5.CssDefaults: {width: '20%'}}, {Value: content, @HTML5.CssDefaults: {width: '0%'}}, - {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, - {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, - {Value: note, @HTML5.CssDefaults: {width: '25%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '15%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}}, + { + Value : uploadStatus, + Criticality: uploadStatusNav.criticality, + @Common.FieldControl: #ReadOnly, + @HTML5.CssDefaults: {width: '20%'} }, { $Type : 'UI.DataFieldForAction', Label : 'Copy Footnotes', diff --git a/db/data/sap.attachments-UploadScanStates.csv b/db/data/sap.attachments-UploadScanStates.csv new file mode 100644 index 00000000..8432b60d --- /dev/null +++ b/db/data/sap.attachments-UploadScanStates.csv @@ -0,0 +1,6 @@ +code;name;criticality +uploading;Uploading;5 +Success;Success;3 +Failed;Scan failed;2 +VirusDetected;Virus Detected;1 +VirusScanInprogress;Virus Scan In Progress(refresh page);5 \ No newline at end of file