fixes bug#20477
qua: dev:Valdir Realizado implementação de tela cadastro operadores ao dispositivo. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104557 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6df14d40e6
commit
cb2062b9bd
|
@ -0,0 +1,28 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE TABLE EMBARCADA_DISP_OPERADOR (
|
||||
EMBARCADADISPOPERADOR_ID NUMBER(15) NOT NULL,
|
||||
DISPOSITIVOEMBARCADA_ID NUMBER(7) NOT NULL,
|
||||
PUNTOVENTA_ID NUMBER(15) NOT NULL,
|
||||
USUARIO_ID NUMBER(7) NULL,
|
||||
ACTIVO NUMBER(1) NULL,
|
||||
FECMODIF DATE NULL,
|
||||
PRIMARY KEY (EMBARCADADISPOPERADOR_ID),
|
||||
FOREIGN KEY (USUARIO_ID) REFERENCES USUARIO,
|
||||
FOREIGN KEY (PUNTOVENTA_ID) REFERENCES PUNTO_VENTA,
|
||||
FOREIGN KEY (DISPOSITIVOEMBARCADA_ID) REFERENCES DISPOSITIVO_EMBARCADA
|
||||
)';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE SEQUENCE EMBARCADADISPOPERADOR_SEQ INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,6 @@
|
|||
declare
|
||||
begin
|
||||
execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values
|
||||
(FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > ESQUEMA OPERACIONAL > CONFIGURACAO VENDA EMBARCADA > OPERADORES DISP'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.CONFVENDAEMBARCADA.OPERADORESDISP'',1,SYSDATE,-1)';
|
||||
exception when others then null;
|
||||
end;
|
Loading…
Reference in New Issue