SkillTech-Organization / AXERP_UI

AXERP UI layer
0 stars 0 forks source link

Check the column definitions and setter methods at Axegaz Admin UI #15

Open szdezso opened 1 month ago

szdezso commented 1 month ago

AC-01 Check the Axegaz Admin UI how get and store teh Transaction column definitions. In 1 hour. https://github.com/AdministratorSkillTechApp/AxeCardFrontEnd

https://github.com/AdministratorSkillTechApp/AxeGazMobileForDriverWebApp

C-63 commented 2 weeks ago

@szdezso Angular version: 8.2.14 Used table: html table + material (mat-table)

Stations grid column model:

export class StationDescriptor {
    field: string;
    header: string;
    show: boolean;
    type: string;
    required: boolean;
}

Users grid column model:

export interface ColumnModel {
    field?: string;
    header?: string;
    show?: boolean;
    type?: string;
    required?: boolean;
    disabled?: boolean;
    checkEnableCondition?: (fieldValue?: any) => boolean;
}

Both is FE only, locally initialized column model lists for the properties of the DTOs, the list of column models doesn't come from BE.

For Transactions UI.

Transactions grid column model:

export interface ItemDef {
    label: string;
    defaultValue?: string;
    objectKey: string;
    colKey: string;
    type?: string;
}

Backend sends an array of strings as the names of the columns that can be shown.