Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
feat: Renamed purchaserReq and supplierOff to Instrument
Browse files Browse the repository at this point in the history
Updated model and rowdata with new instrument names
  • Loading branch information
DanielBohme committed Jun 5, 2023
1 parent 9ed8437 commit 5dfa8e4
Show file tree
Hide file tree
Showing 16 changed files with 432 additions and 436 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export const generateAccessoriesRowData = (datasheet: Datasheet): TableRow[] =>
{
refClause: "",
description: "Weather enclosure:",
purchaserReq: datasheet.purchaserRequirement?.weatherEnclosure,
purchaserReq: datasheet.instrumentPurchaserRequirement?.weatherEnclosure,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.weatherEnclosure,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.weatherEnclosure,
supplierOfferedValColor: ColorLegendEnum.SpineModification,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand Down Expand Up @@ -37,19 +37,19 @@ export const generateAccessoriesRowData = (datasheet: Datasheet): TableRow[] =>
{
refClause: "",
description: "Electrical surge protector:",
purchaserReq: datasheet.purchaserRequirement?.electricalSurgeProtector,
purchaserReq: datasheet.instrumentPurchaserRequirement?.electricalSurgeProtector,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.electricalSurgeProtector,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.electricalSurgeProtector,
supplierOfferedValColor: ColorLegendEnum.SpineModification,
supplierOfferedValUOM: "",
additionalNotes: "",
},
{
refClause: "",
description: "Sunshade:",
purchaserReq: datasheet.purchaserRequirement?.sunshade,
purchaserReq: datasheet.instrumentPurchaserRequirement?.sunshade,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.sunshade,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.sunshade,
supplierOfferedValColor: ColorLegendEnum.SpineModification,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export const generateBodyElementSensorRowData = (datasheet: Datasheet): TableRow
purchaserReq: "",
purchaserReqColor: ColorLegendEnum.InputDataNoInputExp,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.bodyElementSensorManufacturerModelNumber,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.bodyElementSensorManufacturerModelNumber,
supplierOfferedValColor: ColorLegendEnum.InputDataSupCom,
supplierOfferedValUOM: "",
additionalNotes: "",
},
{
refClause: "",
description: "Body material:",
purchaserReq: datasheet.purchaserRequirement?.bodyMaterial,
purchaserReq: datasheet.instrumentPurchaserRequirement?.bodyMaterial,
purchaserReqColor: ColorLegendEnum.InputDataEitherPurOrSupCom,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.bodyMaterial,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.bodyMaterial,
supplierOfferedValColor: ColorLegendEnum.InputDataEitherPurOrSupCom,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand Down Expand Up @@ -54,7 +54,7 @@ export const generateBodyElementSensorRowData = (datasheet: Datasheet): TableRow
purchaserReq: "",
purchaserReqColor: ColorLegendEnum.InputDataNoInputExp,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.flangeMaterial,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.flangeMaterial,
supplierOfferedValColor: ColorLegendEnum.InputDataSupCom,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand All @@ -66,7 +66,7 @@ export const generateBodyElementSensorRowData = (datasheet: Datasheet): TableRow
purchaserReqColor: ColorLegendEnum.InputDataNoInputExp,
purchaserReqUOM: "",
purchaserReqUOMColor: ColorLegendEnum.SelectNoInputExp,
supplierOfferedVal: datasheet.supplierOfferedProduct?.bodySize,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.bodySize,
supplierOfferedValColor: ColorLegendEnum.InputDataSupCom,
supplierOfferedValUOM: "in",
supplierOfferedValUOMColor: ColorLegendEnum.SelectUnitsOfDropDown,
Expand All @@ -79,7 +79,7 @@ export const generateBodyElementSensorRowData = (datasheet: Datasheet): TableRow
purchaserReqColor: ColorLegendEnum.InputDataNoInputExp,
purchaserReqUOM: "",
purchaserReqUOMColor: ColorLegendEnum.SelectNoInputExp,
supplierOfferedVal: datasheet.supplierOfferedProduct?.endConnectionSize,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.endConnectionSize,
supplierOfferedValColor: ColorLegendEnum.InputDataSupCom,
supplierOfferedValUOM: "in",
supplierOfferedValUOMColor: ColorLegendEnum.SelectUnitsOfDropDown,
Expand All @@ -91,7 +91,7 @@ export const generateBodyElementSensorRowData = (datasheet: Datasheet): TableRow
purchaserReq: "ASME B16.5 RF",
purchaserReqColor: ColorLegendEnum.InputDataNoInputExp,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.endConnectionFlangeType,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.endConnectionFlangeType,
supplierOfferedValColor: ColorLegendEnum.InputDataSupCom,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand All @@ -102,7 +102,7 @@ export const generateBodyElementSensorRowData = (datasheet: Datasheet): TableRow
purchaserReq: "",
purchaserReqColor: ColorLegendEnum.SelectNoInputExp,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.endConnectionFlangeRating,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.endConnectionFlangeRating,
supplierOfferedValColor: ColorLegendEnum.SelectSupComDropDown,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand Down
8 changes: 4 additions & 4 deletions src/Components/JIP33Table/RowData/Instrument/FlowRowData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ export const generateFlowRowData = (datasheet: Datasheet): TableRow[] => {
{
refClause: "",
description: "Measurement range, minimum",
purchaserReq: datasheet.purchaserRequirement?.measurementRangeMinimum,
purchaserReq: datasheet.instrumentPurchaserRequirement?.measurementRangeMinimum,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.measurementRangeMinimum,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.measurementRangeMinimum,
supplierOfferedValColor: ColorLegendEnum.SpineModification,
supplierOfferedValUOM: "",
additionalNotes: "",
},
{
refClause: "",
description: "Measurement range, maximum:",
purchaserReq: datasheet.purchaserRequirement?.measurementRangeMaximum,
purchaserReq: datasheet.instrumentPurchaserRequirement?.measurementRangeMaximum,
purchaserReqUOM: "",
supplierOfferedVal: datasheet.supplierOfferedProduct?.measurementRangeMaximum,
supplierOfferedVal: datasheet.instrumentSupplierOfferedProduct?.measurementRangeMaximum,
supplierOfferedValColor: ColorLegendEnum.SpineModification,
supplierOfferedValUOM: "",
additionalNotes: "",
Expand Down
Loading

0 comments on commit 5dfa8e4

Please sign in to comment.