diff --git a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/ByCustomer.tsx b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/ByCustomer.tsx index 378cafb3d..37e3a1502 100644 --- a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/ByCustomer.tsx +++ b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/ByCustomer.tsx @@ -36,7 +36,7 @@ declare var homePath: string; const fieldCols: SC.IByCol[] = [ { Field: 'Name', Label: 'Name', Type: 'string', Width: '15%' }, - { Field: 'CustomerKey', Label: 'Customer Key', Type: 'string', Width: '15%' }, + { Field: 'CustomerKey', Label: 'Key', Type: 'string', Width: '15%' }, { Field: 'Phone', Label: 'Phone', Type: 'string', Width: '10%' }, { Field: 'Description', Label: 'Description', Type: 'string', Width: 'auto' }, { Field: 'LSCVS', Label: 'LSCVS', Type: 'boolean', Width: 'auto' } @@ -70,7 +70,7 @@ const ByCustomer: Application.Types.iByComponent = (props) => { PagingID='ByCustomer' OnClick={(item) => { handleSelect(item); }} Columns={fieldCols} - DefaultSearchAscending={false} DefaultSearchKey='Name' + DefaultSearchAscending={true} DefaultSearchKey='Name' QueryAdditionalFields={() => $.ajax({ type: "GET", diff --git a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerAsset.tsx b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerAsset.tsx index 77461cecd..66e46f4c4 100644 --- a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerAsset.tsx +++ b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerAsset.tsx @@ -134,28 +134,26 @@ const CustomerAssetWindow = (props: IProps) => { return; dispatch(CustomerAssetSlice.Sort({ SortField: d.colField, Ascending: d.ascending })); }} - TableStyle={{ padding: 0, width: '100%', tableLayout: 'fixed', display: 'flex', flexDirection: 'column', overflow: 'hidden' }} - TheadStyle={{ fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }} - TbodyStyle={{ display: 'block', width: '100%', overflowY: 'auto', flex: 1 }} - RowStyle={{ fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }} + TheadStyle={{ fontSize: 'smaller' }} + RowStyle={{ fontSize: 'smaller' }} Selected={(item) => false} KeySelector={(item) => item.ID} > - Key={'AssetKey'} + Key={'AssetName'} AllowSort={true} - Field={'AssetKey'} + Field={'AssetName'} HeaderStyle={{ width: 'auto' }} RowStyle={{ width: 'auto' }} - > Key + > Name - Key={'AssetName'} + Key={'AssetKey'} AllowSort={true} - Field={'AssetName'} + Field={'AssetKey'} HeaderStyle={{ width: 'auto' }} RowStyle={{ width: 'auto' }} - > Name + > Key Key={'AssetType'} diff --git a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerMeter.tsx b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerMeter.tsx index 245b1d492..6813552a5 100644 --- a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerMeter.tsx +++ b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Customer/CustomerMeter.tsx @@ -199,28 +199,26 @@ const CustomerMeterWindow = (props: IProps) => { return; dispatch(CustomerMeterSlice.Sort({ SortField: d.colField, Ascending: d.ascending })); }} - TableStyle={{ padding: 0, width: '100%', tableLayout: 'fixed', display: 'flex', flexDirection: 'column', overflow: 'hidden' }} - TheadStyle={{ fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }} - TbodyStyle={{ display: 'block', width: '100%', overflowY: 'auto', flex: 1 }} - RowStyle={{ fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }} + TheadStyle={{ fontSize: 'smaller' }} + RowStyle={{ fontSize: 'smaller' }} Selected={(item) => false} KeySelector={(item) => item.ID} > - Key={'MeterKey'} + Key={'MeterName'} AllowSort={true} - Field={'MeterKey'} + Field={'MeterName'} HeaderStyle={{ width: 'auto' }} RowStyle={{ width: 'auto' }} - > Key + > Name - Key={'MeterName'} + Key={'MeterKey'} AllowSort={true} - Field={'MeterName'} + Field={'MeterKey'} HeaderStyle={{ width: 'auto' }} RowStyle={{ width: 'auto' }} - > Name + > Key Key={'MeterLocation'} @@ -268,10 +266,10 @@ const CustomerMeterWindow = (props: IProps) => { GetEnum={getEnum} GetAddlFields={getAdditionalMeterFields} > - Key Name + Key Substation ("DataFile", `${homePath}api/OpenXDA/DataFile`, "ProcessingEndTime", false); export const EventTypeAssetTypeSlice = new GenericSlice("EventTypeAssetType", `${homePath}api/OpenXDA/EventTypeAssetType`, "ID", false); export const CustomerSlice = new GenericSlice("Customer", `${homePath}api/SystemCenter/Customer`, "CustomerKey", false); -export const CustomerMeterSlice = new GenericSlice('CustomerMeter', `${homePath}api/SystemCenter/CustomerMeter`, 'MeterKey', false); -export const CustomerAssetSlice = new GenericSlice('CustomerAsset', `${homePath}api/SystemCenter/CustomerAsset`, 'AssetKey', false); +export const CustomerMeterSlice = new GenericSlice('CustomerMeter', `${homePath}api/SystemCenter/CustomerMeter`, 'MeterName', true); +export const CustomerAssetSlice = new GenericSlice('CustomerAsset', `${homePath}api/SystemCenter/CustomerAsset`, 'AssetName', true); export const EventTypeSlice = new GenericSlice("EventType", `${homePath}api/OpenXDA/EventType`, "Name");