215 lines
5.0 KiB
Plaintext
215 lines
5.0 KiB
Plaintext
import common from '@ohos.app.ability.common';
|
|
import { ColumnInfo, ColumnType } from '../utils/DbSql';
|
|
|
|
export const MA_SYS_SET_COLUMN: ColumnInfo[] = [
|
|
{
|
|
name: "id",
|
|
columnName: "id",
|
|
type: ColumnType.STRING
|
|
},
|
|
{
|
|
name: "v_no",
|
|
columnName: "v_no",
|
|
type: ColumnType.STRING
|
|
}
|
|
]
|
|
|
|
export interface TableDefinition {
|
|
tableName: string;
|
|
sqlCreate: string;
|
|
columns: string[];
|
|
}
|
|
;
|
|
|
|
export interface TableMapType {
|
|
MA_MARKRULE: TableDefinition,
|
|
MA_SYSTEMPARM: TableDefinition,
|
|
MA_MAP_COLLECT: TableDefinition,
|
|
MA_MAP_COLLECT_SHAPE: TableDefinition,
|
|
MA_MAP_ITEMCLASS: TableDefinition,
|
|
MA_MAP_POINT: TableDefinition,
|
|
MA_MAP_POINT_ITEM: TableDefinition,
|
|
MA_MAP_ROAD: TableDefinition,
|
|
MA_MAP_ROAD_LANE: TableDefinition,
|
|
MAP_SUBITEM: TableDefinition,
|
|
MA_MAP_SUBITEM: TableDefinition,
|
|
MA_SYSSET: TableDefinition,
|
|
ES_CARINFO: TableDefinition,
|
|
ES_EXAMPOINTDETAIL: TableDefinition,
|
|
MA_MARKRULESET: TableDefinition,
|
|
MA_CDSBINFO: TableDefinition,
|
|
MA_ITEMINFO: TableDefinition,
|
|
MA_T_CARPARMSET: TableDefinition,
|
|
ES_CAR_VIDEO_PARAMETER: TableDefinition,
|
|
USER: TableDefinition,
|
|
USERLIST: TableDefinition,
|
|
IpConfigTable: TableDefinition,
|
|
DeviceInfoTable: TableDefinition,
|
|
CommonConstants: TableDefinition
|
|
}
|
|
|
|
export interface CenterTableMapType {
|
|
ItemInfo: TableDefinition,
|
|
MarkRule: TableDefinition,
|
|
SystemParm: TableDefinition,
|
|
mapCollectList: TableDefinition,
|
|
mapCollectshapeList: TableDefinition,
|
|
Map_Collect: TableDefinition,
|
|
Map_Collect_Shape: TableDefinition,
|
|
Map_ItemClass: TableDefinition,
|
|
Map_Point: TableDefinition,
|
|
Map_Point_Item: TableDefinition,
|
|
Map_Road: TableDefinition,
|
|
Map_Road_Lane: TableDefinition,
|
|
Map_SubItem: TableDefinition,
|
|
Sysset: TableDefinition,
|
|
CarInfo: TableDefinition,
|
|
MarkRuleSet: TableDefinition,
|
|
Cdsbinfo: TableDefinition,
|
|
T_CarParmSet: TableDefinition,
|
|
}
|
|
|
|
export interface InitializeTheCentralTableType {
|
|
singlePlay?: boolean
|
|
carId?: string
|
|
examinationRoomId?: string
|
|
judgeVersion?: string
|
|
shellVersion?: string
|
|
host?: string
|
|
videoVersion?: string
|
|
context?: common.UIAbilityContext
|
|
mode?: string
|
|
paraKdid?: string
|
|
kdid?: string
|
|
centerHost?: string
|
|
}
|
|
|
|
// 以下是各个表的类型
|
|
export interface MASYSSETTableType {
|
|
id?: string
|
|
v_no?: string
|
|
v_name?: string
|
|
v_value?: string
|
|
}
|
|
|
|
// 'id', 'car_mac', 'status', 'voiceip', 'carno', 'carcode', 'cartype', 'device_status', 'carip', 'pulse1',
|
|
// 'pulse2', 'isface', 'bk1', 'ismapcollect', 'bk2', 'exampointcode', 'software_version', 'typename', 'vin',
|
|
// 'voicetype', 'em', 'carclass', 'carid', 'flag', 'kscx', 'x_mch'
|
|
export interface ES_CARINFOType {
|
|
id?: string
|
|
car_mac?: string
|
|
status?: string
|
|
voiceip?: string
|
|
carno?: string
|
|
carcode?: string
|
|
cartype?: string
|
|
device_status?: string
|
|
carip?: string
|
|
pulse1?: string
|
|
pulse2?: string
|
|
isface?: string
|
|
bk1?: string
|
|
ismapcollect?: string
|
|
bk2?: string
|
|
exampointcode?: string
|
|
software_version?: string
|
|
typename?: string
|
|
vin?: string
|
|
voicetype?: string
|
|
em?: string
|
|
carclass?: string
|
|
carid?: string
|
|
flag?: string
|
|
kscx?: string
|
|
x_mch?: string
|
|
}
|
|
|
|
// 'id', 'no1', 'no2', 'no3', 'txt1', 'txt2', 'txt3'
|
|
export interface MA_SYSTEMPARMType {
|
|
id?: string
|
|
no1?: string
|
|
no2?: string
|
|
no3?: string
|
|
txt1?: string
|
|
txt2?: string
|
|
txt3?: string
|
|
NO1?: number,
|
|
NO2?: number,
|
|
NO3?: number,
|
|
TXT1?: string,
|
|
TXT2?: string,
|
|
TXT3?: string,
|
|
}
|
|
|
|
// 'id', 'sbbm', 'itemsno', 'sbbh', 'kdid', 'bk3'
|
|
export interface MA_CDSBINFOType {
|
|
id?: string
|
|
sbbm?: string
|
|
itemsno?: string
|
|
sbbh?: string
|
|
kdid?: string
|
|
bk3?: string
|
|
}
|
|
|
|
// 'id', 'cininfo', 'setup9', 'nextinfo', 'setup7', 'setup8', 'setup5', 'carlist', 'setup6', 'setup3',
|
|
// 'setup4', 'setup1', 'setup2', 'itemsno', 'end_cardsno', 'freqinfo'
|
|
export interface MA_ITEMINFOType {
|
|
id?: string
|
|
cininfo?: string
|
|
setup9?: string
|
|
nextinfo?: string
|
|
setup7?: string
|
|
setup8?: string
|
|
setup5?: string
|
|
carlist?: string
|
|
setup6?: string
|
|
setup3?: string
|
|
setup4?: string
|
|
setup1?: string
|
|
setup2?: string
|
|
itemsno?: string
|
|
end_cardsno?: string
|
|
freqinfo?: string
|
|
}
|
|
|
|
// 'id', 'point_no', 'point_no_f', 'gps_e', 'gps_e_location', 'gps_n', 'gps_n_location', 'f_gps_e',
|
|
// 'f_gps_n', 'point_type', 'road_code', 'visible', 'passed'
|
|
export interface MA_MAP_POINTType {
|
|
id?: string
|
|
point_no?: string
|
|
point_no_f?: string
|
|
gps_e?: string
|
|
gps_e_location?: string
|
|
gps_n?: string
|
|
gps_n_location?: string
|
|
f_gps_e?: string
|
|
f_gps_n?: string
|
|
point_type?: string
|
|
road_code?: string
|
|
visible?: string
|
|
passed?: string
|
|
}
|
|
|
|
// id', 'point_no', 'itemno', 'itemno1', 'subname'
|
|
export interface MA_MAP_POINT_ITEMType {
|
|
id?: string
|
|
point_no?: string
|
|
itemno?: string
|
|
itemno1?: string
|
|
subname?: string
|
|
}
|
|
|
|
// 'id', 'itemno', 'markserial', 'markdepend', 'markcatalog', 'markstandard', 'markreal', 'markshow', 'txt1',
|
|
// 'kfxh'
|
|
export interface MA_MARKRULEType {
|
|
id?: string
|
|
itemno?: string
|
|
markserial?: string
|
|
markdepend?: string
|
|
markcatalog?: string
|
|
markstandard?: string
|
|
markreal?: string
|
|
markshow?: string
|
|
txt1?: string
|
|
kfxh?: string
|
|
} |