Version OScar
This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
BIN
ADSUtileriasService/.vs/ADSUtileriasService/v16/.suo
Normal file
BIN
ADSUtileriasService/.vs/ADSUtileriasService/v16/.suo
Normal file
Binary file not shown.
BIN
ADSUtileriasService/.vs/ADSUtileriasService/v17/.suo
Normal file
BIN
ADSUtileriasService/.vs/ADSUtileriasService/v17/.suo
Normal file
Binary file not shown.
7
ADSUtileriasService/.vs/VSWorkspaceState.json
Normal file
7
ADSUtileriasService/.vs/VSWorkspaceState.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ExpandedNodes": [
|
||||
""
|
||||
],
|
||||
"SelectedNode": "\\ChecadorController",
|
||||
"PreviewInSolutionExplorer": false
|
||||
}
|
||||
BIN
ADSUtileriasService/.vs/slnx.sqlite
Normal file
BIN
ADSUtileriasService/.vs/slnx.sqlite
Normal file
Binary file not shown.
BIN
ADSUtileriasService/ADSNetLibrary.dll
Normal file
BIN
ADSUtileriasService/ADSNetLibrary.dll
Normal file
Binary file not shown.
37
ADSUtileriasService/ADSUtileriasAPP.Designer.cs
generated
Normal file
37
ADSUtileriasService/ADSUtileriasAPP.Designer.cs
generated
Normal file
@@ -0,0 +1,37 @@
|
||||
namespace ADSUtileriasService
|
||||
{
|
||||
partial class ADSUtileriasAPP
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
this.ServiceName = "Service1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
189
ADSUtileriasService/ADSUtileriasAPP.cs
Normal file
189
ADSUtileriasService/ADSUtileriasAPP.cs
Normal file
@@ -0,0 +1,189 @@
|
||||
using ADSUtileriasService.Conexion.Local.Estructura;
|
||||
using ADSUtileriasService.Conexion.SIG;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.ServiceModel.Description;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Configuration;
|
||||
|
||||
|
||||
|
||||
namespace ADSUtileriasService
|
||||
{
|
||||
public partial class ADSUtileriasAPP : ServiceBase
|
||||
{
|
||||
public ServiceHost hostPVservice;
|
||||
public ServiceHost hostChecadorservice;
|
||||
public ServiceHost Systemservice;
|
||||
public ADSUtileriasAPP()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
public void iniciarServiciosWCF()
|
||||
{
|
||||
DetenerServiciosWCF();
|
||||
|
||||
|
||||
Uri baseAddress = new Uri("http://localhost:8000/UtileriasService/");
|
||||
|
||||
WSHttpBinding binding = new WSHttpBinding();
|
||||
binding.OpenTimeout = new TimeSpan(0, 10, 0);
|
||||
binding.CloseTimeout = new TimeSpan(0, 10, 0);
|
||||
binding.SendTimeout = new TimeSpan(0, 10, 0);
|
||||
binding.ReceiveTimeout = new TimeSpan(0, 10, 0);
|
||||
string icontrac = "ADSNetLibrary.Application.Servicio.WCF.ISystemService";
|
||||
|
||||
Systemservice = new ServiceHost(typeof(ADSNetLibrary.Application.Servicio.WCF.SystemService));
|
||||
//Systemservice.AddServiceEndpoint(icontrac, binding, baseAddress);
|
||||
//ServiceMetadataBehavior metad = Systemservice.Description.Behaviors.Find<ServiceMetadataBehavior>();
|
||||
//if (metad == null)
|
||||
// metad = new ServiceMetadataBehavior();
|
||||
//metad.HttpGetEnabled = true;
|
||||
//Systemservice.Description.Behaviors.Add(metad);
|
||||
//Systemservice.AddServiceEndpoint(
|
||||
// ServiceMetadataBehavior.MexContractName,
|
||||
// MetadataExchangeBindings.CreateMexHttpBinding(),
|
||||
// "mex"
|
||||
//);
|
||||
Systemservice.Open();
|
||||
|
||||
hostPVservice = new ServiceHost(typeof(Servicios.Puntoventaservice));
|
||||
|
||||
|
||||
hostPVservice.Open();
|
||||
|
||||
|
||||
hostChecadorservice = new ServiceHost(typeof(Servicios.ChecadorService));
|
||||
hostChecadorservice.Open();
|
||||
}
|
||||
|
||||
public void DetenerServiciosWCF()
|
||||
{
|
||||
if (Systemservice != null && Systemservice.State == CommunicationState.Opened)
|
||||
{
|
||||
Systemservice.Close();
|
||||
}
|
||||
if (hostPVservice != null && hostPVservice.State == CommunicationState.Opened)
|
||||
{
|
||||
hostPVservice.Close();
|
||||
}
|
||||
|
||||
if (hostChecadorservice != null && hostChecadorservice.State == CommunicationState.Opened)
|
||||
{
|
||||
hostChecadorservice.Close();
|
||||
}
|
||||
}
|
||||
public void Sig_Service()
|
||||
{
|
||||
//bool continuar = true;
|
||||
//RHSIG rhsig = new RHSIG();
|
||||
//if (continuar)
|
||||
//{
|
||||
|
||||
// ResponseModel<List<ResponseGetPersonal>> empleados = rhsig.GetPersonal(new SIGAPI.Models.RH.Request.RequestGetPersonal());
|
||||
// if (empleados != null && empleados.Result != null)
|
||||
// {
|
||||
|
||||
// using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
// {
|
||||
// Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
// rhrepo.DeleteAllPersonal();
|
||||
// foreach (ResponseGetPersonal personal in empleados.Result)
|
||||
// {
|
||||
// rhrepo.AddPersonal(personal);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//if (continuar)
|
||||
//{
|
||||
// ResponseModel<List<ResponseGetChecadoresModel>> checks = rhsig.GetChecadores(new SIGAPI.Models.RH.Request.RequestGetChecadoresModel());
|
||||
// if (checks != null && checks.Result != null)
|
||||
// {
|
||||
|
||||
// using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
// {
|
||||
// Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
// rhrepo.DeleteAllChecadores();
|
||||
// foreach (ResponseGetChecadoresModel personal in checks.Result)
|
||||
// {
|
||||
// rhrepo.AddChecadores(personal);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
public void Service_sig()
|
||||
{
|
||||
|
||||
}
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
var x = 1;
|
||||
ADSNetLibrary.Helpers.ModVars.UrlApi = System.Configuration.ConfigurationManager.AppSettings["UrlApi"].ToString();
|
||||
ADSUtileriasService.Helpers.GlobalVars.continuarService = true;
|
||||
#if DEBUG
|
||||
//
|
||||
System.Diagnostics.Debugger.Launch();
|
||||
//ADSNetLibrary.Helpers.ModVars.UrlApi = "http://localhost:60281/";
|
||||
#else
|
||||
#endif
|
||||
try
|
||||
{
|
||||
string actualizarKeyPersonal = System.Configuration.ConfigurationManager.AppSettings["actualizarKeyPersonal"].ToString();
|
||||
if(actualizarKeyPersonal == "1")
|
||||
{
|
||||
ChecadorController.LogicChecador.UpdateKeyPersonalChecador();
|
||||
}
|
||||
UpdateAppSetting("actualizarKeyPersonal", "0");
|
||||
}
|
||||
catch (Exception ){}
|
||||
try
|
||||
{
|
||||
|
||||
Sig_Service();
|
||||
Service_sig();
|
||||
ChecadorController.LogicChecador.SyncLocaldato();
|
||||
iniciarServiciosWCF();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
bool continuar = e != null;
|
||||
if (continuar)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
ADSUtileriasService.Helpers.GlobalVars.continuarService = false;
|
||||
DetenerServiciosWCF();
|
||||
}
|
||||
public static void UpdateAppSetting(string key, string value)
|
||||
{
|
||||
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
|
||||
|
||||
if (config.AppSettings.Settings[key] != null)
|
||||
config.AppSettings.Settings[key].Value = value;
|
||||
else
|
||||
config.AppSettings.Settings.Add(key, value);
|
||||
|
||||
config.Save(ConfigurationSaveMode.Modified);
|
||||
|
||||
ConfigurationManager.RefreshSection("appSettings");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
230
ADSUtileriasService/ADSUtileriasService.csproj
Normal file
230
ADSUtileriasService/ADSUtileriasService.csproj
Normal file
@@ -0,0 +1,230 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\EntityFramework.6.3.0\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{1C65BD72-C604-45A4-B18E-F5E415A6649F}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>ADSUtileriasService</RootNamespace>
|
||||
<AssemblyName>ADSUtileriasService</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
<TargetFrameworkProfile />
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\ADSUtileriasWF\bin\Debug\Service\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Icon.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="ADSNetLibrary">
|
||||
<HintPath>C:\Proyectos\SIG_NETCore\SIGAPI\ADSNetLibrary\ADSNetLibrary\bin\Release\netstandard2.0\ADSNetLibrary.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ClosedXML, Version=0.95.4.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ClosedXML.0.95.4\lib\net46\ClosedXML.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DocumentFormat.OpenXml, Version=2.7.2.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DocumentFormat.OpenXml.2.7.2\lib\net46\DocumentFormat.OpenXml.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.3.0\lib\net45\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.3.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ExcelNumberFormat, Version=1.0.10.0, Culture=neutral, PublicKeyToken=23c6f5d73be07eca, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ExcelNumberFormat.1.0.10\lib\net20\ExcelNumberFormat.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Interop.zkemkeeper, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
<HintPath>C:\Proyectos\SIG_NETCore\SIGAPI\ADSNetLibrary\ADSNetLibrary\Interop.zkemkeeper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=6.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.IdentityModel.JsonWebTokens.6.8.0\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.IdentityModel.Logging, Version=6.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.IdentityModel.Logging.6.8.0\lib\net461\Microsoft.IdentityModel.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.IdentityModel.Tokens, Version=6.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.IdentityModel.Tokens.6.8.0\lib\net461\Microsoft.IdentityModel.Tokens.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net46\System.Data.SQLite.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.SQLite.EF6, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net46\System.Data.SQLite.EF6.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.SQLite.Linq, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net46\System.Data.SQLite.Linq.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=6.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IdentityModel.Tokens.Jwt.6.8.0\lib\net461\System.IdentityModel.Tokens.Jwt.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.FileSystem.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.FileSystem.Primitives.4.0.1\lib\net46\System.IO.FileSystem.Primitives.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.Packaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.Packaging.4.0.0\lib\net46\System.IO.Packaging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.ServiceProcess" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ADSUtileriasAPP.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ADSUtileriasAPP.Designer.cs">
|
||||
<DependentUpon>ADSUtileriasAPP.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ChecadorController\ApiChecadorBase.cs" />
|
||||
<Compile Include="ChecadorController\ApiZKTeco.cs" />
|
||||
<Compile Include="ChecadorController\LogicChecador.cs" />
|
||||
<Compile Include="Conexion\Local\BaseRepository.cs" />
|
||||
<Compile Include="Conexion\Local\Estructura\RHTablas.cs" />
|
||||
<Compile Include="Conexion\Local\Estructura\SqlLitestructura.cs" />
|
||||
<Compile Include="Conexion\Local\PlaneacionRepository.cs" />
|
||||
<Compile Include="Conexion\Local\RHRepository.cs" />
|
||||
<Compile Include="Conexion\SIG\BaseSIG.cs" />
|
||||
<Compile Include="Conexion\SIG\PlaneacionSIG.cs" />
|
||||
<Compile Include="Conexion\SIG\RHSIG.cs" />
|
||||
<Compile Include="Conexion\SIG\UsuarioSIG.cs" />
|
||||
<Compile Include="Servicios\ChecadorService.cs" />
|
||||
<Compile Include="Helpers\ADSSqlite\SqlLiteBase.cs" />
|
||||
<Compile Include="Helpers\ADSSqlite\SqlLiteConnectionEnum.cs" />
|
||||
<Compile Include="Helpers\GlobalVars.cs" />
|
||||
<Compile Include="Helpers\ModExtensiones.cs" />
|
||||
<Compile Include="Modelos\AppSystem\Usuario.cs" />
|
||||
<Compile Include="Modelos\BaseModal.cs" />
|
||||
<Compile Include="Modelos\Checador\Checadormodel.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="ProjectInstaller.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProjectInstaller.Designer.cs">
|
||||
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Servicios\Puntoventaservice.cs" />
|
||||
<Compile Include="Servicios\UtileriasService.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="ProjectInstaller.resx">
|
||||
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Modelos\PV\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Icon.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 y x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.3.0\build\EntityFramework.props'))" />
|
||||
<Error Condition="!Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.3.0\build\EntityFramework.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\EntityFramework.6.3.0\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.targets')" />
|
||||
<Import Project="..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets" Condition="Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" />
|
||||
<Import Project="..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
|
||||
</Project>
|
||||
13
ADSUtileriasService/ADSUtileriasService.csproj.user
Normal file
13
ADSUtileriasService/ADSUtileriasService.csproj.user
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||
<InstallUrlHistory />
|
||||
<SupportUrlHistory />
|
||||
<UpdateUrlHistory />
|
||||
<BootstrapperUrlHistory />
|
||||
<ErrorReportUrlHistory />
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
106
ADSUtileriasService/App.config
Normal file
106
ADSUtileriasService/App.config
Normal file
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
<appSettings>
|
||||
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
|
||||
<add key="UrlApi" value="http://sig.adssistemas.mx:4001/" />
|
||||
<add key="FilesDir" value="D:\ADSistemas\Proyectos\SIG\ADSUtilerias\FilesDir\" />
|
||||
<add key="ClientSettingsProvider.ServiceUri" value="" />
|
||||
<add key="UserName" value="jcaudillo"/>
|
||||
<add key="Password" value="45makako45"/>
|
||||
<add key="CveEmpresa" value="119"/>
|
||||
<add key="actualizarKeyPersonal" value="0"/>
|
||||
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" />
|
||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||
<providers>
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
||||
</providers>
|
||||
</membership>
|
||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||
<providers>
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
</system.web>
|
||||
<!-- When deploying the service library project, the content of the config file must be added to the host's
|
||||
app.config file. System.Configuration does not support config files for libraries. -->
|
||||
<system.serviceModel>
|
||||
<services>
|
||||
<service name="ADSUtileriasService.Servicios.Puntoventaservice">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/PV/" />
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<endpoint address="" binding="basicHttpBinding" contract="ADSUtileriasService.Servicios.IPuntoventaservice">
|
||||
<identity>
|
||||
<dns value="localhost" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
|
||||
</service>
|
||||
<service name="ADSUtileriasService.Servicios.ChecadorService">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/Checador/" />
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<endpoint address="" binding="basicHttpBinding" contract="ADSUtileriasService.Servicios.IChecadorService">
|
||||
<identity>
|
||||
<dns value="localhost" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
|
||||
</service>
|
||||
<service name="ADSNetLibrary.Application.Servicio.WCF.SystemService">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/UtileriasService/" />
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<endpoint address="" binding="basicHttpBinding" contract="ADSNetLibrary.Application.Servicio.WCF.ISystemService">
|
||||
<identity>
|
||||
<dns value="localhost" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
|
||||
</service>
|
||||
</services>
|
||||
<behaviors>
|
||||
<serviceBehaviors>
|
||||
<behavior>
|
||||
<!-- To avoid disclosing metadata information,
|
||||
set the values below to false before deployment -->
|
||||
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
|
||||
<!-- To receive exception details in faults for debugging purposes,
|
||||
set the value below to true. Set to false before deployment
|
||||
to avoid disclosing exception information -->
|
||||
<serviceDebug includeExceptionDetailInFaults="False" />
|
||||
</behavior>
|
||||
</serviceBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
<entityFramework>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
<system.data>
|
||||
<DbProviderFactories>
|
||||
<remove invariant="System.Data.SQLite.EF6" />
|
||||
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
|
||||
<remove invariant="System.Data.SQLite" />
|
||||
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
</configuration>
|
||||
11
ADSUtileriasService/ChecadorController/ApiChecadorBase.cs
Normal file
11
ADSUtileriasService/ChecadorController/ApiChecadorBase.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.ChecadorController
|
||||
{
|
||||
}
|
||||
17
ADSUtileriasService/ChecadorController/ApiZKTeco.cs
Normal file
17
ADSUtileriasService/ChecadorController/ApiZKTeco.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
|
||||
namespace ADSUtileriasService.ChecadorController
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
173
ADSUtileriasService/ChecadorController/LogicChecador.cs
Normal file
173
ADSUtileriasService/ChecadorController/LogicChecador.cs
Normal file
@@ -0,0 +1,173 @@
|
||||
using ADSNetLibrary.Application.Conexiones.Local;
|
||||
using ADSNetLibrary.Helpers.Conexiones.LocalSQLite;
|
||||
using ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib;
|
||||
using ADSNetLibrary.SIGAPI.Models.RH.Request;
|
||||
using ADSUtileriasService.Conexion.SIG;
|
||||
using ADSUtileriasService.Helpers;
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.ChecadorController
|
||||
{
|
||||
public class LogicChecador
|
||||
{
|
||||
public static Timer timerchecador;
|
||||
static int mmTiempo = 900000;// 15 minutos
|
||||
public static bool SyncLocaldato()
|
||||
{
|
||||
//10min
|
||||
//mmTiempo = 3000; // 30 segundos
|
||||
|
||||
Mod.GuardaLog("timmer", LogsNames.Log);
|
||||
timerchecador = new Timer(ontimerchecador, $"multithread executed... tiempo de envio {mmTiempo} milisegundos.", 0, mmTiempo); //1200000 //2400000 // 3600000);
|
||||
|
||||
Mod.GuardaLog("timmer executed", LogsNames.Log);
|
||||
return true;
|
||||
}
|
||||
|
||||
static void ontimerchecador(object data)
|
||||
{
|
||||
// This runs on a pooled thread
|
||||
//Console.WriteLine(data); // Writes "multithread executed..."
|
||||
|
||||
Mod.GuardaLog($"timmer executed {mmTiempo}", LogsNames.Log);
|
||||
try
|
||||
{
|
||||
|
||||
RHSIG rhsig = new RHSIG();
|
||||
using (SqlLiteBase bd = new SqlLiteBase(""))
|
||||
{
|
||||
UtileriasSqlite utilsqlite = new UtileriasSqlite(bd);
|
||||
var devicelist = utilsqlite.GETChecadoresActivos();
|
||||
foreach (ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetChecadoresModel devicemodel in devicelist)
|
||||
{
|
||||
|
||||
Mod.GuardaLog($"Checador Actual {devicemodel.checador} {devicemodel.iPLocal} {devicemodel.puerto} CveChecado: {devicemodel.cveChecador} CveEmpresa:{devicemodel.CveEmpresa} CveSubpryecto:{devicemodel.cveSubProyecto} ", LogsNames.Log);
|
||||
SDKZkTeckoHelper libvalidacion = new SDKZkTeckoHelper();
|
||||
/*
|
||||
//bool conected = libvalidacion.sta_ConnectTCP(devicemodel.iPLocal, devicemodel.puerto, "0") > 0;
|
||||
if (conected)
|
||||
{
|
||||
usuariosporvaldar = libvalidacion.GetUserInfo();
|
||||
libvalidacion.sta_DisConnect();
|
||||
}*/
|
||||
ADSNetLibrary.SIGAPI.Models.ResponseModel<List<RegistroPersonalChecador>> registros = null;
|
||||
ADSNetLibrary.SIGAPI.Models.ResponseModel<List<ResponseUser>> users = null;
|
||||
|
||||
//int contadorRegistros = 0;
|
||||
using (ApiZKTeco device = new ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero()))
|
||||
{
|
||||
registros = device.GetChecadorRegistroEmpleado(DateTime.Now.AddDays(-17), DateTime.Now.AddMonths(1));
|
||||
|
||||
bool continuarx = false;
|
||||
while (continuarx && (registros == null || !registros.IsSuccess))
|
||||
{
|
||||
registros = device.GetChecadorRegistroEmpleado(DateTime.Now.AddDays(-17), DateTime.Now.AddMonths(1));
|
||||
}
|
||||
if (registros != null && registros.IsSuccess)
|
||||
{
|
||||
users = device.GetUserInfo();
|
||||
}
|
||||
}
|
||||
|
||||
if (users != null && users.IsSuccess)
|
||||
{
|
||||
Mod.GuardaLog($"Numero de registros {users.Result.Count} ", LogsNames.Log);
|
||||
}
|
||||
|
||||
//Mod.GuardaLog(Newtonsoft.Json.JsonConvert.SerializeObject(device.GetChecadorEmpleado()), LogsNames.Log);
|
||||
List<RequestAddChecadorRegistro> registrostosave = new List<RequestAddChecadorRegistro>();
|
||||
if (users != null && users.IsSuccess)
|
||||
{
|
||||
List<ResponseUser> usuariosporvaldar = users.Result;
|
||||
DateTime mindate = DateTime.Now.AddMonths(-2);
|
||||
if (mindate > GlobalVars.fechaChecadorlup) { GlobalVars.fechaChecadorlup = mindate; }
|
||||
//DateTime fechac = GlobalVars.fechaChecadorlup;
|
||||
foreach (RegistroPersonalChecador reg in registros.Result)
|
||||
{
|
||||
RequestAddChecadorRegistro req = new RequestAddChecadorRegistro();
|
||||
|
||||
req.ChecadorID = reg.IdPersonal.ToEntero();
|
||||
|
||||
var usuario = usuariosporvaldar.FirstOrDefault(x => x.dwEnrollNumber == reg.IdPersonal);
|
||||
if (usuario != null) { req.CvePersonal = usuario.sCardnumber.ToEntero(); }
|
||||
req.CveChecador = devicemodel.cveChecador;
|
||||
req.Fecha = reg.fecha;
|
||||
registrostosave.Add(req);
|
||||
//if (reg.fecha > fechac) { fechac = reg.fecha; }
|
||||
|
||||
}
|
||||
//GlobalVars.fechaChecadorlup = fechac;
|
||||
rhsig.AddChecadorRegistro(registrostosave);
|
||||
|
||||
}
|
||||
Mod.GuardaLog(Newtonsoft.Json.JsonConvert.SerializeObject(registrostosave), LogsNames.Log);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Error al enviar registros de asistencia", LogsNames.Log);
|
||||
}
|
||||
if (!ADSUtileriasService.Helpers.GlobalVars.continuarService)
|
||||
{
|
||||
if (timerchecador != null)
|
||||
{
|
||||
timerchecador.Dispose();
|
||||
timerchecador = null;
|
||||
Mod.GuardaLog("Teminar timer", LogsNames.Log);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static void UpdateKeyPersonalChecador()
|
||||
{
|
||||
|
||||
Mod.GuardaLog($"Actualiza key executed {mmTiempo}", LogsNames.Log);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
using (SqlLiteBase bd = new SqlLiteBase(""))
|
||||
{
|
||||
UtileriasSqlite utilsqlite = new UtileriasSqlite(bd);
|
||||
var devicelist = utilsqlite.GETChecadoresActivos();
|
||||
foreach (ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetChecadoresModel devicemodel in devicelist)
|
||||
{
|
||||
Mod.GuardaLog($"Checador Actual {devicemodel.checador} {devicemodel.iPLocal} {devicemodel.puerto} CveChecado: {devicemodel.cveChecador} CveEmpresa:{devicemodel.CveEmpresa} CveSubpryecto:{devicemodel.cveSubProyecto} ", LogsNames.Log);
|
||||
|
||||
ADSNetLibrary.SIGAPI.Models.ResponseModel<List<ResponseUser>> users = null;
|
||||
using (ApiZKTeco device = new ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero()))
|
||||
{
|
||||
users = device.GetUserInfo();
|
||||
|
||||
foreach (ResponseUser reg in users.Result)
|
||||
{
|
||||
device.UpdateUserCardFromPassword(reg);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
30
ADSUtileriasService/Conexion/Local/BaseRepository.cs
Normal file
30
ADSUtileriasService/Conexion/Local/BaseRepository.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSUtileriasService.Helpers.ADSSqlite;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.Local
|
||||
{
|
||||
public class BaseRepository
|
||||
{
|
||||
public SqlLiteBase bd;
|
||||
protected void OnError(string strerror, Exception e)
|
||||
{
|
||||
|
||||
Mod.GuardaLog(e, strerror);
|
||||
}
|
||||
public BaseRepository(SqlLiteBase bd)
|
||||
{
|
||||
if (bd.BDType!= SqlLiteConnectionEnum.Empresa)
|
||||
{
|
||||
Helpers.Mod.GuardaLog("Se envio una BD Incorrecta");
|
||||
}else
|
||||
{
|
||||
this.bd = bd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
200
ADSUtileriasService/Conexion/Local/Estructura/RHTablas.cs
Normal file
200
ADSUtileriasService/Conexion/Local/Estructura/RHTablas.cs
Normal file
@@ -0,0 +1,200 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.Local.Estructura
|
||||
{
|
||||
class RHTablas
|
||||
{
|
||||
public static string Checador
|
||||
{
|
||||
get
|
||||
{
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("CREATE TABLE [RH_Checador] (");
|
||||
strSQL.Append(" ROWID INTEGER primary key autoincrement,");
|
||||
strSQL.Append(" [cveChecador] INTEGER NULL,");
|
||||
strSQL.Append(" [checador] TEXT NULL,");
|
||||
strSQL.Append(" [cveSubProyecto] INTEGER NULL,");
|
||||
strSQL.Append(" [cveModelo] INTEGER NULL,");
|
||||
strSQL.Append(" [iPLocal] TEXT NULL,");
|
||||
strSQL.Append(" [puerto] TEXT NULL,");
|
||||
strSQL.Append(" [cveUsuario] INTEGER NULL,");
|
||||
strSQL.Append(" [fechaIng] DATETIME NULL,");
|
||||
strSQL.Append(" [CveEmpresa] INTEGER NULL,");
|
||||
strSQL.Append(" [estatus] INT DEFAULT 0) ");
|
||||
return strSQL.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public static string RH_RegistroPersonalChecador
|
||||
{
|
||||
get
|
||||
{
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("CREATE TABLE [RH_RegistroPersonalChecador] (");
|
||||
strSQL.Append(" [fecha] DateTime) ");
|
||||
return strSQL.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
|
||||
public class RegistroPersonalChecador
|
||||
{
|
||||
public string IdPersonal;
|
||||
public string idwWorkcode;
|
||||
public DateTime fecha;
|
||||
public int idwInOutMode;
|
||||
public int idwVerifyMode;
|
||||
}
|
||||
*
|
||||
*/
|
||||
public static string Personal
|
||||
{
|
||||
get
|
||||
{
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("CREATE TABLE [RH_Personal] (");
|
||||
strSQL.Append(" ROWID INTEGER primary key autoincrement,");
|
||||
strSQL.Append(" [CvePersonal] int NOT NULL,");
|
||||
strSQL.Append(" [Codigo] varchar(12)NOT NULL,");
|
||||
strSQL.Append(" [Nombre] varchar(112)NOT NULL,");
|
||||
strSQL.Append(" [Correo] varchar(50)NULL,");
|
||||
strSQL.Append(" [NombreCompleto] varchar(112)NOT NULL,");
|
||||
strSQL.Append(" [APaterno] varchar(30)NOT NULL,");
|
||||
strSQL.Append(" [AMaterno] varchar(30)NOT NULL,");
|
||||
strSQL.Append(" [Nombres] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [NombreCompletoNombre] varchar(112)NOT NULL,");
|
||||
strSQL.Append(" [CodigoNombreCompleto] varchar(127)NOT NULL,");
|
||||
strSQL.Append(" [NSS] varchar(25)NOT NULL,");
|
||||
strSQL.Append(" [FechaIngreso] date NOT NULL,");
|
||||
strSQL.Append(" [NumeroSS] varchar(25)NOT NULL,");
|
||||
strSQL.Append(" [SeInscribioSS] bit NOT NULL,");
|
||||
strSQL.Append(" [SalarioDiarioPago] money NOT NULL,");
|
||||
strSQL.Append(" [SalarioDiario] money NOT NULL,");
|
||||
strSQL.Append(" [SDI] money NOT NULL,");
|
||||
strSQL.Append(" [SalarioDiarioSS] money NOT NULL,");
|
||||
strSQL.Append(" [Bono] money NOT NULL,");
|
||||
strSQL.Append(" [NumDiasAguinaldo] int NOT NULL,");
|
||||
strSQL.Append(" [PorPrimaVacacional] float(53) NOT NULL,");
|
||||
strSQL.Append(" [CveMetodoPago] int NOT NULL,");
|
||||
strSQL.Append(" [MetodoPago] varchar(40)NOT NULL,");
|
||||
strSQL.Append(" [MetodoPagoSAT] varchar(2)NULL,");
|
||||
strSQL.Append(" [CveSATRegimenContratacion] int NULL,");
|
||||
strSQL.Append(" [RegimenContratacion] varchar(300)NULL,");
|
||||
strSQL.Append(" [CveRegimenContratacion] varchar(2)NULL,");
|
||||
strSQL.Append(" [CveSATRiesgoPuesto] int NULL,");
|
||||
strSQL.Append(" [RiesgoPuesto] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveRiesgoPuesto] varchar(10)NULL,");
|
||||
strSQL.Append(" [CveSATBanco] int NULL,");
|
||||
strSQL.Append(" [Banco] varchar(150)NULL,");
|
||||
strSQL.Append(" [CveBanco] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveTipoPeriodo] int NOT NULL,");
|
||||
strSQL.Append(" [TipoPeriodo] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [FechaInicioContrato] date NOT NULL,");
|
||||
strSQL.Append(" [FechaFinContrato] date NULL,");
|
||||
strSQL.Append(" [CveTipoContrato] int NOT NULL,");
|
||||
strSQL.Append(" [TipoContrato] varchar(100)NOT NULL,");
|
||||
strSQL.Append(" [CodigoTipoContrato] varchar(2)NULL,");
|
||||
strSQL.Append(" [Ubicacion] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveSubProyectoZona] int NULL,");
|
||||
strSQL.Append(" [CveTurno] int NOT NULL,");
|
||||
strSQL.Append(" [Turno] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CvePuesto] int NOT NULL,");
|
||||
strSQL.Append(" [Puesto] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveDepartamento] int NOT NULL,");
|
||||
strSQL.Append(" [Departamento] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveRuta] int NOT NULL,");
|
||||
strSQL.Append(" [Ruta] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveEscolaridad] int NOT NULL,");
|
||||
strSQL.Append(" [Escolaridad] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveEstadoCivil] int NOT NULL,");
|
||||
strSQL.Append(" [EstadoCivil] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveGenero] int NOT NULL,");
|
||||
strSQL.Append(" [Genero] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveMotivoBaja] int NOT NULL,");
|
||||
strSQL.Append(" [MotivoBaja] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CvePeriodoFiniquito] int NULL,");
|
||||
strSQL.Append(" [FechaBaja] date NULL,");
|
||||
strSQL.Append(" [CveEstatusPersonal] int NOT NULL,");
|
||||
strSQL.Append(" [EstatusPersonal] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [FechaNacimiento] date NOT NULL,");
|
||||
strSQL.Append(" [LugarNacimiento] varchar(70)NULL,");
|
||||
strSQL.Append(" [Calle] varchar(70)NULL,");
|
||||
strSQL.Append(" [NumExt] varchar(10)NULL,");
|
||||
strSQL.Append(" [NumInt] varchar(10)NULL,");
|
||||
strSQL.Append(" [Colonia] varchar(30)NULL,");
|
||||
strSQL.Append(" [Direccion] varchar(70)NULL,");
|
||||
strSQL.Append(" [CP] varchar(5)NULL,");
|
||||
strSQL.Append(" [Ciudad] varchar(30)NULL,");
|
||||
strSQL.Append(" [CveEstado] int NULL,");
|
||||
strSQL.Append(" [Estado] varchar(30)NULL,");
|
||||
strSQL.Append(" [Telefono] varchar(10)NULL,");
|
||||
strSQL.Append(" [Celular] varchar(10)NULL,");
|
||||
strSQL.Append(" [RFC] varchar(13)NULL,");
|
||||
strSQL.Append(" [CURP] varchar(18)NULL,");
|
||||
strSQL.Append(" [NombrePadre] varchar(50)NULL,");
|
||||
strSQL.Append(" [NombreMadre] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveJornada] int NULL,");
|
||||
strSQL.Append(" [Jornada] varchar(50)NULL,");
|
||||
strSQL.Append(" [ClaveTipoJornada] varchar(2)NULL,");
|
||||
strSQL.Append(" [CveClienteAsignado] int NOT NULL,");
|
||||
strSQL.Append(" [ClienteAsignado] varchar(150)NOT NULL,");
|
||||
strSQL.Append(" [CveSubProyecto] int NOT NULL,");
|
||||
strSQL.Append(" [SubProyecto] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveProyecto] int NOT NULL,");
|
||||
strSQL.Append(" [Proyecto] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [CveSupervisor] int NOT NULL,");
|
||||
strSQL.Append(" [Supervisor] varchar(50)NOT NULL,");
|
||||
strSQL.Append(" [FechaIng] datetime NOT NULL,");
|
||||
strSQL.Append(" [URL] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveUsuario] int NOT NULL,");
|
||||
strSQL.Append(" [Usuario] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveEmpresa] int NOT NULL,");
|
||||
strSQL.Append(" [CLABE] varchar(18)NULL,");
|
||||
strSQL.Append(" [BancoNumCuenta] varchar(20)NULL,");
|
||||
strSQL.Append(" [IdCtaContPersonal] int NULL,");
|
||||
strSQL.Append(" [IdCtaContPersonalSIG] int NULL,");
|
||||
strSQL.Append(" [CtaContPersonal] varchar(50)NULL,");
|
||||
strSQL.Append(" [IdCtaContPrestamos] int NULL,");
|
||||
strSQL.Append(" [IdCtaContPrestamosSIG] int NULL,");
|
||||
strSQL.Append(" [CtaContPrestamos] varchar(50)NULL,");
|
||||
strSQL.Append(" [CvePersonalPadre] int NULL,");
|
||||
strSQL.Append(" [ClaveEstado] varchar(5)NULL,");
|
||||
strSQL.Append(" [TipoPerioricidadPago] varchar(2)NULL,");
|
||||
strSQL.Append(" [CveChecadorHorario] int NULL,");
|
||||
strSQL.Append(" [ChecadorHorario] varchar(50)NULL,");
|
||||
strSQL.Append(" [CveUsuarioNomina] int NULL,");
|
||||
strSQL.Append(" [NombreAbreviatura] varchar(10)NULL,");
|
||||
strSQL.Append(" [CveUniforme] int NULL,");
|
||||
strSQL.Append(" [NumeroTarjeta] int NULL,");
|
||||
strSQL.Append(" [Sucursal] varchar(50)NULL,");
|
||||
strSQL.Append(" [CuentaBancaria] varchar(50)NULL,");
|
||||
strSQL.Append(" [TelefonoExtension] varchar(15)NULL,");
|
||||
strSQL.Append(" [CelularPersonal] varchar(10)NULL,");
|
||||
strSQL.Append(" [TelefonoMarcadoRapido] varchar(10)NULL,");
|
||||
strSQL.Append(" [ContactoAlterno] varchar(10)NULL,");
|
||||
strSQL.Append(" [FechaActivo] date NULL,");
|
||||
strSQL.Append(" [FechaReingreso] date NULL,");
|
||||
strSQL.Append(" [esTemporal] int NOT NULL,");
|
||||
strSQL.Append(" [RFCValidado] int NOT NULL,");
|
||||
strSQL.Append(" [MaiReciboNomina] varchar(255)NOT NULL,");
|
||||
strSQL.Append(" [CveTipodeSalario] int NOT NULL,");
|
||||
strSQL.Append(" [CveChecador] int NULL,");
|
||||
strSQL.Append(" [ChecadorID] int NULL,");
|
||||
strSQL.Append(" [CveUsuarioUpdate] int NULL,");
|
||||
strSQL.Append(" [FechaUpdate] DATETIME NULL,");
|
||||
strSQL.Append(" [SincronizadoSig] int NULL DEFAULT 1,");
|
||||
strSQL.Append(" [SincronizadoChecador] int NULL DEFAULT 1");
|
||||
strSQL.Append(") ");
|
||||
return strSQL.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SQLite;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSUtileriasService.Helpers.ADSSqlite;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.Local.Estructura
|
||||
{
|
||||
|
||||
static class SqlLitestructura
|
||||
{
|
||||
//public SqlLitestructura(SqlLiteBase bd)
|
||||
//{
|
||||
// switch (bd.BDType)
|
||||
// {
|
||||
// case SqlLiteConnectionEnum.AppConfig:
|
||||
// break;
|
||||
// case SqlLiteConnectionEnum.Empresa:
|
||||
// EstructuraBDEmpresas(bd);
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
//}
|
||||
public static void EstructuraBDEmpresas(SqlLiteBase bd)
|
||||
{
|
||||
bool continuar = true;
|
||||
bd.BeginTransaction();
|
||||
int Version = -1;
|
||||
int retorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
try
|
||||
{
|
||||
bd.ClearCommand("SELECT * FROM Tversion");
|
||||
using (SQLiteDataReader reader = bd.ExecuteReader())
|
||||
{
|
||||
if (reader.Read())
|
||||
{
|
||||
Version = reader.GetInt32(0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
if (Version == -1)
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery("CREATE TABLE Tversion (Version INT)");
|
||||
retorno = bd.RunExecuteNonQuery("INSERT INTO Tversion (Version) VALUES(0)");
|
||||
}
|
||||
|
||||
if (Version == -1)
|
||||
{
|
||||
strSQL.Clear();
|
||||
#region "Gral_Proyecto"
|
||||
strSQL.Append("CREATE TABLE [Gral_Proyecto] (");
|
||||
strSQL.Append(" ROWID INTEGER primary key autoincrement,");
|
||||
strSQL.Append(" [cveProyecto] INTEGER NULL,");
|
||||
strSQL.Append(" [proyecto] TEXT NULL,");
|
||||
strSQL.Append(" [CveEmpresa] INTEGER NULL,");
|
||||
strSQL.Append(" [estatus] INT DEFAULT 0) ");
|
||||
#endregion
|
||||
if (continuar)
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery(strSQL.ToString());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Estructura Local");
|
||||
continuar = false;
|
||||
}
|
||||
}
|
||||
strSQL.Clear();
|
||||
#region "SubProyecto"
|
||||
strSQL.Append("CREATE TABLE [Gral_SubProyecto] (");
|
||||
strSQL.Append(" ROWID INTEGER primary key autoincrement,");
|
||||
strSQL.Append(" [cveSubProyecto] INTEGER NULL,");
|
||||
strSQL.Append(" [subProyecto] TEXT NULL,");
|
||||
strSQL.Append(" [cveProyecto] INTEGER NULL,");
|
||||
strSQL.Append(" [CveEmpresa] INTEGER NULL,");
|
||||
strSQL.Append(" [estatus] INT DEFAULT 0) ");
|
||||
#endregion
|
||||
if (continuar)
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery(strSQL.ToString());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Estructura Local");
|
||||
continuar = false;
|
||||
}
|
||||
}
|
||||
strSQL.Clear();
|
||||
if (continuar)
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery(Conexion.Local.Estructura.RHTablas.Checador);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Estructura Local");
|
||||
continuar = false;
|
||||
}
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery(Conexion.Local.Estructura.RHTablas.Personal);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Estructura Local");
|
||||
continuar = false;
|
||||
}
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery(Conexion.Local.Estructura.RHTablas.RH_RegistroPersonalChecador);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Estructura Local");
|
||||
continuar = false;
|
||||
}
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = bd.RunExecuteNonQuery("Update Tversion SET Version=1");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Estructura Local Version");
|
||||
continuar = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (continuar)
|
||||
{
|
||||
bd.Commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
bd.Rollback();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
ADSUtileriasService/Conexion/Local/PlaneacionRepository.cs
Normal file
12
ADSUtileriasService/Conexion/Local/PlaneacionRepository.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.Local
|
||||
{
|
||||
class PlaneacionRepository
|
||||
{
|
||||
}
|
||||
}
|
||||
346
ADSUtileriasService/Conexion/Local/RHRepository.cs
Normal file
346
ADSUtileriasService/Conexion/Local/RHRepository.cs
Normal file
@@ -0,0 +1,346 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSUtileriasService.Helpers.ADSSqlite;
|
||||
using ADSUtileriasService.Modelos.Checador;
|
||||
using ADSNetLibrary.SIGAPI.Models.RH.Response;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SQLite;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.Local
|
||||
{
|
||||
public class RHRepository : BaseRepository
|
||||
{
|
||||
public RHRepository(SqlLiteBase bd) : base(bd)
|
||||
{
|
||||
|
||||
}
|
||||
#region Checador
|
||||
public List<Checadormodel> GETChecadores(int cveSubProyecto)
|
||||
{
|
||||
List<Checadormodel> objretorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("SELECT ");
|
||||
strSQL.Append(" RC.ROWID,RC.cveChecador,RC.checador,RC.cveSubProyecto,RC.cveModelo,RC.iPLocal,RC.puerto,RC.cveUsuario,RC.fechaIng,RC.CveEmpresa,RC.estatus,");
|
||||
strSQL.Append(" SP.subProyecto,P.proyecto");
|
||||
strSQL.Append(" FROM RH_Checador AS RC");
|
||||
strSQL.Append(" LEFT JOIN Gral_SubProyecto AS SP ON RC.cveSubProyecto=SP.cveSubProyecto");
|
||||
strSQL.Append(" LEFT JOIN Gral_Proyecto AS P ON SP.cveProyecto=P.cveProyecto");
|
||||
strSQL.Append(" WHERE (RC.cveSubProyecto=@cveSubProyecto OR @cveSubProyecto =-1 )");
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@cveSubProyecto", cveSubProyecto));
|
||||
objretorno = bd.QueryToList<Checadormodel>();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = null;
|
||||
OnError("Ocurrió un Error al obtener los checadores", e);
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
public bool AddChecadores(ResponseGetChecadoresModel checador)
|
||||
{
|
||||
bool objretorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
//strSQL.Append("INSERT INTO RH_Checador (cveChecador,checador,cveSubProyecto,cveModelo,iPLocal,puerto,cveUsuario,fechaIng,CveEmpresa,estatus)");
|
||||
//strSQL.Append(" VALUES(@cveChecador,@checador,@cveSubProyecto,@cveModelo,@iPLocal,@puerto,@cveUsuario,@fechaIng,@CveEmpresa,@estatus)");
|
||||
strSQL.AppendLine(" UPDATE RH_Checador SET checador=@checador, cveSubProyecto=@cveSubProyecto, cveModelo=@cveModelo, iPLocal=@iPLocal, puerto=@puerto, cveUsuario=@cveUsuario, fechaIng=@fechaIng, CveEmpresa=@CveEmpresa, estatus=@estatus ");
|
||||
strSQL.AppendLine(" WHERE cveChecador = @cveChecador ");
|
||||
strSQL.AppendLine("");
|
||||
strSQL.AppendLine(" INSERT INTO RH_Checador (cveChecador,checador,cveSubProyecto,cveModelo,iPLocal,puerto,cveUsuario,fechaIng,CveEmpresa,estatus) ");
|
||||
strSQL.AppendLine(" SELECT @cveChecador,@checador,@cveSubProyecto,@cveModelo,@iPLocal,@puerto,@cveUsuario,@fechaIng,@CveEmpresa,@estatus ");
|
||||
strSQL.AppendLine(" WHERE NOT EXISTS(SELECT 1 FROM RH_Checador WHERE cveChecador = @cveChecador ); ");
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@cveChecador", checador.cveChecador));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@checador", checador.checador));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@cveSubProyecto", checador.cveSubProyecto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@cveModelo", checador.cveModelo));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@iPLocal", checador.iPLocal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@puerto", checador.puerto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@cveUsuario", checador.cveUsuario));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@fechaIng", checador.fechaIng));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@estatus", checador.estatus));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveEmpresa", -1));
|
||||
bd.ExecuteNonQuery();
|
||||
objretorno = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = false;
|
||||
OnError("Ocurrió un Error al agregar los checadores", e);
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
public bool DeleteAllChecadores()
|
||||
{
|
||||
bool objretorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("DELETE FROM RH_Checador ");
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
// bd.command.Parameters.Add(new SQLiteParameter("@cveSubProyecto", cveSubProyecto));
|
||||
bd.ExecuteNonQuery();
|
||||
objretorno = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = false;
|
||||
OnError("Ocurrió un error al eliminar todos los checadores", e);
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
#endregion
|
||||
#region Personal
|
||||
|
||||
public bool UPPersonalChecador(int CvePersonal, int CveChecador, int ChecadorID)
|
||||
{
|
||||
bool objretorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("UPDATE RH_Personal SET CveChecador=@CveChecador,ChecadorID=@ChecadorID WHERE CvePersonal =@CvePersonal");
|
||||
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CvePersonal", CvePersonal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveChecador", CveChecador));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@ChecadorID", ChecadorID));
|
||||
bd.ExecuteNonQuery();
|
||||
objretorno = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = false;
|
||||
OnError("Ocurrió un error al obtener el personal", e);
|
||||
|
||||
throw;
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
public List<ResponseGetPersonal> GETPersonal(int cveSubProyecto)
|
||||
{
|
||||
List<ResponseGetPersonal> objretorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("SELECT *");
|
||||
strSQL.Append(" FROM RH_Personal AS P");
|
||||
strSQL.Append(" WHERE CveSubProyecto =@cveSubProyecto OR @cveSubProyecto=-1");
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@cveSubProyecto", cveSubProyecto));
|
||||
objretorno = bd.QueryToList<ResponseGetPersonal>();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = null;
|
||||
OnError("Ocurrió un error al obtener el personal", e);
|
||||
|
||||
throw;
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
|
||||
public bool AddPersonal(ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal personal)
|
||||
{
|
||||
bool objretorno = false;
|
||||
StringBuilder strSQL = new StringBuilder(); // ");strSQL.AppendLine("
|
||||
strSQL.AppendLine(" INSERT INTO RH_Personal ");
|
||||
strSQL.AppendLine(" (CvePersonal, Codigo, Nombre, Correo, NombreCompleto, APaterno, AMaterno, Nombres, NombreCompletoNombre, CodigoNombreCompleto,");
|
||||
strSQL.AppendLine(" NSS, FechaIngreso, NumeroSS, SeInscribioSS, SalarioDiarioPago, SalarioDiario, SDI, SalarioDiarioSS, Bono, NumDiasAguinaldo,");
|
||||
strSQL.AppendLine(" PorPrimaVacacional, CveMetodoPago, MetodoPago, MetodoPagoSAT, CveSATRegimenContratacion, RegimenContratacion, CveRegimenContratacion,");
|
||||
strSQL.AppendLine(" CveSATRiesgoPuesto, RiesgoPuesto, CveRiesgoPuesto, CveSATBanco, Banco, CveBanco, CveTipoPeriodo, TipoPeriodo, FechaInicioContrato,");
|
||||
strSQL.AppendLine(" FechaFinContrato, CveTipoContrato, TipoContrato, CodigoTipoContrato, Ubicacion, CveSubProyectoZona, CveTurno, Turno, CvePuesto,");
|
||||
strSQL.AppendLine(" Puesto, CveDepartamento, Departamento, CveRuta, Ruta, CveEscolaridad, Escolaridad, CveEstadoCivil, EstadoCivil, CveGenero, Genero,");
|
||||
strSQL.AppendLine(" CveMotivoBaja, MotivoBaja, CvePeriodoFiniquito, FechaBaja, CveEstatusPersonal, EstatusPersonal, FechaNacimiento, LugarNacimiento, Calle,");
|
||||
strSQL.AppendLine(" NumExt, NumInt, Colonia, Direccion, CP, Ciudad, CveEstado, Estado, Telefono, Celular, RFC, CURP, NombrePadre, NombreMadre, CveJornada, Jornada,");
|
||||
strSQL.AppendLine(" ClaveTipoJornada, CveClienteAsignado, ClienteAsignado, CveSubProyecto, SubProyecto, CveProyecto, Proyecto, CveSupervisor, Supervisor, FechaIng,");
|
||||
strSQL.AppendLine(" URL, CveUsuario, Usuario, CveEmpresa, CLABE, BancoNumCuenta, IdCtaContPersonal, IdCtaContPersonalSIG, CtaContPersonal, IdCtaContPrestamos,");
|
||||
strSQL.AppendLine(" IdCtaContPrestamosSIG, CtaContPrestamos, CvePersonalPadre, ClaveEstado, TipoPerioricidadPago, CveChecadorHorario, ChecadorHorario,");
|
||||
strSQL.AppendLine(" CveUsuarioNomina, NombreAbreviatura, CveUniforme, NumeroTarjeta, Sucursal, CuentaBancaria, TelefonoExtension, CelularPersonal, TelefonoMarcadoRapido,");
|
||||
strSQL.AppendLine(" ContactoAlterno, FechaActivo, FechaReingreso, esTemporal, RFCValidado, MaiReciboNomina, CveTipodeSalario, CveChecador, ChecadorID)");
|
||||
|
||||
strSQL.AppendLine(" VALUES (@CvePersonal, @Codigo, @Nombre, @Correo, @NombreCompleto, @APaterno, @AMaterno, @Nombres, @NombreCompletoNombre, @CodigoNombreCompleto,");
|
||||
strSQL.AppendLine(" @NSS, @FechaIngreso, @NumeroSS, @SeInscribioSS, @SalarioDiarioPago, @SalarioDiario, @SDI, @SalarioDiarioSS, @Bono, @NumDiasAguinaldo,");
|
||||
strSQL.AppendLine(" @PorPrimaVacacional, @CveMetodoPago, @MetodoPago, @MetodoPagoSAT, @CveSATRegimenContratacion, @RegimenContratacion, @CveRegimenContratacion,");
|
||||
strSQL.AppendLine(" @CveSATRiesgoPuesto, @RiesgoPuesto, @CveRiesgoPuesto, @CveSATBanco, @Banco, @CveBanco, @CveTipoPeriodo, @TipoPeriodo, @FechaInicioContrato,");
|
||||
strSQL.AppendLine(" @FechaFinContrato, @CveTipoContrato, @TipoContrato, @CodigoTipoContrato, @Ubicacion, @CveSubProyectoZona, @CveTurno, @Turno, @CvePuesto,");
|
||||
strSQL.AppendLine(" @Puesto, @CveDepartamento, @Departamento, @CveRuta, @Ruta, @CveEscolaridad, @Escolaridad, @CveEstadoCivil, @EstadoCivil, @CveGenero, @Genero,");
|
||||
strSQL.AppendLine(" @CveMotivoBaja, @MotivoBaja, @CvePeriodoFiniquito, @FechaBaja, @CveEstatusPersonal, @EstatusPersonal, @FechaNacimiento, @LugarNacimiento, @Calle,");
|
||||
strSQL.AppendLine(" @NumExt, @NumInt, @Colonia, @Direccion, @CP, @Ciudad, @CveEstado, @Estado, @Telefono, @Celular, @RFC, @CURP, @NombrePadre, @NombreMadre, @CveJornada, @Jornada,");
|
||||
strSQL.AppendLine(" @ClaveTipoJornada, @CveClienteAsignado, @ClienteAsignado, @CveSubProyecto, @SubProyecto, @CveProyecto, @Proyecto, @CveSupervisor, @Supervisor, @FechaIng,");
|
||||
strSQL.AppendLine(" @URL, @CveUsuario, @Usuario, @CveEmpresa, @CLABE, @BancoNumCuenta, @IdCtaContPersonal, @IdCtaContPersonalSIG, @CtaContPersonal, @IdCtaContPrestamos,");
|
||||
strSQL.AppendLine(" @IdCtaContPrestamosSIG, @CtaContPrestamos, @CvePersonalPadre, @ClaveEstado, @TipoPerioricidadPago, @CveChecadorHorario, @ChecadorHorario,");
|
||||
strSQL.AppendLine(" @CveUsuarioNomina, @NombreAbreviatura, @CveUniforme, @NumeroTarjeta, @Sucursal, @CuentaBancaria, @TelefonoExtension, @CelularPersonal, @TelefonoMarcadoRapido,");
|
||||
strSQL.AppendLine(" @ContactoAlterno, @FechaActivo, @FechaReingreso, @esTemporal, @RFCValidado, @MaiReciboNomina, @CveTipodeSalario, @CveChecador, @ChecadorID);");
|
||||
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CvePersonal", personal.CvePersonal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Codigo", personal.Codigo));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Nombre", personal.Nombre));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Correo", ""));//personal.mai ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NombreCompleto", personal.NombreCompleto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@APaterno", personal.APaterno == null ? "" : personal.APaterno));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@AMaterno", personal.AMaterno == null ? "" : personal.AMaterno));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Nombres", personal.Nombres == null ? "" : personal.Nombres));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NombreCompletoNombre", personal.NombreCompletoNombre == null ? "" : personal.NombreCompletoNombre));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CodigoNombreCompleto", personal.CodigoNombreCompleto == null ? "" : personal.CodigoNombreCompleto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NSS", personal.NSS == null ? "" : personal.NSS));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaIngreso", personal.FechaIngreso));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NumeroSS", personal.NumeroSS == null ? "" : personal.NumeroSS));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@SeInscribioSS", personal.SeInscribioSS));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@SalarioDiarioPago", personal.SalarioDiarioPago));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@SalarioDiario", personal.SalarioDiario));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@SDI", personal.SDI));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@SalarioDiarioSS", personal.SalarioDiarioSS));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Bono", personal.Bono));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NumDiasAguinaldo", personal.NumDiasAguinaldo));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@PorPrimaVacacional", personal.PorPrimaVacacional));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveMetodoPago", personal.CveMetodoPago));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@MetodoPago", personal.MetodoPago == null ? "" : personal.MetodoPago));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@MetodoPagoSAT", personal.MetodoPagoSAT == null ? "" : personal.MetodoPagoSAT));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveSATRegimenContratacion", -1));// personal.cveSATRegimenContratacion));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@RegimenContratacion", "")); // personal.regimenContratacion ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveRegimenContratacion", -1));// personal.cveRegimenContratacion ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveSATRiesgoPuesto", -1));// personal.cveSATRiesgoPuesto ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@RiesgoPuesto", ""));// personal.riesgoPuesto ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveRiesgoPuesto", -1));// personal.cveRiesgoPuesto ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveSATBanco", -1));// personal.cveSATBanco ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Banco", ""));// personal.banco ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveBanco", -1));// personal.cveBanco ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveTipoPeriodo", personal.CveTipoPeriodo));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@TipoPeriodo", personal.TipoPeriodo == null ? "" : personal.TipoPeriodo));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaInicioContrato", personal.FechaInicioContrato));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaFinContrato", System.Data.DbType.DateTime) { Value = DBNull.Value });// personal.fechaFinContrato ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveTipoContrato", personal.CveTipoContrato));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@TipoContrato", personal.TipoContrato == null ? "" : personal.TipoContrato));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CodigoTipoContrato", personal.CodigoTipoContrato));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Ubicacion", personal.Ubicacion == null ? "" : personal.Ubicacion));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveSubProyectoZona", -1));// personal.cveSubProyectoZona ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveTurno", personal.CveTurno));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Turno", personal.Turno == null ? "" : personal.Turno));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CvePuesto", personal.CvePuesto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Puesto", personal.Puesto == null ? "" : personal.Puesto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveDepartamento", personal.CveDepartamento));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Departamento", personal.Departamento == null ? "" : personal.Departamento));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveRuta", personal.CveRuta));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Ruta", personal.Ruta == null ? "" : personal.Ruta));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveEscolaridad", personal.CveEscolaridad));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Escolaridad", personal.Escolaridad == null ? "" : personal.Escolaridad));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveEstadoCivil", personal.CveEstadoCivil));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@EstadoCivil", personal.EstadoCivil == null ? "" : personal.EstadoCivil));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveGenero", personal.CveGenero));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Genero", personal.Genero == null ? "" : personal.Genero));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveMotivoBaja", personal.CveMotivoBaja));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@MotivoBaja", personal.MotivoBaja == null ? "" : personal.MotivoBaja));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CvePeriodoFiniquito", -1));// personal.cvePeriodoFiniquito ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaBaja", System.Data.DbType.DateTime) { Value = DBNull.Value });// personal.fechaBaja ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveEstatusPersonal", personal.CveEstatusPersonal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@EstatusPersonal", personal.EstatusPersonal == null ? "" : personal.EstatusPersonal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaNacimiento", personal.FechaNacimiento == null ? DBNull.Value : (object)personal.FechaNacimiento));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@LugarNacimiento", personal.LugarNacimiento == null ? "" : personal.LugarNacimiento));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Calle", personal.Calle == null ? "" : personal.Calle));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NumExt", personal.NumExt == null ? "" : personal.NumExt));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NumInt", personal.NumInt == null ? "" : personal.NumInt));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Colonia", personal.Colonia == null ? "" : personal.Colonia));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Direccion", ""));// personal.direccion ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CP", personal.Cp == null ? "" : personal.Cp));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Ciudad", personal.Ciudad == null ? "" : personal.Ciudad));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveEstado", personal.CveEstado));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Estado", ""));// personal.estado ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Telefono", personal.Telefono == null ? "" : personal.Telefono));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Celular", personal.Celular == null ? "" : personal.Celular));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@RFC", personal.RFC == null ? "" : personal.RFC));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CURP", personal.CURP == null ? "" : personal.CURP));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NombrePadre", personal.NombrePadre == null ? "" : personal.NombrePadre));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NombreMadre", personal.NombreMadre == null ? "" : personal.NombreMadre));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveJornada", personal.CveJornada));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Jornada", personal.Jornada == null ? "" : personal.Jornada));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@ClaveTipoJornada", personal.ClaveTipoJornada));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveClienteAsignado", personal.CveClienteAsignado));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@ClienteAsignado", personal.ClienteAsignado));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveSubProyecto", personal.CveSubProyecto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@SubProyecto", personal.SubProyecto == null ? "" : personal.SubProyecto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveProyecto", personal.CveProyecto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Proyecto", personal.Proyecto == null ? "" : personal.Proyecto));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveSupervisor", -1));// personal.cveSupervisor ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Supervisor", personal.Supervisor == null ? "" : personal.Supervisor));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaIng", personal.FechaIng));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@URL", ""));// personal.uRL ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveUsuario", personal.CveUsuario));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Usuario", ""));// personal.usuario ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveEmpresa", personal.CveEmpresa));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CLABE", personal.CLABE == null ? "" : personal.CLABE));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@BancoNumCuenta", personal.BancoNumCuenta == null ? "" : personal.BancoNumCuenta));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@IdCtaContPersonal", -1));// personal.idCtaContPersonal ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@IdCtaContPersonalSIG", -1));// personal.idCtaContPersonalSIG ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CtaContPersonal", personal.CtaContPersonal == null ? "" : personal.CtaContPersonal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@IdCtaContPrestamos", -1));// personal.idCtaContPrestamos ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@IdCtaContPrestamosSIG", -1));// personal.idCtaContPrestamosSIG ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CtaContPrestamos", personal.CtaContPrestamos == null ? "" : personal.CtaContPrestamos));// personal.CtaContPrestamos ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CvePersonalPadre", -1));// personal.cvePersonalPadre ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@ClaveEstado", personal.ClaveEstado == null ? "" : personal.ClaveEstado));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@TipoPerioricidadPago", personal.TipoPerioricidadPago));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveChecadorHorario", personal.CveChecadorHorario));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@ChecadorHorario", ""));// personal.checadorHorario ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveUsuarioNomina", -1));// personal.cveUsuarioNomina ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NombreAbreviatura", ""));// personal.nombreAbreviatura ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CveUniforme", personal.CveUniforme));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@NumeroTarjeta", ""));// personal.numeroTarjeta ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@Sucursal", ""));// personal.sucursal ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CuentaBancaria", ""));// personal.cuentaBancaria ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@TelefonoExtension", personal.TelefonoExtension == null ? "" : personal.TelefonoExtension));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@CelularPersonal", personal.CelularPersonal == null ? "" : personal.CelularPersonal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@TelefonoMarcadoRapido", personal.TelefonoMarcadoRapido == null ? "" : personal.TelefonoMarcadoRapido));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@ContactoAlterno", personal.ContactoAlterno == null ? "" : personal.ContactoAlterno));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaActivo", System.Data.DbType.DateTime) { Value = DBNull.Value });// personal.fechaActivo ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@FechaReingreso", System.Data.DbType.DateTime) { Value = DBNull.Value });// personal.fechaReingreso ));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@esTemporal", personal.EsTemporal));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@RFCValidado", personal.RFCValidado));
|
||||
bd.command.Parameters.Add(new SQLiteParameter("@MaiReciboNomina", personal.MaiReciboNomina == null ? "" : personal.MaiReciboNomina));
|
||||
//bd.command.Parameters.Add(new SQLiteParameter("@CveTipodeSalario", personal.cveTipodeSalario));
|
||||
//bd.command.Parameters.Add(new SQLiteParameter("@CveChecador", personal.cveChecador));
|
||||
//bd.command.Parameters.Add(new SQLiteParameter("@ChecadorID", personal.checadorID));
|
||||
bd.ExecuteNonQuery();
|
||||
objretorno = true;
|
||||
}
|
||||
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = false;
|
||||
OnError("Ocurrió un error al agregar el personal", e);
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
|
||||
public bool DeleteAllPersonal()
|
||||
{
|
||||
bool objretorno;
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.Append("DELETE FROM RH_Personal ");
|
||||
try
|
||||
{
|
||||
bd.ClearCommand(strSQL.ToString());
|
||||
bd.ExecuteNonQuery();
|
||||
objretorno = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
objretorno = false;
|
||||
OnError("Ocurrió un error al eliminar todos los checadores", e);
|
||||
}
|
||||
return objretorno;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
197
ADSUtileriasService/Conexion/SIG/BaseSIG.cs
Normal file
197
ADSUtileriasService/Conexion/SIG/BaseSIG.cs
Normal file
@@ -0,0 +1,197 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.SIG
|
||||
{
|
||||
public class BaseSIG
|
||||
{
|
||||
public string domainApi;
|
||||
string authorization
|
||||
{
|
||||
get
|
||||
{
|
||||
return ADSUtileriasService.Helpers.GlobalVars._authorization;
|
||||
}
|
||||
}
|
||||
public DateTime GetTokenExpirationValue
|
||||
{
|
||||
get
|
||||
{
|
||||
if (authorization == "")
|
||||
{
|
||||
return DateTime.MinValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
var handler = new JwtSecurityTokenHandler();
|
||||
var jsonToken = handler.ReadToken(authorization);
|
||||
var tokenS = handler.ReadToken(authorization) as JwtSecurityToken;
|
||||
return tokenS.ValidTo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
protected string RouteController = "";
|
||||
public BaseSIG(string domainApi)
|
||||
{
|
||||
if (string.IsNullOrEmpty(domainApi))
|
||||
{
|
||||
domainApi = Helpers.GlobalVars.UrlApi;
|
||||
}
|
||||
this.domainApi = domainApi;
|
||||
}
|
||||
|
||||
protected string GetRoutbyclass { get { string classname = this.GetType().Name; return classname.Substring(0, classname.Length - 3); } }
|
||||
private string GetRoute(string path) { return string.Format("api/{0}/{1}", (string.IsNullOrEmpty(RouteController) ? GetRoutbyclass : RouteController), path); }
|
||||
/// <summary>
|
||||
/// Obtiene datos from SIg.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Clase genérica en donde se obtiene la información del SqlDataReader.</typeparam>
|
||||
/// <param name="path">ruta sin domino ejemplo "/api/usuarios/login".</param>
|
||||
/// <param name="requestobject">request object.</param>
|
||||
/// <returns>Lista de objetos.</returns>
|
||||
public async Task<T> getDataAsync<T>(string path, object requestobject, Helpers.requestMethod reqmet = Helpers.requestMethod.POST, bool needauthorization = true) where T : class, new()
|
||||
{
|
||||
T objreturn = null;
|
||||
using (HttpClient client = new HttpClient())
|
||||
{
|
||||
// Setting Base address.
|
||||
client.BaseAddress = new Uri(domainApi);
|
||||
// Setting content type.
|
||||
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
/* Vaalido autorizacion */
|
||||
if (needauthorization)
|
||||
{
|
||||
|
||||
if (GetTokenExpirationValue < DateTime.UtcNow.AddMinutes(-3))
|
||||
{
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
HttpResponseMessage authresponse = new HttpResponseMessage();
|
||||
//var objauth = new ADSNetLibrary. SIGAPI.Models.Sistema.RequestLogin() { UserName = "jcaudillo", Password = "45makako45", CveEmpresa = 119 };
|
||||
var objauth = new ADSNetLibrary.SIGAPI.Models.Sistema.RequestLogin() { UserName = GlobalVars.UserName, Password = GlobalVars.Password, CveEmpresa = GlobalVars.CveEmpresa.ToEntero() };
|
||||
authresponse = await client.PostAsync("api/Usuario/Login", new StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(objauth), Encoding.UTF8, "application/json"));
|
||||
|
||||
if (authresponse.IsSuccessStatusCode)
|
||||
{
|
||||
string jsondata = await authresponse.Content.ReadAsStringAsync();
|
||||
Newtonsoft.Json.JsonSerializerSettings settings = new Newtonsoft.Json.JsonSerializerSettings { NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore };
|
||||
var retorno = Newtonsoft.Json.JsonConvert.DeserializeObject<ADSNetLibrary.SIGAPI.Models.ResponseModel<ADSNetLibrary.SIGAPI.Models.Request.ResponseLogin>>(jsondata, settings);
|
||||
if (retorno.IsSuccess)
|
||||
{
|
||||
ADSUtileriasService.Helpers.GlobalVars._authorization = retorno.Result.AccessToken;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
string strerror = string.Format("{0}autologin{0}Excepción :{1}{0}", "\r\n", e);
|
||||
Mod.GuardaLog(strerror, LogsNames.SigLog);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
using (HttpClient client = new HttpClient())
|
||||
{
|
||||
// Setting Base address.
|
||||
client.BaseAddress = new Uri(domainApi);
|
||||
// Setting content type.
|
||||
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
// Setting Authorization.
|
||||
if (needauthorization) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", authorization); }
|
||||
|
||||
HttpResponseMessage response = new HttpResponseMessage();
|
||||
var strjsonreq = Newtonsoft.Json.JsonConvert.SerializeObject(requestobject);
|
||||
StringContent content = new StringContent(strjsonreq, Encoding.UTF8, "application/json");
|
||||
string route = GetRoute(path);
|
||||
try
|
||||
{
|
||||
|
||||
switch (reqmet)
|
||||
{
|
||||
case Helpers.requestMethod.POST:
|
||||
response = await client.PostAsync(route, content);
|
||||
break;
|
||||
case Helpers.requestMethod.GET:
|
||||
response = await client.GetAsync(route);
|
||||
break;
|
||||
}
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
string jsondata = await response.Content.ReadAsStringAsync();
|
||||
|
||||
|
||||
Newtonsoft.Json.JsonSerializerSettings settings = new Newtonsoft.Json.JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
|
||||
MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore
|
||||
};
|
||||
objreturn = Newtonsoft.Json.JsonConvert.DeserializeObject<T>(jsondata, settings);
|
||||
}
|
||||
else
|
||||
{
|
||||
string strerror = string.Format("{0}{1}{0}StatusCode:{2}{0}{3}{0}{4}", "\r\n", route, response.StatusCode, response.RequestMessage, strjsonreq);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
string strerror = string.Format("{0}{1}{0}Excepción :{2}{0}{3}", "\r\n", route, e, strjsonreq);
|
||||
Mod.GuardaLog(strerror, LogsNames.SigLog);
|
||||
}
|
||||
|
||||
}
|
||||
return objreturn;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Obtiene datos from SIg.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Clase genérica en donde se obtiene la información del SqlDataReader.</typeparam>
|
||||
/// <param name="path">ruta sin domino ejemplo "/api/usuarios/login".</param>
|
||||
/// <param name="requestobject">request object.</param>
|
||||
/// <returns>Lista de objetos.</returns>
|
||||
public T getData<T>(string path, object requestobject, Helpers.requestMethod reqmet = Helpers.requestMethod.POST) where T : class, new()
|
||||
{
|
||||
return AsyncHelper.RunSync<T>(() => getDataAsync<T>(path, requestobject, reqmet));
|
||||
}
|
||||
}
|
||||
internal static class AsyncHelper
|
||||
{
|
||||
private static readonly TaskFactory _myTaskFactory = new
|
||||
TaskFactory(CancellationToken.None,
|
||||
TaskCreationOptions.None,
|
||||
TaskContinuationOptions.None,
|
||||
TaskScheduler.Default);
|
||||
|
||||
public static TResult RunSync<TResult>(Func<Task<TResult>> func)
|
||||
{
|
||||
return AsyncHelper._myTaskFactory
|
||||
.StartNew<Task<TResult>>(func)
|
||||
.Unwrap<TResult>()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
||||
public static void RunSync(Func<Task> func)
|
||||
{
|
||||
AsyncHelper._myTaskFactory
|
||||
.StartNew<Task>(func)
|
||||
.Unwrap()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ADSUtileriasService/Conexion/SIG/PlaneacionSIG.cs
Normal file
22
ADSUtileriasService/Conexion/SIG/PlaneacionSIG.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using ADSNetLibrary.SIGAPI.Models.Planeacion.Request;
|
||||
using ADSNetLibrary.SIGAPI.Models.Planeacion.Response;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.SIG
|
||||
{
|
||||
class PlaneacionSIG : BaseSIG
|
||||
{
|
||||
public PlaneacionSIG(string domainApi = "") : base(domainApi) { }
|
||||
|
||||
|
||||
public ResponseModel<List<ResponseSubProyectoUsuario>> GetSubProyectos(RequestSubProyectoUsuario parames)
|
||||
{
|
||||
return getData<ResponseModel<List<ResponseSubProyectoUsuario>>>("Login", parames);
|
||||
}
|
||||
}
|
||||
}
|
||||
35
ADSUtileriasService/Conexion/SIG/RHSIG.cs
Normal file
35
ADSUtileriasService/Conexion/SIG/RHSIG.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using ADSNetLibrary.SIGAPI.Models.RH.Request;
|
||||
using ADSNetLibrary.SIGAPI.Models.RH.Response;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.SIG
|
||||
{
|
||||
public class RHSIG : BaseSIG
|
||||
{
|
||||
// RouteController ="RH"
|
||||
public RHSIG(string domainApi = "") : base(domainApi) { }
|
||||
public ResponseModel<List<ResponseGetPersonal>> GetPersonal(RequestGetPersonal @params)
|
||||
{
|
||||
return getData<ResponseModel<List<ResponseGetPersonal>>>("GetPersonal", @params);
|
||||
}
|
||||
public ResponseModel<List<ResponseGetChecadoresModel>> GetChecadores(RequestGetChecadoresModel @params)
|
||||
{
|
||||
return getData<ResponseModel<List<ResponseGetChecadoresModel>>>("GetChecadores", @params);
|
||||
}
|
||||
public ResponseModel<bool> AddChecadorRegistro(List<RequestAddChecadorRegistro> @params)
|
||||
{
|
||||
return getData<ResponseModel<bool>>("AddChecadorRegistro", @params);
|
||||
}
|
||||
public ResponseModel<bool> UpPersonalChecador(List<RequestPersonalChecadorUp> @params)
|
||||
{
|
||||
return getData<ResponseModel<bool>>("UpPersonalChecador", @params);
|
||||
}
|
||||
|
||||
//
|
||||
}
|
||||
}
|
||||
22
ADSUtileriasService/Conexion/SIG/UsuarioSIG.cs
Normal file
22
ADSUtileriasService/Conexion/SIG/UsuarioSIG.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using ADSNetLibrary.SIGAPI;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using ADSNetLibrary.SIGAPI.Models.Request;
|
||||
using ADSNetLibrary.SIGAPI.Models.Sistema;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Conexion.SIG
|
||||
{
|
||||
public class UsuarioSIG: BaseSIG
|
||||
{
|
||||
public UsuarioSIG(string domainApi = "") : base(domainApi) { }
|
||||
|
||||
public ResponseModel<ResponseLogin> Login(RequestLogin parames)
|
||||
{
|
||||
return getData<ResponseModel<ResponseLogin>>("Login", parames);
|
||||
}
|
||||
}
|
||||
}
|
||||
436
ADSUtileriasService/Helpers/ADSSqlite/SqlLiteBase.cs
Normal file
436
ADSUtileriasService/Helpers/ADSSqlite/SqlLiteBase.cs
Normal file
@@ -0,0 +1,436 @@
|
||||
using System.Data.SQLite;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Helpers.ADSSqlite
|
||||
{
|
||||
|
||||
public class SqlLiteBase : IDisposable
|
||||
{
|
||||
private SQLiteConnection conexion;
|
||||
private string ConnectionString;
|
||||
private SqlLiteConnectionEnum BDTypecon;
|
||||
private bool isopened;
|
||||
private SQLiteCommand comando;
|
||||
private SQLiteTransaction transaccion;
|
||||
public SQLiteCommand command { get { return comando; } }
|
||||
public bool Isopen { get { return isopened; } }
|
||||
public SqlLiteConnectionEnum BDType { get { return BDTypecon; } }
|
||||
/// <summary>
|
||||
/// Crear variable de conexion a la BD de la aplicacion empresa (SqLiteBaseConection.Empresa)
|
||||
/// </summary>
|
||||
public SqlLiteBase() : this(SqlLiteConnectionEnum.Empresa, -2)
|
||||
{ }
|
||||
/// <summary>
|
||||
/// Crear variable de conexion a la BD
|
||||
/// </summary>
|
||||
/// <param name="bdtypecon">Empresa o configuracion</param>
|
||||
public SqlLiteBase(SqlLiteConnectionEnum bdtypecon, int CveEmpresa)
|
||||
{
|
||||
if (CveEmpresa == -2)
|
||||
{
|
||||
CveEmpresa = GlobalVars.user.CveEmpresa;
|
||||
}
|
||||
switch (bdtypecon)
|
||||
{
|
||||
case SqlLiteConnectionEnum.AppConfig:
|
||||
ConnectionString = string.Format("Data Source={0}AppConfig.db;Version=3;", ADSNetLibrary.Helpers.ModVars.FilesDir);
|
||||
break;
|
||||
case SqlLiteConnectionEnum.Empresa:
|
||||
string dir = string.Format("{0}Empresas\\{1}\\", ADSNetLibrary.Helpers.ModVars.FilesDir, CveEmpresa);
|
||||
if (!System.IO.Directory.Exists(dir))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(dir);
|
||||
}
|
||||
ConnectionString = string.Format("Data Source={0}EmpresaBD.db;Version=3;", dir);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
this.BDTypecon = bdtypecon;
|
||||
isopened = false;
|
||||
try
|
||||
{
|
||||
conexion = new SQLiteConnection(ConnectionString);//;Version=3;
|
||||
conexion.Open();
|
||||
isopened = true;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Mod.GuardaLog(e,"Error al inicializar la base de datos local", LogsNames.LocalRepository); }
|
||||
}
|
||||
public SQLiteTransaction BeginTransaction()
|
||||
{
|
||||
if(transaccion == null)
|
||||
{
|
||||
transaccion= conexion.BeginTransaction();
|
||||
}
|
||||
return transaccion;
|
||||
}
|
||||
public void Commit()
|
||||
{
|
||||
transaccion.Commit();
|
||||
transaccion = null;
|
||||
}
|
||||
public void Rollback()
|
||||
{
|
||||
transaccion.Rollback();
|
||||
transaccion = null;
|
||||
}
|
||||
public bool ClearCommand(string query)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (comando == null)
|
||||
{
|
||||
comando = conexion.CreateCommand();
|
||||
}
|
||||
comando.CommandText = query;
|
||||
comando.Parameters.Clear();
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Error al inicializar Comando", LogsNames.LocalRepository);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public int ExecuteNonQuery()
|
||||
{
|
||||
return comando.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
public int RunExecuteNonQuery(string query)
|
||||
{
|
||||
int retorno = -1;
|
||||
ClearCommand(query);
|
||||
retorno = comando.ExecuteNonQuery();
|
||||
return retorno;
|
||||
}
|
||||
public SQLiteDataReader ExecuteReader()
|
||||
{
|
||||
return comando.ExecuteReader();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Obtiene una lista de objetos es necesario ejecutar el metodo ClearCommand y agregar los parametros antes.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Clase genérica en donde se obtiene la información del SqlDataReader.</typeparam>
|
||||
/// <returns>Lista de objetos "T".</returns>
|
||||
public List<T> QueryToList<T>() where T : class, new()
|
||||
{
|
||||
List<T> retorno = null;
|
||||
using (SQLiteDataReader reader = comando.ExecuteReader())
|
||||
{
|
||||
retorno = CreateList<T>(reader);
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Obtiene un Objeto es necesario ejecutar el metodo ClearCommand y agregar los parametros antes.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Clase genérica en donde se obtiene la información de la consulta.</typeparam>
|
||||
/// <returns>Objeto "T".</returns>
|
||||
public T QueryToObject<T>() where T : class, new()
|
||||
{
|
||||
T retorno = null;
|
||||
using (SQLiteDataReader reader = comando.ExecuteReader())
|
||||
{
|
||||
retorno = CreateObject<T>(reader);
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
|
||||
|
||||
#region mapperReader
|
||||
|
||||
/// <summary>
|
||||
/// Obtiene una lista de objetos a partir de un SqlDataReader.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Clase genérica en donde se obtiene la información del SqlDataReader.</typeparam>
|
||||
/// <param name="dataReader">SqlDataReader a leer.</param>
|
||||
/// <returns>Lista de objetos.</returns>
|
||||
public static List<T> CreateList<T>(SQLiteDataReader dataReader) where T : class, new()
|
||||
{
|
||||
var results = new List<T>();
|
||||
var properties = typeof(T).GetProperties();
|
||||
List<System.Reflection.PropertyInfo> propinobj = new List<System.Reflection.PropertyInfo>();
|
||||
foreach (var property in properties)
|
||||
{
|
||||
|
||||
if (IsColumnExists(dataReader, property.Name))
|
||||
{
|
||||
propinobj.Add(property);
|
||||
}
|
||||
}
|
||||
while (dataReader.Read())
|
||||
{
|
||||
var item = Activator.CreateInstance<T>();
|
||||
foreach (var property in propinobj)
|
||||
{
|
||||
if (!dataReader.IsDBNull(dataReader.GetOrdinal(property.Name)))
|
||||
{
|
||||
Type convertTo = Nullable.GetUnderlyingType(property.PropertyType) ?? property.PropertyType;
|
||||
object objvalue;
|
||||
switch (property.PropertyType.Name)
|
||||
{
|
||||
case "Boolean":
|
||||
{
|
||||
objvalue = (dataReader[property.Name].ToString().ToUpper().Contiene(new string[] { "1", "TRUE"}));
|
||||
property.SetValue(item, objvalue, null);
|
||||
break;
|
||||
}
|
||||
case "DateTime":
|
||||
{
|
||||
/*
|
||||
*
|
||||
* DateTime.Ticks
|
||||
*
|
||||
*/
|
||||
try
|
||||
{
|
||||
property.SetValue(item, Convert.ChangeType(dataReader[property.Name], convertTo), null);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
property.SetValue(item, new DateTime(dataReader[property.Name].ToString().ToEntero()), null);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
property.SetValue(item, Convert.ChangeType(dataReader[property.Name], convertTo), null);
|
||||
break;
|
||||
}
|
||||
|
||||
{
|
||||
/*
|
||||
case "Byte":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Char":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "DateTime":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Decimal":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Double":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Guid":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Int16":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Int32":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Int64":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "SByte":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "Single":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "String":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "TimeSpan":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "UInt16":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "UInt32":
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case "UInt64":
|
||||
{
|
||||
break;
|
||||
}
|
||||
*
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
results.Add(item);
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Obtiene un objeto a partir de un SqlDataReader.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Clase genérica en donde se obtiene la información del SqlDataReader.</typeparam>
|
||||
/// <param name="dataReader">SqlDataReader a leer.</param>
|
||||
/// <returns>Objeto T.</returns>
|
||||
public static T CreateObject<T>(SQLiteDataReader dataReader) where T : class, new()
|
||||
{
|
||||
var properties = typeof(T).GetProperties();
|
||||
while (dataReader.Read())
|
||||
{
|
||||
var item = Activator.CreateInstance<T>();
|
||||
foreach (var property in properties)
|
||||
{
|
||||
if (IsColumnExists(dataReader, property.Name))
|
||||
{
|
||||
if (!dataReader.IsDBNull(dataReader.GetOrdinal(property.Name)))
|
||||
{
|
||||
Type convertTo = Nullable.GetUnderlyingType(property.PropertyType) ?? property.PropertyType;
|
||||
property.SetValue(item, Convert.ChangeType(dataReader[property.Name], convertTo), null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Valida si existe un nombre de porpiedad como campo de el IDataReader.
|
||||
/// </summary>
|
||||
/// <param name="dataReader">IDataReader a validar.</param>
|
||||
/// <param name="columnName">Nombre de la columna.</param>
|
||||
/// <returns>True = si existe, False = no existe.</returns>
|
||||
private static bool IsColumnExists(SQLiteDataReader dataReader, string columnName)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dataReader.GetSchemaTable().Select($"ColumnName= '{columnName}'").Count() > 0)
|
||||
{
|
||||
dataReader.GetOrdinal(columnName);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
if (transaccion != null)
|
||||
{
|
||||
transaccion.Rollback();
|
||||
transaccion.Dispose();
|
||||
transaccion=null;
|
||||
}
|
||||
if (comando != null)
|
||||
{
|
||||
try { comando.Dispose(); }
|
||||
catch (Exception) { }
|
||||
comando = null;
|
||||
}
|
||||
if (conexion != null)
|
||||
{
|
||||
try { conexion.Close(); }
|
||||
catch (Exception e)
|
||||
{
|
||||
Mod.GuardaLog(e, "Error al cerrar base de datos", LogsNames.LocalRepository);
|
||||
}
|
||||
try { conexion.Dispose(); }
|
||||
catch (Exception e) { Mod.GuardaLog(e, "Error al liberar recursos de base de datos", LogsNames.LocalRepository); }
|
||||
conexion = null;
|
||||
}
|
||||
isopened = false;
|
||||
}
|
||||
//static void CreateTable(SQLiteConnection conn)
|
||||
//{
|
||||
|
||||
// SQLiteCommand sqlite_cmd;
|
||||
// string Createsql = "CREATE TABLE SampleTable (Col1 VARCHAR(20), Col2 INT)";
|
||||
// string Createsql1 = "CREATE TABLE SampleTable1 (Col1 VARCHAR(20), Col2 INT)";
|
||||
// sqlite_cmd = conn.CreateCommand();
|
||||
// sqlite_cmd.CommandText = Createsql;
|
||||
// sqlite_cmd.ExecuteNonQuery();
|
||||
// sqlite_cmd.CommandText = Createsql1;
|
||||
// sqlite_cmd.ExecuteNonQuery();
|
||||
|
||||
//}
|
||||
|
||||
//static void InsertData(SQLiteConnection conn)
|
||||
//{
|
||||
// SQLiteCommand sqlite_cmd;
|
||||
// sqlite_cmd = conn.CreateCommand();
|
||||
// sqlite_cmd.CommandText = "INSERT INTO SampleTable (Col1, Col2) VALUES('Test Text ', 1); ";
|
||||
// sqlite_cmd.ExecuteNonQuery();
|
||||
// sqlite_cmd.CommandText = "INSERT INTO SampleTable (Col1, Col2) VALUES('Test1 Text1 ', 2); ";
|
||||
// sqlite_cmd.ExecuteNonQuery();
|
||||
// sqlite_cmd.CommandText = "INSERT INTO SampleTable (Col1, Col2) VALUES('Test2 Text2 ', 3); ";
|
||||
// sqlite_cmd.ExecuteNonQuery();
|
||||
|
||||
|
||||
// sqlite_cmd.CommandText = "INSERT INTO SampleTable1 (Col1, Col2) VALUES('Test3 Text3 ', 3); ";
|
||||
// sqlite_cmd.ExecuteNonQuery();
|
||||
|
||||
//}
|
||||
|
||||
//static void ReadData(SQLiteConnection conn)
|
||||
//{
|
||||
// SQLiteDataReader sqlite_datareader;
|
||||
// SQLiteCommand sqlite_cmd;
|
||||
// sqlite_cmd = conn.CreateCommand();
|
||||
// sqlite_cmd.CommandText = "SELECT * FROM SampleTable";
|
||||
|
||||
// sqlite_datareader = sqlite_cmd.ExecuteReader();
|
||||
// while (sqlite_datareader.Read())
|
||||
// {
|
||||
// string myreader = sqlite_datareader.GetString(0);
|
||||
// Console.WriteLine(myreader);
|
||||
// }
|
||||
// conn.Close();
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Helpers.ADSSqlite
|
||||
{
|
||||
public enum SqlLiteConnectionEnum
|
||||
{
|
||||
AppConfig = 1,
|
||||
Empresa = 2,
|
||||
|
||||
}
|
||||
}
|
||||
30
ADSUtileriasService/Helpers/GlobalVars.cs
Normal file
30
ADSUtileriasService/Helpers/GlobalVars.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Helpers
|
||||
{
|
||||
/*
|
||||
* ADSUtileriasService.Helpers.GlobalVars._authorization
|
||||
* ADSUtileriasService.Helpers.GlobalVars.continuarService
|
||||
*/
|
||||
public static class GlobalVars
|
||||
{
|
||||
/*
|
||||
* Ubicacion de los archivos locales
|
||||
*/
|
||||
//public static string FilesDir = System.Configuration.ConfigurationManager.AppSettings["FilesDir"].ToString();
|
||||
public static string UrlApi = System.Configuration.ConfigurationManager.AppSettings["UrlApi"].ToString();
|
||||
public static string _authorization = "";
|
||||
public static DateTime fechaChecadorlup = DateTime.MinValue;
|
||||
public static Modelos.AppSystem.Usuario user;
|
||||
public static bool continuarService=false;
|
||||
|
||||
public static string UserName = System.Configuration.ConfigurationManager.AppSettings["UserName"].ToString();
|
||||
public static string Password = System.Configuration.ConfigurationManager.AppSettings["Password"].ToString();
|
||||
public static string CveEmpresa = System.Configuration.ConfigurationManager.AppSettings["CveEmpresa"].ToString();
|
||||
|
||||
}
|
||||
}
|
||||
884
ADSUtileriasService/Helpers/ModExtensiones.cs
Normal file
884
ADSUtileriasService/Helpers/ModExtensiones.cs
Normal file
@@ -0,0 +1,884 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Helpers
|
||||
{
|
||||
public enum requestMethod
|
||||
{
|
||||
POST = 1,
|
||||
GET = 2
|
||||
}
|
||||
public enum LogsNames
|
||||
{
|
||||
Log = 1,
|
||||
another = 2,
|
||||
LocalRepository = 3,
|
||||
SigLog = 4
|
||||
}
|
||||
/*contentType= "text/xml; charset=utf-8";
|
||||
* Headers
|
||||
*
|
||||
*/
|
||||
|
||||
public static class Mod
|
||||
{
|
||||
|
||||
public static void GuardaLog(Exception e,string Str, LogsNames logname = LogsNames.Log)
|
||||
{
|
||||
GuardaLog(string.Format("{0}\r\n{1}", Str, e), logname);
|
||||
}
|
||||
public static void GuardaLog(string Str, LogsNames logname= LogsNames.Log )
|
||||
{
|
||||
string strLineaTMP;
|
||||
strLineaTMP = string.Format("{0}{1}{2: dd-MM-yyyy HH\\:mm}", "\r\n", Str, DateTime.Now);
|
||||
string strLog = "NotImplemented";
|
||||
switch (logname)
|
||||
{
|
||||
case LogsNames.Log:
|
||||
strLog = string.Format("Log{0:yyyyMMdd}", DateTime.Now);
|
||||
break;
|
||||
case LogsNames.another:
|
||||
strLog = "another";
|
||||
break;
|
||||
case LogsNames.LocalRepository:
|
||||
strLog = "LocalRepository";
|
||||
break;
|
||||
case LogsNames.SigLog:
|
||||
strLog = "SigLog";
|
||||
break;
|
||||
}
|
||||
try
|
||||
{
|
||||
string strdir = string.Format("{0}\\logs\\", AppDomain.CurrentDomain.BaseDirectory);
|
||||
if (!System.IO.Directory.Exists(strdir))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(strdir);
|
||||
}
|
||||
using (System.IO.StreamWriter ArchivoW = new System.IO.StreamWriter(string.Format("{0}{1}_{2:yyyy-MM}.txt", strdir, strLog,DateTime.Now), true, System.Text.Encoding.UTF8))
|
||||
{
|
||||
ArchivoW.WriteLine(strLineaTMP);
|
||||
ArchivoW.Close();
|
||||
}
|
||||
}
|
||||
catch (Exception )
|
||||
{
|
||||
}
|
||||
}
|
||||
static public object GetValObjDy(this object obj, string propertyName)
|
||||
{
|
||||
return obj.GetType().GetProperty(propertyName).GetValue(obj, null);
|
||||
}
|
||||
public static string FormatoNumero(this string Str, int Decimales = 2)
|
||||
{
|
||||
decimal numero = 0;
|
||||
decimal.TryParse(Str, out numero);
|
||||
StringBuilder zeros = new StringBuilder();
|
||||
for (int i = 0; i < Decimales; i++)
|
||||
{
|
||||
zeros.Append("0");
|
||||
}
|
||||
if (zeros.Length > 0)
|
||||
{
|
||||
zeros.Insert(0, ".");
|
||||
}
|
||||
string Tmp = string.Format("{0:#,0.00}", numero);
|
||||
return Tmp;
|
||||
}
|
||||
|
||||
public static bool Contiene(this int Valor, params int[] Valores)
|
||||
{
|
||||
return Array.IndexOf(Valores, Valor) >= 0;
|
||||
}
|
||||
public static bool Contiene(this string Valor, params string[] Valores)
|
||||
{
|
||||
return Array.IndexOf(Valores, Valor) >= 0;
|
||||
}
|
||||
public static string Mid(string input, int index, char newChar)
|
||||
|
||||
{
|
||||
|
||||
if (input == null)
|
||||
|
||||
{
|
||||
|
||||
throw new ArgumentNullException("input");
|
||||
|
||||
}
|
||||
|
||||
char[] chars = input.ToCharArray();
|
||||
|
||||
chars[index - 1] = newChar;
|
||||
|
||||
return new string(chars);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This is equivalent to Mid Function in VB6
|
||||
/// </summary>
|
||||
/// <param name="s"> String to Check.</param>
|
||||
/// <param name="a">Position of Character</param>
|
||||
/// <param name="b">Length </param>
|
||||
/// <returns></returns> ]
|
||||
public static string Mid(string s, int a, int b)
|
||||
|
||||
{
|
||||
|
||||
string temp = s.Substring(a - 1, b);
|
||||
|
||||
return temp;
|
||||
|
||||
}
|
||||
|
||||
public static System.Data.DataTable FiltraParametros(this System.Data.DataTable dt, string RowFilter, string Orderby = "", string[] DistinctColumns = null)
|
||||
{
|
||||
System.Data.DataTable TmpDt = new System.Data.DataTable();
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
System.Data.DataView Dv = new System.Data.DataView(dt, RowFilter, Orderby, System.Data.DataViewRowState.CurrentRows);
|
||||
if (DistinctColumns != null)
|
||||
TmpDt = Dv.ToTable(true, DistinctColumns);
|
||||
else
|
||||
try
|
||||
{
|
||||
TmpDt = Dv.ToTable();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
TmpDt = null;
|
||||
}
|
||||
|
||||
Dv.Dispose();
|
||||
}
|
||||
else { TmpDt = dt; }
|
||||
return TmpDt;
|
||||
}
|
||||
|
||||
public static System.Data.DataRow FiltroPrimero(this System.Data.DataTable dt, string RowFilter, string Orderby = "")
|
||||
{
|
||||
System.Data.DataRow TmpDr = null;
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
if (RowFilter != "")
|
||||
{
|
||||
System.Data.DataView Dv = new System.Data.DataView(dt, RowFilter, Orderby, System.Data.DataViewRowState.CurrentRows);
|
||||
if (Dv.ToTable().Rows.Count > 0)
|
||||
TmpDr = Dv.ToTable().Rows[0];
|
||||
Dv.Dispose();
|
||||
}
|
||||
else
|
||||
TmpDr = dt.Rows[0];
|
||||
}
|
||||
return TmpDr;
|
||||
}
|
||||
public static bool HasRows(this System.Data.DataTable dt)
|
||||
{
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public static string Texto2Letras(this double Importe, int CveMoneda = 1)
|
||||
{
|
||||
string Moneda, AbrevMoneda;
|
||||
switch (CveMoneda)
|
||||
{
|
||||
case 2:
|
||||
{
|
||||
Moneda = "Dólares"; AbrevMoneda = "USD";
|
||||
break;
|
||||
}
|
||||
|
||||
case 3:
|
||||
{
|
||||
Moneda = "Euro"; AbrevMoneda = "EUR";
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
Moneda = "pesos"; AbrevMoneda = "M.N.";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (Importe == 0)
|
||||
return string.Format("cero {0} 00/100 {1}", Moneda, AbrevMoneda);
|
||||
|
||||
string Retorno;
|
||||
string Numero = Importe.ToString("F2"); // no se usa N2,porque pone comma, y F2, no la pone
|
||||
// ********Declara variables de tipo cadena************
|
||||
string entero, dec, flag;
|
||||
StringBuilder palabras = new StringBuilder();
|
||||
dec = "";
|
||||
entero = "";
|
||||
|
||||
// ********Declara variables de tipo entero***********
|
||||
int num, x, y;
|
||||
|
||||
flag = "N";
|
||||
|
||||
// **********Número Negativo***********
|
||||
if (Mid(Numero, 1, 1) == "-")
|
||||
{
|
||||
Numero = Mid(Numero, 2, Numero.ToString().Length - 1).ToString();
|
||||
palabras.Append("menos ");
|
||||
}
|
||||
|
||||
// **********Si tiene ceros a la izquierda*************
|
||||
for (x = 1; x <= Numero.ToString().Length; x++)
|
||||
{
|
||||
if (Mid(Numero, 1, 1) == "0")
|
||||
{
|
||||
Numero = Mid(Numero, 2, Numero.ToString().Length).ToString().Trim();
|
||||
if (Numero.ToString().Length == 0)
|
||||
palabras.Clear();
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
// *********Dividir parte entera y decimal************
|
||||
for (y = 1; y <= Numero.Length; y++)
|
||||
{
|
||||
if (Mid(Numero, y, 1) == ".")
|
||||
flag = "S";
|
||||
else if (flag == "N")
|
||||
entero = entero + Mid(Numero, y, 1);
|
||||
else
|
||||
dec = dec + Mid(Numero, y, 1);
|
||||
}
|
||||
|
||||
// If Len(dec) = 1 Then dec = dec & "0"
|
||||
dec = dec.PadRight(2, '0');
|
||||
|
||||
// **********proceso de conversión***********
|
||||
flag = "N";
|
||||
|
||||
if (Convert.ToDouble(Numero) <= 999999999)
|
||||
{
|
||||
for (y = entero.Length; y >= 1; y += -1)
|
||||
{
|
||||
num = entero.Length - (y - 1);
|
||||
switch (y)
|
||||
{
|
||||
case 3:
|
||||
case 6:
|
||||
case 9:
|
||||
{
|
||||
// **********Asigna las palabras para las centenas***********
|
||||
switch (Mid(entero, num, 1))
|
||||
{
|
||||
case "1":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0" & Mid(entero, num + 2, 1) == "0")
|
||||
palabras.Append("cien ");
|
||||
else
|
||||
palabras.Append("ciento ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "2":
|
||||
{
|
||||
palabras.Append("doscientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "3":
|
||||
{
|
||||
palabras.Append("trescientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "4":
|
||||
{
|
||||
palabras.Append("cuatrocientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "5":
|
||||
{
|
||||
palabras.Append("quinientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "6":
|
||||
{
|
||||
palabras.Append("seiscientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "7":
|
||||
{
|
||||
palabras.Append("setecientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "8":
|
||||
{
|
||||
palabras.Append("ochocientos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "9":
|
||||
{
|
||||
palabras.Append("novecientos ");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case 2:
|
||||
case 5:
|
||||
case 8:
|
||||
{
|
||||
// *********Asigna las palabras para las decenas************
|
||||
switch (Mid(entero, num, 1))
|
||||
{
|
||||
case "0":
|
||||
{
|
||||
// CASO:260,505.81
|
||||
flag = "N";
|
||||
break;
|
||||
}
|
||||
|
||||
case "1":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
flag = "S";
|
||||
palabras.Append("diez ");
|
||||
}
|
||||
if (Mid(entero, num + 1, 1) == "1")
|
||||
{
|
||||
flag = "S";
|
||||
palabras.Append("once ");
|
||||
}
|
||||
if (Mid(entero, num + 1, 1) == "2")
|
||||
{
|
||||
flag = "S";
|
||||
palabras.Append("doce ");
|
||||
}
|
||||
if (Mid(entero, num + 1, 1) == "3")
|
||||
{
|
||||
flag = "S";
|
||||
palabras.Append("trece ");
|
||||
}
|
||||
if (Mid(entero, num + 1, 1) == "4")
|
||||
{
|
||||
flag = "S";
|
||||
palabras.Append("catorce ");
|
||||
}
|
||||
if (Mid(entero, num + 1, 1) == "5")
|
||||
{
|
||||
flag = "S";
|
||||
palabras.Append("quince ");
|
||||
}
|
||||
if (Mid(entero, num + 1, 1).ToEntero() > 5)
|
||||
{
|
||||
flag = "N";
|
||||
palabras.Append("dieci");
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "2":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("veinte ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("veinti");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "3":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("treinta ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("treinta y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "4":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("cuarenta ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("cuarenta y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "5":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("cincuenta ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("cincuenta y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "6":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("sesenta ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("sesenta y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "7":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("setenta ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("setenta y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "8":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("ochenta ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("ochenta y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "9":
|
||||
{
|
||||
if (Mid(entero, num + 1, 1) == "0")
|
||||
{
|
||||
palabras.Append("noventa ");
|
||||
flag = "S";
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.Append("noventa y ");
|
||||
flag = "N";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case 1:
|
||||
case 4:
|
||||
case 7:
|
||||
{
|
||||
// *********Asigna las palabras para las unidades*********
|
||||
switch (Mid(entero, num, 1))
|
||||
{
|
||||
case "1":
|
||||
{
|
||||
if (flag == "N")
|
||||
{
|
||||
if (y == 1)
|
||||
palabras.Append("uno ");
|
||||
else
|
||||
palabras.Append("un ");
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "2":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("dos ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "3":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("tres ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "4":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("cuatro ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "5":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("cinco ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "6":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("seis ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "7":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("siete ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "8":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("ocho ");
|
||||
break;
|
||||
}
|
||||
|
||||
case "9":
|
||||
{
|
||||
if (flag == "N")
|
||||
palabras.Append("nueve ");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// ***********Asigna la palabra mil***************
|
||||
if (y == 4)
|
||||
{
|
||||
if ((Mid(entero, 4, 1) != "0") | (Mid(entero, 4, 1) == "0" & entero.Length == 4) | (Mid(entero, 5, 1) != "0" & entero.Length == 5) | (Mid(entero, 6, 1) != "0" & entero.Length == 6) | (Mid(entero, 5, 1) == "0" & entero.Length == 7) | (Mid(entero, 5, 1) == "0" & Mid(entero, 4, 1) == "0" & entero.Length <= 5) | (Mid(entero, 6, 1) == "0" & Mid(entero, 5, 1) == "0" & Mid(entero, 4, 1) == "0" & entero.Length <= 6) | (Mid(entero, 7, 1) == "0" & Mid(entero, 6, 1) == "0" & Mid(entero, 5, 1) == "0" & Mid(entero, 4, 1) == "0" & entero.Length < 7) | (Mid(entero, 8, 1) == "0" & Mid(entero, 7, 1) == "0" & Mid(entero, 6, 1) == "0" & Mid(entero, 5, 1) == "0" & Mid(entero, 4, 1) == "0" & entero.Length < 8) | (Mid(entero, 3, 1) != "0" & entero.Length == 7) | (Mid(entero, 3, 1) != "0" & entero.Length == 8) | (Mid(entero, 8, 1) == "0" & Mid(entero, 8, 1) == "0" & Mid(entero, 7, 1) == "0" & Mid(entero, 6, 1) == "0" & Mid(entero, 5, 1) == "0" & Mid(entero, 4, 1) == "0" & entero.Length == 9))
|
||||
palabras.Append("mil ");
|
||||
}
|
||||
|
||||
// **********Asigna la palabra millón*************
|
||||
if (y == 7)
|
||||
{
|
||||
if (entero.Length == 7 & Mid(entero, 1, 1) == "1")
|
||||
palabras.Append("millón ");
|
||||
else
|
||||
palabras.Append("millones ");
|
||||
}
|
||||
}
|
||||
|
||||
// **********Une la parte entera y la parte decimal*************
|
||||
if (dec != "")
|
||||
{
|
||||
palabras.AppendFormat("{0} {1} /100 {2}", Moneda, dec, AbrevMoneda);
|
||||
|
||||
Retorno = palabras.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
palabras.AppendFormat("{0} {1} /100 {2}", Moneda, dec, AbrevMoneda);
|
||||
|
||||
Retorno = palabras.ToString();
|
||||
}
|
||||
}
|
||||
else
|
||||
Retorno = "";
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
public static int ToEntero(this string Obj)
|
||||
{
|
||||
int result = 0;
|
||||
// restriccion menor a 10, se quitan ceros a la izquiera primero, porque provoca desbordamiento si pasa mas de una cantidad,Holds signed 32-bit (4-byte) integers that range in value from -2,147,483,648 through 2,147,483,647.
|
||||
Obj = Obj.ToString().Trim().Replace(",", "");
|
||||
int.TryParse(Obj, out result);
|
||||
return result;
|
||||
}
|
||||
public static double ToDouble(this string Str)
|
||||
{
|
||||
double result = 0;
|
||||
Str = Str.Trim().Replace(",", "");
|
||||
if (!string.IsNullOrEmpty(Str))
|
||||
{
|
||||
double.TryParse(Str, out result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public static double ToDouble(this string Str, double TipoCambio)
|
||||
{
|
||||
return Str.ToDouble() * TipoCambio;
|
||||
}
|
||||
public static decimal ToDecimal(this string Str)
|
||||
{
|
||||
decimal result = 0;
|
||||
Str = Str.Trim().Replace(",", "");
|
||||
if (!string.IsNullOrEmpty(Str))
|
||||
{
|
||||
Decimal.TryParse(Str, out result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static decimal ToDecimal(this string Str, decimal TipoCambio)
|
||||
{
|
||||
return Str.ToDecimal() * TipoCambio;
|
||||
}
|
||||
|
||||
public static DateTime ToDateTime(this string Str)
|
||||
{
|
||||
return Str.ToDate();
|
||||
}
|
||||
public static DateTime ToDate(this string Str, IFormatProvider culture = null)
|
||||
{
|
||||
DateTime retorno = DateTime.MinValue;
|
||||
if (Str != null && !string.IsNullOrEmpty(Str.Trim()))
|
||||
{
|
||||
if (culture == null)
|
||||
{
|
||||
DateTime.TryParse(Str, out retorno);
|
||||
//retorno = Convert.ToDateTime(Str.Trim());
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
retorno = Convert.ToDateTime(Str.ToString().Trim(), culture);
|
||||
|
||||
}
|
||||
catch (Exception) { }
|
||||
|
||||
}
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Realizar un request a un Sitio
|
||||
/// </summary>
|
||||
/// <param name="URL">http:sig.adssistemas.mx/inicio2.aspx</param>
|
||||
/// <param name="metodo">post,get,put</param>
|
||||
/// <param name="headers">{"Titulo","Value"} ó {"SOAPAction: actionmethod"}</param>
|
||||
/// <param name="contentType">"text/xml; charset=utf-8"</param>
|
||||
/// <param name="body">body request</param>
|
||||
/// <param name="postData">var1=value1&var2=value2</param>
|
||||
/// <param name="maxTimeMilliseconds"> 120 sec</param>
|
||||
public static string SendRequest(string URL, requestMethod metodo, IEnumerable<string[]> headers, string contentType, string body, string postData, int maxTimeseconds = 120)
|
||||
{
|
||||
string resultado = "";
|
||||
try
|
||||
{
|
||||
|
||||
System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(URL);
|
||||
request.Timeout = maxTimeseconds * 1000;
|
||||
request.Method = metodo.ToString("G");
|
||||
request.ContentType = contentType;
|
||||
if (headers != null)
|
||||
{
|
||||
foreach (string[] item in headers)
|
||||
{
|
||||
if (item.Length > 1)
|
||||
{
|
||||
request.Headers.Add(item[0], item[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
request.Headers.Add(item[0]);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (request.Method == "POST")
|
||||
//{
|
||||
// if (postData != null)
|
||||
// {
|
||||
// request.ContentLength = postData.Length;
|
||||
// using (var dataStream = request.GetRequestStream())
|
||||
// {
|
||||
// dataStream.Write(postData, 0, postData.Length);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
using (System.IO.Stream stream = request.GetRequestStream())
|
||||
using (System.IO.StreamWriter stmw = new System.IO.StreamWriter(stream))
|
||||
{
|
||||
stmw.Write(body);
|
||||
}
|
||||
System.Net.WebResponse response = (System.Net.WebResponse)request.GetResponse();
|
||||
System.IO.StreamReader sr = new System.IO.StreamReader(response.GetResponseStream());
|
||||
resultado = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
//Extenciones.ApplicationParameter.GuardaLogEx(ex, $"SOAPAction : {SOAPAction} XML : {xml}");
|
||||
}
|
||||
return resultado;
|
||||
}
|
||||
|
||||
#region Encripta desencripta
|
||||
|
||||
private static byte[] _Key = new byte[] { };
|
||||
private readonly static byte[] _IV = new byte[] { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
|
||||
private readonly static byte[] _IVAES = new byte[] { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
|
||||
private static string SEncryptionKey = "$Ap7+5&z";
|
||||
//private static string SEncryptionKeyAES = "$Ap7+5&z$Ap7+5&z$Ap7+5&z$Ap7+5&z";
|
||||
public static string Decripta(string stringToDecrypt, string TipoEncryption = "DES")
|
||||
{
|
||||
string Salida;
|
||||
|
||||
if (stringToDecrypt != "")
|
||||
{
|
||||
Salida = stringToDecrypt.Replace(" ", "+");
|
||||
byte[] inputByteArray = new byte[Salida.Length + 1];
|
||||
|
||||
try
|
||||
{
|
||||
switch (TipoEncryption)
|
||||
{
|
||||
case "DES":
|
||||
{
|
||||
_Key = System.Text.Encoding.UTF8.GetBytes(Left(SEncryptionKey, 8));
|
||||
using (System.Security.Cryptography.DESCryptoServiceProvider des = new System.Security.Cryptography.DESCryptoServiceProvider())
|
||||
using (System.IO.MemoryStream ms = new System.IO.MemoryStream())
|
||||
using (System.Security.Cryptography.CryptoStream cs = new System.Security.Cryptography.CryptoStream(ms, des.CreateDecryptor(_Key, _IV), System.Security.Cryptography.CryptoStreamMode.Write))
|
||||
{
|
||||
inputByteArray = Convert.FromBase64String(Salida);
|
||||
cs.Write(inputByteArray, 0, inputByteArray.Length);
|
||||
cs.FlushFinalBlock();
|
||||
Encoding encoding = System.Text.Encoding.UTF8;
|
||||
Salida = encoding.GetString(ms.ToArray());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case "AES":
|
||||
{
|
||||
//_Key = System.Text.Encoding.UTF8.GetBytes(Left(SEncryptionKeyAES, 32));
|
||||
//AesCryptoServiceProvider aes = new AesCryptoServiceProvider();
|
||||
//inputByteArray = Convert.FromBase64String(Salida);
|
||||
|
||||
//MemoryStream ms = new MemoryStream();
|
||||
//CryptoStream cs = new CryptoStream(ms, aes.CreateDecryptor(_Key, _IVAES), CryptoStreamMode.Write);
|
||||
//cs.Write(inputByteArray, 0, inputByteArray.Length);
|
||||
//cs.FlushFinalBlock();
|
||||
//Encoding encoding = System.Text.Encoding.UTF8;
|
||||
|
||||
//Salida = encoding.GetString(ms.ToArray());
|
||||
//aes.Dispose(); ms.Dispose(); cs.Dispose();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Alert("Parametros incorrectos", TipoMensaje.MsgError)
|
||||
return "";
|
||||
}
|
||||
}
|
||||
else
|
||||
return "";
|
||||
|
||||
return Salida;
|
||||
}
|
||||
public static string Encripta(string stringToEncrypt, string TipoEncryption = "DES")
|
||||
{
|
||||
string Retorno = "";
|
||||
switch (TipoEncryption)
|
||||
{
|
||||
case "DES":
|
||||
{
|
||||
_Key = Encoding.UTF8.GetBytes(Left(SEncryptionKey, 8));
|
||||
using (System.Security.Cryptography.DESCryptoServiceProvider des = new System.Security.Cryptography.DESCryptoServiceProvider())
|
||||
using (System.IO.MemoryStream ms = new System.IO.MemoryStream())
|
||||
using (System.Security.Cryptography.CryptoStream cs = new System.Security.Cryptography.CryptoStream(ms, des.CreateEncryptor(_Key, _IV), System.Security.Cryptography.CryptoStreamMode.Write))
|
||||
{
|
||||
byte[] inputByteArray = Encoding.UTF8.GetBytes(stringToEncrypt);
|
||||
cs.Write(inputByteArray, 0, inputByteArray.Length);
|
||||
cs.FlushFinalBlock();
|
||||
Retorno = Convert.ToBase64String(ms.ToArray());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case "AES":
|
||||
{
|
||||
//_Key = Encoding.UTF8.GetBytes(Left(SEncryptionKeyAES, 32));
|
||||
//AesCryptoServiceProvider aes = new AesCryptoServiceProvider();
|
||||
//byte[] inputByteArray = Encoding.UTF8.GetBytes(stringToEncrypt);
|
||||
//MemoryStream ms = new MemoryStream();
|
||||
//CryptoStream cs = new CryptoStream(ms, aes.CreateEncryptor(_Key, _IVAES), CryptoStreamMode.Write);
|
||||
//cs.Write(inputByteArray, 0, inputByteArray.Length);
|
||||
//cs.FlushFinalBlock();
|
||||
//Retorno = Convert.ToBase64String(ms.ToArray());
|
||||
//aes.Dispose(); ms.Dispose(); cs.Dispose();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
public static string Left(this string value, int maxLength)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value)) return value;
|
||||
maxLength = Math.Abs(maxLength);
|
||||
return (value.Length <= maxLength ? value : value.Substring(0, maxLength));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
BIN
ADSUtileriasService/Icon.ico
Normal file
BIN
ADSUtileriasService/Icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
5
ADSUtileriasService/Instalarservicio.txt
Normal file
5
ADSUtileriasService/Instalarservicio.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
|
||||
C:\Windows\Microsoft.NET\Framework\v4.0.30319
|
||||
|
||||
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe" "C:\ADSUtileriasService\ADSUtileriasService.exe"
|
||||
InstallUtil.exe /u C:\GpsGPRS\GpsGPRS.exe
|
||||
31
ADSUtileriasService/Modelos/AppSystem/Usuario.cs
Normal file
31
ADSUtileriasService/Modelos/AppSystem/Usuario.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Modelos.AppSystem
|
||||
{
|
||||
public class Usuario
|
||||
{
|
||||
public Usuario()
|
||||
{
|
||||
//lmodulos = new List<Modulos>();
|
||||
}
|
||||
public int CveUsuario { get; set; }
|
||||
public int CveEmpresa { get; set; }
|
||||
public int CveRol { get; set; }
|
||||
public string Rol { get; set; }
|
||||
public int Token { get; set; }
|
||||
public string UsuarioName { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Nombre { get; set; }
|
||||
public string Headerauth { get { return string.Format("Sig {0}", Helpers.Mod.Encripta(string.Format("{0}|{1}|{2:ddMMyyyy}|{2:HHmm}|{3}", CveUsuario, Token, DateTime.Now, CveEmpresa))); } }
|
||||
public List<Modulos> lmodulos { get; set; }
|
||||
}
|
||||
public class Modulos
|
||||
{
|
||||
public int CveModulo { get; set; }
|
||||
public string Modulo { get; set; }
|
||||
}
|
||||
}
|
||||
18
ADSUtileriasService/Modelos/BaseModal.cs
Normal file
18
ADSUtileriasService/Modelos/BaseModal.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Modelos
|
||||
{
|
||||
public class BaseModal
|
||||
{
|
||||
public int ROWID { get; set; }
|
||||
public bool SincronizadoSig { get; set; }
|
||||
public int CveUsuarioUpdate { get; set; }
|
||||
public DateTime FechaUpdate { get; set; }
|
||||
public int CveUsuario { get; set; }
|
||||
public int CveEmpresa { get; set; }
|
||||
}
|
||||
}
|
||||
28
ADSUtileriasService/Modelos/Checador/Checadormodel.cs
Normal file
28
ADSUtileriasService/Modelos/Checador/Checadormodel.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Modelos.Checador
|
||||
{
|
||||
public class Checadormodel: BaseModal
|
||||
{
|
||||
|
||||
#region Propiedades
|
||||
public int cveChecador { get; set; }
|
||||
public string checador { get; set; }
|
||||
public int cveSubProyecto { get; set; }
|
||||
public int cveProyecto { get; set; }
|
||||
public int proyecto { get; set; }
|
||||
public int subProyecto { get; set; }
|
||||
public int cveModelo { get; set; }
|
||||
public string iPLocal { get; set; }
|
||||
public string puerto { get; set; }
|
||||
public int cveUsuario { get; set; }
|
||||
public DateTime fechaIng { get; set; }
|
||||
public string estatus { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
25
ADSUtileriasService/Program.cs
Normal file
25
ADSUtileriasService/Program.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
static void Main()
|
||||
{
|
||||
ServiceBase[] ServicesToRun;
|
||||
ServicesToRun = new ServiceBase[]
|
||||
{
|
||||
new ADSUtileriasAPP()
|
||||
};
|
||||
ServiceBase.Run(ServicesToRun);
|
||||
}
|
||||
}
|
||||
}
|
||||
58
ADSUtileriasService/ProjectInstaller.Designer.cs
generated
Normal file
58
ADSUtileriasService/ProjectInstaller.Designer.cs
generated
Normal file
@@ -0,0 +1,58 @@
|
||||
namespace ADSUtileriasService
|
||||
{
|
||||
partial class ProjectInstaller
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.ADSserviceProcessInstaller = new System.ServiceProcess.ServiceProcessInstaller();
|
||||
this.ADSserviceInstaller = new System.ServiceProcess.ServiceInstaller();
|
||||
//
|
||||
// ADSserviceProcessInstaller
|
||||
//
|
||||
this.ADSserviceProcessInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
|
||||
this.ADSserviceProcessInstaller.Password = null;
|
||||
this.ADSserviceProcessInstaller.Username = null;
|
||||
//
|
||||
// ADSserviceInstaller
|
||||
//
|
||||
this.ADSserviceInstaller.ServiceName = "ADSUtileriasAPP";
|
||||
this.ADSserviceInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
|
||||
//
|
||||
// ProjectInstaller
|
||||
//
|
||||
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
|
||||
this.ADSserviceProcessInstaller,
|
||||
this.ADSserviceInstaller});
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.ServiceProcess.ServiceProcessInstaller ADSserviceProcessInstaller;
|
||||
private System.ServiceProcess.ServiceInstaller ADSserviceInstaller;
|
||||
}
|
||||
}
|
||||
19
ADSUtileriasService/ProjectInstaller.cs
Normal file
19
ADSUtileriasService/ProjectInstaller.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration.Install;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService
|
||||
{
|
||||
[RunInstaller(true)]
|
||||
public partial class ProjectInstaller : System.Configuration.Install.Installer
|
||||
{
|
||||
public ProjectInstaller()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
129
ADSUtileriasService/ProjectInstaller.resx
Normal file
129
ADSUtileriasService/ProjectInstaller.resx
Normal file
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="ADSserviceProcessInstaller.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="ADSserviceInstaller.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>196, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
36
ADSUtileriasService/Properties/AssemblyInfo.cs
Normal file
36
ADSUtileriasService/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("ADSUtileriasService")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ADSUtileriasService")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("1c65bd72-c604-45a4-b18e-f5e415a6649f")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
167
ADSUtileriasService/Servicios/ChecadorService.cs
Normal file
167
ADSUtileriasService/Servicios/ChecadorService.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
using ADSUtileriasService.Conexion.SIG;
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSNetLibrary.SIGAPI;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using ADSNetLibrary.SIGAPI.Models.Planeacion.Request;
|
||||
using ADSNetLibrary.SIGAPI.Models.Planeacion.Response;
|
||||
using ADSNetLibrary.SIGAPI.Models.Request;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ADSNetLibrary.SIGAPI.Models.Sistema;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IChecadorService
|
||||
{
|
||||
[OperationContract]
|
||||
List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> GetChecadorEmpleado(int CveChecador, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
bool SetPersonalChecador(List<ADSNetLibrary.SIGAPI.Models.RH.Request.RequestPersonalChecadorUp> empleados, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
bool AddChecadorEmpleado(int cveChecador, ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador personal, string sCardnumber = "0", int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
ResponseLogin Login(RequestLogin parames);
|
||||
[OperationContract]
|
||||
List<ResponseSubProyectoUsuario> GetSubProyectos(RequestSubProyectoUsuario parames);
|
||||
}
|
||||
class ChecadorService : IChecadorService
|
||||
{
|
||||
public List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto, int CveEmpresa = -1)
|
||||
{
|
||||
ResponseModel<List<Modelos.Checador.Checadormodel>> retorno = new ResponseModel<List<Modelos.Checador.Checadormodel>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETChecadores(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
public List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto, int CveEmpresa = -1)
|
||||
{
|
||||
ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>> retorno = new ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETPersonal(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
public List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> GetChecadorEmpleado(int CveChecador, int CveEmpresa = -1)
|
||||
{
|
||||
List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> retorno = null;
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
List<Modelos.Checador.Checadormodel> devicelist = rhrepo.GETChecadores(-1);
|
||||
foreach (Modelos.Checador.Checadormodel devicemodel in devicelist)
|
||||
{
|
||||
if (devicemodel.cveChecador == CveChecador)
|
||||
{
|
||||
|
||||
using (ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco device = new ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero()))
|
||||
{
|
||||
var registros = device.GetChecadorEmpleado();
|
||||
if (registros != null && registros.IsSuccess)
|
||||
{
|
||||
retorno = registros.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
|
||||
|
||||
public bool AddChecadorEmpleado(int cveChecador, ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador personal, string sCardnumber = "0", int CveEmpresa = -1)
|
||||
{
|
||||
|
||||
bool retorno = false;
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
List<Modelos.Checador.Checadormodel> devicelist = rhrepo.GETChecadores(-1);
|
||||
foreach (Modelos.Checador.Checadormodel devicemodel in devicelist)
|
||||
{
|
||||
if (devicemodel.cveChecador == cveChecador)
|
||||
{
|
||||
|
||||
using (ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco device = new ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero()))
|
||||
{
|
||||
var registros = device.AddChecadorEmpleado(personal,sCardnumber);
|
||||
if (registros != null && registros.IsSuccess)
|
||||
{
|
||||
retorno = registros.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
public bool SetPersonalChecador(List<ADSNetLibrary.SIGAPI.Models.RH.Request.RequestPersonalChecadorUp> empleados, int CveEmpresa = -1)
|
||||
{
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
//List<ChecadorPersonal> chekpersonal = new List<ChecadorPersonal>();
|
||||
//List<Modelos.Checador.Checadormodel> devicelist = rhrepo.GETChecadores(-1);
|
||||
//foreach (Modelos.Checador.Checadormodel devicemodel in devicelist)
|
||||
//{
|
||||
// ChecadorController.ApiChecadorBase device = new ChecadorController.ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero());
|
||||
// var registros = device.GetChecadorEmpleado();
|
||||
// if (registros != null && registros.IsSuccess)
|
||||
// {
|
||||
// chekpersonal.Add(new ChecadorPersonal() { checador = devicemodel, personal = registros.Result });
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Conexion.SIG.RHSIG rhsig = new Conexion.SIG.RHSIG();
|
||||
var checks = rhsig.UpPersonalChecador(empleados);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
foreach (var item in empleados)
|
||||
{
|
||||
rhrepo.UPPersonalChecador(item.CvePersonal, item.cveChecador, item.checadorID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
public ResponseLogin Login(RequestLogin parames)
|
||||
{
|
||||
UsuarioSIG Usig = new UsuarioSIG();
|
||||
ResponseModel<ResponseLogin> usuario = Usig.Login(parames);
|
||||
return usuario.Result;
|
||||
}
|
||||
public List<ResponseSubProyectoUsuario> GetSubProyectos(RequestSubProyectoUsuario parames)
|
||||
{
|
||||
PlaneacionSIG planeasig = new PlaneacionSIG();
|
||||
ResponseModel<List<ResponseSubProyectoUsuario>> planea = planeasig.GetSubProyectos(parames);
|
||||
return planea.Result;
|
||||
}
|
||||
}
|
||||
class ChecadorPersonal
|
||||
{
|
||||
public int CveChecador { get { if (checador != null) { return checador.cveChecador; } else { return 0; } } }
|
||||
public Modelos.Checador.Checadormodel checador { get; set; }
|
||||
public List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> personal { get; set; }
|
||||
}
|
||||
}
|
||||
12
ADSUtileriasService/Servicios/General.cs
Normal file
12
ADSUtileriasService/Servicios/General.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
class General
|
||||
{
|
||||
}
|
||||
}
|
||||
604
ADSUtileriasService/Servicios/Puntoventaservice.cs
Normal file
604
ADSUtileriasService/Servicios/Puntoventaservice.cs
Normal file
@@ -0,0 +1,604 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IPuntoventaservice
|
||||
{
|
||||
[OperationContract]
|
||||
string GetData(int value);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetUsuariosProcesos(int CveProceso, int CveUsuario);
|
||||
//[OperationContract()]
|
||||
//Usuario ValidarUsuario(string Usuario, string Password);
|
||||
//[OperationContract()]
|
||||
//Usuario ValidarUsuarioMesero(string Password);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetCategorias();
|
||||
[OperationContract()]
|
||||
DTable AddCategorias(int CveCategoria, string Categoria, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveCategoria(int CveCategoria);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetClasificaciones(int CveCategoria);
|
||||
[OperationContract()]
|
||||
DTable AddClasificaciones(int CveClasificacion, string Clasificacion, int CveCategoria, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveClasificacion(int CveClasificacion);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetCliente(string RFC);
|
||||
[OperationContract()]
|
||||
DTable GetClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, string Telefono, string Mail, int CveSucursal, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable AddClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, int CveSucursal, int CveEmpresa, string NombreComercial, string Direccion, string NoExt, string NoInt, string Colonia, string Localidad, string Ciudad, string Estado, string Pais, string CP, string Telefono, string Contacto, string Mail);
|
||||
[OperationContract()]
|
||||
DTable RemoveCliente(int CveCliente);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetCuentasVendedor(int CveVendedor, int EstatusVenta);
|
||||
[OperationContract()]
|
||||
DTable GetVendedores();
|
||||
[OperationContract()]
|
||||
DTable AddVendedor(int CveVendedor, string Vendedor, bool Estado);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetEmpresas();
|
||||
[OperationContract()]
|
||||
DTable GetReporteInfo();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetEstadoServicio();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetMetodosPago();
|
||||
[OperationContract()]
|
||||
DTable AddMetodosPago(int CveMetodoPago, string MetodoPago, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveMetodosPago(int CveMetodoPago);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetMonedas();
|
||||
[OperationContract()]
|
||||
DTable AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveMonedas(int CveMoneda);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetProcesos();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetPS(int CvePS, int CveClasificacion, string Codigo = "-1", string PS = "-1");
|
||||
[OperationContract()]
|
||||
DTable GetPSCaracteristicas(int CvePS);
|
||||
[OperationContract()]
|
||||
DTable AddPSCaracteristicas(int CvePSCaracteristica, int CvePS, string Caracteristica, bool EsOpcion);
|
||||
[OperationContract()]
|
||||
DTable RemovePSCaracteristicas(int CvePSCaracteristica);
|
||||
[OperationContract()]
|
||||
DTable GetPSCaracteristicasOpciones(int CvePSCaracteristica, int CvePS = -1);
|
||||
[OperationContract()]
|
||||
DTable AddPSCaracteristicasOpciones(int CveOpcion, int CvePSCaracteristica, string Opcion);
|
||||
[OperationContract()]
|
||||
DTable RemovePSCaracteristicasOpciones(int CveOpcion);
|
||||
[OperationContract()]
|
||||
DTable GetPSPaquetes(int CvePSPaquete);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetSucursales();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetUnidadesMedida();
|
||||
|
||||
[OperationContract()]
|
||||
DTable AddVenta(string TipoDocto, int FolioFact, int CveCliente, double SubTotal, double Descuento, double IVA, double Total, int CveMoneda, double TipoCambio, int CveMetodoPago, DateTime Fecha, string MotivoDescuento, string Observaciones, int CveEstatusFactura, int CveVendedor, int CveCorteTerminal, int CveMesa, int NumeroPersonas, string Cuenta, int CveUsuario, int CveSucursal, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable AddVta_VentasPago(int CveVentaTerminal, int CveMetodoPago, double Importe, double ImportePropina);
|
||||
[OperationContract()]
|
||||
DTable RemoveVta_VentasPago(int CveVentaTerminal, int CveMetodoPago);
|
||||
|
||||
[OperationContract()]
|
||||
DTable AddVentaDetalle(int CveVentaTerminal, int CvePS, double Cantidad, int CveUnidadMedida, double PU, double IVA, double Total, string Observaciones, double Descuento, int TipoDescuento, int ComandaOrden, double TasaIVA, bool EsVentaDetalle = true, int CveVentaDetalleTerminalPadre = -1, bool EsPromocion = false);
|
||||
[OperationContract()]
|
||||
DTable GetVta_VentasPagoCorte(int CveCorteTerminal, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable GetVta_VentasPago(int CveVentaTerminal);
|
||||
//[OperationContract()]
|
||||
//DTable GetVentas(int CveVentaTerminal, int CveEstatusFactura, int CveVendedor, string Cuenta, int CveCorteTerminal, int CveUsuario, int CveEmpresa, ClsVentas.EstatusVentaTerminal CveVenta = -1, int Modificadas = -1);
|
||||
[OperationContract()]
|
||||
DTable UpdateVenta(double SubTotal, double Descuento, double IVA, double Total, double Propina, int CveEstatusFactura, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVentaCopia(int CveVentaTerminal, string Cuenta, int CveUsuario);
|
||||
//[OperationContract()]
|
||||
//DTable GetVentasDetalle(int CveVentaTerminal, ClsVentas.EstatusEntrega EstatusEntrega);
|
||||
[OperationContract()]
|
||||
DTable DivideVenta(int CveVentaDetalleTerminal, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable JuntaVenta(int CveVentaTerminalPrincipal, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable DeleteVentaDetalle(int CveVentaDetalleTerminal, int CveVentaTerminal);
|
||||
//[OperationContract()]
|
||||
//DTable UpdateEstatusEntregaVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, ClsVentas.EstatusEntrega EstatusEntregaFiltro, ClsVentas.EstatusEntrega EstatusEntrega);
|
||||
[OperationContract()]
|
||||
DTable UpdateCantidadVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, double Cantidad, bool EsVentaDetalle = true);
|
||||
[OperationContract()]
|
||||
DTable UpdateCambiarMesa(int CveMesa, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable UpdateCliente(int CveCliente, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable UpdateDescuentoPorcentaje(int DescuentoPorcentaje, int CveVentaTerminal, bool AplicarloDetalles = false);
|
||||
[OperationContract()]
|
||||
DTable UpdateImpreso(int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable UpdateImpresoComanda(int CveVentaTerminal, int ComandaOrden);
|
||||
[OperationContract()]
|
||||
DTable UpdateVendedor(int CveVendedor, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal);
|
||||
[OperationContract()]
|
||||
DTable RemoveVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal);
|
||||
[OperationContract()]
|
||||
DTable GetVentasDetallesCaracteristicas(int CveVentaDetalleTerminal, int CveVentaTerminal = -1);
|
||||
[OperationContract()]
|
||||
DTable GetVentasDetallesComandaOrden(int CveCorteTerminal);
|
||||
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Bitacora(int CveCorteTerminal, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVta_Bitacora(int CveVentaTerminal, string Observacion, int CveUsuario);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Cortes(int CveCorteTerminal, string FechaI, string FechaF, int CveUsuario, int Finalizado, int CveCorte = -1, int Enviado = -1);
|
||||
[OperationContract()]
|
||||
DTable UpdateFinalizadoVta_Cortes(int CveCorteTerminal, double ImporteFinal, double Diferencia, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable UpdateVta_CortesCveCorte(int CveCorteTerminal, int CveCorte);
|
||||
[OperationContract()]
|
||||
DTable UpdateVta_CortesEnviado(int CveCorteTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVta_Cortes(DateTime FechaInicial, double ImporteInicial, int CveUsuario, string Descripcion, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable AddVta_CortesDetalles(int CveCorteTerminal, int CveMetodoPago, double Importe);
|
||||
[OperationContract()]
|
||||
DTable GetVta_CortesDetalles(int CveCorteTerminal);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Mesas();
|
||||
|
||||
[OperationContract()]
|
||||
DTable RemoveVta_MovimientosCaja(int CveMovimientoTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVta_MovimientosCaja(int CveCorteTerminal, int CveUsuario, double Importe, string Descripcion, int TipoMovimiento);
|
||||
[OperationContract()]
|
||||
DTable GetVta_MovimientosCaja(int CveMovimientoTerminal, int CveCorteTerminal, int TipoMovimiento, int CveMovimiento = -1);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Vendedores();
|
||||
}
|
||||
public class Puntoventaservice : IPuntoventaservice
|
||||
{
|
||||
DTable IPuntoventaservice.AddCategorias(int CveCategoria, string Categoria, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddClasificaciones(int CveClasificacion, string Clasificacion, int CveCategoria, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, int CveSucursal, int CveEmpresa, string NombreComercial, string Direccion, string NoExt, string NoInt, string Colonia, string Localidad, string Ciudad, string Estado, string Pais, string CP, string Telefono, string Contacto, string Mail)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddMetodosPago(int CveMetodoPago, string MetodoPago, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddPSCaracteristicas(int CvePSCaracteristica, int CvePS, string Caracteristica, bool EsOpcion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddPSCaracteristicasOpciones(int CveOpcion, int CvePSCaracteristica, string Opcion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVendedor(int CveVendedor, string Vendedor, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVenta(string TipoDocto, int FolioFact, int CveCliente, double SubTotal, double Descuento, double IVA, double Total, int CveMoneda, double TipoCambio, int CveMetodoPago, DateTime Fecha, string MotivoDescuento, string Observaciones, int CveEstatusFactura, int CveVendedor, int CveCorteTerminal, int CveMesa, int NumeroPersonas, string Cuenta, int CveUsuario, int CveSucursal, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVentaCopia(int CveVentaTerminal, string Cuenta, int CveUsuario)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVentaDetalle(int CveVentaTerminal, int CvePS, double Cantidad, int CveUnidadMedida, double PU, double IVA, double Total, string Observaciones, double Descuento, int TipoDescuento, int ComandaOrden, double TasaIVA, bool EsVentaDetalle, int CveVentaDetalleTerminalPadre, bool EsPromocion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_Bitacora(int CveVentaTerminal, string Observacion, int CveUsuario)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_Cortes(DateTime FechaInicial, double ImporteInicial, int CveUsuario, string Descripcion, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_CortesDetalles(int CveCorteTerminal, int CveMetodoPago, double Importe)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_MovimientosCaja(int CveCorteTerminal, int CveUsuario, double Importe, string Descripcion, int TipoMovimiento)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_VentasPago(int CveVentaTerminal, int CveMetodoPago, double Importe, double ImportePropina)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.DeleteVentaDetalle(int CveVentaDetalleTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.DivideVenta(int CveVentaDetalleTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetCategorias()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetClasificaciones(int CveCategoria)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetCliente(string RFC)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, string Telefono, string Mail, int CveSucursal, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetCuentasVendedor(int CveVendedor, int EstatusVenta)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
string IPuntoventaservice.GetData(int value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetEmpresas()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetEstadoServicio()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetMetodosPago()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetMonedas()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetProcesos()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPS(int CvePS, int CveClasificacion, string Codigo, string PS)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPSCaracteristicas(int CvePS)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPSCaracteristicasOpciones(int CvePSCaracteristica, int CvePS)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPSPaquetes(int CvePSPaquete)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetReporteInfo()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetSucursales()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetUnidadesMedida()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetUsuariosProcesos(int CveProceso, int CveUsuario)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVendedores()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVentasDetallesCaracteristicas(int CveVentaDetalleTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVentasDetallesComandaOrden(int CveCorteTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Bitacora(int CveCorteTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Cortes(int CveCorteTerminal, string FechaI, string FechaF, int CveUsuario, int Finalizado, int CveCorte, int Enviado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_CortesDetalles(int CveCorteTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Mesas()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_MovimientosCaja(int CveMovimientoTerminal, int CveCorteTerminal, int TipoMovimiento, int CveMovimiento)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Vendedores()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_VentasPago(int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_VentasPagoCorte(int CveCorteTerminal, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.JuntaVenta(int CveVentaTerminalPrincipal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveCategoria(int CveCategoria)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveClasificacion(int CveClasificacion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveCliente(int CveCliente)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveMetodosPago(int CveMetodoPago)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveMonedas(int CveMoneda)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemovePSCaracteristicas(int CvePSCaracteristica)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemovePSCaracteristicasOpciones(int CveOpcion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveVta_MovimientosCaja(int CveMovimientoTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveVta_VentasPago(int CveVentaTerminal, int CveMetodoPago)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateCambiarMesa(int CveMesa, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateCantidadVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, double Cantidad, bool EsVentaDetalle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateCliente(int CveCliente, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateDescuentoPorcentaje(int DescuentoPorcentaje, int CveVentaTerminal, bool AplicarloDetalles)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateFinalizadoVta_Cortes(int CveCorteTerminal, double ImporteFinal, double Diferencia, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateImpreso(int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateImpresoComanda(int CveVentaTerminal, int ComandaOrden)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVendedor(int CveVendedor, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVenta(double SubTotal, double Descuento, double IVA, double Total, double Propina, int CveEstatusFactura, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVta_CortesCveCorte(int CveCorteTerminal, int CveCorte)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVta_CortesEnviado(int CveCorteTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
[DataContract]
|
||||
public class DTable
|
||||
{
|
||||
[DataMember]
|
||||
public DataTable Tabla
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Tabla;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Tabla = value;
|
||||
}
|
||||
}
|
||||
[DataMember]
|
||||
public string Mensaje
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Mensaje;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Mensaje = value;
|
||||
}
|
||||
}
|
||||
[DataMember]
|
||||
public int CveRetorno
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CveRetorno;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_CveRetorno = value;
|
||||
}
|
||||
}
|
||||
[DataMember]
|
||||
public bool Retorno
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Retorno;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Retorno = value;
|
||||
}
|
||||
}
|
||||
|
||||
private DataTable m_Tabla;
|
||||
private string m_Mensaje;
|
||||
private int m_CveRetorno;
|
||||
private bool m_Retorno;
|
||||
}
|
||||
}
|
||||
|
||||
44
ADSUtileriasService/Servicios/UtileriasService.cs
Normal file
44
ADSUtileriasService/Servicios/UtileriasService.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IUtileriasService
|
||||
{
|
||||
[OperationContract]
|
||||
List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto);
|
||||
|
||||
}
|
||||
class UtileriasService: IUtileriasService
|
||||
{
|
||||
public List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto)
|
||||
{
|
||||
ResponseModel<List<Modelos.Checador.Checadormodel>> retorno = new ResponseModel<List<Modelos.Checador.Checadormodel>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETChecadores(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
public List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto)
|
||||
{
|
||||
ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>> retorno = new ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETPersonal(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
ADSUtileriasService/bin/Release/ADSNetLibrary.dll
Normal file
BIN
ADSUtileriasService/bin/Release/ADSNetLibrary.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/ADSNetLibrary.pdb
Normal file
BIN
ADSUtileriasService/bin/Release/ADSNetLibrary.pdb
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/ADSUtileriasService.exe
Normal file
BIN
ADSUtileriasService/bin/Release/ADSUtileriasService.exe
Normal file
Binary file not shown.
106
ADSUtileriasService/bin/Release/ADSUtileriasService.exe.config
Normal file
106
ADSUtileriasService/bin/Release/ADSUtileriasService.exe.config
Normal file
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
<appSettings>
|
||||
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
|
||||
<add key="UrlApi" value="http://sig.adssistemas.mx:4001/" />
|
||||
<add key="FilesDir" value="D:\ADSistemas\Proyectos\SIG\ADSUtilerias\FilesDir\" />
|
||||
<add key="ClientSettingsProvider.ServiceUri" value="" />
|
||||
<add key="UserName" value="jcaudillo"/>
|
||||
<add key="Password" value="45makako45"/>
|
||||
<add key="CveEmpresa" value="119"/>
|
||||
<add key="actualizarKeyPersonal" value="119"/>
|
||||
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" />
|
||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||
<providers>
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
||||
</providers>
|
||||
</membership>
|
||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||
<providers>
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
</system.web>
|
||||
<!-- When deploying the service library project, the content of the config file must be added to the host's
|
||||
app.config file. System.Configuration does not support config files for libraries. -->
|
||||
<system.serviceModel>
|
||||
<services>
|
||||
<service name="ADSUtileriasService.Servicios.Puntoventaservice">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/PV/" />
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<endpoint address="" binding="basicHttpBinding" contract="ADSUtileriasService.Servicios.IPuntoventaservice">
|
||||
<identity>
|
||||
<dns value="localhost" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
|
||||
</service>
|
||||
<service name="ADSUtileriasService.Servicios.ChecadorService">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/Checador/" />
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<endpoint address="" binding="basicHttpBinding" contract="ADSUtileriasService.Servicios.IChecadorService">
|
||||
<identity>
|
||||
<dns value="localhost" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
|
||||
</service>
|
||||
<service name="ADSNetLibrary.Application.Servicio.WCF.SystemService">
|
||||
<host>
|
||||
<baseAddresses>
|
||||
<add baseAddress="http://localhost:8000/UtileriasService/" />
|
||||
</baseAddresses>
|
||||
</host>
|
||||
<endpoint address="" binding="basicHttpBinding" contract="ADSNetLibrary.Application.Servicio.WCF.ISystemService">
|
||||
<identity>
|
||||
<dns value="localhost" />
|
||||
</identity>
|
||||
</endpoint>
|
||||
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
|
||||
</service>
|
||||
</services>
|
||||
<behaviors>
|
||||
<serviceBehaviors>
|
||||
<behavior>
|
||||
<!-- To avoid disclosing metadata information,
|
||||
set the values below to false before deployment -->
|
||||
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
|
||||
<!-- To receive exception details in faults for debugging purposes,
|
||||
set the value below to true. Set to false before deployment
|
||||
to avoid disclosing exception information -->
|
||||
<serviceDebug includeExceptionDetailInFaults="False" />
|
||||
</behavior>
|
||||
</serviceBehaviors>
|
||||
</behaviors>
|
||||
</system.serviceModel>
|
||||
<entityFramework>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
<system.data>
|
||||
<DbProviderFactories>
|
||||
<remove invariant="System.Data.SQLite.EF6" />
|
||||
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
|
||||
<remove invariant="System.Data.SQLite" />
|
||||
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
</configuration>
|
||||
BIN
ADSUtileriasService/bin/Release/ADSUtileriasService.pdb
Normal file
BIN
ADSUtileriasService/bin/Release/ADSUtileriasService.pdb
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/ClosedXML.dll
Normal file
BIN
ADSUtileriasService/bin/Release/ClosedXML.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/ClosedXML.pdb
Normal file
BIN
ADSUtileriasService/bin/Release/ClosedXML.pdb
Normal file
Binary file not shown.
5262
ADSUtileriasService/bin/Release/ClosedXML.xml
Normal file
5262
ADSUtileriasService/bin/Release/ClosedXML.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/DocumentFormat.OpenXml.dll
Normal file
BIN
ADSUtileriasService/bin/Release/DocumentFormat.OpenXml.dll
Normal file
Binary file not shown.
309420
ADSUtileriasService/bin/Release/DocumentFormat.OpenXml.xml
Normal file
309420
ADSUtileriasService/bin/Release/DocumentFormat.OpenXml.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/EntityFramework.SqlServer.dll
Normal file
BIN
ADSUtileriasService/bin/Release/EntityFramework.SqlServer.dll
Normal file
Binary file not shown.
2156
ADSUtileriasService/bin/Release/EntityFramework.SqlServer.xml
Normal file
2156
ADSUtileriasService/bin/Release/EntityFramework.SqlServer.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/EntityFramework.dll
Normal file
BIN
ADSUtileriasService/bin/Release/EntityFramework.dll
Normal file
Binary file not shown.
54104
ADSUtileriasService/bin/Release/EntityFramework.xml
Normal file
54104
ADSUtileriasService/bin/Release/EntityFramework.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/ExcelNumberFormat.dll
Normal file
BIN
ADSUtileriasService/bin/Release/ExcelNumberFormat.dll
Normal file
Binary file not shown.
83
ADSUtileriasService/bin/Release/ExcelNumberFormat.xml
Normal file
83
ADSUtileriasService/bin/Release/ExcelNumberFormat.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>ExcelNumberFormat</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:ExcelNumberFormat.CompatibleConvert.ToString(System.Object,System.IFormatProvider)">
|
||||
<summary>
|
||||
A backward-compatible version of <see cref="M:System.Convert.ToString(System.Object,System.IFormatProvider)"/>.
|
||||
Starting from .net Core 3.0 the default precision used for formatting floating point number has changed.
|
||||
To always format numbers the same way, no matter what version of runtime is used, we specify the precision explicitly.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.Formatter.FormatThousands(System.String,System.Boolean,System.Boolean,System.Collections.Generic.List{System.String},System.Globalization.CultureInfo,System.Text.StringBuilder)">
|
||||
<summary>
|
||||
Prints right-aligned, left-padded integer before the decimal separator. With optional most-significant zero.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.Formatter.FormatDecimals(System.String,System.Collections.Generic.List{System.String},System.Text.StringBuilder)">
|
||||
<summary>
|
||||
Prints left-aligned, right-padded integer after the decimal separator. Does not print significant zero.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.Formatter.FormatDenominator(System.String,System.Collections.Generic.List{System.String},System.Text.StringBuilder)">
|
||||
<summary>
|
||||
Prints left-aligned, left-padded fraction integer denominator.
|
||||
Assumes tokens contain only placeholders, valueString has fewer or equal number of digits as tokens.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.Formatter.GetLeftAlignedValueDigit(System.String,System.String,System.Int32,System.Boolean,System.Int32@)">
|
||||
<summary>
|
||||
Returns the first digit from valueString. If the token is '?'
|
||||
returns the first significant digit from valueString, or '0' if there are no significant digits.
|
||||
The out valueIndex parameter contains the offset to the next digit in valueString.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ExcelNumberFormat.NumberFormat">
|
||||
<summary>
|
||||
Parse ECMA-376 number format strings and format values like Excel and other spreadsheet softwares.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.NumberFormat.#ctor(System.String)">
|
||||
<summary>
|
||||
Initializes a new instance of the <see cref="T:ExcelNumberFormat.NumberFormat"/> class.
|
||||
</summary>
|
||||
<param name="formatString">The number format string.</param>
|
||||
</member>
|
||||
<member name="P:ExcelNumberFormat.NumberFormat.IsValid">
|
||||
<summary>
|
||||
Gets a value indicating whether the number format string is valid.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ExcelNumberFormat.NumberFormat.FormatString">
|
||||
<summary>
|
||||
Gets the number format string.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ExcelNumberFormat.NumberFormat.IsDateTimeFormat">
|
||||
<summary>
|
||||
Gets a value indicating whether the format represents a DateTime
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ExcelNumberFormat.NumberFormat.IsTimeSpanFormat">
|
||||
<summary>
|
||||
Gets a value indicating whether the format represents a TimeSpan
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.NumberFormat.Format(System.Object,System.Globalization.CultureInfo)">
|
||||
<summary>
|
||||
Formats a value with this number format in a specified culture.
|
||||
</summary>
|
||||
<param name="value">The value to format.</param>
|
||||
<param name="culture">The culture to use for formatting.</param>
|
||||
<returns>The formatted string.</returns>
|
||||
</member>
|
||||
<member name="M:ExcelNumberFormat.Parser.ParseNumberTokens(System.Collections.Generic.List{System.String},System.Int32,System.Collections.Generic.List{System.String}@,System.Boolean@,System.Collections.Generic.List{System.String}@)">
|
||||
<summary>
|
||||
Parses as many placeholders and literals needed to format a number with optional decimals.
|
||||
Returns number of tokens parsed, or 0 if the tokens didn't form a number.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
ADSUtileriasService/bin/Release/Gma.QrCodeNet.Encoding.dll
Normal file
BIN
ADSUtileriasService/bin/Release/Gma.QrCodeNet.Encoding.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/GoCfdi.dll
Normal file
BIN
ADSUtileriasService/bin/Release/GoCfdi.dll
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,398 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Microsoft.IdentityModel.Logging</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Microsoft.IdentityModel.Logging.IdentityModelEventSource">
|
||||
<summary>
|
||||
Event source based logger to log different events.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.IdentityModel.Logging.IdentityModelEventSource.Logger">
|
||||
<summary>
|
||||
Static logger that is exposed externally. An external application or framework can hook up a listener to this event source to log data in a custom way.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII">
|
||||
<summary>
|
||||
Flag which indicates whether or not PII is shown in logs. False by default.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.IdentityModel.Logging.IdentityModelEventSource.HiddenPIIString">
|
||||
<summary>
|
||||
String that is used in place of any arguments to log messages if the 'ShowPII' flag is set to false.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Microsoft.IdentityModel.Logging.IdentityModelEventSource.HeaderWritten">
|
||||
<summary>
|
||||
Indicates whether or the log message header (contains library version, date/time, and PII debugging information) has been written.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.IdentityModel.Logging.IdentityModelEventSource._versionLogMessage">
|
||||
<summary>
|
||||
The log message that indicates the current library version.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.IdentityModel.Logging.IdentityModelEventSource._dateLogMessage">
|
||||
<summary>
|
||||
The log message that indicates the date.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.IdentityModel.Logging.IdentityModelEventSource._piiOffLogMessage">
|
||||
<summary>
|
||||
The log message that is shown when PII is off.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.IdentityModel.Logging.IdentityModelEventSource._piiOnLogMessage">
|
||||
<summary>
|
||||
The log message that is shown when PII is off.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteAlways(System.String)">
|
||||
<summary>
|
||||
Writes an event log by using the provided string argument and current UTC time.
|
||||
No level filtering is done on the event.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<remarks>No level filtering.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteAlways(System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes an event log by using the provided string argument, current UTC time and the provided arguments list.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteVerbose(System.String)">
|
||||
<summary>
|
||||
Writes a verbose event log by using the provided string argument and current UTC time.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteVerbose(System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes a verbose event log by using the provided string argument, current UTC time and the provided arguments list.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteInformation(System.String)">
|
||||
<summary>
|
||||
Writes an information event log by using the provided string argument and current UTC time.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteInformation(System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes an information event log by using the provided string argument, current UTC time and the provided arguments list.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteWarning(System.String)">
|
||||
<summary>
|
||||
Writes a warning event log by using the provided string argument and current UTC time.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteWarning(System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes a warning event log by using the provided string argument, current UTC time and the provided arguments list.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteError(System.String)">
|
||||
<summary>
|
||||
Writes an error event log by using the provided string argument and current UTC time.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteError(System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes an error event log by using the provided string argument, current UTC time and the provided arguments list.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteCritical(System.String)">
|
||||
<summary>
|
||||
Writes a critical event log by using the provided string argument and current UTC time.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.WriteCritical(System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes a critical event log by using the provided string argument, current UTC time and the provided arguments list.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.Write(System.Diagnostics.Tracing.EventLevel,System.Exception,System.String)">
|
||||
<summary>
|
||||
Writes an exception log by using the provided event identifer, exception argument, string argument and current UTC time.
|
||||
</summary>
|
||||
<param name="level"><see cref="T:System.Diagnostics.Tracing.EventLevel"/></param>
|
||||
<param name="innerException"><see cref="T:System.Exception"/></param>
|
||||
<param name="message">The log message.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.IdentityModelEventSource.Write(System.Diagnostics.Tracing.EventLevel,System.Exception,System.String,System.Object[])">
|
||||
<summary>
|
||||
Writes an exception log by using the provided event identifer, exception argument, string argument, arguments list and current UTC time.
|
||||
</summary>
|
||||
<param name="level"><see cref="T:System.Diagnostics.Tracing.EventLevel"/></param>
|
||||
<param name="innerException"><see cref="T:System.Exception"/></param>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="P:Microsoft.IdentityModel.Logging.IdentityModelEventSource.LogLevel">
|
||||
<summary>
|
||||
Minimum log level to log events. Default is Warning.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.IdentityModel.Logging.LogHelper">
|
||||
<summary>
|
||||
Helper class for logging.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentNullException(System.String)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new <see cref="T:System.ArgumentNullException"/> exception.
|
||||
</summary>
|
||||
<param name="argument">argument that is null or empty.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.String)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="message">message to log.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.String,System.String)">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="message">message to log.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.String,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.Exception,System.String)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="message">message to log.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.String,System.Exception,System.String)">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="message">message to log.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.Exception,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.String,System.Exception,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
<remarks>EventLevel is set to Error.</remarks>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.Diagnostics.Tracing.EventLevel,System.String)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="message">message to log.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.Diagnostics.Tracing.EventLevel,System.String,System.String)">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="message">message to log.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.Diagnostics.Tracing.EventLevel,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.Diagnostics.Tracing.EventLevel,System.String,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.Diagnostics.Tracing.EventLevel,System.Exception,System.String)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="message">message to log.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.Diagnostics.Tracing.EventLevel,System.String,System.Exception,System.String)">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="message">message to log.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogException``1(System.Diagnostics.Tracing.EventLevel,System.Exception,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogArgumentException``1(System.Diagnostics.Tracing.EventLevel,System.String,System.Exception,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an argument exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogExceptionMessage(System.Exception)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger.
|
||||
</summary>
|
||||
<param name="exception">The exception to log.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogExceptionMessage(System.Diagnostics.Tracing.EventLevel,System.Exception)">
|
||||
<summary>
|
||||
Logs an exception using the event source logger.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="exception">The exception to log.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogInformation(System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an information event.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogVerbose(System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs a verbose event.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogWarning(System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs a warning event.
|
||||
</summary>
|
||||
<param name="message">The log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.LogExceptionImpl``1(System.Diagnostics.Tracing.EventLevel,System.String,System.Exception,System.String,System.Object[])">
|
||||
<summary>
|
||||
Logs an exception using the event source logger and returns new typed exception.
|
||||
</summary>
|
||||
<param name="eventLevel">Identifies the level of an event to be logged.</param>
|
||||
<param name="argumentName">Identifies the argument whose value generated the ArgumentException.</param>
|
||||
<param name="innerException">the inner <see cref="T:System.Exception"/> to be added to the outer exception.</param>
|
||||
<param name="format">Format string of the log message.</param>
|
||||
<param name="args">An object array that contains zero or more objects to format.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.LogHelper.FormatInvariant(System.String,System.Object[])">
|
||||
<summary>
|
||||
Formats the string using InvariantCulture
|
||||
</summary>
|
||||
<param name="format">Format string.</param>
|
||||
<param name="args">Format arguments.</param>
|
||||
<returns>Formatted string.</returns>
|
||||
</member>
|
||||
<member name="T:Microsoft.IdentityModel.Logging.LogMessages">
|
||||
<summary>
|
||||
Log messages and codes for Microsoft.IdentityModel.Logging
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Microsoft.IdentityModel.Logging.TextWriterEventListener">
|
||||
<summary>
|
||||
Event listener that writes logs to a file or a fileStream provided by user.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:Microsoft.IdentityModel.Logging.TextWriterEventListener.DefaultLogFileName">
|
||||
<summary>
|
||||
Name of the default log file, excluding its path.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.TextWriterEventListener.#ctor">
|
||||
<summary>
|
||||
Initializes a new instance of <see cref="T:Microsoft.IdentityModel.Logging.TextWriterEventListener"/> that writes logs to text file.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.TextWriterEventListener.#ctor(System.String)">
|
||||
<summary>
|
||||
Initializes a new instance of <see cref="T:Microsoft.IdentityModel.Logging.TextWriterEventListener"/> that writes logs to text file.
|
||||
</summary>
|
||||
<param name="filePath">location of the file where log messages will be written.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.TextWriterEventListener.#ctor(System.IO.StreamWriter)">
|
||||
<summary>
|
||||
Initializes a new instance of <see cref="T:Microsoft.IdentityModel.Logging.TextWriterEventListener"/> that writes logs to text file.
|
||||
</summary>
|
||||
<param name="streamWriter">StreamWriter where logs will be written.</param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.TextWriterEventListener.OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs)">
|
||||
<summary>
|
||||
Called whenever an event has been written by an event source for which the event listener has enabled events.
|
||||
</summary>
|
||||
<param name="eventData"><see cref="T:System.Diagnostics.Tracing.EventWrittenEventArgs"/></param>
|
||||
</member>
|
||||
<member name="M:Microsoft.IdentityModel.Logging.TextWriterEventListener.Dispose">
|
||||
<summary>
|
||||
Releases all resources used by the current instance of the <see cref="T:Microsoft.IdentityModel.Logging.TextWriterEventListener"/> class.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
4040
ADSUtileriasService/bin/Release/Microsoft.IdentityModel.Tokens.xml
Normal file
4040
ADSUtileriasService/bin/Release/Microsoft.IdentityModel.Tokens.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/Newtonsoft.Json.dll
Normal file
BIN
ADSUtileriasService/bin/Release/Newtonsoft.Json.dll
Normal file
Binary file not shown.
11262
ADSUtileriasService/bin/Release/Newtonsoft.Json.xml
Normal file
11262
ADSUtileriasService/bin/Release/Newtonsoft.Json.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/Profact.TimbraCFDI.dll
Normal file
BIN
ADSUtileriasService/bin/Release/Profact.TimbraCFDI.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/System.Buffers.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.Buffers.dll
Normal file
Binary file not shown.
39
ADSUtileriasService/bin/Release/System.Buffers.xml
Normal file
39
ADSUtileriasService/bin/Release/System.Buffers.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><span>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Buffers</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Buffers.ArrayPool`1">
|
||||
<summary>Provides a resource pool that enables reusing instances of type <see cref="T[]"></see>.</summary>
|
||||
<typeparam name="T">The type of the objects that are in the resource pool.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.Buffers.ArrayPool`1.#ctor">
|
||||
<summary>Initializes a new instance of the <see cref="ArrayPool{T}"></see> class.</summary>
|
||||
</member>
|
||||
<member name="M:System.Buffers.ArrayPool`1.Create">
|
||||
<summary>Creates a new instance of the <see cref="ArrayPool{T}"></see> class.</summary>
|
||||
<returns>A new instance of the <see cref="ArrayPool{T}"></see> class.</returns>
|
||||
</member>
|
||||
<member name="M:System.Buffers.ArrayPool`1.Create(System.Int32,System.Int32)">
|
||||
<summary>Creates a new instance of the <see cref="ArrayPool{T}"></see> class using the specifed configuration.</summary>
|
||||
<param name="maxArrayLength">The maximum length of an array instance that may be stored in the pool.</param>
|
||||
<param name="maxArraysPerBucket">The maximum number of array instances that may be stored in each bucket in the pool. The pool groups arrays of similar lengths into buckets for faster access.</param>
|
||||
<returns>A new instance of the <see cref="ArrayPool{T}"></see> class with the specified configuration.</returns>
|
||||
</member>
|
||||
<member name="M:System.Buffers.ArrayPool`1.Rent(System.Int32)">
|
||||
<summary>Retrieves a buffer that is at least the requested length.</summary>
|
||||
<param name="minimumLength">The minimum length of the array.</param>
|
||||
<returns>An array of type <see cref="T[]"></see> that is at least <paramref name="minimumLength">minimumLength</paramref> in length.</returns>
|
||||
</member>
|
||||
<member name="M:System.Buffers.ArrayPool`1.Return(`0[],System.Boolean)">
|
||||
<summary>Returns an array to the pool that was previously obtained using the <see cref="Rent"></see> method on the same <see cref="ArrayPool{T}"></see> instance.</summary>
|
||||
<param name="array">A buffer to return to the pool that was previously obtained using the <see cref="Rent"></see> method.</param>
|
||||
<param name="clearArray">Indicates whether the contents of the buffer should be cleared before reuse. If <paramref name="bufferLength">bufferLength</paramref> is set to true, and if the pool will store the buffer to enable subsequent reuse, the <see cref="Return"></see> method will clear the <paramref name="array">array</paramref> of its contents so that a subsequent caller using the <see cref="Rent"></see> method will not see the content of the previous caller. If <paramref name="bufferLength">bufferLength</paramref> is set to false or if the pool will release the buffer, the array's contents are left unchanged.</param>
|
||||
</member>
|
||||
<member name="P:System.Buffers.ArrayPool`1.Shared">
|
||||
<summary>Gets a shared <see cref="ArrayPool{T}"></see> instance.</summary>
|
||||
<returns>A shared <see cref="ArrayPool{T}"></see> instance.</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc></span>
|
||||
BIN
ADSUtileriasService/bin/Release/System.Data.SQLite.EF6.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.Data.SQLite.EF6.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/System.Data.SQLite.Linq.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.Data.SQLite.Linq.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/System.Data.SQLite.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.Data.SQLite.dll
Normal file
Binary file not shown.
21379
ADSUtileriasService/bin/Release/System.Data.SQLite.xml
Normal file
21379
ADSUtileriasService/bin/Release/System.Data.SQLite.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/System.IO.Packaging.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.IO.Packaging.dll
Normal file
Binary file not shown.
Binary file not shown.
1546
ADSUtileriasService/bin/Release/System.IdentityModel.Tokens.Jwt.xml
Normal file
1546
ADSUtileriasService/bin/Release/System.IdentityModel.Tokens.Jwt.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ADSUtileriasService/bin/Release/System.Memory.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.Memory.dll
Normal file
Binary file not shown.
355
ADSUtileriasService/bin/Release/System.Memory.xml
Normal file
355
ADSUtileriasService/bin/Release/System.Memory.xml
Normal file
@@ -0,0 +1,355 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><doc>
|
||||
<assembly>
|
||||
<name>System.Memory</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Span`1">
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Span`1.#ctor(`0[])">
|
||||
<param name="array"></param>
|
||||
</member>
|
||||
<member name="M:System.Span`1.#ctor(System.Void*,System.Int32)">
|
||||
<param name="pointer"></param>
|
||||
<param name="length"></param>
|
||||
</member>
|
||||
<member name="M:System.Span`1.#ctor(`0[],System.Int32)">
|
||||
<param name="array"></param>
|
||||
<param name="start"></param>
|
||||
</member>
|
||||
<member name="M:System.Span`1.#ctor(`0[],System.Int32,System.Int32)">
|
||||
<param name="array"></param>
|
||||
<param name="start"></param>
|
||||
<param name="length"></param>
|
||||
</member>
|
||||
<member name="M:System.Span`1.Clear">
|
||||
|
||||
</member>
|
||||
<member name="M:System.Span`1.CopyTo(System.Span{`0})">
|
||||
<param name="destination"></param>
|
||||
</member>
|
||||
<member name="M:System.Span`1.DangerousCreate(System.Object,`0@,System.Int32)">
|
||||
<param name="obj"></param>
|
||||
<param name="objectData"></param>
|
||||
<param name="length"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.DangerousGetPinnableReference">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Span`1.Empty">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.Equals(System.Object)">
|
||||
<param name="obj"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.Fill(`0)">
|
||||
<param name="value"></param>
|
||||
</member>
|
||||
<member name="M:System.Span`1.GetHashCode">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Span`1.IsEmpty">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Span`1.Item(System.Int32)">
|
||||
<param name="index"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Span`1.Length">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.op_Equality(System.Span{`0},System.Span{`0})">
|
||||
<param name="left"></param>
|
||||
<param name="right"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.op_Implicit(System.ArraySegment{T})~System.Span{T}">
|
||||
<param name="arraySegment"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.op_Implicit(System.Span{T})~System.ReadOnlySpan{T}">
|
||||
<param name="span"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.op_Implicit(T[])~System.Span{T}">
|
||||
<param name="array"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.op_Inequality(System.Span{`0},System.Span{`0})">
|
||||
<param name="left"></param>
|
||||
<param name="right"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.Slice(System.Int32)">
|
||||
<param name="start"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.Slice(System.Int32,System.Int32)">
|
||||
<param name="start"></param>
|
||||
<param name="length"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.ToArray">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Span`1.TryCopyTo(System.Span{`0})">
|
||||
<param name="destination"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.SpanExtensions">
|
||||
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.AsBytes``1(System.ReadOnlySpan{``0})">
|
||||
<param name="source"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.AsBytes``1(System.Span{``0})">
|
||||
<param name="source"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.AsSpan(System.String)">
|
||||
<param name="text"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.AsSpan``1(System.ArraySegment{``0})">
|
||||
<param name="arraySegment"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.AsSpan``1(``0[])">
|
||||
<param name="array"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.CopyTo``1(``0[],System.Span{``0})">
|
||||
<param name="array"></param>
|
||||
<param name="destination"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf(System.Span{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf(System.Span{System.Byte},System.Byte)">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf(System.ReadOnlySpan{System.Byte},System.Byte)">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf(System.ReadOnlySpan{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf``1(System.ReadOnlySpan{``0},System.ReadOnlySpan{``0})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf``1(System.ReadOnlySpan{``0},``0)">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf``1(System.Span{``0},System.ReadOnlySpan{``0})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOf``1(System.Span{``0},``0)">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOfAny(System.ReadOnlySpan{System.Byte},System.Byte,System.Byte,System.Byte)">
|
||||
<param name="span"></param>
|
||||
<param name="value0"></param>
|
||||
<param name="value1"></param>
|
||||
<param name="value2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOfAny(System.Span{System.Byte},System.Byte,System.Byte,System.Byte)">
|
||||
<param name="span"></param>
|
||||
<param name="value0"></param>
|
||||
<param name="value1"></param>
|
||||
<param name="value2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOfAny(System.Span{System.Byte},System.Byte,System.Byte)">
|
||||
<param name="span"></param>
|
||||
<param name="value0"></param>
|
||||
<param name="value1"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOfAny(System.ReadOnlySpan{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="span"></param>
|
||||
<param name="values"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOfAny(System.Span{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="span"></param>
|
||||
<param name="values"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.IndexOfAny(System.ReadOnlySpan{System.Byte},System.Byte,System.Byte)">
|
||||
<param name="span"></param>
|
||||
<param name="value0"></param>
|
||||
<param name="value1"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.NonPortableCast``2(System.ReadOnlySpan{``0})">
|
||||
<param name="source"></param>
|
||||
<typeparam name="TFrom"></typeparam>
|
||||
<typeparam name="TTo"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.NonPortableCast``2(System.Span{``0})">
|
||||
<param name="source"></param>
|
||||
<typeparam name="TFrom"></typeparam>
|
||||
<typeparam name="TTo"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.SequenceEqual(System.ReadOnlySpan{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="first"></param>
|
||||
<param name="second"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.SequenceEqual(System.Span{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="first"></param>
|
||||
<param name="second"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.SequenceEqual``1(System.ReadOnlySpan{``0},System.ReadOnlySpan{``0})">
|
||||
<param name="first"></param>
|
||||
<param name="second"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.SequenceEqual``1(System.Span{``0},System.ReadOnlySpan{``0})">
|
||||
<param name="first"></param>
|
||||
<param name="second"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.StartsWith(System.ReadOnlySpan{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.StartsWith(System.Span{System.Byte},System.ReadOnlySpan{System.Byte})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.StartsWith``1(System.ReadOnlySpan{``0},System.ReadOnlySpan{``0})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.SpanExtensions.StartsWith``1(System.Span{``0},System.ReadOnlySpan{``0})">
|
||||
<param name="span"></param>
|
||||
<param name="value"></param>
|
||||
<typeparam name="T"></typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.ReadOnlySpan`1">
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.#ctor(`0[])">
|
||||
<param name="array"></param>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.#ctor(System.Void*,System.Int32)">
|
||||
<param name="pointer"></param>
|
||||
<param name="length"></param>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.#ctor(`0[],System.Int32)">
|
||||
<param name="array"></param>
|
||||
<param name="start"></param>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.#ctor(`0[],System.Int32,System.Int32)">
|
||||
<param name="array"></param>
|
||||
<param name="start"></param>
|
||||
<param name="length"></param>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.CopyTo(System.Span{`0})">
|
||||
<param name="destination"></param>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.DangerousCreate(System.Object,`0@,System.Int32)">
|
||||
<param name="obj"></param>
|
||||
<param name="objectData"></param>
|
||||
<param name="length"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.DangerousGetPinnableReference">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.ReadOnlySpan`1.Empty">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.Equals(System.Object)">
|
||||
<param name="obj"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.GetHashCode">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.ReadOnlySpan`1.IsEmpty">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.ReadOnlySpan`1.Item(System.Int32)">
|
||||
<param name="index"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.ReadOnlySpan`1.Length">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.op_Equality(System.ReadOnlySpan{`0},System.ReadOnlySpan{`0})">
|
||||
<param name="left"></param>
|
||||
<param name="right"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.op_Implicit(System.ArraySegment{T})~System.ReadOnlySpan{T}">
|
||||
<param name="arraySegment"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.op_Implicit(T[])~System.ReadOnlySpan{T}">
|
||||
<param name="array"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.op_Inequality(System.ReadOnlySpan{`0},System.ReadOnlySpan{`0})">
|
||||
<param name="left"></param>
|
||||
<param name="right"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.Slice(System.Int32)">
|
||||
<param name="start"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.Slice(System.Int32,System.Int32)">
|
||||
<param name="start"></param>
|
||||
<param name="length"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.ToArray">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.ReadOnlySpan`1.TryCopyTo(System.Span{`0})">
|
||||
<param name="destination"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
ADSUtileriasService/bin/Release/System.Numerics.Vectors.dll
Normal file
BIN
ADSUtileriasService/bin/Release/System.Numerics.Vectors.dll
Normal file
Binary file not shown.
2597
ADSUtileriasService/bin/Release/System.Numerics.Vectors.xml
Normal file
2597
ADSUtileriasService/bin/Release/System.Numerics.Vectors.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,200 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><doc>
|
||||
<assembly>
|
||||
<name>System.Runtime.CompilerServices.Unsafe</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Runtime.CompilerServices.Unsafe">
|
||||
<summary>Contains generic, low-level functionality for manipulating pointers.</summary>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.Int32)">
|
||||
<summary>Adds an element offset to the given reference.</summary>
|
||||
<param name="source">The reference to add the offset to.</param>
|
||||
<param name="elementOffset">The offset to add.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.IntPtr)">
|
||||
<summary>Adds an element offset to the given reference.</summary>
|
||||
<param name="source">The reference to add the offset to.</param>
|
||||
<param name="elementOffset">The offset to add.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.IntPtr)">
|
||||
<summary>Adds a byte offset to the given reference.</summary>
|
||||
<param name="source">The reference to add the offset to.</param>
|
||||
<param name="byteOffset">The offset to add.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>A new reference that reflects the addition of byte offset to pointer.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
|
||||
<summary>Determines whether the specified references point to the same location.</summary>
|
||||
<param name="left">The first reference to compare.</param>
|
||||
<param name="right">The second reference to compare.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> point to the same location; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
|
||||
<summary>Casts the given object to the specified type.</summary>
|
||||
<param name="o">The object to cast.</param>
|
||||
<typeparam name="T">The type which the object will be cast to.</typeparam>
|
||||
<returns>The original object, casted to the given type.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
|
||||
<summary>Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo">TTo</typeparamref>.</summary>
|
||||
<param name="source">The reference to reinterpret.</param>
|
||||
<typeparam name="TFrom">The type of reference to reinterpret..</typeparam>
|
||||
<typeparam name="TTo">The desired type of the reference.</typeparam>
|
||||
<returns>A reference to a value of type <typeparamref name="TTo">TTo</typeparamref>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
|
||||
<summary>Returns a pointer to the given by-ref parameter.</summary>
|
||||
<param name="value">The object whose pointer is obtained.</param>
|
||||
<typeparam name="T">The type of object.</typeparam>
|
||||
<returns>A pointer to the given value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
|
||||
<summary>Reinterprets the given location as a reference to a value of type <typeparamref name="T">T</typeparamref>.</summary>
|
||||
<param name="source">The location of the value to reference.</param>
|
||||
<typeparam name="T">The type of the interpreted location.</typeparam>
|
||||
<returns>A reference to a value of type <typeparamref name="T">T</typeparamref>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ByteOffset``1(``0@,``0@)">
|
||||
<summary>Determines the byte offset from origin to target from the given references.</summary>
|
||||
<param name="origin">The reference to origin.</param>
|
||||
<param name="target">The reference to target.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>Byte offset from origin to target i.e. <paramref name="target">target</paramref> - <paramref name="origin">origin</paramref>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
|
||||
<summary>Copies a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
||||
<param name="destination">The location to copy to.</param>
|
||||
<param name="source">A reference to the value to copy.</param>
|
||||
<typeparam name="T">The type of value to copy.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
|
||||
<summary>Copies a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
||||
<param name="destination">The location to copy to.</param>
|
||||
<param name="source">A pointer to the value to copy.</param>
|
||||
<typeparam name="T">The type of value to copy.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Byte@,System.Byte@,System.UInt32)">
|
||||
<summary>Copies bytes from the source address to the destination address.</summary>
|
||||
<param name="destination">The destination address to copy to.</param>
|
||||
<param name="source">The source address to copy from.</param>
|
||||
<param name="byteCount">The number of bytes to copy.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Void*,System.Void*,System.UInt32)">
|
||||
<summary>Copies bytes from the source address to the destination address.</summary>
|
||||
<param name="destination">The destination address to copy to.</param>
|
||||
<param name="source">The source address to copy from.</param>
|
||||
<param name="byteCount">The number of bytes to copy.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Void*,System.Void*,System.UInt32)">
|
||||
<summary>Copies bytes from the source address to the destination address
|
||||
without assuming architecture dependent alignment of the addresses.</summary>
|
||||
<param name="destination">The destination address to copy to.</param>
|
||||
<param name="source">The source address to copy from.</param>
|
||||
<param name="byteCount">The number of bytes to copy.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Byte@,System.Byte@,System.UInt32)">
|
||||
<summary>Copies bytes from the source address to the destination address
|
||||
without assuming architecture dependent alignment of the addresses.</summary>
|
||||
<param name="destination">The destination address to copy to.</param>
|
||||
<param name="source">The source address to copy from.</param>
|
||||
<param name="byteCount">The number of bytes to copy.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Byte@,System.Byte,System.UInt32)">
|
||||
<summary>Initializes a block of memory at the given location with a given initial value.</summary>
|
||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
||||
<param name="value">The value to initialize the block to.</param>
|
||||
<param name="byteCount">The number of bytes to initialize.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Void*,System.Byte,System.UInt32)">
|
||||
<summary>Initializes a block of memory at the given location with a given initial value.</summary>
|
||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
||||
<param name="value">The value to initialize the block to.</param>
|
||||
<param name="byteCount">The number of bytes to initialize.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Byte@,System.Byte,System.UInt32)">
|
||||
<summary>Initializes a block of memory at the given location with a given initial value
|
||||
without assuming architecture dependent alignment of the address.</summary>
|
||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
||||
<param name="value">The value to initialize the block to.</param>
|
||||
<param name="byteCount">The number of bytes to initialize.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)">
|
||||
<summary>Initializes a block of memory at the given location with a given initial value
|
||||
without assuming architecture dependent alignment of the address.</summary>
|
||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
||||
<param name="value">The value to initialize the block to.</param>
|
||||
<param name="byteCount">The number of bytes to initialize.</param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
|
||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location.</summary>
|
||||
<param name="source">The location to read from.</param>
|
||||
<typeparam name="T">The type to read.</typeparam>
|
||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Byte@)">
|
||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location
|
||||
without assuming architecture dependent alignment of the addresses.</summary>
|
||||
<param name="source">The location to read from.</param>
|
||||
<typeparam name="T">The type to read.</typeparam>
|
||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Void*)">
|
||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location
|
||||
without assuming architecture dependent alignment of the addresses.</summary>
|
||||
<param name="source">The location to read from.</param>
|
||||
<typeparam name="T">The type to read.</typeparam>
|
||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
|
||||
<summary>Returns the size of an object of the given type parameter.</summary>
|
||||
<typeparam name="T">The type of object whose size is retrieved.</typeparam>
|
||||
<returns>The size of an object of type <typeparamref name="T">T</typeparamref>.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
|
||||
<summary>Subtracts an element offset from the given reference.</summary>
|
||||
<param name="source">The reference to subtract the offset from.</param>
|
||||
<param name="elementOffset">The offset to subtract.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.IntPtr)">
|
||||
<summary>Subtracts an element offset from the given reference.</summary>
|
||||
<param name="source">The reference to subtract the offset from.</param>
|
||||
<param name="elementOffset">The offset to subtract.</param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.IntPtr)">
|
||||
<summary>Subtracts a byte offset from the given reference.</summary>
|
||||
<param name="source">The reference to subtract the offset from.</param>
|
||||
<param name="byteOffset"></param>
|
||||
<typeparam name="T">The type of reference.</typeparam>
|
||||
<returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
|
||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
||||
<param name="destination">The location to write to.</param>
|
||||
<param name="value">The value to write.</param>
|
||||
<typeparam name="T">The type of value to write.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Byte@,``0)">
|
||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location
|
||||
without assuming architecture dependent alignment of the addresses.</summary>
|
||||
<param name="destination">The location to write to.</param>
|
||||
<param name="value">The value to write.</param>
|
||||
<typeparam name="T">The type of value to write.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Void*,``0)">
|
||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location
|
||||
without assuming architecture dependent alignment of the addresses.</summary>
|
||||
<param name="destination">The location to write to.</param>
|
||||
<param name="value">The value to write.</param>
|
||||
<typeparam name="T">The type of value to write.</typeparam>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
ADSUtileriasService/bin/Release/x64/SQLite.Interop.dll
Normal file
BIN
ADSUtileriasService/bin/Release/x64/SQLite.Interop.dll
Normal file
Binary file not shown.
BIN
ADSUtileriasService/bin/Release/x86/SQLite.Interop.dll
Normal file
BIN
ADSUtileriasService/bin/Release/x86/SQLite.Interop.dll
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
c72800e780c3d27646b175ff8ce59dff472d4135ea56b14e3810d19fc9e396cf
|
||||
@@ -0,0 +1,20 @@
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.csproj.AssemblyReference.cache
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.ProjectInstaller.resources
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.csproj.GenerateResource.cache
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.csproj.CoreCompileInputs.cache
|
||||
C:\inetpub\Checador\ADSUtileriasWF\bin\Debug\Service\ADSUtileriasService.exe.config
|
||||
C:\inetpub\Checador\ADSUtileriasWF\bin\Debug\Service\ADSUtileriasService.exe
|
||||
C:\inetpub\Checador\ADSUtileriasWF\bin\Debug\Service\ADSUtileriasService.pdb
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtile.DA1283C0.Up2Date
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.exe
|
||||
C:\inetpub\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.pdb
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.csproj.AssemblyReference.cache
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.ProjectInstaller.resources
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.csproj.GenerateResource.cache
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.csproj.CoreCompileInputs.cache
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasWF\bin\Debug\Service\ADSUtileriasService.exe.config
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasWF\bin\Debug\Service\ADSUtileriasService.exe
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasWF\bin\Debug\Service\ADSUtileriasService.pdb
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtile.DA1283C0.Up2Date
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.exe
|
||||
C:\Users\caudi\Downloads\Checador\ADSUtileriasService\obj\Debug\ADSUtileriasService.pdb
|
||||
Binary file not shown.
BIN
ADSUtileriasService/obj/Debug/ADSUtileriasService.exe
Normal file
BIN
ADSUtileriasService/obj/Debug/ADSUtileriasService.exe
Normal file
Binary file not shown.
BIN
ADSUtileriasService/obj/Debug/ADSUtileriasService.pdb
Normal file
BIN
ADSUtileriasService/obj/Debug/ADSUtileriasService.pdb
Normal file
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user