interface DataProps {
  row: RequestItemsObject;
  rowIndex: number;
}

interface DataPropsEmployee {
  row: RequestItemsEmployee;
  rowIndex: number;
}

//ข้อมูล
interface RequestItemsObject {
  id: string;
  date: Date;
  amount: number;
  positionSalaryAmount: number;
  mouthSalaryAmount: number;
  oc: string;
  ocId: string;
  position: string;
  positionId: string;
  posNo: string;
  posNoId: string;
  positionLine: string;
  positionLineId: string;
  positionPathSide: string;
  positionPathSideId: string;
  positionType: string;
  positionTypeId: string;
  positionLevel: string;
  positionLevelId: string;
  positionExecutive: string;
  positionExecutiveId: string;
  positionExecutiveSide: string;
  positionExecutiveSideId: string;
  salaryClass: string;
  salaryRef: string;
  refCommandNo: string;
  //   refCommandDate: Date | null;
  salaryStatus: string | null;
  createdFullName: string;
  createdAt: Date;
}

interface RequestItemsEmployee {
  amount: number;
  createdAt: Date;
  createdFullName: string;
  date: Date;
  id: string;
  mouthSalaryAmount: number;
  oc: string | null;
  ocId: string;
  posNo: string | null;
  posNoId: string | null;
  posNoEmployee: string | null;
  positionEmployeeGroup: string | null;
  positionEmployeeGroupId: string | null;
  positionEmployeeLevel: string | null;
  positionEmployeeLevelId: string | null;
  positionEmployeePosition: string | null;
  positionEmployeePositionId: string | null;
  positionEmployeePositionSide: string | null;
  positionEmployeePositionSideId: string | null;
  positionSalaryAmount: number;
  salaryClass: string | null;
  salaryRef: string | null;
  refCommandNo: string;
  salaryStatus: string | null;
  //   refCommandDate: Date | null;
}

//columns
interface Columns {
  [index: number]: {
    name: String;
    align: String;
    label: String;
    sortable: Boolean;
    field: String;
    headerStyle: String;
    style: String;
  };
}

export type {
  RequestItemsObject,
  Columns,
  DataProps,
  RequestItemsEmployee,
  DataPropsEmployee,
};
