Skip to content

Commit

Permalink
feat: Add more TR3111 properties to tag comparison view
Browse files Browse the repository at this point in the history
Also removed extra Area property from NORSOK view
  • Loading branch information
DanielBohme committed Sep 15, 2023
1 parent 1d11f7f commit 6a69a55
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Components/NORSOKTable/RowData/GeneralRowData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ export const generalRowData = (datasheet: InstrumentTagData): TableRow[] => [
additionalNotes: "",
property: "setalarmPoint",
},
{
refClause: "",
description: "Area",
purchaserReq: datasheet.area,
purchaserReqUOM: "",
supplierOfferedVal: "",
supplierOfferedValUOM: "",
additionalNotes: "",
property: "area",
},
{
refClause: "",
description: "P.O. number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ export const comparisonTR3111ColumnDefs = (): ColGroupDef[] => [
field: getPropertyName<TagData>("purchaseOrder"),
headerName: "Purchase order",
},
{
field: getPropertyName<TagData>("sequence"),
headerName: "Sequence",
},
{
field: getPropertyName<TagData>("system"),
headerName: "System",
},
],
},
]
2 changes: 2 additions & 0 deletions src/Models/TagData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export class TagData implements Components.Schemas.TagDataDto {
tagStatus?: string | null;
engineeringCode?: string | null;
purchaseOrder?: string | null;
sequence?: string | null;
system?: string | null;
version?: number; // int32
review?: TagDataReview;
revisionContainer?: RevisionContainer;
Expand Down
10 changes: 10 additions & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ declare namespace Components {
tagStatus?: string | null;
engineeringCode?: string | null;
purchaseOrder?: string | null;
sequence?: string | null;
system?: string | null;
version?: number; // int32
review?: TagDataReviewDto;
revisionContainer?: RevisionContainerDto;
Expand Down Expand Up @@ -383,6 +385,8 @@ declare namespace Components {
tagStatus?: string | null;
engineeringCode?: string | null;
purchaseOrder?: string | null;
sequence?: string | null;
system?: string | null;
version?: number; // int32
review?: TagDataReviewDto;
revisionContainer?: RevisionContainerDto;
Expand Down Expand Up @@ -797,6 +801,8 @@ declare namespace Components {
tagStatus?: string | null;
engineeringCode?: string | null;
purchaseOrder?: string | null;
sequence?: string | null;
system?: string | null;
version?: number; // int32
review?: TagDataReviewDto;
revisionContainer?: RevisionContainerDto;
Expand Down Expand Up @@ -1521,6 +1527,8 @@ declare namespace Components {
tagStatus?: string | null;
engineeringCode?: string | null;
purchaseOrder?: string | null;
sequence?: string | null;
system?: string | null;
version?: number; // int32
review?: TagDataReviewDto;
revisionContainer?: RevisionContainerDto;
Expand Down Expand Up @@ -1575,6 +1583,8 @@ declare namespace Components {
tagStatus?: string | null;
engineeringCode?: string | null;
purchaseOrder?: string | null;
sequence?: string | null;
system?: string | null;
version?: number; // int32
review?: TagDataReviewDto;
revisionContainer?: RevisionContainerDto;
Expand Down

0 comments on commit 6a69a55

Please sign in to comment.