GPBR_TOXIC_VW(SQL View) |
Index Back |
---|---|
Toxicological Exam EventeSocial Stage Table This record is used to generate informations for eSocial layout S-2221 - Toxicological Exam Event - TAG- evtToxic |
SELECT B.GPBR_DRIVER_SEQ , B.GPBR_DRV_SPLIT_SEQ , B.COMPANY , B.GPBR_EVENT_CD , A.GPBR_TP_ENV , COALESCE(( SELECT C.GPBR_VERSION FROM %Table(GPBR_EVNT_SETUP) C WHERE C.GPBR_EVENT_CD = B.GPBR_EVENT_CD AND %EffdtCheck(GPBR_EVNT_SETUP C1, C, %CurrentDateIn)), ' ') , A.GPBR_ISSUER , B.GPBR_ACTION , A.GPBR_COMP_INS_TYPE , A.ESTAB_ID_BRA , B.GPBR_EVENT_ID , A.GPBR_RECT , A.GPBR_RECEIPT_NUM , A.NATIONAL_ID , A.GPBR_NAT_ID , A.GPBR_REG_ESOCIAL , A.GPBR_LABOR_CAT_CD , A.EXAM_DT , A.LAB_CNPJ_BRA , A.EXAM_NBR_BRA , A.GPBR_PERS_NAME , A.MED_CRM_BRA , A.GPBR_MED_STATE , A.EMPL_DRUG_REF_BRA FROM %Table(GPBR_STG_TOXIC) A ,%Table(GPBR_DRIVER_DAT) B WHERE A.GPBR_DRIVER_SEQ = B.GPBR_DRIVER_SEQ AND A.GPBR_DRV_SPLIT_SEQ = B.GPBR_DRV_SPLIT_SEQ AND B.GPBR_STATUS = 'XRDY' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | GPBR_DRIVER_SEQ | Number(30,0) | DECIMAL(30) NOT NULL | Driver Sequence |
2 | GPBR_DRV_SPLIT_SEQ | Number(20,0) | DECIMAL(20) NOT NULL | eSocial - Split Sequence |
3 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
4 | GPBR_EVENT_CD | Character(6) | VARCHAR2(6) NOT NULL | eSocial - Event Code |
5 | GPBR_TP_ENV | Character(1) | VARCHAR2(1) NOT NULL | eSocial Environment Identification |
6 | GPBR_VERSION | Character(9) | VARCHAR2(9) NOT NULL | eSocial version |
7 | GPBR_ISSUER | Number(1,0) | SMALLINT NOT NULL | eSocial Issuer |
8 | GPBR_ACTION | Character(3) | VARCHAR2(3) NOT NULL |
eSocial Action
ADD=Row Inserted COR=Row Correction DEL=Row Deleted UPD=Row Updated |
9 | GPBR_COMP_INS_TYPE | Character(1) | VARCHAR2(1) NOT NULL | eSocial Company Inscription Type |
10 | ESTAB_ID_BRA | Character(20) | VARCHAR2(20) NOT NULL | Establishment ID Brazil |
11 | GPBR_EVENT_ID | Character(40) | VARCHAR2(40) NOT NULL | eSocial - Generate ID Number Governant |
12 | GPBR_RECT | Number(30,0) | DECIMAL(30) NOT NULL | eSocial Ind Calculation |
13 | GPBR_RECEIPT_NUM | Character(40) | VARCHAR2(40) NOT NULL | Receipt Num |
14 | NATIONAL_ID | Character(20) | VARCHAR2(20) NOT NULL | National ID |
15 | GPBR_NAT_ID | Character(11) | VARCHAR2(11) NOT NULL | eSocial National ID Number |
16 | GPBR_REG_ESOCIAL | Character(30) | VARCHAR2(30) NOT NULL | eSocial eSocial Register |
17 | GPBR_LABOR_CAT_CD | Character(3) | VARCHAR2(3) NOT NULL | eSocial Labor Category Legal Code |
18 | EXAM_DT | Date(10) | DATE | Exam Date |
19 | LAB_CNPJ_BRA | Character(14) | VARCHAR2(14) NOT NULL | Laboratory Provider CNPJ |
20 | EXAM_NBR_BRA | Character(17) | VARCHAR2(17) NOT NULL | Drug exam number. |
21 | GPBR_PERSON_NAME | Character(92) | VARCHAR2(92) NOT NULL | Person Name |
22 | MED_CRM_BRA | Character(15) | VARCHAR2(15) NOT NULL | Medical Certication Register. |
23 | GPBR_MED_STATE | Character(2) | VARCHAR2(2) NOT NULL | Medical State |
24 | EMPL_DRUG_REF_BRA | Character(1) | VARCHAR2(1) NOT NULL | Indicator of whether the employee refused to take the drug test or not at the termination. |