This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public onPrintReceiptPdf(doc: any, item: any) { | |
doc.loading = true; | |
const idsDArray = item?.ids_deposito?item?.ids_deposito.split('|').map(Number):[]; | |
const idsODArray = item?.ids_odeposito?item?.ids_odeposito.split('|').map(Number):[]; | |
if (idsDArray.length==0 && idsODArray.length==0){ | |
doc.loading = false; | |
return; | |
} | |
const params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Dashboard de APIs</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cliente { | |
private String nombre; | |
private Date fechaRegistro; | |
public String getNombre() { | |
return nombre; | |
} | |
public void setNombre(String nombre) { | |
this.nombre = nombre; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.diego.pe.db; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import javax.swing.JOptionPane; | |
public class Conexion { | |
// Declaración de variables estáticas para la conexión |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--EJERCICIO 16 | |
--Uso de la CLAUSULA HAVING | |
SELECT apellido_paterno, count(*) AS cantidad FROM PERSONA | |
GROUP BY apellido_paterno | |
HAVING count(*) >= 2 | |
; | |
--Ejercicio 17 JOINS | |
--Uso de INNER JOIN | |
SELECT * FROM PERSONA p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ejercicio 01 | |
-- de 5 tablas usar la funcion count(*) --Contar | |
SELECT * FROM PERSONA; --LISTAR TODO LOS DATOS | |
SELECT | |
NOMBRE, | |
apellido_materno AS MATERNO, | |
apellido_paterno AS PATERNO | |
FROM PERSONA; | |
SELECT COUNT(*) AS cantidad_persona | |
FROM PERSONA; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------- | |
-- Archivo creado - miércoles-setiembre-04-2024 | |
-------------------------------------------------------- | |
-------------------------------------------------------- | |
-- DDL for Sequence SQ_PERSONA | |
-------------------------------------------------------- | |
CREATE SEQUENCE "USUARIO_MATRICULA"."SQ_PERSONA" MINVALUE 10 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 30 CACHE 20 NOORDER NOCYCLE NOKEEP NOSCALE GLOBAL ; | |
-------------------------------------------------------- | |
-- DDL for Sequence SQ_PERSONA_CELULAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------Diego Frank------ | |
--Crear una nueva base de datos | |
--paso 01 | |
ALTER SESSION SET "_ORACLE_SCRIPT" = TRUE; | |
--paso 02 | |
CREATE USER USUARIO_MATRICULA IDENTIFIED BY "1234560" | |
DEFAULT TABLESPACE "USERS" | |
TEMPORARY TABLESPACE "TEMP"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Crear una nueva base de datos | |
--paso 01 | |
ALTER SESSION SET "_ORACLE_SCRIPT" = TRUE; | |
--paso 02 | |
CREATE USER USUARIO_MATRICULA IDENTIFIED BY "1234560" | |
DEFAULT TABLESPACE "USERS" | |
TEMPORARY TABLESPACE "TEMP"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://aka.ms/new-console-template for more information | |
bool salir = false; | |
while (!salir) | |
{ | |
Console.WriteLine("=================="); | |
Console.WriteLine("Nombre: Diego Lipa"); | |
Console.WriteLine("=================="); | |
Console.WriteLine("Elije una opción: "); |
NewerOlder