This repository has been archived by the owner on Feb 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added NORSOK instrument view, added tab system for NORSOK and J…
…IP33 view (#82) Added NORSOK and JIP33 tab view for instrument. Added updated instrument models. Added NORSOK rowdata with connection to backend dummy data
- Loading branch information
1 parent
56948dc
commit 07b7647
Showing
12 changed files
with
1,473 additions
and
265 deletions.
There are no files selected for viewing
137 changes: 137 additions & 0 deletions
137
src/Components/NORSOKTable/RowData/EquipmentConditionsRowData.tsx
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,137 @@ | ||
import { InstrumentTagData } from "../../../Models/InstrumentTagData" | ||
import { TableRow } from "../../JIP33Table/RowData/TableRow" | ||
|
||
export const equipmentConditionsRowData = (datasheet: InstrumentTagData): TableRow[] => { | ||
return [ | ||
{ | ||
refClause: "", | ||
description: "Line nominal size", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.lineNominalSize, | ||
purchaserReqUOM: "inch", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Line inner diameter", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.lineInnerDiameter, | ||
purchaserReqUOM: "mm", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Line material", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.lineMaterial, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Flange standard or code", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.flangeStandardOrCode, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Flange size", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.flangeSize, | ||
purchaserReqUOM: "inch", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Flange pressure class", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.flangePressureClass, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Flange facing", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.flangeFacing, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Piping design temperature", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.pipingDesignTemperature, | ||
purchaserReqUOM: "°C", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Piping design pressure", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.pipingDesignPressure, | ||
purchaserReqUOM: "barg", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Fluid", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.fluid, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Phase", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.phase, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Corrosive Compounds", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.corrosiveCompounds, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Maximum pressure loss", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.maximumPressureLoss, | ||
purchaserReqUOM: "bar", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "Note 2", | ||
property: "", | ||
}, | ||
] | ||
} |
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,167 @@ | ||
import { InstrumentTagData } from "../../../Models/InstrumentTagData" | ||
import { TableRow } from "../../JIP33Table/RowData/TableRow" | ||
|
||
export const generalRowData = (datasheet: InstrumentTagData): TableRow[] => { | ||
return [ | ||
{ | ||
refClause: "", | ||
description: "Tag number", | ||
purchaserReq: datasheet.tagNo, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Service description", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.serviceDescription, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "P&ID", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.pAndID, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Line/equipment no", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.lineEquipmentNumber, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Pipe class sheet", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.pipeClassSheet, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Set/alarm point", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.setAlarmPoint, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Area", | ||
purchaserReq: datasheet.area, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "P.O. number", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.poNumber, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Type", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.type, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Manufacturer", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.manufacturer, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Operating Temp Limits", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.operatingTemperatureLimits, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Operating Press. Limit", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.operatingPressureLimit, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Press. loss at full range", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.pressureLossAtFullRange, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Mounting", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.mounting, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Weight", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.weight, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Other", | ||
purchaserReq: "NA", | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
] | ||
} |
77 changes: 77 additions & 0 deletions
77
src/Components/NORSOKTable/RowData/InstrumentCharacteristicsRowData.tsx
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,77 @@ | ||
import { InstrumentTagData } from "../../../Models/InstrumentTagData" | ||
import { TableRow } from "../../JIP33Table/RowData/TableRow" | ||
|
||
export const instrumentCharacteristicsRowData = (datasheet: InstrumentTagData): TableRow[] => { | ||
return [ | ||
{ | ||
refClause: "", | ||
description: "Calibrated Range", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.calibratedRange, | ||
purchaserReqUOM: "kg/h", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Characteristics", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.characteristics, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Accuracy", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.accuracy, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Linearity", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.linearity, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Repeatability", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.repeatability, | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Min/Max range limits", | ||
purchaserReq: datasheet.instrumentPurchaserRequirement?.minMaxRangeLimit, | ||
purchaserReqUOM: "kg/h", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
{ | ||
refClause: "", | ||
description: "Other", | ||
purchaserReq: "NA", | ||
purchaserReqUOM: "", | ||
supplierOfferedVal: "", | ||
supplierOfferedValUOM: "", | ||
additionalNotes: "", | ||
property: "", | ||
}, | ||
] | ||
} |
Oops, something went wrong.