Skip to content

Instantly share code, notes, and snippets.

View Programador2-MCS's full-sized avatar

Programador2-Jose Rodriguez Programador2-MCS

View GitHub Profile
USE [MC_NI]
GO
/****** Object: StoredProcedure [dbo].[Spd_Scr_CalendarioProyectadoCuotaNiveladaMensual] Script Date: 18/07/2025 14:14:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- ================================================================================================
-- Author: Michelle Valezka Reyes Tijerino
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Diagnostics;
/*
* Realizado por Joseline Silva
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using System.Text.RegularExpressions;
USE [MC_TEGUCIGALPA_COPIA]
GO
/****** Object: StoredProcedure [dbo].[Spd_Scr_SolicitudNuevaMenor_Inserta] Script Date: 13/07/2025 14:30:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[Spd_Scr_SolicitudNuevaMenor_Inserta]
@Id bigint,
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using System.Text.RegularExpressions;
select * from SvnIngresosEgresos where
((PagoMonedaBase=1 and PagoIngresadoCajaBase is NULL) or (PagoMonedaLocal=1 and PagoIngresadoCajaLocal is NULL)) and
Fecha=(select valor from StbParametro where Nombre='FECHAOPERACION') and
PagoElectronicoWeb = 1 and
objEstadoID <> (select ID from StbCatalogoValor where Codigo='ANULADO'
and objCatalogoID=(select ID from StbCatalogo where Codigo='ESTADOSRECIBOS'))
SELECT StbSucursal.Nombre as Sucursal ,SrhEmpleado.Cedula ,LTRIM(RTRIM(SrhEmpleado.Nombre1)) +' '+ LTRIM(RTRIM(SrhEmpleado.Nombre2)) +' '+LTRIM(RTRIM(SrhEmpleado.Apellido1))+' '+LTRIM(RTRIM(SrhEmpleado.Apellido2)) as Nombre,SrhCargo.Nombre as Cargo,CONVERT(VARCHAR(10),SrhEmpleado.FechaIngreso,103) as FechaIngreso,
SrhVacacionesDetalle.SaldoInicial,SrhVacaciones.TotalAcumulado ,SrhVacacionesDetalle.Dias as DiasDescanso,
CAST(convert(varchar(10),SrhVacacionesSolicitud.FechaInicio,103)as varchar(100))+'-'+ CAST(convert(varchar(10),SrhVacacionesSolicitud.FechaFin,103) as varchar(100)) as FechaFin,SrhVacacionesDetalle.SaldoFinal,SrhVacaciones.Saldo as TotalFinal
,StbCatalogoValor.Valor as movimiento,CONVERT(Varchar(10),SrhVacacionesDetalle.Fecha,103) as fechaMov,SrhVacaciones.TotalDescanso, SrhEmpleado.ID as IdEmpleado
FROM SrhVacaciones
INNER JOIN SrhVacacionesDetalle on SrhVacacionesDetalle.objVacacionesID = SrhVacaciones.ID
LEFT JOIN SrhVacacion
@Programador2-MCS
Programador2-MCS / gist:326436fdac4ae12297df21f955f18e5a
Created March 19, 2025 21:12
Spd_Stb_ClienteInformacionInserta
USE [MC_CJ]
GO
/****** Object: StoredProcedure [dbo].[Spd_Stb_ClienteInformacionInserta] Script Date: 19/03/2025 15:12:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/*
* MODIFICADO POR: AXEL SILVA
public DataTable Foto_Kiva_MostrarSolicitudes(string txtBusqueda)
{
ClsConexion con = new ClsConexion();
DataTable data = new DataTable();
SqlConnection Conne = new SqlConnection(con.Conexion);
Conne.Open();
try
{
string Query = "select (c.Nombre1 +' '+ c.Nombre2 + ' '+ c.Apellido1 +' '+ c.Apellido2) as Solicitante,\r\n\tc.Cedula,sl.URL_Archivo,sl.Estado_Revision " +
"from ScrKivaValidacionFoto as Sl inner join ScrSolicitudNuevaMenor C on\r\n\tc.ID=sl.objScrSolicitudNuevaMenorID " +
public int DuplicarUltimoRegistro(string Cedula)
{
//if (VerificarSiExisteSolicitud(Cedula))
//{
// return -1;
//}
//if (!VerificarSiClientePuedeGenerarSolicitud(NumeroCredito))
//{
// //MessageBox.Show("No se generó represtamo. El cliente tiene estados no permitidos para generar una nueva solicitud.",
// // "Aviso", MessageBoxButtons.OK,MessageBoxIcon.Warning);