Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -531,4 +531,9 @@ public override IHttpActionResult Patch([FromBody] AssetGroupView record)
}
}

[RoutePrefix("api/OpenXDA/MeterAssetGroup")]
public class MeterAssetGroupController : ModelController<MeterAssetGroup> { }

[RoutePrefix("api/OpenXDA/AssetAssetGroup")]
public class AssetAssetGroupController : ModelController<AssetAssetGroup> { }
}
8 changes: 8 additions & 0 deletions Source/Applications/SystemCenter/SystemCenter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\AssetAttribute\FawgLineSegmentWizard\TapSelect.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\AssetAttribute\SourceImpedanceWindow.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\AdditionalFieldsKeyModal.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\AssetGroups\AssetGroupRelation.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\AdditionalFieldsValueField.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\ChannelGroup\ByChannelGroup.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\ChannelGroup\ChannelGroupItemForm.tsx" />
Expand All @@ -618,15 +619,21 @@
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\Restrictions\EditionLockPage.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\Restrictions\EditionLockModal.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\AssetGroupWindow.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\ControllerSelectPopup.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\ExtDBTaskStatusModal.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\FileGroupAnalysisJobPriority.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\GenericForm.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\GenericInfo.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\GenericRecord.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\GenericRelation.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\ProcessingStatus.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\Restrictions\EditionRestrictionTooltip.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\Restrictions\RoleRestrictionTooltip.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\ExternalDBUpdate.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\StatusDetails.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\StatusGroup.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\StatusItem.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\Customer\CustomerRelation.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\DeviceHealthReport\AppStatus.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\ExternalDB\ExternalDBTable.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\ExternalDB\ExternalDBTableFields.tsx" />
Expand Down Expand Up @@ -818,6 +825,7 @@
<Content Include="wwwroot\Scripts\TSX\SystemCenter\Store\AdditionalUserFieldSlice.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\Matcher.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\Store\ConfigurationSlice.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\Store\UserSettings.ts" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\User\AdditionalUserFieldsWindow.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\User\UserGroup\ByUserGroup.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\User\User\Permissions.tsx" />
Expand Down
62 changes: 31 additions & 31 deletions Source/Applications/SystemCenter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Source/Applications/SystemCenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"webpack-cli": "4.7.2"
},
"dependencies": {
"@gpa-gemstone/react-graph": "1.0.115",
"@gpa-gemstone/react-graph": "1.0.116",
"@turf/turf": "7.4.0",
"@arcgis/core": "5.1.17",
"proj4leaflet": "^1.0.2",
"@gpa-gemstone/common-pages": "0.0.190",
"@gpa-gemstone/common-pages": "0.0.191",
"@reduxjs/toolkit": "1.8.3",
"assert": "2.0.0",
"buffer": "6.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ import { LoadingScreen, TabSelector, Warning } from '@gpa-gemstone/react-interac
import SourceImpedanceWindow from '../AssetAttribute/SourceImpedanceWindow';
import { useAppSelector } from '../hooks';
import { SelectRoles } from '../Store/UserSettings';
import AssetGroupRelation from '../AssetGroups/AssetGroupRelation';
import CustomerRelation from '../Customer/CustomerRelation';

declare var homePath: string;
declare type Tab = 'notes' | 'assetInfo' | 'substations' | 'meters' | 'connections' | 'additionalFields' | 'extDB' | 'segments' | 'sourceImpedances' | 'channels';
declare type Tab = 'notes' | 'assetInfo' | 'substations' | 'meters' | 'connections' | 'additionalFields' | 'extDB' | 'segments' | 'sourceImpedances' | 'channels' | 'assetGroups' | 'customers';

interface IProps { AssetID: number, Tab: Tab }

Expand Down Expand Up @@ -144,6 +146,8 @@ function Asset(props: IProps) {
{ Id: "meters", Label: "Meters" },
{ Id: "channels", Label: "Channels" },
{ Id: "connections", Label: "Connections" },
{ Id: "assetGroups", Label: "Asset Groups" },
{ Id: "customers", Label: "Customers"}
];

if (assetType == 'Line') {
Expand Down Expand Up @@ -180,7 +184,9 @@ function Asset(props: IProps) {
{tab === "channels" ? <AssetChannelWindow Name={asset.AssetName} ID={asset.ID} />: null}
{tab === 'connections' ? <AssetConnectionWindow Name={asset.AssetName} ID={asset.ID} TypeID={asset["AssetTypeID"]} />: null}
{tab === 'sourceImpedances' ? <SourceImpedanceWindow ID={asset.ID} />: null}
{tab === 'segments' ? <LineSegmentWindow ID={asset.ID} LineKey={asset.AssetKey} LineName={asset.AssetName} OnChange={() => { setForceReload(x => !x) }} />: null}
{tab === 'segments' ? <LineSegmentWindow ID={asset.ID} LineKey={asset.AssetKey} LineName={asset.AssetName} OnChange={() => { setForceReload(x => !x) }} /> : null}
{tab === 'assetGroups' ? <AssetGroupRelation Record={asset} /> : null}
{tab === 'customers' ? <CustomerRelation Record={asset} /> : null }

<Warning Message={'This will permanently delete this Asset and cannot be undone.'} Show={showDelete} Title={'Delete ' + (asset?.AssetName ?? 'Asset')} CallBack={(conf) => { if (conf) deleteAsset(); setShowDelete(false); }} />
<LoadingScreen Show={loadDelete} />
Expand Down
Loading