Version OScar

This commit is contained in:
Jorge Luis caudillo esparza
2026-04-24 07:54:31 -07:00
parent 8e3df951b3
commit 83acc6b4f1
3780 changed files with 7042960 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<!-- <TargetFramework>netcoreapp3.1</TargetFramework>-->
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>Icon.ico</ApplicationIcon>
<Platforms>AnyCPU;x64</Platforms>
<UseWPF>False</UseWPF>
</PropertyGroup>
<ItemGroup>
<Folder Include="Data\Local\PV\" />
<Folder Include="Imagenes\LogosEmpresa\" />
<Folder Include="NewFolder\" />
<Folder Include="Resources\" />
<Folder Include="Views\Utilerias\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ClosedXML" Version="0.104.0" />
<PackageReference Include="Core.System.Configuration.Install" Version="1.1.0" />
<PackageReference Include="FontAwesome.Sharp" Version="5.15.1" />
<PackageReference Include="MaterialThemeCore" Version="0.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<!-- Usa los mismos paquetes que la librería -->
<PackageReference Include="System.ServiceModel.Primitives" Version="8.0.0" />
<PackageReference Include="System.ServiceModel.Http" Version="8.0.0" />
<PackageReference Include="System.ServiceModel.NetTcp" Version="8.0.0" />
<!--<PackageReference Include="System.ServiceModel.Security" Version="8.0.0" /> -->
<!--<PackageReference Include="System.ServiceModel.Duplex" Version="8.0.0" /> -->
<PackageReference Include="System.ServiceProcess.ServiceController" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="c:\Proyectos\SIG_NETCore\SIGAPI\ADSNetLibrary\ADSNetLibrary\ADSNetLibrary.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="Interop.zkemkeeper">
<HintPath>Interop.zkemkeeper.dll</HintPath>
</Reference>
<Reference Include="libzkfpcsharp">
<HintPath>..\libzkfpcsharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Views\RelojChecador\Gluyas\FrmInicio.cs" />
<Compile Update="Views\RelojChecador\Views\FrmCambiarEmpresa.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services" />
</ItemGroup>
<ItemGroup>
<None Update="Huella1.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Huella2.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Huella3.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Helpers\ADSControls.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="Helpers\FormBase.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\ControlUser\UscLoader.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Views\Gral\FrmLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\ControlUser\UscComanda.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmBitacora.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmBuscarCliente.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmBuscarProducto.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCambiarMesa.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCambiarMesero.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCerrarTurno.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCierreDeTurno.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmComandas.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmConfiguracionInicial.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmConsultaPrecios.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCuenta.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCuentaApertura.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCuentaMesero.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmCuentaPagar.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmDescuentoPorPorcentaje.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmDividirCuenta.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmEstadoSubirInfo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmIniciaTurno.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmInicio.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmJuntarCuenta.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmMesero.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmMetodoPago.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmProceso.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmPuntoVenta.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\PV\Views\FrmRetiroDinero.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Gluyas\Checadores.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Gluyas\FrmInicio.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Gluyas\ReporteChecadores.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmAddToCheckador.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmAsistencia.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmBuscarPersonal.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmCambiarEmpresa.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmChecadores.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmConfiguracion.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmInicio.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmNewPersonalChecador.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmPersonal.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmPersonalChecador.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\RelojChecador\Views\FrmSistema.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\Timbrado\Views\FrmTimbradoNomina.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.ChecadorModel
{
public class ResponseModel<T>
{
public bool IsSuccess { get; set; }
public string Message { get; set; }
public T Result { get; set; }
}
}

View File

@@ -0,0 +1,4 @@
{
"ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf",
"Version": "15.0.40203.910"
}

View File

@@ -0,0 +1,17 @@
{
"ExtendedData": {
"inputs": [
"http://localhost:8000/UtileriasService/"
],
"collectionTypes": [
"System.Array",
"System.Collections.Generic.Dictionary`2"
],
"namespaceMappings": [
"*, UtileriasServiceWCF"
],
"sync": true,
"targetFramework": "netcoreapp3.1",
"typeReuseMode": "None"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
{
"ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf",
"Version": "15.0.40203.910",
"ExtendedData": {
"inputs": [
"http://localhost:8000/Checador/"
],
"collectionTypes": [
"System.Array",
"System.Collections.Generic.Dictionary`2"
],
"namespaceMappings": [
"*, WCF_Checador"
],
"references": [
"FontAwesome.Sharp, {FontAwesome.Sharp, 5.14.1}",
"MaterialThemeCore, {MaterialThemeCore, 0.1.0}",
"Newtonsoft.Json, {Newtonsoft.Json, 12.0.3}",
"System.ServiceModel, {System.ServiceModel.Primitives, 4.4.4}",
"System.ServiceModel.Duplex, {System.ServiceModel.Duplex, 4.4.4}",
"System.ServiceModel.Http, {System.ServiceModel.Http, 4.4.4}",
"System.ServiceModel.NetTcp, {System.ServiceModel.NetTcp, 4.4.4}",
"System.ServiceModel.Primitives, {System.ServiceModel.Primitives, 4.4.4}",
"System.ServiceModel.Security, {System.ServiceModel.Security, 4.4.4}"
],
"sync": true,
"targetFramework": "netcoreapp3.1",
"typeReuseMode": "All"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
{
"ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf",
"Version": "15.0.40203.910",
"ExtendedData": {
"inputs": [
"http://localhost:8000/WCF/"
],
"collectionTypes": [
"System.Array",
"System.Collections.Generic.Dictionary`2"
],
"namespaceMappings": [
"*, WCF_PV"
],
"references": [
"FontAwesome.Sharp, {FontAwesome.Sharp, 5.14.1}",
"MaterialThemeCore, {MaterialThemeCore, 0.1.0}",
"Newtonsoft.Json, {Newtonsoft.Json, 12.0.3}",
"System.ServiceModel, {System.ServiceModel.Primitives, 4.4.4}",
"System.ServiceModel.Duplex, {System.ServiceModel.Duplex, 4.4.4}",
"System.ServiceModel.Http, {System.ServiceModel.Http, 4.4.4}",
"System.ServiceModel.NetTcp, {System.ServiceModel.NetTcp, 4.4.4}",
"System.ServiceModel.Primitives, {System.ServiceModel.Primitives, 4.4.4}",
"System.ServiceModel.Security, {System.ServiceModel.Security, 4.4.4}"
],
"sync": true,
"targetFramework": "netcoreapp3.1",
"typeReuseMode": "All"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.ApiSIG
{
class ClsRH
{
}
}

View File

@@ -0,0 +1,53 @@
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class CLSExternoBase : IDisposable
{
#region Propiedades
protected WCF_PV.DTable datos;
protected WCF_PV.PuntoVentaClient proxy;
// Atributos de la clase
private bool disposedValue = false; // Para detectar llamadas redundantes
public WCF_PV.DTable DtResultados { get { return datos; } }
#endregion
public CLSExternoBase(string RutaWCF = "")
{
if (RutaWCF == "")
{
RutaWCF = ModVarsPV.RutaWCF;
}
proxy = new WCF_PV.PuntoVentaClient(ModVarsPV.EndPointName, string.Format("{0}Clase", RutaWCF));
}
public void OnError(string Mensaje, string Caption, Exception Exeption, System.Windows.Forms.MessageBoxIcon Icon, string InfoAdicional = "")
{
ModExtensiones.OnError(Mensaje, Caption, Exeption, Icon, InfoAdicional);
}
#region dispose
protected virtual void Dispose(bool disposing)
{
if (!this.disposedValue && disposing)
{
if (datos != null)
datos = null;
if (proxy != null)
proxy = null;
}
this.disposedValue = true;
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
public bool IsDBNull(object o)
{
return o == DBNull.Value;
}
#endregion
}
}

View File

@@ -0,0 +1,78 @@
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Data.Externa.PV
{
class ClsCategorias :CLSExternoBase
{
#region Propiedades
public int CveCategoria { get; set; }
public string Categoria { get; set; }
public string Estado { get; set; }
#endregion
public ClsCategorias(string RutaWCF =""):base(RutaWCF) {}
public bool GetCategorias()
{
bool Retorno = false;
try
{
datos = proxy.GetCategorias();
if (datos.Tabla.Rows.Count > 0)
{
this.CveCategoria = datos.Tabla.Rows[0]["CveCategoria"].ToString().ToEntero();
this.Categoria = datos.Tabla.Rows[0]["Categoria"].ToString();
this.Estado = datos.Tabla.Rows[0]["Estado"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Categorias de Productos y Servicios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddCategorias(int CveCategoria, string Categoria, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddCategorias(CveCategoria, Categoria, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar La Categoria de Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveCategoria(int CveCategoria)
{
bool Retorno = false;
try
{
datos = proxy.RemoveCategoria(CveCategoria);
Retorno = true;
}
catch (Exception ex)
{
OnError("La Categoria no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,91 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsClasificaciones : CLSExternoBase
{
#region Propiedades
public int CveClasificacion { get; set; }
public string Clasificacion { get; set; }
public int CveCategoria { get; set; }
public string Categoria { get; set; }
public string Estado { get; set; }
#endregion
public ClsClasificaciones() { }
public bool GetClasificaciones(int CveCategoria)
{
bool Retorno = false;
try
{
datos = proxy.GetClasificaciones(CveCategoria);
if (datos.Tabla.Rows.Count > 0)
{
this.CveClasificacion = datos.Tabla.Rows[0]["CveClasificacion"].ToString().ToEntero();
this.Clasificacion = datos.Tabla.Rows[0]["Clasificacion"].ToString();
this.Estado = datos.Tabla.Rows[0]["Estado"].ToString();
this.CveCategoria = datos.Tabla.Rows[0]["CveCategoria"] != DBNull.Value ? datos.Tabla.Rows[0]["CveCategoria"].ToString().ToEntero() : -1;
this.Categoria = datos.Tabla.Rows[0]["Categoria"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Clasificaciones de Productos y Servicios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddClasificaciones(int CveClasificacion, string Clasificacion, int CveCategoria, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddClasificaciones(CveClasificacion, Clasificacion, CveCategoria, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar La Clasificacion de Productos y Servicios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveClasificacion(int CveClasificacion)
{
bool Retorno = false;
try
{
datos = proxy.RemoveClasificacion(CveClasificacion);
Retorno = true;
}
catch (Exception ex)
{
OnError("La Clasificación no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,154 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsClientes : CLSExternoBase
{
#region propiedades
public int CveCliente { get; set; }
public string Nombre { get; set; }
public string NombreComercial { get; set; }
public string Direccion { get; set; }
public string NoExt { get; set; }
public string NoInt { get; set; }
public string Colonia { get; set; }
public string Localidad { get; set; }
public string Ciudad { get; set; }
public string Estado { get; set; }
public string Pais { get; set; }
public string CP { get; set; }
public string Telefono { get; set; }
public string Contacto { get; set; }
public string Mail { get; set; }
public string Codigo { get; set; }
public string NombreCorto { get; set; }
public string RFC { get; set; }
public double IVA { get; set; }
public int CveSucursal { get; set; }
public int CveEmpresa { get; set; }
#endregion
public ClsClientes() { }
public bool GetClientes(string RFC)
{
bool Retorno = false;
try
{
datos = proxy.GetCliente(RFC);
if (datos.Tabla.Rows.Count > 0)
{
this.CveCliente = datos.Tabla.Rows[0]["CveCliente"].ToString().ToEntero();
this.Nombre = datos.Tabla.Rows[0]["Nombre"].ToString();
this.Codigo = datos.Tabla.Rows[0]["Codigo"].ToString();
this.NombreCorto = datos.Tabla.Rows[0]["NombreCorto"].ToString();
this.RFC = datos.Tabla.Rows[0]["RFC"].ToString();
this.IVA = datos.Tabla.Rows[0]["IVA"].ToString().ToDouble();
this.CveSucursal = datos.Tabla.Rows[0]["CveSucursal"].ToString().ToEntero();
this.CveEmpresa = datos.Tabla.Rows[0]["CveEmpresa"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Clientes.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, string Telefono, string Mail, int CveSucursal, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.GetClientes(CveCliente, Nombre, Codigo, NombreCorto, RFC, Telefono, Mail, CveSucursal, CveEmpresa);
if (datos.Tabla.Rows.Count > 0)
{
this.CveCliente = datos.Tabla.Rows[0]["CveCliente"].ToString().ToEntero();
this.Nombre = datos.Tabla.Rows[0]["Nombre"].ToString();
this.Codigo = datos.Tabla.Rows[0]["Codigo"].ToString();
this.NombreCorto = datos.Tabla.Rows[0]["NombreCorto"].ToString();
this.RFC = datos.Tabla.Rows[0]["RFC"].ToString();
this.NombreComercial = !IsDBNull(datos.Tabla.Rows[0]["NombreComercial"]) ? datos.Tabla.Rows[0]["NombreComercial"].ToString() : "";
this.Direccion = !IsDBNull(datos.Tabla.Rows[0]["Direccion"]) ? datos.Tabla.Rows[0]["Direccion"].ToString() : "";
this.NoExt = !IsDBNull(datos.Tabla.Rows[0]["NoExt"]) ? datos.Tabla.Rows[0]["NoExt"].ToString() : "";
this.NoInt = !IsDBNull(datos.Tabla.Rows[0]["NoInt"]) ? datos.Tabla.Rows[0]["NoInt"].ToString() : "";
this.Colonia = !IsDBNull(datos.Tabla.Rows[0]["Colonia"]) ? datos.Tabla.Rows[0]["Colonia"].ToString() : "";
this.Localidad = !IsDBNull(datos.Tabla.Rows[0]["Localidad"]) ? datos.Tabla.Rows[0]["Localidad"].ToString() : "";
this.Ciudad = !IsDBNull(datos.Tabla.Rows[0]["Ciudad"]) ? datos.Tabla.Rows[0]["Ciudad"].ToString() : "";
this.Estado = !IsDBNull(datos.Tabla.Rows[0]["Estado"]) ? datos.Tabla.Rows[0]["Estado"].ToString() : "";
this.Pais = !IsDBNull(datos.Tabla.Rows[0]["Pais"]) ? datos.Tabla.Rows[0]["Pais"].ToString() : "";
this.CP = !IsDBNull(datos.Tabla.Rows[0]["CP"]) ? datos.Tabla.Rows[0]["CP"].ToString() : "";
this.Telefono = !IsDBNull(datos.Tabla.Rows[0]["Telefono"]) ? datos.Tabla.Rows[0]["Telefono"].ToString() : "";
this.Contacto = !IsDBNull(datos.Tabla.Rows[0]["Contacto"]) ? datos.Tabla.Rows[0]["Contacto"].ToString() : "";
this.Mail = !IsDBNull(datos.Tabla.Rows[0]["Mail"]) ? datos.Tabla.Rows[0]["Mail"].ToString() : "";
this.CveSucursal = datos.Tabla.Rows[0]["CveSucursal"].ToString().ToEntero();
this.CveEmpresa = datos.Tabla.Rows[0]["CveEmpresa"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Clientes.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool 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)
{
bool Retorno = false;
try
{
datos = proxy.AddClientes(CveCliente, Nombre, Codigo, NombreCorto, RFC, CveSucursal, CveEmpresa, NombreComercial, Direccion, NoExt, NoInt, Colonia, Localidad, Ciudad, Estado, Pais, CP, Telefono, Contacto, Mail);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar El Cliente.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveCliente(int CveCliente)
{
bool Retorno = false;
try
{
datos = proxy.RemoveCliente(CveCliente);
Retorno = true;
}
catch (Exception ex)
{
OnError("El Cliente no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,75 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsCuentas : CLSExternoBase
{
public ClsCuentas() { }
public bool GetCuentasVendedor(int CveVendedor, int EstatusVenta)
{
bool Retorno = false;
try
{
datos = proxy.GetCuentasVendedor(CveVendedor, EstatusVenta);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Cuentas del Vendedor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVendedores()
{
bool Retorno = false;
try
{
datos = proxy.GetVendedores();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Vendedores.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVendedor(int CveVendedor, string Vendedor, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddVendedor(CveVendedor, Vendedor, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Vendedor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsEmpresas : CLSExternoBase
{
#region propiedades
public int CveCategoria { get; set; }
public string Categoria { get; set; }
public string Estado { get; set; }
#endregion
public ClsEmpresas() { }
public bool GetEmpresas()
{
bool Retorno = false;
try
{
datos = proxy.GetEmpresas();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Empresas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetReporteInfo()
{
bool Retorno = false;
try
{
datos = proxy.GetReporteInfo();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El reporte de Informacion en el Servidor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.PV
{
class ClsEstadoServicio
{
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,174 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsMetodosPago : CLSExternoBase
{
public partial class ClsMetodosPagoModel : object, System.ComponentModel.INotifyPropertyChanged
{
private int CveMetodoPagoField;
private string MetodoPagoField;
private double ImporteField;
private double ImportePropinaField;
public ClsMetodosPagoModel(int CveMetodoPago_, string MetodoPago_, double Importe_)
{
CveMetodoPago = CveMetodoPago_;
MetodoPago = MetodoPago_;
Importe = Importe_;
}
public int CveMetodoPago
{
get
{
return this.CveMetodoPagoField;
}
set
{
if ((this.CveMetodoPagoField.Equals(value) != true))
{
this.CveMetodoPagoField = value;
this.RaisePropertyChanged("CveMetodoPago");
}
}
}
public string MetodoPago
{
get
{
return this.MetodoPagoField;
}
set
{
this.MetodoPagoField = value;
}
}
public double Importe
{
get
{
return this.ImporteField;
}
set
{
if ((this.ImporteField.Equals(value) != true))
{
this.ImporteField = value;
this.RaisePropertyChanged("Importe");
}
}
}
public double ImportePropina
{
get
{
return this.ImportePropinaField;
}
set
{
if ((this.ImportePropinaField.Equals(value) != true))
{
this.ImportePropinaField = value;
this.RaisePropertyChanged("ImportePropina");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
public int CveMetodoPago { get; set; }
public string MetodoPago { get; set; }
public bool Estado { get; set; }
public string Estatus { get; set; }
public ClsMetodosPago() { }
public bool GetMetodosPago()
{
bool Retorno = false;
try
{
datos = proxy.GetMetodosPago();
if (datos.Tabla.Rows.Count > 0)
{
this.CveMetodoPago = datos.Tabla.Rows[0]["CveMetodoPago"].ToString().ToEntero();
this.MetodoPago = datos.Tabla.Rows[0]["MetodoPago"].ToString();
this.Estado = (datos.Tabla.Rows[0]["Estado"].ToString() == "1" || datos.Tabla.Rows[0]["Estado"].ToString().ToUpper() == "TRUE");
this.Estatus = datos.Tabla.Rows[0]["Estatus"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Metodo de Pago.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddMetodosPago(int CveMetodoPago, string MetodoPago, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddMetodosPago(CveMetodoPago, MetodoPago, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Metodo de Pago.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveMetodosPago(int CveMetodoPago)
{
bool Retorno = false;
try
{
datos = proxy.RemoveMetodosPago(CveMetodoPago);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar el Metodo de Pago.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,78 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsMonedas : CLSExternoBase
{
public ClsMonedas() { }
public bool GetMonedas()
{
bool Retorno = false;
try
{
datos = proxy.GetMonedas();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Monedas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddMonedas(CveMoneda, Moneda, Abreviatura, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar La Moneda.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveMonedas(int CveMoneda)
{
bool Retorno = false;
try
{
datos = proxy.RemoveMonedas(CveMoneda);
Retorno = true;
}
catch (Exception ex)
{
OnError("La Moneda no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsProcesos : CLSExternoBase
{
public int CveProceso { get; set; }
public string Descripcion { get; set; }
public ClsProcesos() { }
public bool GetProcesos()
{
bool Retorno = false;
try
{
datos = proxy.GetProcesos();
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveProceso = drow["CveProceso"].ToString().ToEntero();
this.Descripcion = drow["Descripcion"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Procesos.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,202 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsProductosServicios : CLSExternoBase
{
public int CvePS { get; set; }
public int CveClasificacion { get; set; }
public int CveUnidadMedida { get; set; }
public string Codigo { get; set; }
public string PS { get; set; }
public decimal Precio { get; set; }
public decimal Oferta { get; set; }
public decimal IVA { get; set; }
public decimal RetIVA { get; set; }
public decimal MargenGanancia { get; set; }
public int IdCtaContVentas { get; set; }
public int IdCtaContCompras { get; set; }
public int IdCtaContInventarios { get; set; }
public int AsientoContableVentas { get; set; }
public int AsientoContableCompras { get; set; }
public bool AplicaParaConcepto { get; set; }
public bool Estado { get; set; }
public bool AplicaParaVenta { get; set; }
public bool EsPaquete { get; set; }
public DateTime Fecha { get; set; }
public string Usuario { get; set; }
public int CveEmpresa { get; set; }
public ClsProductosServicios() { }
public bool GetPS(int CvePS, int CveClasificacion, string Codigo = "-1", string PS = "-1")
{
bool Retorno = false;
try
{
datos = proxy.GetPS(CvePS, CveClasificacion, Codigo, PS);
if (datos.Tabla.Rows.Count == 1)
{
DataRow drow = datos.Tabla.Rows[0];
this.CvePS = drow["CvePS"].ToString().ToEntero();
this.PS = drow["PS"].ToString();
this.Codigo = drow["Codigo"].ToString();
this.Precio = drow["Precio"].ToString().ToDecimal();
this.CveClasificacion = drow["CveClasificacion"].ToString().ToEntero();
this.CveUnidadMedida = drow["CveUnidadMedida"].ToString().ToEntero();
this.IVA = drow["IVA"].ToString().ToDecimal() == -1 ? ModVarsPV.IVAClientePG : drow["IVA"].ToString().ToDecimal();
this.RetIVA = drow["RetIVA"].ToString().ToDecimal();
this.MargenGanancia = drow["MargenGanancia"].ToString().ToDecimal();
this.Estado = drow["Estado"].ToString() == "Activo" ? true : false;
this.AplicaParaVenta = drow["AplicaParaVenta"].ToString().ToBool();
this.EsPaquete = drow["EsPaquete"].ToString().ToBool();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetPSCaracteristicas(int CvePS)
{
bool Retorno = false;
try
{
datos = proxy.GetPSCaracteristicas(CvePS);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Caracteristicas del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddPSCaracteristicas(int CvePSCaracteristica, int CvePS, string Caracteristica, bool EsOpcion)
{
bool Retorno = false;
try
{
datos = proxy.AddPSCaracteristicas(CvePSCaracteristica, CvePS, Caracteristica, EsOpcion);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Ingresar La Caracteristica del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemovePSCaracteristicas(int CvePSCaracteristica)
{
bool Retorno = false;
try
{
datos = proxy.RemovePSCaracteristicas(CvePSCaracteristica);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar La Caracteristica del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetPSCaracteristicasOpciones(int CvePSCaracteristica, int CvePS = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetPSCaracteristicasOpciones(CvePSCaracteristica, CvePS);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Opciones del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddPSCaracteristicasOpciones(int CveOpcion, int CvePSCaracteristica, string Opcion)
{
bool Retorno = false;
try
{
datos = proxy.AddPSCaracteristicasOpciones(CveOpcion, CvePSCaracteristica, Opcion);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Ingresar La Opcion del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemovePSCaracteristicasOpciones(int CveOpcion)
{
bool Retorno = false;
try
{
datos = proxy.RemovePSCaracteristicasOpciones(CveOpcion);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar La Opcion del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetPSPaquetes(int CvePSPaquete)
{
bool Retorno = false;
try
{
datos = proxy.GetPSPaquetes(CvePSPaquete);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Paquete del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,53 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsSucursales : CLSExternoBase
{
public int CveSucursal { get; set; }
public string Sucursal { get; set; }
public string Serie { get; set; }
public ClsSucursales() { }
public bool GetSucursales()
{
bool Retorno = false;
try
{
datos = proxy.GetSucursales();
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveSucursal = drow["CveSucursal"].ToString().ToEntero();
this.Sucursal = drow["Sucursal"].ToString();
this.Serie = drow["Serie"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Sucursales.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsUnidadesMedida : CLSExternoBase
{
public ClsUnidadesMedida() { }
public bool GetUnidadesMedida()
{
bool Retorno = false;
try
{
datos = proxy.GetUnidadesMedida();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Unidades de Medida.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,55 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsUsuariosProcesos : CLSExternoBase
{
public int CveUsuario { get; set; }
public int CveProceso { get; set; }
public int Permitir { get; set; }
public ClsUsuariosProcesos() { }
public bool GetUsuariosProcesos(int CveProceso, int CveUsuario)
{
bool Retorno = false;
try
{
datos = proxy.GetUsuariosProcesos(CveProceso, CveUsuario);
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow= datos.Tabla.Rows[0];
this.CveUsuario = drow["CveUsuario"].ToString().ToEntero();
this.CveProceso = drow["CveProceso"].ToString().ToEntero();
this.Permitir = drow["Permitir"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Procesos de Usuarios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,736 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVentas : CLSExternoBase
{
#region Propiedades
public int CveVentaTerminal { get; set; }
public int CveMesa { get; set; }
public string Mesa { get; set; }
public string Cuenta { get; set; }
public int CveCliente { get; set; }
public string NombreCliente { get; set; }
public int NumeroPersonas { get; set; }
public int CveVendedor { get; set; }
public int Orden { get; set; }
public string Vendedor { get; set; }
public DateTime FechaApertura { get; set; }
public DateTime FechaCierre { get; set; }
public DateTime Fecha { get; set; }
public int CveEstatusFactura { get; set; }
public double SubTotal { get; set; }
public double Descuento { get; set; }
public int DescuentoPorcentaje { get; set; }
public double IVA { get; set; }
public double Total { get; set; }
public double Cambio { get; set; }
public bool Impreso { get; set; }
public int CveUsuario { get; set; }
public int CveEmpresa { get; set; }
public int CveVentaDetalleTerminal { get; set; }
#endregion
public ClsVentas() { }
public partial class ClsVentaDetalles : object, System.ComponentModel.INotifyPropertyChanged
{
#region local propierties
private int CveVentaField;
private int CvePSField;
private double CantidadField;
private int CveUnidadMedidaField;
private double PUField;
private double IVAField;
private double TotalIVAField;
private double TotalField;
private int CveEstautusFacturaField;
private string ObservacionesField;
private double OfertaField;
private double PrecioFinalField;
private double DescuentoField;
private int TipoDescuentoField;
private int CveSubProyectoField;
private string PSField;
private string CodigoField;
#endregion
#region public propierties
public int CveVenta
{
get
{
return this.CveVentaField;
}
set
{
if ((this.CveVentaField.Equals(value) != true))
{
this.CveVentaField = value;
this.RaisePropertyChanged("CveVenta");
}
}
}
public int CvePS
{
get
{
return this.CvePSField;
}
set
{
if ((this.CvePSField.Equals(value) != true))
{
this.CvePSField = value;
this.RaisePropertyChanged("CvePS");
}
}
}
public double Cantidad
{
get
{
return this.CantidadField;
}
set
{
if ((this.CantidadField.Equals(value) != true))
{
this.CantidadField = value;
this.RaisePropertyChanged("Cantidad");
}
}
}
public int CveUnidadMedida
{
get
{
return this.CveUnidadMedidaField;
}
set
{
if ((this.CveUnidadMedidaField.Equals(value) != true))
{
this.CveUnidadMedidaField = value;
this.RaisePropertyChanged("CveUnidadMedida");
}
}
}
public double PU
{
get
{
return this.PUField;
}
set
{
if ((this.PUField.Equals(value) != true))
{
this.PUField = value;
this.RaisePropertyChanged("PU");
}
}
}
public double IVA
{
get
{
return this.IVAField;
}
set
{
if ((this.IVAField.Equals(value) != true))
{
this.IVAField = value;
this.RaisePropertyChanged("IVA");
}
}
}
public double TotalIVA
{
get
{
return this.TotalIVAField;
}
set
{
if ((this.TotalIVAField.Equals(value) != true))
{
this.TotalIVAField = value;
this.RaisePropertyChanged("TotalIVA");
}
}
}
public double Total
{
get
{
return this.TotalField;
}
set
{
if ((this.TotalField.Equals(value) != true))
{
this.TotalField = value;
this.RaisePropertyChanged("Total");
}
}
}
public int CveEstautusFactura
{
get
{
return this.CveEstautusFacturaField;
}
set
{
if ((this.CveEstautusFacturaField.Equals(value) != true))
{
this.CveEstautusFacturaField = value;
this.RaisePropertyChanged("CveEstautusFactura");
}
}
}
public string Observaciones
{
get
{
return this.ObservacionesField;
}
set
{
if ((object.ReferenceEquals(this.ObservacionesField, value) != true))
{
this.ObservacionesField = value;
this.RaisePropertyChanged("Observaciones");
}
}
}
public double Oferta
{
get
{
return this.OfertaField;
}
set
{
if ((this.OfertaField.Equals(value) != true))
{
this.OfertaField = value;
this.RaisePropertyChanged("Oferta");
}
}
}
public double PrecioFinal
{
get
{
return this.PrecioFinalField;
}
set
{
if ((this.PrecioFinalField.Equals(value) != true))
{
this.PrecioFinalField = value;
this.RaisePropertyChanged("PrecioFinal");
}
}
}
public double Descuento
{
get
{
return this.DescuentoField;
}
set
{
if ((this.DescuentoField.Equals(value) != true))
{
this.DescuentoField = value;
this.RaisePropertyChanged("Descuento");
}
}
}
public int TipoDescuento
{
get
{
return this.TipoDescuentoField;
}
set
{
if ((this.TipoDescuentoField.Equals(value) != true))
{
this.TipoDescuentoField = value;
this.RaisePropertyChanged("TipoDescuento");
}
}
}
public int CveSubProyecto
{
get
{
return this.CveSubProyectoField;
}
set
{
if ((this.CveSubProyectoField.Equals(value) != true))
{
this.CveSubProyectoField = value;
this.RaisePropertyChanged("CveSubProyecto");
}
}
}
public string PS
{
get
{
return this.PSField;
}
set
{
if ((object.ReferenceEquals(this.PSField, value) != true))
{
this.PSField = value;
this.RaisePropertyChanged("PS");
}
}
}
public string Codigo
{
get
{
return this.CodigoField;
}
set
{
if ((object.ReferenceEquals(this.CodigoField, value) != true))
{
this.CodigoField = value;
this.RaisePropertyChanged("Codigo");
}
}
}
#endregion
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ( propertyChanged != null) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
public bool 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)
{
bool Retorno = false;
try
{
datos = proxy.AddVenta(TipoDocto, FolioFact, CveCliente, SubTotal, Descuento, IVA, Total, CveMoneda, TipoCambio, CveMetodoPago, Fecha, MotivoDescuento, Observaciones, CveEstatusFactura, CveVendedor, CveCorteTerminal, CveMesa, NumeroPersonas, Cuenta, CveUsuario, CveSucursal, CveEmpresa);
CveVentaTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Guardar la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool 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)
{
bool Retorno = false;
try
{
datos = proxy.AddVentaDetalle(CveVentaTerminal, CvePS, Cantidad, CveUnidadMedida, PU, IVA, Total, Observaciones, Descuento, TipoDescuento, ComandaOrden, TasaIVA, EsVentaDetalle, CveVentaDetalleTerminalPadre, EsPromocion);
CveVentaDetalleTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar el Producto o Servicio a la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_VentasPago(int CveVentaTerminal, int CveMetodoPago, double Importe, double ImportePropina)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_VentasPago(CveVentaTerminal, CveMetodoPago, Importe, ImportePropina);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar el Pago de la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveVta_VentasPago(int CveVentaTerminal, int CveMetodoPago)
{
bool Retorno = false;
try
{
datos = proxy.RemoveVta_VentasPago(CveVentaTerminal, CveMetodoPago);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Elimnar el Pago de la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVta_VentasPago(int CveCorteTerminal, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_VentasPagoCorte(CveCorteTerminal, CveEmpresa);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al cargar los Pagos de Ventas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVta_VentasPago(int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_VentasPago(CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al cargar los Pagos de Ventas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentas(int CveVentaTerminal, int CveEstatusFactura, int CveVendedor, string Cuenta, int CveCorteTerminal, int CveUsuario, int CveEmpresa, EstatusVentaTerminal CveVenta = EstatusVentaTerminal.Todas, int Modificadas = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVentas(CveVentaTerminal, CveEstatusFactura, CveVendedor, Cuenta, CveCorteTerminal, CveUsuario, CveEmpresa, CveVenta, Modificadas);
if (datos.Tabla.Rows.Count > 0)
{
DataRow dr = datos.Tabla.Rows[0];
this.CveVentaTerminal = dr["CveVentaTerminal"].ToString().ToEntero();
this.Cuenta = !IsDBNull(dr["Cuenta"]) ? dr["Cuenta"].ToString() : "-1";
this.NombreCliente = !IsDBNull(dr["Nombre"]) ? dr["Nombre"].ToString() : "";
this.CveCliente = !IsDBNull(dr["CveCliente"]) ? dr["CveCliente"].ToString().ToEntero() : -1;
this.NumeroPersonas = dr["NumeroPersonas"].ToString().ToEntero();
this.CveVendedor = !IsDBNull(dr["CveVendedor"]) ? dr["CveVendedor"].ToString().ToEntero() : -1;
this.Vendedor = !IsDBNull(dr["Vendedor"]) ? dr["Vendedor"].ToString() : "";
this.CveMesa = !IsDBNull(dr["CveMesa"]) ? dr["CveMesa"].ToString().ToEntero() : -1;
this.Mesa = !IsDBNull(dr["Mesa"]) ? dr["Mesa"].ToString() : "";
this.FechaApertura = !IsDBNull(dr["Fecha"]) ? dr["Fecha"].ToString().ToDateTime() : DateTime.MinValue;
this.Impreso = dr["Impreso"].ToString().ToBool();
this.CveEstatusFactura = !IsDBNull(dr["CveEstatusFactura"]) ? dr["CveEstatusFactura"].ToString().ToEntero() : -1;
this.Fecha = !IsDBNull(dr["Fecha"]) ? dr["Fecha"].ToString().ToDateTime() : DateTime.MinValue;
this.SubTotal = dr["SubTotal"].ToString().ToDouble();
this.Descuento = dr["Descuento"].ToString().ToDouble();
this.DescuentoPorcentaje = dr["DescuentoPorcentaje"].ToString().ToEntero();
this.IVA = dr["IVA"].ToString().ToDouble();
this.Total = dr["Total"].ToString().ToDouble();
this.Cambio = !IsDBNull(dr["Total"]) ? dr["Total"].ToString().ToDouble() : 0;
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al cargar las cuentas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVenta(double SubTotal, double Descuento, double IVA, double Total, double Propina, int CveEstatusFactura, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVenta(SubTotal, Descuento, IVA, Total, Propina, CveEstatusFactura, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Pagar la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public int AddVentaCopia(int CveVentaTerminal, string Cuenta, int CveUsuario)
{
int Retorno = -1;
try
{
datos = proxy.AddVentaCopia(CveVentaTerminal, Cuenta, CveUsuario);
CveVentaTerminal = datos.CveRetorno;
Retorno = CveVentaTerminal;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Guardar la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool DivideVenta(int CveVentaDetalleTerminal, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.DivideVenta(CveVentaDetalleTerminal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al dividr la cuenta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool JuntaVenta(int CveVentaTerminalPrincipal, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.JuntaVenta(CveVentaTerminalPrincipal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Juntar las cuentas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentasDetalle(int CveVentaTerminal, WCF_PV.ClsVentasEstatusEntrega EstatusEntrega = WCF_PV.ClsVentasEstatusEntrega.Todas)
{
bool Retorno = false;
try
{
datos = proxy.GetVentasDetalle(CveVentaTerminal, EstatusEntrega);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al ver la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentasDetalleComandaOrden(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVentasDetallesComandaOrden(CveCorteTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consulta la Comanda Orden.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool DeleteVentaDetalle(int CveVentaDetalleTerminal, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.DeleteVentaDetalle(CveVentaDetalleTerminal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al eliminar.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateEstatusEntregaVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, WCF_PV.ClsVentasEstatusEntrega EstatusEntregaFiltro, WCF_PV.ClsVentasEstatusEntrega EstatusEntrega)
{
bool Retorno = false;
try
{
datos = proxy.UpdateEstatusEntregaVentaDetalle(CveVentaTerminal, CveVentaDetalleTerminal, EstatusEntregaFiltro, EstatusEntrega);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el Estado de Entrega.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateCantidadVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, double Cantidad, bool EsVentaDetalle = true)
{
bool Retorno = false;
try
{
datos = proxy.UpdateCantidadVentaDetalle(CveVentaTerminal, CveVentaDetalleTerminal, Cantidad, EsVentaDetalle);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar la cantidad.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateCambiarMesa(int CveMesa, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateCambiarMesa(CveMesa, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar la cantidad.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateCliente(int CveCliente, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateCliente(CveCliente, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el Cliente.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateDescuentoPorcentaje(int DescuentoPorcentaje, int CveVentaTerminal, bool AplicarloDetalles = false)
{
bool Retorno = false;
try
{
datos = proxy.UpdateDescuentoPorcentaje(DescuentoPorcentaje, CveVentaTerminal, AplicarloDetalles);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el descuento porcentaje.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateImpreso(int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateImpreso(CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar impresion.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateImpresoComanda(int CveVentaTerminal, int ComandaOrden)
{
bool Retorno = false;
try
{
datos = proxy.UpdateImpresoComanda(CveVentaTerminal, ComandaOrden);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar impresion de la Comanda.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVendedor(int CveVendedor, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVendedor(CveVendedor, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el vendedor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
{
bool Retorno = false;
try
{
datos = proxy.AddVentasDetallesCaracteristicas(CveOpcion, CvePS, CveVentaDetalleTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar la Caracteristica del Producto.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
{
bool Retorno = false;
try
{
datos = proxy.RemoveVentasDetallesCaracteristicas(CveOpcion, CvePS, CveVentaDetalleTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar la Caracteristica del Producto.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentasDetallesCaracteristicas(int CveVentaDetalleTerminal, int CveVentaTerminal = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVentasDetallesCaracteristicas(CveVentaDetalleTerminal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al ver la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVta_Bitacora : CLSExternoBase
{
public int CveBitacoraTerminal { get; set; }
public ClsVta_Bitacora() { }
public bool GetVta_Bitacora(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Bitacora(CveCorteTerminal, -1);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar La Bitacora.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_Bitacora(int CveVentaTerminal, string Observacion, int CveUsuario)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_Bitacora(CveVentaTerminal, Observacion, CveUsuario);
CveBitacoraTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar La Bitacora.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,359 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVta_Cortes : CLSExternoBase
{
public partial class ClsVta_CortesModel : object, System.ComponentModel.INotifyPropertyChanged
{
#region "Local Propierties"
private int CveCorteTerminalField;
private DateTime FechaInicialField;
private DateTime FechaFinalField;
private DateTime FechaIngField;
private double ImporteInicialField;
private double ImporteFinalField;
private int CveUsuarioField;
private string DescripcionField;
private bool FinalizadoField;
private int CveCorteField;
#endregion
public ClsVta_CortesModel(DataRow drow)
{
initValues(drow["CveCorteTerminal"].ToString().ToEntero(), drow["FechaInicial"].ToString().ToDateTime(), drow["FechaFinal"].ToString().ToDateTime()
, drow["FechaIng"].ToString().ToDateTime(), drow["ImporteInicial"].ToString().ToDouble(),
drow["ImporteFinal"] ==DBNull.Value? -1 : drow["ImporteFinal"].ToString().ToDouble(),drow["CveUsuario"].ToString().ToEntero(),
drow["Descripcion"].ToString(), drow["Finalizado"].ToString().ToBool() , drow["CveCorte"] == DBNull.Value? -1 : drow["CveCorte"].ToString().ToEntero() );
}
public ClsVta_CortesModel(int CveCorteTerminal_, DateTime FechaInicial_, DateTime FechaFinal_, DateTime FechaIng_, double ImporteInicial_, double ImporteFinal_, int CveUsuario_, string Descripcion_, bool Finalizado_, int CveCorte_)
{
initValues( CveCorteTerminal_, FechaInicial_, FechaFinal_, FechaIng_, ImporteInicial_, ImporteFinal_, CveUsuario_, Descripcion_, Finalizado_, CveCorte_);
}
public void initValues (int CveCorteTerminal_, DateTime FechaInicial_, DateTime FechaFinal_, DateTime FechaIng_, double ImporteInicial_, double ImporteFinal_, int CveUsuario_, string Descripcion_, bool Finalizado_, int CveCorte_)
{
CveCorteTerminal = CveCorteTerminal_;
FechaInicial = FechaInicial_;
FechaFinal = FechaFinal_;
FechaIng = FechaIng_;
ImporteInicial = ImporteInicial_;
ImporteFinal = ImporteFinal_;
CveUsuario = CveUsuario_;
Descripcion = Descripcion_;
Finalizado = Finalizado_;
CveCorte = CveCorte_;
}
#region "public propierties"
public int CveCorteTerminal
{
get
{
return this.CveCorteTerminalField;
}
set
{
if ((this.CveCorteTerminalField.Equals(value) != true))
{
this.CveCorteTerminalField = value;
this.RaisePropertyChanged("CveCorteTerminal");
}
}
}
public DateTime FechaInicial
{
get
{
return this.FechaInicialField;
}
set
{
this.FechaInicialField = value;
}
}
public DateTime FechaFinal
{
get
{
return this.FechaFinalField;
}
set
{
this.FechaFinalField = value;
}
}
public DateTime FechaIng
{
get
{
return this.FechaIngField;
}
set
{
this.FechaIngField = value;
}
}
public double ImporteInicial
{
get
{
return this.ImporteInicialField;
}
set
{
this.ImporteInicialField = value;
}
}
public double ImporteFinal
{
get
{
return this.ImporteFinalField;
}
set
{
this.ImporteFinalField = value;
}
}
public int CveUsuario
{
get
{
return this.CveUsuarioField;
}
set
{
this.CveUsuarioField = value;
}
}
public string Descripcion
{
get
{
return this.DescripcionField;
}
set
{
this.DescripcionField = value;
}
}
public bool Finalizado
{
get
{
return this.FinalizadoField;
}
set
{
this.FinalizadoField = value;
}
}
public int CveCorte
{
get
{
return this.CveCorteField;
}
set
{
this.CveCorteField = value;
}
}
#endregion
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if (propertyChanged != null)
{
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
#region Propiedades
public int CveCorteTerminal { get; set; }
public DateTime FechaInicial { get; set; }
public DateTime FechaFinal { get; set; }
public DateTime FechaIng { get; set; }
public double ImporteInicial { get; set; }
public double ImporteFinal { get; set; }
public double Diferencia { get; set; }
public double Propinas { get; set; }
public double Vendido { get; set; }
public double VendidoFinalizadas { get; set; }
public double VendidoAbiertas { get; set; }
public double VendidoEfectivo { get; set; }
public double Ingresado { get; set; }
public double Retirado { get; set; }
public int CveUsuario { get; set; }
public string UsuarioNombre { get; set; }
public string Descripcion { get; set; }
public bool Finalizado { get; set; }
public int CveEmpresa { get; set; }
#endregion
public ClsVta_Cortes() { }
public bool GetVta_Cortes(int CveCorteTerminal, string FechaI, string FechaF, int CveUsuario, int Finalizado, int CveCorte = -1, int Enviado = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Cortes(CveCorteTerminal, FechaI, FechaF, CveUsuario, Finalizado, CveCorte, Enviado);
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveCorteTerminal = drow["CveCorteTerminal"].ToString().ToEntero ();
this.Descripcion = drow["Descripcion"].ToString();
this.FechaInicial = drow["FechaInicial"].ToString().ToDateTime();
this.FechaFinal = !IsDBNull(drow["FechaFinal"]) ? drow["FechaFinal"].ToString().ToDateTime() : new DateTime();
this.FechaIng = drow["FechaIng"].ToString().ToDateTime();
this.ImporteInicial = drow["ImporteInicial"].ToString().ToDouble();
this.ImporteFinal = !IsDBNull(drow["ImporteFinal"]) ? drow["ImporteFinal"].ToString().ToDouble() : -1;
this.Diferencia = !IsDBNull(drow["Diferencia"]) ? drow["Diferencia"].ToString().ToDouble() : -1;
this.Propinas = !IsDBNull(drow["Propinas"]) ? drow["Propinas"].ToString().ToDouble() : 0;
this.Vendido = !IsDBNull(drow["Vendido"]) ? drow["Vendido"].ToString().ToDouble() : 0;
this.VendidoFinalizadas = !IsDBNull(drow["VendidoFinalizadas"]) ? drow["VendidoFinalizadas"].ToString().ToDouble() : 0;
this.VendidoAbiertas = !IsDBNull(drow["VendidoAbiertas"]) ? drow["VendidoAbiertas"].ToString().ToDouble() : 0;
this.VendidoEfectivo = !IsDBNull(drow["VendidoEfectivo"]) ? drow["VendidoEfectivo"].ToString().ToDouble() : 0;
// Me.VendidoEfectivo = Me.VendidoEfectivo - Me.Propinas
this.Ingresado = !IsDBNull(drow["Ingresado"]) ? drow["Ingresado"].ToString().ToDouble() : 0;
this.Retirado = !IsDBNull(drow["Retirado"]) ? drow["Retirado"].ToString().ToDouble() : 0;
this.CveUsuario = drow["CveUsuario"].ToString().ToEntero();
this.UsuarioNombre = drow["UsuarioNombre"].ToString();
this.Descripcion = drow["Descripcion"].ToString();
this.Finalizado = drow["Finalizado"].ToString().ToBool();
this.CveEmpresa = drow["CveEmpresa"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Cortes de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateFinalizadoVta_Cortes(int CveCorteTerminal, double ImporteFinal, double Diferencia, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.UpdateFinalizadoVta_Cortes(CveCorteTerminal, ImporteFinal, Diferencia, CveEmpresa);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Finalizar El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVta_CortesCveCorte(int CveCorteTerminal, int CveCorte)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVta_CortesCveCorte(CveCorteTerminal, CveCorte);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Actualizar CveCorte del El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVta_CortesEnviado(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVta_CortesEnviado(CveCorteTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Actualizar ENVIADO del El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_Cortes(DateTime FechaInicial, double ImporteInicial, int CveUsuario, string Descripcion, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_Cortes(FechaInicial, ImporteInicial, CveUsuario, Descripcion, CveEmpresa);
CveCorteTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_CortesDetalles(int CveCorteTerminal, int CveMetodoPago, double Importe)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_CortesDetalles(CveCorteTerminal, CveMetodoPago, Importe);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Detalle de Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVta_CortesDetalles(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_CortesDetalles(CveCorteTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Detalles del Cortes de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,54 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVta_Mesas : CLSExternoBase
{
#region Propiedades
public int CveMesa { get; set; }
public string Mesa { get; set; }
public bool Estado { get; set; }
public string Estatus { get; set; }
#endregion
public ClsVta_Mesas() { }
public bool GetVta_Mesas()
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Mesas();
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveMesa = drow["CveMesa"].ToString().ToEntero() ;
this.Mesa = drow["Mesa"].ToString();
this.Estado = drow["Estado"].ToString().ToBool();
this.Estatus = drow["Estatus"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Mesas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,191 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVta_MovimientosCaja : CLSExternoBase
{
public partial class ClsVta_MovimientosCajaModel
{
#region local propierties
private int _CveMovimiento;
private int _CveCorte;
private int _CveUsuario;
private int _TipoMovimiento;
private string _Descripcion;
private double _Importe;
private DateTime _Fecha;
#endregion
#region public propierties
public int CveMovimiento
{
get
{
return _CveMovimiento;
}
set
{
_CveMovimiento = value;
}
}
public int CveCorte
{
get
{
return _CveCorte;
}
set
{
_CveCorte = value;
}
}
public int CveUsuario
{
get
{
return _CveUsuario;
}
set
{
_CveUsuario = value;
}
}
public int TipoMovimiento
{
get
{
return _TipoMovimiento;
}
set
{
_TipoMovimiento = value;
}
}
public string Descripcion
{
get
{
return _Descripcion;
}
set
{
_Descripcion = value;
}
}
public double Importe
{
get
{
return _Importe;
}
set
{
_Importe = value;
}
}
public DateTime Fecha
{
get
{
return _Fecha;
}
set
{
_Fecha = value;
}
}
#endregion
}
#region propiedades
public int CveMovimientoTerminal { get; set; }
public int CveCorteTerminal { get; set; }
public int CveMovimiento { get; set; }
public int CveCorte { get; set; }
public double Importe { get; set; }
public string Descripcion { get; set; }
public int TipoMovimiento { get; set; }
public DateTime Fecha { get; set; }
public int CveUsuario { get; set; }
public string Usuario { get; set; }
#endregion
public ClsVta_MovimientosCaja() { }
public bool GetVta_MovimientosCaja(int CveMovimientoTerminal, int CveCorteTerminal, int TipoMovimiento, int CveMovimiento = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_MovimientosCaja(CveMovimientoTerminal, CveCorteTerminal, TipoMovimiento, CveMovimiento);
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveMovimientoTerminal = drow["CveMovimientoTerminal"].ToString().ToEntero();
this.CveCorteTerminal = drow["CveCorteTerminal"].ToString().ToEntero();
this.CveMovimiento = !IsDBNull(drow["CveMovimiento"]) ? drow["CveMovimiento"].ToString().ToEntero() : -1;
this.CveCorte = !IsDBNull(drow["CveCorte"]) ? drow["CveCorte"].ToString().ToEntero() : -1;
this.Importe = drow["Importe"].ToString().ToEntero();
this.Descripcion = drow["Descripcion"].ToString();
this.TipoMovimiento = drow["TipoMovimiento"].ToString().ToEntero();
this.Fecha = drow["Fecha"].ToString().ToDateTime();
this.CveUsuario = drow["CveUsuario"].ToString().ToEntero();
this.Usuario = drow["Usuario"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Movimiento de Caja.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_MovimientosCaja(int CveCorteTerminal, int CveUsuario, double Importe, string Descripcion, int TipoMovimiento)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_MovimientosCaja(CveCorteTerminal, CveUsuario, Importe, Descripcion, TipoMovimiento);
CveMovimientoTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Movimiento de Caja.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveVta_MovimientosCaja(int CveMovimientoTerminal)
{
bool Retorno = false;
try
{
datos = proxy.RemoveVta_MovimientosCaja(CveMovimientoTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar el Movimiento de Caja.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,59 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVta_Vendedores : CLSExternoBase
{
#region Propiedades
public int CveVendedor { get; set; }
public string Vendedor { get; set; }
public bool Estado { get; set; }
public string Estatus { get; set; }
#endregion
public ClsVta_Vendedores() { }
public bool GetVta_Vendedores()
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Vendedores();
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveVendedor = drow["CveVendedor"].ToString().ToEntero();
this.Vendedor = drow["Vendedor"].ToString();
this.Estado = drow["Estado"].ToString().ToBool();
this.Estatus = drow["Estatus"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Vendedores.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.PV
{
public enum TipoImpresion : int
{
Venta = 1,
MovimientoCaja = 2,
Comanda = 3,
Corte = 4
}
public enum TamanoTicket : int
{
Normal = 46,
Chico = 36
}
public enum EstatusVentaTerminal
{
Todas = -1,
QueNoTienenCveVenta = -2,
QueNoTienenCveVentaPeroSiCveCorte = -3
}
public enum TipoMov : int
{
Ingreso = 1,
Retiro = 0
}
public enum EstatusMovimientoCajaTerminal
{
Todas = -1,
QueNoTienenCve = -2,
QueNoTienenCvePeroSiCveCorte = -3
}
}

47
ADSUtileriasWF/Form1.Designer.cs generated Normal file
View File

@@ -0,0 +1,47 @@
namespace ADSUtileriasWF
{
partial class Form1
{
/// <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 Windows Form 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.SuspendLayout();
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
}
}

25
ADSUtileriasWF/Form1.cs Normal file
View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ADSUtileriasWF
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}

60
ADSUtileriasWF/Form1.resx Normal file
View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Helpers
{
public class ADSTextBox : TextBox
{
public ADSTextBox()
{
BorderStyle = BorderStyle.None;
AutoSize = false; //Allows you to change height to have bottom padding
Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Controls.Add(new Label()
{ Height = 1, Dock = DockStyle.Bottom, BackColor = System.Drawing.Color.FromArgb(64, 64, 64) });
}
}
}

View File

@@ -0,0 +1,97 @@
using FontAwesome.Sharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Helpers
{
public class FormBase : Form
{
public void GuardaLog(string mensaje)
{
ModExtensiones.GuardaLog(mensaje);
}
//UtileriasServiceWCF.ResponseLogin UserV2
public WCF_PV.Usuario UsuarioActual { get { return ModVarsPV.UsuarioActual; } set { ModVarsPV.UsuarioActual = value; } }
//public UtileriasServiceWCF.ResponseLogin UsuarioActual { get { return ModVarsPV.UserV2; } set { ModVarsPV.UserV2 = value; } } //FIXME OIC pRUEBA
#region "F U N C I O N E S D E W I N D O W S"
#region "mover /arrastrar formulario"
private const int WM_NCLBUTTONDOWN = 0xA1;
private const int HT_CAPTION = 0x2;
[DllImportAttribute("user32.dll")]
private static extern int SendMessage(IntPtr hWnd,
int Msg, int wParam, int lParam);
[DllImportAttribute("user32.dll")]
private static extern bool ReleaseCapture();
#endregion
#region colorbar
//[DllImport("User32.dll", CharSet = CharSet.Auto)]
//public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);
//[DllImport("User32.dll")]
//private static extern IntPtr GetWindowDC(IntPtr hWnd);
//protected override void WndProc(ref Message m)
//{
// base.WndProc(ref m);
// const int WM_NCPAINT = 0x85;
// if (m.Msg == WM_NCPAINT)
// {
// IntPtr hdc = GetWindowDC(m.HWnd);
// if ((int)hdc != 0)
// {
// Graphics g = Graphics.FromHdc(hdc);
// g.FillRectangle(Brushes.Green, new Rectangle(0, 0, 4800, 23));
// g.Flush();
// ReleaseDC(m.HWnd, hdc);
// }
// }
//}
#endregion
public void ArrastrarForm_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
ReleaseCapture();
SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0);
}
}
public void BtnClose_Click(object sender, EventArgs e)
{
Environment.Exit(0);
}
public void BtnMaximizeRestore_Click(object sender, EventArgs e)
{
if (WindowState == FormWindowState.Maximized)
{
WindowState = FormWindowState.Normal;
((IconButton)sender).IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
}
else
{
WindowState = FormWindowState.Maximized;
((IconButton)sender).IconChar = FontAwesome.Sharp.IconChar.WindowRestore;
}
}
public void BtnMinimize_Click(object sender, EventArgs e)
{
WindowState = FormWindowState.Minimized;
}
#endregion
}
}

View File

@@ -0,0 +1,120 @@
<?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>
</root>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace ADSUtileriasWF.Helpers
{
//
// Summary:
// Represents an ARGB (alpha, red, green, blue) color.
public readonly struct FormsColors
{
//
// Summary:
// Represents a color that is null.
public static readonly Color Empty;
//
// Summary:
// Gets a system-defined color that has an ARGB value of #FF66CDAA.
//
// Returns:
// A System.Drawing.Color representing a system-defined color.
public static Color BlueDarkMenu { get { return System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67))))); } }
public static Color BlueDarkBarMenu { get { return System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(65)))), ((int)(((byte)(80))))); } }
}
}

View File

@@ -0,0 +1,19 @@
using ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib;
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Helpers
{
class LogicChecador
{
public static System.Collections.Concurrent.ConcurrentDictionary<string, SDKZkTeckoHelper> GPSByIMEI = new System.Collections.Concurrent.ConcurrentDictionary<string, SDKZkTeckoHelper>(80, 100);
//public GetConexion(string ip,int port)
//{
// SDKZkTeckoHelper
//}
}
}

View File

@@ -0,0 +1,244 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Helpers
{
public static class ModExtensiones
{
public static System.Windows.Forms.DialogResult Alert(string mensage, string Titulo, System.Windows.Forms.MessageBoxButtons botones = System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon Icon = System.Windows.Forms.MessageBoxIcon.None)
{
System.Windows.Forms.DialogResult result = System.Windows.Forms.DialogResult.None;
result = System.Windows.Forms.MessageBox.Show(mensage, Titulo, botones, Icon);
//switch (button)
//{
// case MessageBoxButtons.YesNo:
// using (frmYesNo yesNo = new frmYesNo())
// {
// yesNo.Text = caption;
// yesNo.Message = message;
// result = yesNo.ShowDialog();
// }
// break;
// case MessageBoxButtons.OK:
// using (frmOK ok = new frmOK())
// {
// ok.Text = caption;
// ok.Message = message;
// result = ok.ShowDialog();
// }
// break;
//}
return result;
}
public static void OnError(string Mensaje, string Caption, Exception Exeption, System.Windows.Forms.MessageBoxIcon Icon, string InfoAdicional = "")
{
GuardaLog(string.Format("{0} DESCRIPCIÓN DETALLADA: {1} {2} {3}", Mensaje, Exeption.ToString(), "\r\n", InfoAdicional));
Alert(Mensaje, Caption, System.Windows.Forms.MessageBoxButtons.OK, Icon);
}
public static void GuardaLog(string Str)
{
string strLineaTMP;
// strLineaTMP = Chr(13) & Chr(10) & Day(Now) & "/" & Month(Now) & "/" & Year(Now) & " " & Hour(Now) & ":" & Minuto & ". " & Str & Chr(13) & Chr(10)
strLineaTMP = string.Format("{0}{1}{2: dd-MM-yyyy HH\\:mm}", "\r\n", Str, DateTime.Now);
try
{
using (System.IO.StreamWriter ArchivoW = new System.IO.StreamWriter(string.Format(@"{0}\Log.txt", AppDomain.CurrentDomain.BaseDirectory), true, System.Text.Encoding.UTF8))
{
ArchivoW.WriteLine(strLineaTMP);
ArchivoW.Close();
}
}
catch(Exception)
{
}
}
#region "String To Another type"
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 bool ToBool(this string Obj)
{
return Obj == "1" || Obj.ToUpper() == "TRUE";
}
public static double ToDouble(this string Str, double TipoCambio = 1)
{
double result = 0;
Str = Str.Trim().Replace(",", "").Replace("$", "").Replace("%", "");
if (!string.IsNullOrEmpty(Str))
{
double.TryParse(Str, out result);
}
return result * TipoCambio;
}
public static decimal ToDecimal(this string Str, decimal TipoCambio = 1)
{
decimal result = 0;
Str = Str.Trim().Replace(",", "").Replace("$", "").Replace("%", "");
if (!string.IsNullOrEmpty(Str))
{
Decimal.TryParse(Str, out result);
}
return result * 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;
}
#endregion
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 double SUM(this System.Data.DataTable dt, string Campo, string Filtro ="")
{
return dt.Compute("SUM(" + Campo + ")", Filtro).ToString().ToDouble();
}
}
}

View File

@@ -0,0 +1,96 @@
using ADSUtileriasWF.Data.Externa.PV;
using DocumentFormat.OpenXml.Office2013.Word;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting;
using System.Text;
using UtileriasServiceWCF;
namespace ADSUtileriasWF.Helpers
{
public static class ModVarsPV
{
public enum ModuloActivo
{
Checador,
PuntoVenta
}
public static ModuloActivo moduloActivo = ModuloActivo.Checador;
#region PuntodeVenta
public static WCF_PV.Usuario UsuarioActual;
public static UtileriasServiceWCF.ResponseLogin UserV2;
public static string subproyecto;
public static WCF_PV.PuntoVentaClient.EndpointConfiguration EndPointName = WCF_PV.PuntoVentaClient.EndpointConfiguration.basicHttpBinding_IPuntoVenta;
public static string RutaWCF = "http://localhost:8000/WCF/";
public static string Address { get { return string.Format("{0}Clase", RutaWCF); } }
public static ClsVta_Cortes.ClsVta_CortesModel CorteActual;
public static int CveClientePG = 3940;//Publico general
public static decimal IVAClientePG = (decimal)0.16;//Publico general
public static Data.Externa.PV.TamanoTicket TamanoTicketConfigurado = Data.Externa.PV.TamanoTicket.Chico;
public static bool ImprimirComandas = false;
public static System.Drawing.Color ColorBTNs = System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor.ActiveBorder);
public static string TipoTerminal;
public static int CveTipoTerminal
{
get
{
int cvetipoterminal = 0;
if (ModVarsPV.TipoTerminal != null)
{
string[] spliteditems = ModVarsPV.TipoTerminal.Split("_");
cvetipoterminal = (spliteditems[0]).ToEntero();
}
return cvetipoterminal;
}
}
public static string txtTipoTerminal
{
get
{
string txttipoterminal = "";
if (ModVarsPV.TipoTerminal != null)
{
string[] spliteditems = ModVarsPV.TipoTerminal.Split("_");
if (spliteditems.Length > 1)
{ txttipoterminal = (spliteditems[1]); }
}
return txttipoterminal;
}
}
public static bool TieneProceso(this ResponseLogin UsuarioClase, int CveProceso)
{
var result = UsuarioClase.UsuariosRolesProcesos?.Where(kv => kv.cveProceso == CveProceso )?.ToList();
if(result!= null && result.Count > 0)
{
return true;
}
else
{
return false;
}
}
//public static string Istouch;
#endregion
}
}

Binary file not shown.

View File

@@ -0,0 +1,138 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Helpers
{
public class Servicecon
{
public static void GuardaLog(string mensaje)
{
ModExtensiones.GuardaLog(mensaje);
}
public static UtileriasServiceWCF.ResponseLogin Login(string usuario, string password,int CveEmpresa)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return client.Login(new UtileriasServiceWCF.RequestLogin() { UserName = usuario, Password = password, CvePlataforma = 8, CveEmpresa = CveEmpresa });
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return null;
//throw;
}
}
public static UtileriasServiceWCF.UsuariosqliteModel CambiarEmpresa(int CveUsuario, int CveEmpresa, int cveSubProyecto)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return client.CambiarEmpresa( CveUsuario, CveEmpresa, cveSubProyecto);
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return null;
//throw;
}
}
public static bool SetPersonalHuella(UtileriasServiceWCF.RequestPersonalHuella perhuella)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return client.SetEmpleadoHuella(perhuella);
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return false;
}
}
public static UtileriasServiceWCF.ResponseGetChecadoresModel[] GetChecadores(int CveUsuario, int cveSubProyecto, int CveEmpresa)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return client.GetChecadores(CveUsuario, cveSubProyecto, CveEmpresa);
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return null;
}
}
public static List<UtileriasServiceWCF.PersonalsqliteModel> GETPersonal(int CveUsuario, int CveEmpresa, int cveSubProyecto)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return new List<UtileriasServiceWCF.PersonalsqliteModel>( client.GETPersonal(CveUsuario, CveEmpresa, cveSubProyecto));
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return null;
}
}
public static List<UtileriasServiceWCF.PersonalChecadorsqliteModel> GETPersonalChecador(int CveUsuario, int CveEmpresa, int CvePersonal)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return new List<UtileriasServiceWCF.PersonalChecadorsqliteModel>(client.GETPersonalChecador(CveUsuario, CveEmpresa, CvePersonal));
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return null;
}
}
public static bool UpChecadorEmpleado(int CveUsuario, int CveEmpresa, int CvePersonal, List<UtileriasServiceWCF.PersonalChecadorUPsqliteModel> CveChecadores)
{
try
{
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return client.UpChecadorEmpleado(CveUsuario, CveEmpresa, CvePersonal, CveChecadores.ToArray());
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return false;
}
}
public static UtileriasServiceWCF.ResponseSubProyectoUsuario[] GetSubProyectos(int CveUsuario, int CveEmpresa)
{
try
{
UtileriasServiceWCF.RequestSubProyectoUsuario parames=new UtileriasServiceWCF.RequestSubProyectoUsuario { CveUsuario=CveUsuario, CveProyecto =-1, CveSubProyecto=-1, CveEmpresa = CveEmpresa, CveEstatus =-1 };
//public UtileriasServiceWCF.ResponseSubProyectoUsuario[] GetSubProyectos(int CveUsuario, int CveEmpresa, )
UtileriasServiceWCF.SystemServiceClient client = new UtileriasServiceWCF.SystemServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
return client.GetSubProyectos(CveUsuario, CveEmpresa, parames);
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
return null;
}
}
}
}

BIN
ADSUtileriasWF/Huella1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
ADSUtileriasWF/Huella2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
ADSUtileriasWF/Huella3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
ADSUtileriasWF/Icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

BIN
ADSUtileriasWF/Icon2.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
namespace ADSUtileriasWF.Model.PV
{
public class Usuario
{
public int CveUsuario { get; set; }
public string usuario { get; set; }
public string Contraseña { get; set; }
public string Nombre { get; set; }
public int CveRol { get; set; }
public string Rol { get; set; }
public string NombreEmpresa { get; set; }
public int CveEmpresa { get; set; }
public string Liga { get; set; }
public bool Portal { get; set; } = false;
public HybridDictionary Modulos { get; set; }
public HybridDictionary Procesos { get; set; }
public bool SeleccionoEmpresa { get; set; }
public int CveSucursal { get; set; }
public int CveProveedor { get; set; }
public int CveCliente { get; set; }
public int CveSupervisor { get; set; }
public int CveCoordinador { get; set; }
public int CveProspecto { get; set; }
public int CveVendedor { get; set; }
public string Referencia { get; set; }
public bool EsSupervisorRH { get; set; }
public WCF_PV.Empresa empresa { get; set; } = null;
public bool ModoSimulacion { get; set; } = false;
public string NombreAbreviatura { get; set; }
}
}

81
ADSUtileriasWF/Program.cs Normal file
View File

@@ -0,0 +1,81 @@
using ADSUtileriasWF.Helpers;
using ADSUtileriasWF.Views.PV;
using DocumentFormat.OpenXml.Wordprocessing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
using static ADSUtileriasWF.Helpers.ModVarsPV;
namespace ADSUtileriasWF
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
/*Mantener en Barra de tareas*/
//var handle = GetConsoleWindow();
//ShowWindow(handle, SW_HIDE);
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//moduloActivo = ModuloActivo.PuntoVenta;
moduloActivo = ModuloActivo.Checador;
if (moduloActivo == ModuloActivo.PuntoVenta)
{
if (PVLogic.loadPV())
{
Application.Run(new ADSUtileriasWF.PV.Views.FrmInicio());
}
}
if (moduloActivo == ModuloActivo.Checador)
{
if (IniciarSession())
{
Application.Run(new ADSUtileriasWF.Views.RelojChecador.Views.FrmInicio());
}
}
}
private static bool IniciarSession()
{
bool retorno = false;
Views.Gral.FrmLogin frmlogin = new Views.Gral.FrmLogin();
System.Windows.Forms.DialogResult respuesta = frmlogin.ShowDialog();
retorno = (respuesta == System.Windows.Forms.DialogResult.OK);
return retorno;
}
#region "F U N C I O N E S D E W I N D O W S"
//[DllImport("kernel32.dll")]
//static extern IntPtr GetConsoleWindow();
//[DllImport("user32.dll")]
//static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
//const int SW_HIDE = 0;
//const int SW_SHOW = 5;
//[DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
//private static extern int SetProcessWorkingSetSize(IntPtr process, int minimumWorkingSetSize, int maximumWorkingSetSize);
#endregion
}
}

View File

@@ -0,0 +1,133 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ADSUtileriasWF.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ADSUtileriasWF.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Huella1 {
get {
object obj = ResourceManager.GetObject("Huella1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Huella2 {
get {
object obj = ResourceManager.GetObject("Huella2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Huella3 {
get {
object obj = ResourceManager.GetObject("Huella3", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Loader {
get {
object obj = ResourceManager.GetObject("Loader", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap LOGOADS {
get {
object obj = ResourceManager.GetObject("LOGOADS", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon LOGOADS1 {
get {
object obj = ResourceManager.GetObject("LOGOADS1", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap LogoSinFondo {
get {
object obj = ResourceManager.GetObject("LogoSinFondo", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@@ -0,0 +1,142 @@
<?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>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Huella1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Huella1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Huella2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Huella2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Huella3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Huella3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Loader" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imagenes\Loader.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="LOGOADS" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imagenes\LOGOADS.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="LOGOADS1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imagenes\LOGOADS.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="LogoSinFondo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imagenes\LogoSinFondo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,77 @@

namespace ADSUtileriasWF.Views.ControlUser
{
partial class UscLoader
{
/// <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.pictureBox1 = new System.Windows.Forms.PictureBox();
this.Cargando = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Image = global::ADSUtileriasWF.Properties.Resources.Loader;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(574, 217);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// Cargando
//
this.Cargando.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Cargando.Font = new System.Drawing.Font("Open Sans", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Cargando.Location = new System.Drawing.Point(0, 220);
this.Cargando.Name = "Cargando";
this.Cargando.Size = new System.Drawing.Size(574, 24);
this.Cargando.TabIndex = 1;
this.Cargando.Text = "Cargando";
this.Cargando.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// UscLoader
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.Cargando);
this.Controls.Add(this.pictureBox1);
this.Name = "UscLoader";
this.Size = new System.Drawing.Size(574, 249);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label Cargando;
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Views.ControlUser
{
public partial class UscLoader : UserControl
{
public UscLoader()
{
InitializeComponent();
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.BackColor = Color.Transparent;
}
}
}

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,326 @@
namespace ADSUtileriasWF.Views.Gral
{
partial class FrmLogin
{
/// <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 Windows Form 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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLogin));
panel1 = new System.Windows.Forms.Panel();
label2 = new System.Windows.Forms.Label();
PbxLogo = new System.Windows.Forms.PictureBox();
TxtUsuario = new System.Windows.Forms.TextBox();
PBiUsuario = new FontAwesome.Sharp.IconPictureBox();
PbiPassword = new FontAwesome.Sharp.IconPictureBox();
TxtPassword = new System.Windows.Forms.TextBox();
btnClose = new FontAwesome.Sharp.IconButton();
label1 = new System.Windows.Forms.Label();
BtnLogin = new System.Windows.Forms.Button();
BtnMinimizar = new FontAwesome.Sharp.IconButton();
label3 = new System.Windows.Forms.Label();
panel2 = new System.Windows.Forms.Panel();
panel3 = new System.Windows.Forms.Panel();
BtnMostrarPass = new FontAwesome.Sharp.IconPictureBox();
Loader = new System.Windows.Forms.PictureBox();
panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)PbxLogo).BeginInit();
((System.ComponentModel.ISupportInitialize)PBiUsuario).BeginInit();
((System.ComponentModel.ISupportInitialize)PbiPassword).BeginInit();
((System.ComponentModel.ISupportInitialize)BtnMostrarPass).BeginInit();
((System.ComponentModel.ISupportInitialize)Loader).BeginInit();
SuspendLayout();
//
// panel1
//
panel1.BackColor = System.Drawing.Color.FromArgb(43, 54, 67);
panel1.Controls.Add(label2);
panel1.Controls.Add(PbxLogo);
panel1.Dock = System.Windows.Forms.DockStyle.Left;
panel1.Location = new System.Drawing.Point(0, 0);
panel1.Name = "panel1";
panel1.Size = new System.Drawing.Size(250, 310);
panel1.TabIndex = 0;
panel1.MouseDown += WFLogin_MouseDown;
//
// label2
//
label2.AutoSize = true;
label2.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold);
label2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
label2.Location = new System.Drawing.Point(60, 283);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(94, 19);
label2.TabIndex = 1;
label2.Text = "versión 8.0.0";
label2.Click += label2_Click;
//
// PbxLogo
//
PbxLogo.Image = Properties.Resources.LOGOADS;
PbxLogo.Location = new System.Drawing.Point(12, 60);
PbxLogo.Name = "PbxLogo";
PbxLogo.Size = new System.Drawing.Size(227, 190);
PbxLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
PbxLogo.TabIndex = 0;
PbxLogo.TabStop = false;
PbxLogo.MouseDown += WFLogin_MouseDown;
//
// TxtUsuario
//
TxtUsuario.AcceptsReturn = true;
TxtUsuario.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
TxtUsuario.BorderStyle = System.Windows.Forms.BorderStyle.None;
TxtUsuario.Font = new System.Drawing.Font("Segoe UI", 14F);
TxtUsuario.Location = new System.Drawing.Point(345, 90);
TxtUsuario.Name = "TxtUsuario";
TxtUsuario.PlaceholderText = "Usuario";
TxtUsuario.Size = new System.Drawing.Size(300, 25);
TxtUsuario.TabIndex = 1;
TxtUsuario.KeyUp += TxtUsuario_KeyUp;
//
// PBiUsuario
//
PBiUsuario.BackColor = System.Drawing.Color.FromArgb(15, 15, 15);
PBiUsuario.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
PBiUsuario.IconChar = FontAwesome.Sharp.IconChar.User;
PBiUsuario.IconColor = System.Drawing.SystemColors.ButtonHighlight;
PBiUsuario.IconFont = FontAwesome.Sharp.IconFont.Auto;
PBiUsuario.IconSize = 25;
PBiUsuario.Location = new System.Drawing.Point(310, 90);
PBiUsuario.Name = "PBiUsuario";
PBiUsuario.Size = new System.Drawing.Size(25, 25);
PBiUsuario.TabIndex = 2;
PBiUsuario.TabStop = false;
//
// PbiPassword
//
PbiPassword.BackColor = System.Drawing.Color.FromArgb(15, 15, 15);
PbiPassword.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
PbiPassword.IconChar = FontAwesome.Sharp.IconChar.Lock;
PbiPassword.IconColor = System.Drawing.SystemColors.ButtonHighlight;
PbiPassword.IconFont = FontAwesome.Sharp.IconFont.Auto;
PbiPassword.IconSize = 25;
PbiPassword.Location = new System.Drawing.Point(310, 145);
PbiPassword.Name = "PbiPassword";
PbiPassword.Size = new System.Drawing.Size(25, 25);
PbiPassword.TabIndex = 3;
PbiPassword.TabStop = false;
//
// TxtPassword
//
TxtPassword.AcceptsReturn = true;
TxtPassword.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
TxtPassword.BorderStyle = System.Windows.Forms.BorderStyle.None;
TxtPassword.Font = new System.Drawing.Font("Segoe UI", 14F);
TxtPassword.Location = new System.Drawing.Point(345, 145);
TxtPassword.Name = "TxtPassword";
TxtPassword.PlaceholderText = "Contraseña";
TxtPassword.Size = new System.Drawing.Size(300, 25);
TxtPassword.TabIndex = 2;
TxtPassword.UseSystemPasswordChar = true;
TxtPassword.KeyUp += TxtUsuario_KeyUp;
//
// btnClose
//
btnClose.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
btnClose.FlatAppearance.BorderSize = 0;
btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnClose.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
btnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
btnClose.IconColor = System.Drawing.SystemColors.ButtonHighlight;
btnClose.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnClose.IconSize = 20;
btnClose.Location = new System.Drawing.Point(675, 2);
btnClose.Margin = new System.Windows.Forms.Padding(0);
btnClose.Name = "btnClose";
btnClose.Rotation = 0D;
btnClose.Size = new System.Drawing.Size(25, 25);
btnClose.TabIndex = 0;
btnClose.UseVisualStyleBackColor = false;
btnClose.Click += btnClose_Click;
//
// label1
//
label1.AutoSize = true;
label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold);
label1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
label1.Location = new System.Drawing.Point(405, 20);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(152, 25);
label1.TabIndex = 4;
label1.Text = "Iniciar sesión";
//
// BtnLogin
//
BtnLogin.BackColor = System.Drawing.Color.FromArgb(40, 40, 40);
BtnLogin.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 28, 28);
BtnLogin.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(64, 64, 64);
BtnLogin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnLogin.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
BtnLogin.ForeColor = System.Drawing.Color.LightGray;
BtnLogin.Location = new System.Drawing.Point(310, 230);
BtnLogin.Name = "BtnLogin";
BtnLogin.Size = new System.Drawing.Size(330, 40);
BtnLogin.TabIndex = 5;
BtnLogin.Text = "ENTRAR";
BtnLogin.UseVisualStyleBackColor = false;
BtnLogin.Click += BtnLogin_Click;
//
// BtnMinimizar
//
BtnMinimizar.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
BtnMinimizar.FlatAppearance.BorderSize = 0;
BtnMinimizar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnMinimizar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnMinimizar.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
BtnMinimizar.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
BtnMinimizar.IconColor = System.Drawing.SystemColors.ButtonHighlight;
BtnMinimizar.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnMinimizar.IconSize = 20;
BtnMinimizar.Location = new System.Drawing.Point(645, 2);
BtnMinimizar.Margin = new System.Windows.Forms.Padding(0);
BtnMinimizar.Name = "BtnMinimizar";
BtnMinimizar.Rotation = 0D;
BtnMinimizar.Size = new System.Drawing.Size(25, 25);
BtnMinimizar.TabIndex = 0;
BtnMinimizar.UseVisualStyleBackColor = false;
BtnMinimizar.Click += btnMinimizar;
//
// label3
//
label3.AutoSize = true;
label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold);
label3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
label3.Location = new System.Drawing.Point(420, 285);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(114, 15);
label3.TabIndex = 4;
label3.Text = "BY ADSISTEMAS";
//
// panel2
//
panel2.BackColor = System.Drawing.SystemColors.Window;
panel2.Location = new System.Drawing.Point(340, 90);
panel2.Name = "panel2";
panel2.Size = new System.Drawing.Size(5, 25);
panel2.TabIndex = 6;
//
// panel3
//
panel3.BackColor = System.Drawing.SystemColors.Window;
panel3.Location = new System.Drawing.Point(340, 145);
panel3.Name = "panel3";
panel3.Size = new System.Drawing.Size(5, 25);
panel3.TabIndex = 7;
//
// BtnMostrarPass
//
BtnMostrarPass.BackColor = System.Drawing.Color.FromArgb(15, 15, 15);
BtnMostrarPass.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
BtnMostrarPass.IconChar = FontAwesome.Sharp.IconChar.EyeSlash;
BtnMostrarPass.IconColor = System.Drawing.SystemColors.ButtonHighlight;
BtnMostrarPass.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnMostrarPass.IconSize = 25;
BtnMostrarPass.Location = new System.Drawing.Point(645, 145);
BtnMostrarPass.Name = "BtnMostrarPass";
BtnMostrarPass.Size = new System.Drawing.Size(31, 25);
BtnMostrarPass.TabIndex = 8;
BtnMostrarPass.TabStop = false;
BtnMostrarPass.Click += BtnMostrarPass_Click;
//
// Loader
//
Loader.BackColor = System.Drawing.Color.FromArgb(15, 15, 15);
Loader.Image = Properties.Resources.Loader;
Loader.Location = new System.Drawing.Point(443, 176);
Loader.Name = "Loader";
Loader.Size = new System.Drawing.Size(61, 48);
Loader.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
Loader.TabIndex = 9;
Loader.TabStop = false;
//
// FrmLogin
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(15, 15, 15);
ClientSize = new System.Drawing.Size(700, 310);
Controls.Add(Loader);
Controls.Add(BtnMostrarPass);
Controls.Add(panel3);
Controls.Add(panel2);
Controls.Add(label3);
Controls.Add(BtnMinimizar);
Controls.Add(BtnLogin);
Controls.Add(label1);
Controls.Add(btnClose);
Controls.Add(TxtPassword);
Controls.Add(PbiPassword);
Controls.Add(PBiUsuario);
Controls.Add(TxtUsuario);
Controls.Add(panel1);
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
Name = "FrmLogin";
Opacity = 0.9D;
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
Text = "Login";
Load += WFLogin_Load;
MouseDown += WFLogin_MouseDown;
panel1.ResumeLayout(false);
panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)PbxLogo).EndInit();
((System.ComponentModel.ISupportInitialize)PBiUsuario).EndInit();
((System.ComponentModel.ISupportInitialize)PbiPassword).EndInit();
((System.ComponentModel.ISupportInitialize)BtnMostrarPass).EndInit();
((System.ComponentModel.ISupportInitialize)Loader).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.PictureBox PbxLogo;
private System.Windows.Forms.TextBox TxtUsuario;
private FontAwesome.Sharp.IconPictureBox PBiUsuario;
private FontAwesome.Sharp.IconPictureBox PbiPassword;
private System.Windows.Forms.TextBox TxtPassword;
private FontAwesome.Sharp.IconButton btnClose;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button BtnLogin;
private FontAwesome.Sharp.IconButton BtnMinimizar;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private FontAwesome.Sharp.IconPictureBox BtnMostrarCaracteres;
private FontAwesome.Sharp.IconPictureBox BtnMostrarPass;
private System.Windows.Forms.PictureBox Loader;
private System.Windows.Forms.Label label2;
}
}

View File

@@ -0,0 +1,380 @@
using ADSUtileriasWF.Helpers;
using DocumentFormat.OpenXml.Wordprocessing;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.ServiceProcess;
using System.Text;
using System.Windows.Forms;
using WCF_PV;
using static ADSUtileriasWF.Helpers.ModVarsPV;
namespace ADSUtileriasWF.Views.Gral
{
public partial class FrmLogin : FormBase
{
public FrmLogin()
{
InitializeComponent();
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
//this.PnlLoader.BackColor = System.Drawing.Color.FromArgb(25, System.Drawing.Color.Black);
//this.SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor, true);
}
private void btnClose_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void btnMinimizar(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
#region "mover /arrastrar formulario"
[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]
private extern static void ReleaseCapture();
[DllImport("user32.DLL", EntryPoint = "SendMessage")]
private extern static void SendMessage(System.IntPtr hwnd, int wmsg, int wparam, int lparam);
private void WFLogin_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(this.Handle, 0x112, 0xf012, 0);
}
#endregion
protected void Login()
{
BtnLogin.Invoke((MethodInvoker)delegate
{
Loader.Visible = true;
TxtUsuario.Enabled = false;
TxtPassword.Enabled = false;
BtnLogin.Enabled = false;
});
if (moduloActivo == ModuloActivo.Checador)
{
bool continuar = true;
string msgboxstring = "";
string usuario = TxtUsuario.Text;
string password = TxtPassword.Text;
if (usuario.Trim().Length == 0)
{
msgboxstring = string.Format("{0}El campo 'Usuario' es necesario\r\n", msgboxstring);
continuar = false;
}
if (password.Trim().Length == 0)
{
msgboxstring = string.Format("{0}El campo 'Password' es necesario\r\n", msgboxstring);
continuar = false;
}
if (continuar)
{
UtileriasServiceWCF.ResponseLogin respuesta = null;
try
{
respuesta = Servicecon.Login(usuario, password, -1);
if (respuesta != null)
{
BtnLogin.Invoke((MethodInvoker)delegate
{
ModVarsPV.UserV2 = respuesta;
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
//var tuiene= ModVarsPV.TieneProceso(respuesta, 1000);
});
}
else
{
continuar = false;
msgboxstring = string.Format("{0}Usuario o contraseña incorrectos\r\n", msgboxstring);
}
continuar = true;
}
catch (Exception ex)
{
GuardaLog(string.Format("{0}Ocurrió un error al validar el usuario\r\n{1}", msgboxstring, ex));
msgboxstring = string.Format("{0}Ocurrió un error al validar el usuario\r\n", msgboxstring);
continuar = false;
}
}
BtnLogin.Invoke((MethodInvoker)delegate
{
ModExtensiones.Alert(msgboxstring, "Login");
});
}
if (moduloActivo == ModuloActivo.PuntoVenta)
{
var proxy = new PuntoVentaClient(EndPointName, string.Format("{0}Clase", RutaWCF));
try
{
UsuarioActual = proxy.ValidarUsuario(TxtUsuario.Text, TxtPassword.Text);
proxy = null;
if (UsuarioActual != null && UsuarioActual.CveUsuario > 0)
{
BtnLogin.Invoke((MethodInvoker)delegate
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
});
}
else
{
if (UsuarioActual != null)
{
ModExtensiones.Alert(UsuarioActual.Nombre, "Login");
}
else
{
ModExtensiones.Alert("Usuario o contraseña incorrecto (2)", "Login");
}
}
}
catch (Exception ex)
{
var msgboxstring = "Error al identificarse.";
GuardaLog($"{msgboxstring} {ex.Message} {ex.StackTrace}");
ModExtensiones.Alert(msgboxstring, "Login");
}
}
BtnLogin.Invoke((MethodInvoker)delegate
{
BtnLogin.Enabled = true;
TxtUsuario.Enabled = true;
TxtPassword.Enabled = true;
Loader.Visible = false;
});
}
private void BtnLogin_Click(object sender, EventArgs e)
{
//Login();
System.Threading.ThreadStart threadStart = new System.Threading.ThreadStart(Login);
System.Threading.Thread thread = new System.Threading.Thread(threadStart);
thread.SetApartmentState(System.Threading.ApartmentState.STA);
thread.Start();
}
private void TxtUsuario_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
{
System.Threading.ThreadStart threadStart = new System.Threading.ThreadStart(Login);
System.Threading.Thread thread = new System.Threading.Thread(threadStart);
thread.SetApartmentState(System.Threading.ApartmentState.STA);
thread.Start();
break;
}
}
}
protected void Iniciarservicio()
{
BtnLogin.Invoke((MethodInvoker)delegate
{
BtnLogin.Enabled = false;
TxtUsuario.Enabled = false;
TxtPassword.Enabled = false;
Loader.Visible = true;
});
try
{
const string utilservicename = "ADSUtileriasAPP";
var utilservice = ServiceController.GetServices().FirstOrDefault(s => s.ServiceName == utilservicename);
bool isstoped = true;
if (utilservice == null)
{
string filePath = $"{GetParentUriString(AppDomain.CurrentDomain.BaseDirectory)}Service/ADSUtileriasService.exe".Replace("/", "\\");
System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFrom(filePath);
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = $"\"C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\installutil.exe\" \"{filePath}\"";
startInfo.Verb = "runas";
startInfo.RedirectStandardInput = true;
startInfo.RedirectStandardOutput = true;
startInfo.CreateNoWindow = true;
process.StartInfo = startInfo;
process.Start();
process.StandardInput.WriteLine(startInfo.Arguments);
process.StandardInput.Flush();
process.StandardInput.Close();
process.WaitForExit();
}
else
{
isstoped = (utilservice.Status == ServiceControllerStatus.Stopped);
}
if (isstoped)
{
string filePath = $"{GetParentUriString(AppDomain.CurrentDomain.BaseDirectory)}Service/ADSUtileriasService.exe".Replace("/", "\\");
System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFrom(filePath);
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = $"net start {utilservicename}";
startInfo.Verb = "runas";
startInfo.RedirectStandardInput = true;
startInfo.RedirectStandardOutput = true;
startInfo.CreateNoWindow = true;
process.StartInfo = startInfo;
process.Start();
process.StandardInput.WriteLine(startInfo.Arguments);
process.StandardInput.Flush();
process.StandardInput.Close();
process.WaitForExit();
}
}
catch (Exception e)
{
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
BtnLogin.Invoke((MethodInvoker)delegate
{
ModExtensiones.Alert("Ocurrió un error al iniciar el servicio ", "Login");
});
}
BtnLogin.Invoke((MethodInvoker)delegate
{
BtnLogin.Enabled = true;
TxtUsuario.Enabled = true;
TxtPassword.Enabled = true;
Loader.Visible = false;
});
}
private void WFLogin_Load(object sender, EventArgs e)
{
System.Threading.ThreadStart threadStart = new System.Threading.ThreadStart(Iniciarservicio);
System.Threading.Thread thread = new System.Threading.Thread(threadStart);
thread.SetApartmentState(System.Threading.ApartmentState.STA);
thread.Start();
}
private void BtnMostrarPass_Click(object sender, EventArgs e)
{
this.TxtPassword.UseSystemPasswordChar = !this.TxtPassword.UseSystemPasswordChar;
if (this.TxtPassword.UseSystemPasswordChar)
{
this.BtnMostrarPass.IconChar = FontAwesome.Sharp.IconChar.EyeSlash;
}
else
{
this.BtnMostrarPass.IconChar = FontAwesome.Sharp.IconChar.Eye;
}
}
#region "Instalar servicio"
private static string GetParentUriString(string filePath)
{
Uri uri = new Uri(filePath);
return System.Web.HttpUtility.UrlDecode(uri.AbsoluteUri.Remove(uri.AbsoluteUri.Length - uri.Segments[uri.Segments.Length - 1].Length - uri.Query.Length).Remove(0, 8));
}
/*
public static void InstallService(string serviceName, System.Reflection.Assembly assembly)
{
if (IsServiceInstalled(serviceName))
{
return;
}
using (AssemblyInstaller installer = GetInstaller(assembly))
{
IDictionary state = new Hashtable();
try
{
installer.Install(state);
installer.Commit(state);
}
catch
{
try
{
installer.Rollback(state);
}
catch { }
throw;
}
}
}
public static bool IsServiceInstalled(string serviceName)
{
using (ServiceController controller = new ServiceController(serviceName))
{
try
{
ServiceControllerStatus status = controller.Status;
}
catch
{
return false;
}
return true;
}
}
private static AssemblyInstaller GetInstaller(System.Reflection.Assembly assembly)
{
AssemblyInstaller installer = new AssemblyInstaller(assembly, null);
installer.UseNewContext = true;
return installer;
}
*/
#endregion
private void label2_Click(object sender, EventArgs e)
{
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,225 @@
namespace ADSUtileriasWF.Views.PV.ControlUser
{
partial class UscComanda
{
/// <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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.Panel1 = new System.Windows.Forms.Panel();
this.lblTiempoPedido = new System.Windows.Forms.Label();
this.lblHoraPedido = new System.Windows.Forms.Label();
this.lblMesero = new System.Windows.Forms.Label();
this.lblMesa = new System.Windows.Forms.Label();
this.Panel2 = new System.Windows.Forms.Panel();
this.lblOrden = new System.Windows.Forms.Label();
this.dgComanda = new System.Windows.Forms.DataGridView();
this.Pedido = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Cantidad = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.EstatusEntrega = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CveVentaDetalleTerminal = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Panel1.SuspendLayout();
this.Panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgComanda)).BeginInit();
this.SuspendLayout();
//
// Panel1
//
this.Panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Panel1.Controls.Add(this.lblTiempoPedido);
this.Panel1.Controls.Add(this.lblHoraPedido);
this.Panel1.Controls.Add(this.lblMesero);
this.Panel1.Controls.Add(this.lblMesa);
this.Panel1.Location = new System.Drawing.Point(1, 1);
this.Panel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Panel1.Name = "Panel1";
this.Panel1.Size = new System.Drawing.Size(256, 69);
this.Panel1.TabIndex = 0;
//
// lblTiempoPedido
//
this.lblTiempoPedido.AutoSize = true;
this.lblTiempoPedido.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblTiempoPedido.Location = new System.Drawing.Point(97, 37);
this.lblTiempoPedido.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblTiempoPedido.Name = "lblTiempoPedido";
this.lblTiempoPedido.Size = new System.Drawing.Size(91, 16);
this.lblTiempoPedido.TabIndex = 5;
this.lblTiempoPedido.Text = "HoraPedido";
//
// lblHoraPedido
//
this.lblHoraPedido.AutoSize = true;
this.lblHoraPedido.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblHoraPedido.Location = new System.Drawing.Point(4, 37);
this.lblHoraPedido.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblHoraPedido.Name = "lblHoraPedido";
this.lblHoraPedido.Size = new System.Drawing.Size(73, 16);
this.lblHoraPedido.TabIndex = 4;
this.lblHoraPedido.Text = "(22:19:32)";
//
// lblMesero
//
this.lblMesero.AutoSize = true;
this.lblMesero.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblMesero.Location = new System.Drawing.Point(117, 7);
this.lblMesero.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblMesero.Name = "lblMesero";
this.lblMesero.Size = new System.Drawing.Size(65, 18);
this.lblMesero.TabIndex = 3;
this.lblMesero.Text = "Mesero";
//
// lblMesa
//
this.lblMesa.AutoSize = true;
this.lblMesa.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblMesa.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.lblMesa.Location = new System.Drawing.Point(4, 7);
this.lblMesa.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblMesa.Name = "lblMesa";
this.lblMesa.Size = new System.Drawing.Size(54, 18);
this.lblMesa.TabIndex = 2;
this.lblMesa.Text = "Mesa:";
//
// Panel2
//
this.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Panel2.Controls.Add(this.lblOrden);
this.Panel2.Location = new System.Drawing.Point(262, 1);
this.Panel2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Panel2.Name = "Panel2";
this.Panel2.Size = new System.Drawing.Size(70, 69);
this.Panel2.TabIndex = 1;
//
// lblOrden
//
this.lblOrden.AutoSize = true;
this.lblOrden.Dock = System.Windows.Forms.DockStyle.Right;
this.lblOrden.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblOrden.Location = new System.Drawing.Point(25, 0);
this.lblOrden.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblOrden.Name = "lblOrden";
this.lblOrden.Size = new System.Drawing.Size(43, 46);
this.lblOrden.TabIndex = 2;
this.lblOrden.Text = "1";
//
// dgComanda
//
this.dgComanda.AllowUserToAddRows = false;
this.dgComanda.AllowUserToDeleteRows = false;
this.dgComanda.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgComanda.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgComanda.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Pedido,
this.Cantidad,
this.EstatusEntrega,
this.CveVentaDetalleTerminal});
this.dgComanda.Location = new System.Drawing.Point(1, 75);
this.dgComanda.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.dgComanda.Name = "dgComanda";
this.dgComanda.ReadOnly = true;
this.dgComanda.RowHeadersVisible = false;
this.dgComanda.Size = new System.Drawing.Size(331, 380);
this.dgComanda.TabIndex = 2;
this.dgComanda.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgComanda_CellClick);
//
// Pedido
//
this.Pedido.DataPropertyName = "PSConCaracteristicas";
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.Pedido.DefaultCellStyle = dataGridViewCellStyle1;
this.Pedido.FillWeight = 142.132F;
this.Pedido.HeaderText = "Pedido";
this.Pedido.Name = "Pedido";
this.Pedido.ReadOnly = true;
//
// Cantidad
//
this.Cantidad.DataPropertyName = "Cantidad";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle2.Format = "N";
this.Cantidad.DefaultCellStyle = dataGridViewCellStyle2;
this.Cantidad.FillWeight = 57.86803F;
this.Cantidad.HeaderText = "Cant.";
this.Cantidad.Name = "Cantidad";
this.Cantidad.ReadOnly = true;
//
// EstatusEntrega
//
this.EstatusEntrega.DataPropertyName = "EstatusEntrega";
this.EstatusEntrega.HeaderText = "EstatusEntrega";
this.EstatusEntrega.Name = "EstatusEntrega";
this.EstatusEntrega.ReadOnly = true;
this.EstatusEntrega.Visible = false;
//
// CveVentaDetalleTerminal
//
this.CveVentaDetalleTerminal.DataPropertyName = "CveVentaDetalleTerminal";
this.CveVentaDetalleTerminal.HeaderText = "CveVentaDetalleTerminal";
this.CveVentaDetalleTerminal.Name = "CveVentaDetalleTerminal";
this.CveVentaDetalleTerminal.ReadOnly = true;
this.CveVentaDetalleTerminal.Visible = false;
//
// UscComanda
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.dgComanda);
this.Controls.Add(this.Panel2);
this.Controls.Add(this.Panel1);
this.Margin = new System.Windows.Forms.Padding(1);
this.Name = "UscComanda";
this.Size = new System.Drawing.Size(332, 455);
this.Load += new System.EventHandler(this.controlComanda_Load);
this.Panel1.ResumeLayout(false);
this.Panel1.PerformLayout();
this.Panel2.ResumeLayout(false);
this.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgComanda)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel Panel1;
private System.Windows.Forms.Label lblTiempoPedido;
private System.Windows.Forms.Label lblHoraPedido;
private System.Windows.Forms.Label lblMesero;
private System.Windows.Forms.Label lblMesa;
private System.Windows.Forms.Panel Panel2;
private System.Windows.Forms.Label lblOrden;
private System.Windows.Forms.DataGridView dgComanda;
private System.Windows.Forms.DataGridViewTextBoxColumn Pedido;
private System.Windows.Forms.DataGridViewTextBoxColumn Cantidad;
private System.Windows.Forms.DataGridViewTextBoxColumn EstatusEntrega;
private System.Windows.Forms.DataGridViewTextBoxColumn CveVentaDetalleTerminal;
}
}

View File

@@ -0,0 +1,145 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using ADSUtileriasWF.Data.Externa.PV;
using System.Linq;
using ADSUtileriasWF.Helpers;
namespace ADSUtileriasWF.Views.PV.ControlUser
{
public partial class UscComanda : UserControl
{
public UscComanda()
{
InitializeComponent();
}
private void controlComanda_Load(object sender, EventArgs e)
{
SetUpEventHandler();
// Me.Visible = False
dgComanda.AutoGenerateColumns = false;
// dgComanda.AutoResizeRow(0, DataGridViewAutoSizeRowMode.AllCellsExceptHeader)
}
public void CargaComanda(int CveVentaTerminal, int CveCategoria)
{
var SS = new Stopwatch();
SS.Start();
var objVenta = new ClsVentas();
if (objVenta.GetVentasDetalle(CveVentaTerminal, WCF_PV.ClsVentasEstatusEntrega.Todas))
{
if (objVenta.DtResultados.Tabla.Rows.Count > 0)
{
dgComanda.DataSource = objVenta.DtResultados.Tabla.FiltraParametros("EstatusEntrega in (1, 2) and EsPromocion = 0 and CveCategoria = " + CveCategoria.ToString());
lblOrden.Text = objVenta.DtResultados.Tabla.Rows[0]["ComandaOrden"].ToString();
foreach (DataGridViewRow Row in dgComanda.Rows)
{
switch (Row.Cells["EstatusEntrega"].Value)
{
case WCF_PV.ClsVentasEstatusEntrega.Solicitado:
{
Row.DefaultCellStyle.BackColor = Color.White;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.EnProceso:
{
Row.DefaultCellStyle.BackColor = Color.LightGreen;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.Preparado:
{
Row.DefaultCellStyle.BackColor = Color.Orange;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.Entregado:
{
Row.DefaultCellStyle.BackColor = Color.Yellow;
break;
}
}
}
if (objVenta.GetVentas(CveVentaTerminal, -1, -1, "-1", -1, -1, ModVarsPV.UsuarioActual.CveEmpresa, EstatusVentaTerminal.Todas))
{
if (objVenta.CveVentaTerminal > 0)
{
lblMesa.Text = objVenta.Mesa;
lblMesero.Text = objVenta.Vendedor;
lblHoraPedido.Text = objVenta.FechaApertura.ToString("HH:mm:ss");
lblTiempoPedido.Text = string.Format("{0} Minutos",(DateTime.Now -objVenta.FechaApertura).TotalMinutes); //DateDiff(DateInterval.Minute, objVenta.FechaApertura, DateAndTime.Now).ToEntero
}
}
}
}
objVenta.Dispose();
SS.Stop();
// MessageBox.Show(SS.ElapsedMilliseconds)
this.Visible = true;
}
private int GetDataGridViewHeight(DataGridView dataGridView)
{
var sum = dataGridView.ColumnHeadersVisible ? dataGridView.ColumnHeadersHeight : 0 + dataGridView.Rows.OfType<DataGridViewRow>().Where(r => r.Visible).Sum(r => r.Height);
return sum;
}
private void dgComanda_CellClick(object sender, DataGridViewCellEventArgs e)
{
switch (dgComanda.Rows[e.RowIndex].Cells["EstatusEntrega"].Value)
{
case WCF_PV.ClsVentasEstatusEntrega.Solicitado:
{
dgComanda.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.LightGreen;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.EnProceso:
{
dgComanda.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Orange;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.Preparado:
{
dgComanda.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Yellow;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.Entregado:
{
dgComanda.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
break;
}
}
EnSeleccion?.Invoke(dgComanda.Rows[e.RowIndex].Cells["CveVentaDetalleTerminal"].Value.ToString().ToEntero());
}
public event EnSeleccionEventHandler EnSeleccion;
public delegate void EnSeleccionEventHandler(int CveVentaDetalleTerminal);
public void HandleEnSeleccion(int CveVentaDetalleTerminal)
{
// Perform desired processing for when time has expired.
// MsgBox("HandleTimeExpired caught the TimeExpired event" & _
// vbCrLf & "Status = " & Status)
}
public void SetUpEventHandler()
{
EnSeleccion += HandleEnSeleccion;
}
}
}

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,163 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using ADSUtileriasWF.PV.Views;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Views.PV
{
static class PVLogic
{
public static bool loadPV()
{
bool retorno = true;
if (!cargaconfiguracion())
{
retorno = false;
}
CargaClientePublicoGeneral();
if (ModVarsPV.CveTipoTerminal > 1)
{
{
var objEmpresa = new ClsEmpresas();
var objSucursales = new ClsSucursales();
if (objEmpresa.GetEmpresas())
{
ModVarsPV.UsuarioActual = new WCF_PV.Usuario();
ModVarsPV.UsuarioActual.Empresa = new WCF_PV.Empresa();
ModVarsPV.UsuarioActual.CveEmpresa = objEmpresa.DtResultados.Tabla.Rows[0]["CveEmpresa"].ToString().ToEntero();
ModVarsPV.UsuarioActual.Empresa.cveEmpresaField = objEmpresa.DtResultados.Tabla.Rows[0]["CveEmpresa"].ToString().ToEntero();
ModVarsPV.UsuarioActual.Empresa.empresa1Field = objEmpresa.DtResultados.Tabla.Rows[0]["Empresa"].ToString();
if (objSucursales.GetSucursales())
{
ModVarsPV.UsuarioActual.CveSucursal = objSucursales.DtResultados.Tabla.Rows[0]["CveSucursal"].ToString().ToEntero();
ModVarsPV.UsuarioActual.Sucursal = objSucursales.DtResultados.Tabla.Rows[0]["Sucursal"].ToString();
}
//if (ModVarsPV.UsuarioActual.Empresa is object)
//{
// lblUsuario.Text = UsuarioActual.UsuarioMember;
// lblRol.Text = UsuarioActual.Rol;
// lblEmpresa.Text = UsuarioActual.Empresa.empresa1Field;
// lblSucursal.Text = UsuarioActual.Sucursal;
//}
//var frm = new frmComandas(TipoTerminal.Split("_")(0), TipoTerminal.Split("_")(1));
//frm.MdiParent = this;
//frm.Show();
}
objEmpresa.Dispose();
}
}
else
{
//FIXME();
if (retorno && !IniciarSession())
{
retorno = false;
}
}
if (ModVarsPV.CveTipoTerminal <= 1)
{
if (retorno && !cargaTurno())
{
retorno = false;
}
}
return retorno;
}
//static private void FIXME()
//{
// ModVarsPV.UsuarioActual = new WCF_PV.Usuario();
// ModVarsPV.UsuarioActual.Nombre = "USR";
// ModVarsPV.UsuarioActual.CveEmpresa = 1;
// ModVarsPV.UsuarioActual.CveUsuario = 100;
// ModVarsPV.UsuarioActual.CveSucursal = 10430;
// ModVarsPV.UsuarioActual.Empresa = new WCF_PV.Empresa();
// ModVarsPV.UsuarioActual.Empresa.empresa1Field = "Demo";
//}
private static bool cargaconfiguracion()
{
bool retorno = FrmConfiguracionInicial.ValidaConfiguracion();
if (!retorno)
{
FrmConfiguracionInicial frmconfini = new FrmConfiguracionInicial(true);
DialogResult respuesta = frmconfini.ShowDialog();
retorno = respuesta == DialogResult.OK;
}
return retorno;
}
private static bool IniciarSession()
{
bool retorno = false;
Gral.FrmLogin frmlogin = new Gral.FrmLogin();
DialogResult respuesta = frmlogin.ShowDialog();
retorno = respuesta == DialogResult.OK;
return retorno;
}
private static bool cargaTurno()
{
bool retorno = false;
var objCorteTurno = new ClsVta_Cortes();
if (objCorteTurno.GetVta_Cortes(-1, "-1", "-1", ModVarsPV.UsuarioActual.CveUsuario, 0))
{
if (objCorteTurno.DtResultados.Tabla.Rows.Count > 0)
{
DataRow drow = objCorteTurno.DtResultados.Tabla.Rows[0];
ModVarsPV.CorteActual = new ClsVta_Cortes.ClsVta_CortesModel(drow);
retorno = true;
}
else
{
// Ingresar un nuevo Turno
FrmIniciaTurno frmInicioTurno = new FrmIniciaTurno();
retorno = frmInicioTurno.ShowDialog() == DialogResult.OK;
}
}
return retorno;
}
public static bool CargaClientePublicoGeneral()
{
bool retorno = false;
using (ClsClientes objClientes = new ClsClientes())
{
if (objClientes.GetClientes("XAXX010101000"))
{
if (objClientes.DtResultados.Tabla.Rows.Count > 0)
{
ModVarsPV.CveClientePG = objClientes.DtResultados.Tabla.Rows[0]["CveCliente"].ToString().ToEntero();
ModVarsPV.IVAClientePG = objClientes.DtResultados.Tabla.Rows[0]["IVA"].ToString().ToDecimal();
retorno = true;
}
else
{
ModExtensiones.OnError("No se cuenta con el Cliente Publico en General con el RFC XAXX010101000", "Informacion", new Exception(), MessageBoxIcon.Information);
}
}
}
return retorno;
}
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace ADSUtileriasWF.Views.PV.Utils
{
struct PVColors
{
public static Color PnlMenuLateral = Color.FromArgb(54, 65, 80);//#364150
public static Color TxtMenuLateral = Color.FromArgb(180, 188, 200);//#364150
}
//private struct RGBColors
//{
// public static Color color1 = Color.FromArgb(172, 126, 241);
// public static Color color2 = Color.FromArgb(249, 118, 176);
// public static Color color3 = Color.FromArgb(253, 138, 114);
// public static Color color4 = Color.FromArgb(95, 77, 221);
// public static Color color5 = Color.FromArgb(249, 88, 155);
// public static Color color6 = Color.FromArgb(24, 161, 251);
//}
}

View File

@@ -0,0 +1,202 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmBitacora
{
/// <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 Windows Form 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.LblTitulo = new System.Windows.Forms.Label();
this.Btnok = new System.Windows.Forms.Button();
this.TxtObservacion = new System.Windows.Forms.TextBox();
this.BtnCancel = new System.Windows.Forms.Button();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.panel1 = new System.Windows.Forms.Panel();
this.LblFrmTitulo = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// LblTitulo
//
this.LblTitulo.AutoSize = true;
this.LblTitulo.Location = new System.Drawing.Point(17, 43);
this.LblTitulo.Name = "LblTitulo";
this.LblTitulo.Size = new System.Drawing.Size(138, 15);
this.LblTitulo.TabIndex = 8;
this.LblTitulo.Text = "Indique una Justificación";
this.LblTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// Btnok
//
this.Btnok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.Btnok.Location = new System.Drawing.Point(227, 192);
this.Btnok.Name = "Btnok";
this.Btnok.Size = new System.Drawing.Size(94, 35);
this.Btnok.TabIndex = 6;
this.Btnok.Text = "OK";
this.Btnok.UseVisualStyleBackColor = true;
this.Btnok.Click += new System.EventHandler(this.BtnOK_Click);
//
// TxtObservacion
//
this.TxtObservacion.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtObservacion.Location = new System.Drawing.Point(17, 89);
this.TxtObservacion.Multiline = true;
this.TxtObservacion.Name = "TxtObservacion";
this.TxtObservacion.Size = new System.Drawing.Size(406, 91);
this.TxtObservacion.TabIndex = 5;
//
// BtnCancel
//
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.BtnCancel.Location = new System.Drawing.Point(327, 192);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(94, 35);
this.BtnCancel.TabIndex = 7;
this.BtnCancel.Text = "Cancel";
this.BtnCancel.UseVisualStyleBackColor = true;
this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// BtnMinimize
//
this.BtnMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMinimize.FlatAppearance.BorderSize = 0;
this.BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
this.BtnMinimize.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMinimize.IconSize = 20;
this.BtnMinimize.Location = new System.Drawing.Point(343, 1);
this.BtnMinimize.Name = "BtnMinimize";
this.BtnMinimize.Rotation = 0D;
this.BtnMinimize.Size = new System.Drawing.Size(30, 28);
this.BtnMinimize.TabIndex = 0;
this.BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMinimize.UseVisualStyleBackColor = true;
this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click_1);
//
// BtnMaximizeRestore
//
this.BtnMaximizeRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
this.BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
this.BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMaximizeRestore.IconSize = 20;
this.BtnMaximizeRestore.Location = new System.Drawing.Point(373, 1);
this.BtnMaximizeRestore.Name = "BtnMaximizeRestore";
this.BtnMaximizeRestore.Rotation = 0D;
this.BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
this.BtnMaximizeRestore.TabIndex = 0;
this.BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMaximizeRestore.UseVisualStyleBackColor = true;
this.BtnMaximizeRestore.Click += new System.EventHandler(this.BtnMaximizeRestore_Click_1);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.FlatAppearance.BorderSize = 0;
this.BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
this.BtnClose.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnClose.IconSize = 20;
this.BtnClose.Location = new System.Drawing.Point(403, 1);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Rotation = 0D;
this.BtnClose.Size = new System.Drawing.Size(30, 28);
this.BtnClose.TabIndex = 0;
this.BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.panel1.Controls.Add(this.LblFrmTitulo);
this.panel1.Controls.Add(this.BtnMinimize);
this.panel1.Controls.Add(this.BtnMaximizeRestore);
this.panel1.Controls.Add(this.BtnClose);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(434, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// LblFrmTitulo
//
this.LblFrmTitulo.AutoSize = true;
this.LblFrmTitulo.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.LblFrmTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.LblFrmTitulo.Location = new System.Drawing.Point(15, 5);
this.LblFrmTitulo.Name = "LblFrmTitulo";
this.LblFrmTitulo.Size = new System.Drawing.Size(81, 22);
this.LblFrmTitulo.TabIndex = 1;
this.LblFrmTitulo.Text = "Bitácora";
//
// FrmBitacora
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(434, 244);
this.ControlBox = false;
this.Controls.Add(this.panel1);
this.Controls.Add(this.BtnCancel);
this.Controls.Add(this.TxtObservacion);
this.Controls.Add(this.Btnok);
this.Controls.Add(this.LblTitulo);
this.MinimumSize = new System.Drawing.Size(450, 225);
this.Name = "FrmBitacora";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label LblTitulo;
private System.Windows.Forms.Button Btnok;
private System.Windows.Forms.TextBox TxtObservacion;
private System.Windows.Forms.Button BtnCancel;
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel panel1;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label LblFrmTitulo;
}
}

View File

@@ -0,0 +1,56 @@
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmBitacora : FormBase
{
public string ObservacionesBitacora
{
get
{
return ObservacionesBitacora_;
}
}
private string ObservacionesBitacora_;
public FrmBitacora()
{
InitializeComponent();
}
private void BtnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
this.Close();
}
private void BtnOK_Click(object sender, EventArgs e)
{
ObservacionesBitacora_ = TxtObservacion.Text;
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.Close();
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click( sender, e);
}
}
}

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,424 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmBuscarCliente
{
/// <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 Windows Form 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.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtTelefono = new System.Windows.Forms.TextBox();
this.txtNombreCorto = new System.Windows.Forms.TextBox();
this.txtNombre = new System.Windows.Forms.TextBox();
this.txtRFC = new System.Windows.Forms.TextBox();
this.txtCodigo = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.gvClientes = new System.Windows.Forms.DataGridView();
this.CveCliente = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Nombre = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RFC = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Direccion = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Ciudad = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Mail = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnBuscar = new FontAwesome.Sharp.IconButton();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.panel1 = new System.Windows.Forms.Panel();
this.label6 = new System.Windows.Forms.Label();
this.BtnAceptar = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gvClientes)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.txtTelefono);
this.groupBox1.Controls.Add(this.txtNombreCorto);
this.groupBox1.Controls.Add(this.txtNombre);
this.groupBox1.Controls.Add(this.txtRFC);
this.groupBox1.Controls.Add(this.txtCodigo);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(15, 45);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(799, 133);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Filtros para Busqueda";
//
// txtTelefono
//
this.txtTelefono.Location = new System.Drawing.Point(620, 88);
this.txtTelefono.Name = "txtTelefono";
this.txtTelefono.Size = new System.Drawing.Size(160, 23);
this.txtTelefono.TabIndex = 8;
//
// txtNombreCorto
//
this.txtNombreCorto.Location = new System.Drawing.Point(620, 58);
this.txtNombreCorto.Name = "txtNombreCorto";
this.txtNombreCorto.Size = new System.Drawing.Size(160, 23);
this.txtNombreCorto.TabIndex = 6;
//
// txtNombre
//
this.txtNombre.Location = new System.Drawing.Point(140, 28);
this.txtNombre.Name = "txtNombre";
this.txtNombre.Size = new System.Drawing.Size(639, 23);
this.txtNombre.TabIndex = 1;
//
// txtRFC
//
this.txtRFC.Location = new System.Drawing.Point(140, 58);
this.txtRFC.Name = "txtRFC";
this.txtRFC.Size = new System.Drawing.Size(331, 23);
this.txtRFC.TabIndex = 2;
//
// txtCodigo
//
this.txtCodigo.Location = new System.Drawing.Point(140, 88);
this.txtCodigo.Name = "txtCodigo";
this.txtCodigo.Size = new System.Drawing.Size(331, 23);
this.txtCodigo.TabIndex = 5;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(500, 90);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(55, 15);
this.label5.TabIndex = 9;
this.label5.Text = "Teléfono:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(500, 60);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(87, 15);
this.label4.TabIndex = 7;
this.label4.Text = "Nombre Corto:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(10, 90);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(49, 15);
this.label3.TabIndex = 4;
this.label3.Text = "Codigo:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(10, 60);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(31, 15);
this.label2.TabIndex = 3;
this.label2.Text = "RFC:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(10, 30);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(113, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Nombre del Cliente:";
//
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.gvClientes);
this.groupBox2.Location = new System.Drawing.Point(15, 193);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(938, 267);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Resultados";
//
// gvClientes
//
this.gvClientes.AllowUserToAddRows = false;
this.gvClientes.AllowUserToDeleteRows = false;
this.gvClientes.AllowUserToResizeColumns = false;
this.gvClientes.AllowUserToResizeRows = false;
this.gvClientes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.gvClientes.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.gvClientes.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gvClientes.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.CveCliente,
this.Nombre,
this.RFC,
this.Direccion,
this.Ciudad,
this.Mail});
this.gvClientes.Location = new System.Drawing.Point(3, 19);
this.gvClientes.Name = "gvClientes";
this.gvClientes.ReadOnly = true;
this.gvClientes.RowHeadersVisible = false;
this.gvClientes.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.gvClientes.Size = new System.Drawing.Size(932, 245);
this.gvClientes.TabIndex = 0;
this.gvClientes.Text = "dataGridView1";
this.gvClientes.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvClientes_CellClick);
this.gvClientes.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.gvClientes_CellMouseDoubleClick);
this.gvClientes.KeyUp += new System.Windows.Forms.KeyEventHandler(this.gvClientes_KeyUp);
//
// CveCliente
//
this.CveCliente.DataPropertyName = "CveCliente";
this.CveCliente.HeaderText = "CveCliente";
this.CveCliente.Name = "CveCliente";
this.CveCliente.ReadOnly = true;
this.CveCliente.Visible = false;
//
// Nombre
//
this.Nombre.DataPropertyName = "Nombre";
this.Nombre.FillWeight = 449.2386F;
this.Nombre.HeaderText = "Nombre";
this.Nombre.Name = "Nombre";
this.Nombre.ReadOnly = true;
//
// RFC
//
this.RFC.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.RFC.DataPropertyName = "RFC";
this.RFC.FillWeight = 12.69035F;
this.RFC.HeaderText = "RFC";
this.RFC.Name = "RFC";
this.RFC.ReadOnly = true;
this.RFC.Width = 120;
//
// Direccion
//
this.Direccion.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.Direccion.DataPropertyName = "Direccion";
this.Direccion.FillWeight = 12.69035F;
this.Direccion.HeaderText = "Direccion";
this.Direccion.Name = "Direccion";
this.Direccion.ReadOnly = true;
this.Direccion.Width = 150;
//
// Ciudad
//
this.Ciudad.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.Ciudad.DataPropertyName = "Ciudad";
this.Ciudad.FillWeight = 12.69035F;
this.Ciudad.HeaderText = "Ciudad";
this.Ciudad.Name = "Ciudad";
this.Ciudad.ReadOnly = true;
this.Ciudad.Width = 150;
//
// Mail
//
this.Mail.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.Mail.DataPropertyName = "Mail";
this.Mail.FillWeight = 12.69035F;
this.Mail.HeaderText = "Mail";
this.Mail.Name = "Mail";
this.Mail.ReadOnly = true;
this.Mail.Width = 150;
//
// btnBuscar
//
this.btnBuscar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBuscar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.btnBuscar.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnBuscar.IconChar = FontAwesome.Sharp.IconChar.Search;
this.btnBuscar.IconColor = System.Drawing.Color.Black;
this.btnBuscar.IconSize = 25;
this.btnBuscar.Location = new System.Drawing.Point(832, 73);
this.btnBuscar.Name = "btnBuscar";
this.btnBuscar.Rotation = 0D;
this.btnBuscar.Size = new System.Drawing.Size(121, 47);
this.btnBuscar.TabIndex = 11;
this.btnBuscar.Text = "Buscar";
this.btnBuscar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.btnBuscar.UseVisualStyleBackColor = true;
//
// BtnMinimize
//
this.BtnMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMinimize.FlatAppearance.BorderSize = 0;
this.BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
this.BtnMinimize.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMinimize.IconSize = 20;
this.BtnMinimize.Location = new System.Drawing.Point(873, 1);
this.BtnMinimize.Name = "BtnMinimize";
this.BtnMinimize.Rotation = 0D;
this.BtnMinimize.Size = new System.Drawing.Size(30, 28);
this.BtnMinimize.TabIndex = 0;
this.BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMinimize.UseVisualStyleBackColor = true;
this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click_1);
//
// BtnMaximizeRestore
//
this.BtnMaximizeRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
this.BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
this.BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMaximizeRestore.IconSize = 20;
this.BtnMaximizeRestore.Location = new System.Drawing.Point(903, 1);
this.BtnMaximizeRestore.Name = "BtnMaximizeRestore";
this.BtnMaximizeRestore.Rotation = 0D;
this.BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
this.BtnMaximizeRestore.TabIndex = 0;
this.BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMaximizeRestore.UseVisualStyleBackColor = true;
this.BtnMaximizeRestore.Click += new System.EventHandler(this.BtnMaximizeRestore_Click_1);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.FlatAppearance.BorderSize = 0;
this.BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
this.BtnClose.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnClose.IconSize = 20;
this.BtnClose.Location = new System.Drawing.Point(933, 1);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Rotation = 0D;
this.BtnClose.Size = new System.Drawing.Size(30, 28);
this.BtnClose.TabIndex = 0;
this.BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.BtnMinimize);
this.panel1.Controls.Add(this.BtnMaximizeRestore);
this.panel1.Controls.Add(this.BtnClose);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(964, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.label6.Location = new System.Drawing.Point(15, 5);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(130, 22);
this.label6.TabIndex = 1;
this.label6.Text = "Buscar cliente";
//
// BtnAceptar
//
this.BtnAceptar.Enabled = false;
this.BtnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAceptar.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnAceptar.Location = new System.Drawing.Point(832, 466);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(118, 42);
this.BtnAceptar.TabIndex = 12;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// FrmBuscarCliente
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(964, 520);
this.ControlBox = false;
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.panel1);
this.Controls.Add(this.btnBuscar);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.MinimumSize = new System.Drawing.Size(980, 450);
this.Name = "FrmBuscarCliente";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gvClientes)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtTelefono;
private System.Windows.Forms.TextBox txtNombreCorto;
private System.Windows.Forms.TextBox txtNombre;
private System.Windows.Forms.TextBox txtRFC;
private System.Windows.Forms.TextBox txtCodigo;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DataGridView gvClientes;
private System.Windows.Forms.DataGridViewTextBoxColumn CveCliente;
private System.Windows.Forms.DataGridViewTextBoxColumn Nombre;
private System.Windows.Forms.DataGridViewTextBoxColumn RFC;
private System.Windows.Forms.DataGridViewTextBoxColumn Direccion;
private System.Windows.Forms.DataGridViewTextBoxColumn Ciudad;
private System.Windows.Forms.DataGridViewTextBoxColumn Mail;
private FontAwesome.Sharp.IconButton btnBuscar;
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton iconButton2;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel panel1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.Label label6;
}
}

View File

@@ -0,0 +1,95 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmBuscarCliente : FormBase
{
public FrmBuscarCliente()
{
InitializeComponent();
gvClientes.AutoGenerateColumns = false;
}
public int _cveCliente;
public string _nombre;
private void btnBuscar_Click(object sender, EventArgs e)
{
using (ClsClientes objClientes = new ClsClientes())
{
if (objClientes.GetClientes(-1, txtNombre.Text.Trim() == "" ? "-1" : txtNombre.Text.Trim(), txtCodigo.Text.Trim() == "" ? "-1" : txtCodigo.Text.Trim(), txtNombreCorto.Text.Trim() == "" ? "-1" : txtNombreCorto.Text, txtRFC.Text.Trim() == "" ? "-1" : txtRFC.Text.Trim(), txtTelefono.Text.Trim() == "" ? "-1" : txtTelefono.Text.Trim(), "-1", -1, ModVarsPV.UsuarioActual.CveEmpresa))
{
gvClientes.DataSource = objClientes.DtResultados.Tabla.FiltraParametros("RFC <> 'XAXX010101000'");
}
}
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
this.Close();
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click( sender, e);
}
private void gvClientes_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
{
_cveCliente = gvClientes.Rows[e.RowIndex].Cells["CveCliente"].ToString().ToEntero();
_nombre = gvClientes.Rows[e.RowIndex].Cells["Nombre"].Value.ToString();
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
private void gvClientes_CellClick(object sender, DataGridViewCellEventArgs e)
{
_cveCliente = gvClientes.Rows[e.RowIndex].Cells["CveCliente"].ToString().ToEntero();
_nombre = gvClientes.Rows[e.RowIndex].Cells["Nombre"].Value.ToString();
BtnAceptar.Enabled = true;
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
if (_cveCliente > 0)
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
}
private void gvClientes_KeyUp(object sender, KeyEventArgs e)
{
if (_cveCliente > 0)
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
else
{
ModExtensiones.Alert("Seleccione un cliente.", "Información");
}
}
}
}

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,257 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmBuscarProducto
{
/// <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 Windows Form 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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
BtnMinimize = new FontAwesome.Sharp.IconButton();
BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
BtnClose = new FontAwesome.Sharp.IconButton();
panel1 = new System.Windows.Forms.Panel();
label1 = new System.Windows.Forms.Label();
txtPS = new System.Windows.Forms.TextBox();
CvePS = new System.Windows.Forms.DataGridViewTextBoxColumn();
PS = new System.Windows.Forms.DataGridViewTextBoxColumn();
Precio = new System.Windows.Forms.DataGridViewTextBoxColumn();
PUOferta = new System.Windows.Forms.DataGridViewTextBoxColumn();
dgPS = new System.Windows.Forms.DataGridView();
BtnAceptar = new System.Windows.Forms.Button();
TimerBuscarProducto = new System.Windows.Forms.Timer(components);
panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dgPS).BeginInit();
SuspendLayout();
//
// BtnMinimize
//
BtnMinimize.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
BtnMinimize.FlatAppearance.BorderSize = 0;
BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
BtnMinimize.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnMinimize.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnMinimize.IconSize = 20;
BtnMinimize.Location = new System.Drawing.Point(688, 1);
BtnMinimize.Name = "BtnMinimize";
BtnMinimize.Rotation = 0D;
BtnMinimize.Size = new System.Drawing.Size(30, 28);
BtnMinimize.TabIndex = 0;
BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnMinimize.UseVisualStyleBackColor = true;
BtnMinimize.Click += BtnMinimize_Click_1;
//
// BtnMaximizeRestore
//
BtnMaximizeRestore.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnMaximizeRestore.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnMaximizeRestore.IconSize = 20;
BtnMaximizeRestore.Location = new System.Drawing.Point(718, 1);
BtnMaximizeRestore.Name = "BtnMaximizeRestore";
BtnMaximizeRestore.Rotation = 0D;
BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
BtnMaximizeRestore.TabIndex = 0;
BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnMaximizeRestore.UseVisualStyleBackColor = true;
BtnMaximizeRestore.Click += BtnMaximizeRestore_Click_1;
//
// BtnClose
//
BtnClose.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
BtnClose.FlatAppearance.BorderSize = 0;
BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
BtnClose.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnClose.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnClose.IconSize = 20;
BtnClose.Location = new System.Drawing.Point(748, 1);
BtnClose.Name = "BtnClose";
BtnClose.Rotation = 0D;
BtnClose.Size = new System.Drawing.Size(30, 28);
BtnClose.TabIndex = 0;
BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnClose.UseVisualStyleBackColor = true;
BtnClose.Click += BtnClose_Click_1;
//
// panel1
//
panel1.BackColor = System.Drawing.Color.FromArgb(43, 54, 67);
panel1.Controls.Add(label1);
panel1.Controls.Add(BtnMinimize);
panel1.Controls.Add(BtnMaximizeRestore);
panel1.Controls.Add(BtnClose);
panel1.Dock = System.Windows.Forms.DockStyle.Top;
panel1.Location = new System.Drawing.Point(0, 0);
panel1.Name = "panel1";
panel1.Size = new System.Drawing.Size(779, 30);
panel1.TabIndex = 1;
panel1.MouseDown += ArrastrarForm_MouseDown;
//
// label1
//
label1.AutoSize = true;
label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
label1.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
label1.Location = new System.Drawing.Point(15, 5);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(141, 20);
label1.TabIndex = 1;
label1.Text = "Buscar producto";
//
// txtPS
//
txtPS.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
txtPS.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtPS.Location = new System.Drawing.Point(10, 40);
txtPS.Name = "txtPS";
txtPS.Size = new System.Drawing.Size(759, 26);
txtPS.TabIndex = 1;
txtPS.KeyPress += txtPS_KeyPress;
//
// CvePS
//
CvePS.DataPropertyName = "CvePS";
CvePS.HeaderText = "CvePS";
CvePS.Name = "CvePS";
CvePS.Visible = false;
//
// PS
//
PS.DataPropertyName = "PS";
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
PS.DefaultCellStyle = dataGridViewCellStyle1;
PS.FillWeight = 162.6815F;
PS.HeaderText = "Producto o Servicio";
PS.Name = "PS";
PS.ReadOnly = true;
//
// Precio
//
Precio.DataPropertyName = "Precio";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle2.Format = "C";
Precio.DefaultCellStyle = dataGridViewCellStyle2;
Precio.FillWeight = 68.52792F;
Precio.HeaderText = "Precio Venta";
Precio.Name = "Precio";
Precio.ReadOnly = true;
//
// PUOferta
//
PUOferta.DataPropertyName = "PUOferta";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle3.Format = "C";
PUOferta.DefaultCellStyle = dataGridViewCellStyle3;
PUOferta.FillWeight = 68.79057F;
PUOferta.HeaderText = "Oferta";
PUOferta.Name = "PUOferta";
PUOferta.ReadOnly = true;
//
// dgPS
//
dgPS.AllowUserToAddRows = false;
dgPS.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
dgPS.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dgPS.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgPS.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { CvePS, PS, Precio, PUOferta });
dgPS.Location = new System.Drawing.Point(10, 80);
dgPS.Name = "dgPS";
dgPS.RowHeadersVisible = false;
dgPS.Size = new System.Drawing.Size(759, 388);
dgPS.TabIndex = 2;
dgPS.Text = "dgvPS";
dgPS.CellClick += dgPS_CellClick;
dgPS.CellDoubleClick += dgPS_CellDoubleClick;
dgPS.KeyDown += dgPS_KeyDown;
//
// BtnAceptar
//
BtnAceptar.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
BtnAceptar.Enabled = false;
BtnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnAceptar.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnAceptar.Location = new System.Drawing.Point(664, 485);
BtnAceptar.Name = "BtnAceptar";
BtnAceptar.Size = new System.Drawing.Size(103, 42);
BtnAceptar.TabIndex = 12;
BtnAceptar.Text = "Aceptar";
BtnAceptar.UseVisualStyleBackColor = true;
BtnAceptar.Click += BtnAceptar_Click;
//
// TimerBuscarProducto
//
TimerBuscarProducto.Tick += TimerBuscarProducto_Tick;
//
// FrmBuscarProducto
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(779, 533);
ControlBox = false;
Controls.Add(BtnAceptar);
Controls.Add(dgPS);
Controls.Add(txtPS);
Controls.Add(panel1);
Name = "FrmBuscarProducto";
ShowInTaskbar = false;
panel1.ResumeLayout(false);
panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)dgPS).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton iconButton2;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel panel1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.TextBox txtPS;
private System.Windows.Forms.DataGridViewTextBoxColumn CvePS;
private System.Windows.Forms.DataGridViewTextBoxColumn PS;
private System.Windows.Forms.DataGridViewTextBoxColumn Precio;
private System.Windows.Forms.DataGridViewTextBoxColumn PUOferta;
private System.Windows.Forms.DataGridView dgPS;
private System.Windows.Forms.Button BtnAceptar;
internal System.Windows.Forms.Timer TimerBuscarProducto;
private System.Windows.Forms.Label label1;
}
}

View File

@@ -0,0 +1,176 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmBuscarProducto : FormBase
{
public FrmBuscarProducto()
{
InitializeComponent();
dgPS.AutoGenerateColumns = false;
}
public int CvePSSeleccionado;
private DateTime Tiempo;
private DataTable tmpPS;
private void txtPS_KeyPress(object sender, KeyPressEventArgs e)
{
Tiempo = DateTime.Now;
switch (e.KeyChar)
{
case (char)Keys.Return:
{
Tiempo = DateTime.Now.AddSeconds(-5);
TimerBuscarProducto.Start();
break;
}
case (char)Keys.Escape:
{
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Close();
break;
}
default:
{
TimerBuscarProducto.Start();
break;
}
}
}
private void TimerBuscarProducto_Tick(object sender, EventArgs e)
{
BuscarProducto(txtPS.Text);
}
private void BuscarProducto(string PS)
{
BtnAceptar.Enabled = false;
if (DateTime.Now > Tiempo.AddSeconds(2d))
{
using (ClsProductosServicios objPS = new ClsProductosServicios())
{
if (objPS.GetPS(-1, -1, PS))
{
if (objPS.DtResultados.Tabla.Rows.Count > 0)
{
tmpPS = objPS.DtResultados.Tabla;
dgPS.DataSource = tmpPS;
dgPS.Focus();
BtnAceptar.Enabled = true;
}
else if (objPS.GetPS(-1, -1, "-1", PS))
{
if (objPS.DtResultados.Tabla.Rows.Count > 0)
{
tmpPS = objPS.DtResultados.Tabla;
dgPS.DataSource = tmpPS;
dgPS.Focus();
BtnAceptar.Enabled = true;
}
}
}
TimerBuscarProducto.Stop();
}
}
}
private void dgPS_KeyDown(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
{
DataGridView dg = (DataGridView)sender;
CvePSSeleccionado = tmpPS.Rows[dg.SelectedCells[0].RowIndex]["CvePS"].ToString().ToEntero();
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
break;
}
case Keys.Escape:
{
txtPS.Focus();
break;
}
}
}
private void dgPS_CellClick(object sender, DataGridViewCellEventArgs e)
{
DataGridView dg = (DataGridView)sender;
if (tmpPS != null &&tmpPS.Rows.Count > 0){
// FIXME OIC cuando seleccionas el row en blanco que esta al final truena
try
{
CvePSSeleccionado = tmpPS.Rows[e.RowIndex]["CvePS"].ToString().ToEntero();
}
catch(Exception ex)
{
}
}
}
private void dgPS_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (tmpPS != null && tmpPS.Rows.Count > 0)
{
DataGridView dg = (DataGridView)sender;
CvePSSeleccionado = tmpPS.Rows[e.RowIndex]["CvePS"].ToString().ToEntero();
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
CvePSSeleccionado = tmpPS.Rows[dgPS.SelectedCells[0].RowIndex]["CvePS"].ToString().ToEntero();
if (CvePSSeleccionado >0)
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
else
{
ModExtensiones.Alert("Seleccione un producto.", "Información");
}
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.Close();
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click(sender, e);
}
}
}

View File

@@ -0,0 +1,123 @@
<?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="TimerBuscarProducto.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -0,0 +1,218 @@
using ADSUtileriasWF.Helpers;
namespace ADSUtileriasWF.PV.Views
{
partial class FrmCambiarMesa
{
/// <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 Windows Form 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.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.panel1 = new System.Windows.Forms.Panel();
this.LblTituloForm = new System.Windows.Forms.Label();
this.TxtMesaActual = new ADSUtileriasWF.Helpers.ADSTextBox();
this.LblMesaActual = new System.Windows.Forms.Label();
this.LblMesa = new System.Windows.Forms.Label();
this.BtnAceptar = new System.Windows.Forms.Button();
this.DdlMesa = new System.Windows.Forms.ComboBox();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// BtnMinimize
//
this.BtnMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMinimize.FlatAppearance.BorderSize = 0;
this.BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
this.BtnMinimize.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMinimize.IconSize = 20;
this.BtnMinimize.Location = new System.Drawing.Point(263, 1);
this.BtnMinimize.Name = "BtnMinimize";
this.BtnMinimize.Rotation = 0D;
this.BtnMinimize.Size = new System.Drawing.Size(30, 28);
this.BtnMinimize.TabIndex = 0;
this.BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMinimize.UseVisualStyleBackColor = true;
this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click_1);
//
// BtnMaximizeRestore
//
this.BtnMaximizeRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
this.BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
this.BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMaximizeRestore.IconSize = 20;
this.BtnMaximizeRestore.Location = new System.Drawing.Point(293, 1);
this.BtnMaximizeRestore.Name = "BtnMaximizeRestore";
this.BtnMaximizeRestore.Rotation = 0D;
this.BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
this.BtnMaximizeRestore.TabIndex = 0;
this.BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMaximizeRestore.UseVisualStyleBackColor = true;
this.BtnMaximizeRestore.Click += new System.EventHandler(this.BtnMaximizeRestore_Click_1);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.FlatAppearance.BorderSize = 0;
this.BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
this.BtnClose.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnClose.IconSize = 20;
this.BtnClose.Location = new System.Drawing.Point(323, 1);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Rotation = 0D;
this.BtnClose.Size = new System.Drawing.Size(30, 28);
this.BtnClose.TabIndex = 0;
this.BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.panel1.Controls.Add(this.LblTituloForm);
this.panel1.Controls.Add(this.BtnMinimize);
this.panel1.Controls.Add(this.BtnMaximizeRestore);
this.panel1.Controls.Add(this.BtnClose);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(354, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// LblTituloForm
//
this.LblTituloForm.AutoSize = true;
this.LblTituloForm.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.LblTituloForm.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.LblTituloForm.Location = new System.Drawing.Point(15, 5);
this.LblTituloForm.Name = "LblTituloForm";
this.LblTituloForm.Size = new System.Drawing.Size(131, 22);
this.LblTituloForm.TabIndex = 1;
this.LblTituloForm.Text = "Cambiar mesa";
//
// TxtMesaActual
//
this.TxtMesaActual.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtMesaActual.BackColor = System.Drawing.SystemColors.Control;
this.TxtMesaActual.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TxtMesaActual.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtMesaActual.Location = new System.Drawing.Point(125, 60);
this.TxtMesaActual.Name = "TxtMesaActual";
this.TxtMesaActual.ReadOnly = true;
this.TxtMesaActual.Size = new System.Drawing.Size(200, 23);
this.TxtMesaActual.TabIndex = 2;
//
// LblMesaActual
//
this.LblMesaActual.AutoSize = true;
this.LblMesaActual.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblMesaActual.Location = new System.Drawing.Point(20, 60);
this.LblMesaActual.Name = "LblMesaActual";
this.LblMesaActual.Size = new System.Drawing.Size(100, 22);
this.LblMesaActual.TabIndex = 3;
this.LblMesaActual.Text = "Mesa actual";
//
// LblMesa
//
this.LblMesa.AutoSize = true;
this.LblMesa.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblMesa.Location = new System.Drawing.Point(20, 100);
this.LblMesa.Name = "LblMesa";
this.LblMesa.Size = new System.Drawing.Size(50, 22);
this.LblMesa.TabIndex = 4;
this.LblMesa.Text = "Mesa";
//
// BtnAceptar
//
this.BtnAceptar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAceptar.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnAceptar.Location = new System.Drawing.Point(222, 143);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(103, 43);
this.BtnAceptar.TabIndex = 6;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// DdlMesa
//
this.DdlMesa.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DdlMesa.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.DdlMesa.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DdlMesa.FormattingEnabled = true;
this.DdlMesa.Location = new System.Drawing.Point(125, 100);
this.DdlMesa.Name = "DdlMesa";
this.DdlMesa.Size = new System.Drawing.Size(200, 26);
this.DdlMesa.TabIndex = 7;
//
// FrmCambiarMesa
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(354, 198);
this.ControlBox = false;
this.Controls.Add(this.DdlMesa);
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.LblMesa);
this.Controls.Add(this.LblMesaActual);
this.Controls.Add(this.TxtMesaActual);
this.Controls.Add(this.panel1);
this.Name = "FrmCambiarMesa";
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel panel1;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.Label LblTituloForm;
private ADSTextBox TxtMesaActual;
private System.Windows.Forms.Label LblMesaActual;
private System.Windows.Forms.Label LblMesa;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.ComboBox DdlMesa;
}
}

View File

@@ -0,0 +1,82 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmCambiarMesa : FormBase
{
private int CveVentaTerminal { get; set; }
private int CveMesa { get; set; }
public FrmCambiarMesa(int CveVentaTerminal_, int CveMesa_)
{
InitializeComponent();
CveVentaTerminal = CveVentaTerminal_;
CveMesa = CveMesa_;
CargaMesas();
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.Close();
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click(sender, e);
}
private void CargaMesas()
{
var Mesas = new ClsVta_Mesas();
if (Mesas.GetVta_Mesas())
{
DdlMesa.DisplayMember = "Mesa";
DdlMesa.ValueMember = "CveMesa";
DdlMesa.DataSource = Mesas.DtResultados.Tabla.DefaultView;
foreach (object It in DdlMesa.Items)
{
if (((DataRowView)It).Row.ItemArray[0].ToString().ToEntero() == CveMesa)
{
TxtMesaActual.Text = ((System.Data.DataRowView)It).Row.ItemArray[1].ToString();
DdlMesa.SelectedIndex = DdlMesa.Items.IndexOf(It);
break;
}
}
}
Mesas.Dispose();
}
private void BtnCambiarMesaAceptar_Click(object sender, EventArgs e)
{
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
using (ClsVentas Venta = new ClsVentas())
if (Venta.UpdateCambiarMesa(DdlMesa.SelectedValue.ToString().ToEntero(), CveVentaTerminal))
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
else
{
ModExtensiones.Alert("Ocurrió un error al cambiar la mesa.", "Error", MessageBoxButtons.OK);
}
}
}
}

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,216 @@
using ADSUtileriasWF.Helpers;
namespace ADSUtileriasWF.PV.Views
{
partial class FrmCambiarMesero
{
/// <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 Windows Form 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.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.panel1 = new System.Windows.Forms.Panel();
this.LblFrmMesero = new System.Windows.Forms.Label();
this.LblMeseroActual = new System.Windows.Forms.Label();
this.LblMesero = new System.Windows.Forms.Label();
this.TxtMeseroActual = new ADSUtileriasWF.Helpers.ADSTextBox();
this.DdlMesero = new System.Windows.Forms.ComboBox();
this.BtnAceptar = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// BtnMinimize
//
this.BtnMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMinimize.FlatAppearance.BorderSize = 0;
this.BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
this.BtnMinimize.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMinimize.IconSize = 20;
this.BtnMinimize.Location = new System.Drawing.Point(274, 1);
this.BtnMinimize.Name = "BtnMinimize";
this.BtnMinimize.Rotation = 0D;
this.BtnMinimize.Size = new System.Drawing.Size(30, 28);
this.BtnMinimize.TabIndex = 0;
this.BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMinimize.UseVisualStyleBackColor = true;
this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click_1);
//
// BtnMaximizeRestore
//
this.BtnMaximizeRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
this.BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
this.BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMaximizeRestore.IconSize = 20;
this.BtnMaximizeRestore.Location = new System.Drawing.Point(304, 1);
this.BtnMaximizeRestore.Name = "BtnMaximizeRestore";
this.BtnMaximizeRestore.Rotation = 0D;
this.BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
this.BtnMaximizeRestore.TabIndex = 0;
this.BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMaximizeRestore.UseVisualStyleBackColor = true;
this.BtnMaximizeRestore.Click += new System.EventHandler(this.BtnMaximizeRestore_Click_1);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.FlatAppearance.BorderSize = 0;
this.BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
this.BtnClose.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnClose.IconSize = 20;
this.BtnClose.Location = new System.Drawing.Point(334, 1);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Rotation = 0D;
this.BtnClose.Size = new System.Drawing.Size(30, 28);
this.BtnClose.TabIndex = 0;
this.BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.panel1.Controls.Add(this.LblFrmMesero);
this.panel1.Controls.Add(this.BtnMinimize);
this.panel1.Controls.Add(this.BtnMaximizeRestore);
this.panel1.Controls.Add(this.BtnClose);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(365, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// LblFrmMesero
//
this.LblFrmMesero.AutoSize = true;
this.LblFrmMesero.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.LblFrmMesero.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.LblFrmMesero.Location = new System.Drawing.Point(15, 5);
this.LblFrmMesero.Name = "LblFrmMesero";
this.LblFrmMesero.Size = new System.Drawing.Size(150, 22);
this.LblFrmMesero.TabIndex = 1;
this.LblFrmMesero.Text = "Cambiar mesero";
//
// LblMeseroActual
//
this.LblMeseroActual.AutoSize = true;
this.LblMeseroActual.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblMeseroActual.Location = new System.Drawing.Point(20, 60);
this.LblMeseroActual.Name = "LblMeseroActual";
this.LblMeseroActual.Size = new System.Drawing.Size(117, 22);
this.LblMeseroActual.TabIndex = 2;
this.LblMeseroActual.Text = "Mesero actual";
//
// LblMesero
//
this.LblMesero.AutoSize = true;
this.LblMesero.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblMesero.Location = new System.Drawing.Point(20, 100);
this.LblMesero.Name = "LblMesero";
this.LblMesero.Size = new System.Drawing.Size(67, 22);
this.LblMesero.TabIndex = 3;
this.LblMesero.Text = "Mesero";
//
// TxtMeseroActual
//
this.TxtMeseroActual.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtMeseroActual.BackColor = System.Drawing.SystemColors.Control;
this.TxtMeseroActual.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TxtMeseroActual.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtMeseroActual.Location = new System.Drawing.Point(145, 60);
this.TxtMeseroActual.Name = "TxtMeseroActual";
this.TxtMeseroActual.Size = new System.Drawing.Size(200, 23);
this.TxtMeseroActual.TabIndex = 4;
//
// DdlMesero
//
this.DdlMesero.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DdlMesero.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.DdlMesero.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DdlMesero.FormattingEnabled = true;
this.DdlMesero.Location = new System.Drawing.Point(145, 100);
this.DdlMesero.Name = "DdlMesero";
this.DdlMesero.Size = new System.Drawing.Size(200, 26);
this.DdlMesero.TabIndex = 5;
//
// BtnAceptar
//
this.BtnAceptar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAceptar.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnAceptar.Location = new System.Drawing.Point(242, 151);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(103, 43);
this.BtnAceptar.TabIndex = 6;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// FrmCambiarMesero
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(365, 213);
this.ControlBox = false;
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.DdlMesero);
this.Controls.Add(this.TxtMeseroActual);
this.Controls.Add(this.LblMesero);
this.Controls.Add(this.LblMeseroActual);
this.Controls.Add(this.panel1);
this.Name = "FrmCambiarMesero";
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label LblFrmMesero;
private System.Windows.Forms.Label LblMeseroActual;
private System.Windows.Forms.Label LblMesero;
private ADSTextBox TxtMeseroActual;
private System.Windows.Forms.ComboBox DdlMesero;
private System.Windows.Forms.Button BtnAceptar;
}
}

View File

@@ -0,0 +1,81 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmCambiarMesero : FormBase
{
private int CveVentaTerminal { get; set; }
private int CveMesero { get; set; }
public FrmCambiarMesero(int CveVentaTerminal_, int CveMesero_)
{
InitializeComponent();
CargaMeseros();
CveVentaTerminal = CveVentaTerminal_;
CveMesero = CveMesero_;
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.Close();
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click(sender, e);
}
private void CargaMeseros()
{
var Meseros = new ClsVta_Vendedores();
if (Meseros.GetVta_Vendedores())
{
DdlMesero.DisplayMember = "Vendedor";
DdlMesero.ValueMember = "CveVendedor";
DdlMesero.DataSource = Meseros.DtResultados.Tabla.FiltraParametros("Estado = 1").DefaultView;
foreach (object It in DdlMesero.Items)
{
if (((DataRowView)It).Row.ItemArray[0].ToString().ToEntero() == CveMesero)
{
TxtMeseroActual.Text = ((System.Data.DataRowView)It).Row.ItemArray[1].ToString();
DdlMesero.SelectedIndex = DdlMesero.Items.IndexOf(It);
break;
}
}
}
Meseros.Dispose();
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
using (ClsVentas Venta = new ClsVentas())
{
if (Venta.UpdateVendedor(DdlMesero.SelectedValue.ToString().ToEntero(), CveVentaTerminal))
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
else
{
ModExtensiones.Alert("Ocurrió un error al cambiar el mesero.", "Error", MessageBoxButtons.OK);
}
}
}
}
}

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,739 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmCerrarTurno
{
/// <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 Windows Form 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()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.PnlTitulo = new System.Windows.Forms.Panel();
this.txtNombre = new System.Windows.Forms.Label();
this.txtFecha = new System.Windows.Forms.Label();
this.dgSalidas = new System.Windows.Forms.DataGridView();
this.DataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgEntradas = new System.Windows.Forms.DataGridView();
this.DataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgDineroEnCaja = new System.Windows.Forms.DataGridView();
this.Descripcion = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Importe = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgVentas = new System.Windows.Forms.DataGridView();
this.MetodoPago = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnCerrarTurno = new System.Windows.Forms.Button();
this.Panel1 = new System.Windows.Forms.Panel();
this.Panel6 = new System.Windows.Forms.Panel();
this.Panel8 = new System.Windows.Forms.Panel();
this.Panel9 = new System.Windows.Forms.Panel();
this.Label4 = new System.Windows.Forms.Label();
this.Panel7 = new System.Windows.Forms.Panel();
this.Panel10 = new System.Windows.Forms.Panel();
this.Label2 = new System.Windows.Forms.Label();
this.Panel2 = new System.Windows.Forms.Panel();
this.Panel5 = new System.Windows.Forms.Panel();
this.Label3 = new System.Windows.Forms.Label();
this.Panel3 = new System.Windows.Forms.Panel();
this.Panel4 = new System.Windows.Forms.Panel();
this.Label1 = new System.Windows.Forms.Label();
this.Label5 = new System.Windows.Forms.Label();
this.lblVentasFinalizada = new System.Windows.Forms.Label();
this.btnImprimirReporte = new System.Windows.Forms.Button();
this.Panel11 = new System.Windows.Forms.Panel();
this.Panel12 = new System.Windows.Forms.Panel();
this.dgCxC = new System.Windows.Forms.DataGridView();
this.Cliente = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Label6 = new System.Windows.Forms.Label();
this.Label7 = new System.Windows.Forms.Label();
this.lblVentasAbiertas = new System.Windows.Forms.Label();
this.PnlTitulo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgSalidas)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgEntradas)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgDineroEnCaja)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgVentas)).BeginInit();
this.Panel1.SuspendLayout();
this.Panel6.SuspendLayout();
this.Panel8.SuspendLayout();
this.Panel9.SuspendLayout();
this.Panel7.SuspendLayout();
this.Panel10.SuspendLayout();
this.Panel2.SuspendLayout();
this.Panel5.SuspendLayout();
this.Panel3.SuspendLayout();
this.Panel4.SuspendLayout();
this.Panel11.SuspendLayout();
this.Panel12.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgCxC)).BeginInit();
this.SuspendLayout();
//
// BtnMinimize
//
this.BtnMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMinimize.FlatAppearance.BorderSize = 0;
this.BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
this.BtnMinimize.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMinimize.IconSize = 20;
this.BtnMinimize.Location = new System.Drawing.Point(933, 1);
this.BtnMinimize.Name = "BtnMinimize";
this.BtnMinimize.Rotation = 0D;
this.BtnMinimize.Size = new System.Drawing.Size(30, 28);
this.BtnMinimize.TabIndex = 0;
this.BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMinimize.UseVisualStyleBackColor = true;
this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click_1);
//
// BtnMaximizeRestore
//
this.BtnMaximizeRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
this.BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
this.BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMaximizeRestore.IconSize = 20;
this.BtnMaximizeRestore.Location = new System.Drawing.Point(963, 1);
this.BtnMaximizeRestore.Name = "BtnMaximizeRestore";
this.BtnMaximizeRestore.Rotation = 0D;
this.BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
this.BtnMaximizeRestore.TabIndex = 0;
this.BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMaximizeRestore.UseVisualStyleBackColor = true;
this.BtnMaximizeRestore.Click += new System.EventHandler(this.BtnMaximizeRestore_Click_1);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.FlatAppearance.BorderSize = 0;
this.BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
this.BtnClose.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnClose.IconSize = 20;
this.BtnClose.Location = new System.Drawing.Point(993, 1);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Rotation = 0D;
this.BtnClose.Size = new System.Drawing.Size(30, 28);
this.BtnClose.TabIndex = 0;
this.BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// PnlTitulo
//
this.PnlTitulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlTitulo.Controls.Add(this.BtnMinimize);
this.PnlTitulo.Controls.Add(this.BtnMaximizeRestore);
this.PnlTitulo.Controls.Add(this.BtnClose);
this.PnlTitulo.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlTitulo.Location = new System.Drawing.Point(0, 0);
this.PnlTitulo.Name = "PnlTitulo";
this.PnlTitulo.Size = new System.Drawing.Size(1024, 30);
this.PnlTitulo.TabIndex = 1;
this.PnlTitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// txtNombre
//
this.txtNombre.AutoSize = true;
this.txtNombre.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtNombre.Location = new System.Drawing.Point(10, 40);
this.txtNombre.Name = "txtNombre";
this.txtNombre.Size = new System.Drawing.Size(70, 19);
this.txtNombre.TabIndex = 1;
this.txtNombre.Text = "Corte de ";
//
// txtFecha
//
this.txtFecha.AutoSize = true;
this.txtFecha.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtFecha.Location = new System.Drawing.Point(10, 70);
this.txtFecha.Name = "txtFecha";
this.txtFecha.Size = new System.Drawing.Size(48, 19);
this.txtFecha.TabIndex = 2;
this.txtFecha.Text = "Fecha";
//
// dgSalidas
//
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dgSalidas.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgSalidas.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgSalidas.BackgroundColor = System.Drawing.SystemColors.ActiveBorder;
this.dgSalidas.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgSalidas.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.dgSalidas.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgSalidas.ColumnHeadersVisible = false;
this.dgSalidas.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.DataGridViewTextBoxColumn4,
this.DataGridViewTextBoxColumn5});
this.dgSalidas.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dgSalidas.Location = new System.Drawing.Point(0, 28);
this.dgSalidas.Name = "dgSalidas";
this.dgSalidas.RowHeadersVisible = false;
this.dgSalidas.Size = new System.Drawing.Size(305, 200);
this.dgSalidas.TabIndex = 3;
//
// DataGridViewTextBoxColumn4
//
this.DataGridViewTextBoxColumn4.DataPropertyName = "Descripcion";
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle2;
this.DataGridViewTextBoxColumn4.HeaderText = "Descripcion";
this.DataGridViewTextBoxColumn4.Name = "DataGridViewTextBoxColumn4";
this.DataGridViewTextBoxColumn4.ReadOnly = true;
//
// DataGridViewTextBoxColumn5
//
this.DataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.DataGridViewTextBoxColumn5.DataPropertyName = "Importe";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle3.Format = "C";
this.DataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle3;
this.DataGridViewTextBoxColumn5.HeaderText = "Importe";
this.DataGridViewTextBoxColumn5.Name = "DataGridViewTextBoxColumn5";
this.DataGridViewTextBoxColumn5.ReadOnly = true;
//
// dgEntradas
//
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dgEntradas.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
this.dgEntradas.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgEntradas.BackgroundColor = System.Drawing.SystemColors.ActiveBorder;
this.dgEntradas.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgEntradas.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.dgEntradas.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgEntradas.ColumnHeadersVisible = false;
this.dgEntradas.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.DataGridViewTextBoxColumn2,
this.DataGridViewTextBoxColumn3});
this.dgEntradas.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dgEntradas.Location = new System.Drawing.Point(0, 217);
this.dgEntradas.Name = "dgEntradas";
this.dgEntradas.RowHeadersVisible = false;
this.dgEntradas.Size = new System.Drawing.Size(304, 200);
this.dgEntradas.TabIndex = 2;
//
// DataGridViewTextBoxColumn2
//
this.DataGridViewTextBoxColumn2.DataPropertyName = "Descripcion";
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle5;
this.DataGridViewTextBoxColumn2.HeaderText = "Descripcion";
this.DataGridViewTextBoxColumn2.Name = "DataGridViewTextBoxColumn2";
this.DataGridViewTextBoxColumn2.ReadOnly = true;
//
// DataGridViewTextBoxColumn3
//
this.DataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.DataGridViewTextBoxColumn3.DataPropertyName = "Importe";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle6.Format = "C";
this.DataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle6;
this.DataGridViewTextBoxColumn3.HeaderText = "Importe";
this.DataGridViewTextBoxColumn3.Name = "DataGridViewTextBoxColumn3";
this.DataGridViewTextBoxColumn3.ReadOnly = true;
//
// dgDineroEnCaja
//
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dgDineroEnCaja.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
this.dgDineroEnCaja.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgDineroEnCaja.BackgroundColor = System.Drawing.SystemColors.ActiveBorder;
this.dgDineroEnCaja.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgDineroEnCaja.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.dgDineroEnCaja.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgDineroEnCaja.ColumnHeadersVisible = false;
this.dgDineroEnCaja.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Descripcion,
this.Importe});
this.dgDineroEnCaja.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dgDineroEnCaja.Location = new System.Drawing.Point(0, 30);
this.dgDineroEnCaja.MultiSelect = false;
this.dgDineroEnCaja.Name = "dgDineroEnCaja";
this.dgDineroEnCaja.ReadOnly = true;
this.dgDineroEnCaja.RowHeadersVisible = false;
this.dgDineroEnCaja.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dgDineroEnCaja.ShowCellErrors = false;
this.dgDineroEnCaja.ShowCellToolTips = false;
this.dgDineroEnCaja.ShowEditingIcon = false;
this.dgDineroEnCaja.ShowRowErrors = false;
this.dgDineroEnCaja.Size = new System.Drawing.Size(304, 159);
this.dgDineroEnCaja.TabIndex = 1;
//
// Descripcion
//
this.Descripcion.DataPropertyName = "Descripcion";
this.Descripcion.HeaderText = "Descripcion";
this.Descripcion.Name = "Descripcion";
this.Descripcion.ReadOnly = true;
//
// Importe
//
this.Importe.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.Importe.DataPropertyName = "Importe";
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.Importe.DefaultCellStyle = dataGridViewCellStyle8;
this.Importe.HeaderText = "Importe";
this.Importe.Name = "Importe";
this.Importe.ReadOnly = true;
//
// dgVentas
//
dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dgVentas.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
this.dgVentas.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgVentas.BackgroundColor = System.Drawing.SystemColors.ActiveBorder;
this.dgVentas.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgVentas.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.dgVentas.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgVentas.ColumnHeadersVisible = false;
this.dgVentas.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.MetodoPago,
this.DataGridViewTextBoxColumn1});
this.dgVentas.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dgVentas.Location = new System.Drawing.Point(0, 30);
this.dgVentas.MultiSelect = false;
this.dgVentas.Name = "dgVentas";
this.dgVentas.ReadOnly = true;
this.dgVentas.RowHeadersVisible = false;
this.dgVentas.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dgVentas.ShowCellErrors = false;
this.dgVentas.ShowCellToolTips = false;
this.dgVentas.ShowEditingIcon = false;
this.dgVentas.ShowRowErrors = false;
this.dgVentas.Size = new System.Drawing.Size(305, 159);
this.dgVentas.TabIndex = 0;
//
// MetodoPago
//
this.MetodoPago.DataPropertyName = "MetodoPago";
this.MetodoPago.HeaderText = "MetodoPago";
this.MetodoPago.Name = "MetodoPago";
this.MetodoPago.ReadOnly = true;
//
// DataGridViewTextBoxColumn1
//
this.DataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.DataGridViewTextBoxColumn1.DataPropertyName = "Importe";
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle10.Format = "C";
this.DataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle10;
this.DataGridViewTextBoxColumn1.HeaderText = "Importe";
this.DataGridViewTextBoxColumn1.Name = "DataGridViewTextBoxColumn1";
this.DataGridViewTextBoxColumn1.ReadOnly = true;
//
// btnCerrarTurno
//
this.btnCerrarTurno.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCerrarTurno.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnCerrarTurno.Location = new System.Drawing.Point(908, 40);
this.btnCerrarTurno.Name = "btnCerrarTurno";
this.btnCerrarTurno.Size = new System.Drawing.Size(101, 50);
this.btnCerrarTurno.TabIndex = 3;
this.btnCerrarTurno.Text = "Cerrar Turno";
this.btnCerrarTurno.UseVisualStyleBackColor = true;
this.btnCerrarTurno.Click += new System.EventHandler(this.btnCerrarTurno_Click_1);
//
// Panel1
//
this.Panel1.Controls.Add(this.Panel6);
this.Panel1.Controls.Add(this.Panel2);
this.Panel1.Location = new System.Drawing.Point(12, 115);
this.Panel1.Name = "Panel1";
this.Panel1.Size = new System.Drawing.Size(615, 417);
this.Panel1.TabIndex = 4;
//
// Panel6
//
this.Panel6.Controls.Add(this.Panel8);
this.Panel6.Controls.Add(this.Panel7);
this.Panel6.Dock = System.Windows.Forms.DockStyle.Right;
this.Panel6.Location = new System.Drawing.Point(310, 0);
this.Panel6.Name = "Panel6";
this.Panel6.Size = new System.Drawing.Size(305, 417);
this.Panel6.TabIndex = 1;
//
// Panel8
//
this.Panel8.Controls.Add(this.Panel9);
this.Panel8.Controls.Add(this.dgSalidas);
this.Panel8.Dock = System.Windows.Forms.DockStyle.Bottom;
this.Panel8.Location = new System.Drawing.Point(0, 189);
this.Panel8.Name = "Panel8";
this.Panel8.Size = new System.Drawing.Size(305, 228);
this.Panel8.TabIndex = 1;
//
// Panel9
//
this.Panel9.Controls.Add(this.Label4);
this.Panel9.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel9.Location = new System.Drawing.Point(0, 0);
this.Panel9.Name = "Panel9";
this.Panel9.Size = new System.Drawing.Size(305, 30);
this.Panel9.TabIndex = 0;
//
// Label4
//
this.Label4.AutoSize = true;
this.Label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label4.Location = new System.Drawing.Point(3, 3);
this.Label4.Name = "Label4";
this.Label4.Size = new System.Drawing.Size(156, 24);
this.Label4.TabIndex = 7;
this.Label4.Text = "Retiros de Dinero";
//
// Panel7
//
this.Panel7.Controls.Add(this.Panel10);
this.Panel7.Controls.Add(this.dgVentas);
this.Panel7.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel7.Location = new System.Drawing.Point(0, 0);
this.Panel7.Name = "Panel7";
this.Panel7.Size = new System.Drawing.Size(305, 189);
this.Panel7.TabIndex = 0;
//
// Panel10
//
this.Panel10.Controls.Add(this.Label2);
this.Panel10.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel10.Location = new System.Drawing.Point(0, 0);
this.Panel10.Name = "Panel10";
this.Panel10.Size = new System.Drawing.Size(305, 30);
this.Panel10.TabIndex = 0;
//
// Label2
//
this.Label2.AutoSize = true;
this.Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label2.Location = new System.Drawing.Point(3, 3);
this.Label2.Name = "Label2";
this.Label2.Size = new System.Drawing.Size(159, 24);
this.Label2.TabIndex = 6;
this.Label2.Text = "Metodos de Pago";
//
// Panel2
//
this.Panel2.Controls.Add(this.Panel5);
this.Panel2.Controls.Add(this.Panel3);
this.Panel2.Controls.Add(this.dgEntradas);
this.Panel2.Dock = System.Windows.Forms.DockStyle.Left;
this.Panel2.Location = new System.Drawing.Point(0, 0);
this.Panel2.Name = "Panel2";
this.Panel2.Size = new System.Drawing.Size(304, 417);
this.Panel2.TabIndex = 0;
//
// Panel5
//
this.Panel5.Controls.Add(this.Label3);
this.Panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel5.Location = new System.Drawing.Point(0, 189);
this.Panel5.Name = "Panel5";
this.Panel5.Size = new System.Drawing.Size(304, 30);
this.Panel5.TabIndex = 1;
//
// Label3
//
this.Label3.AutoSize = true;
this.Label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label3.Location = new System.Drawing.Point(3, 3);
this.Label3.Name = "Label3";
this.Label3.Size = new System.Drawing.Size(170, 24);
this.Label3.TabIndex = 6;
this.Label3.Text = "Ingresos de Dinero";
//
// Panel3
//
this.Panel3.Controls.Add(this.Panel4);
this.Panel3.Controls.Add(this.dgDineroEnCaja);
this.Panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel3.Location = new System.Drawing.Point(0, 0);
this.Panel3.Name = "Panel3";
this.Panel3.Size = new System.Drawing.Size(304, 189);
this.Panel3.TabIndex = 0;
//
// Panel4
//
this.Panel4.Controls.Add(this.Label1);
this.Panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel4.Location = new System.Drawing.Point(0, 0);
this.Panel4.Name = "Panel4";
this.Panel4.Size = new System.Drawing.Size(304, 30);
this.Panel4.TabIndex = 0;
//
// Label1
//
this.Label1.AutoSize = true;
this.Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label1.Location = new System.Drawing.Point(3, 3);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(135, 24);
this.Label1.TabIndex = 5;
this.Label1.Text = "Dinero en Caja";
//
// Label5
//
this.Label5.AutoSize = true;
this.Label5.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label5.Location = new System.Drawing.Point(400, 40);
this.Label5.Name = "Label5";
this.Label5.Size = new System.Drawing.Size(133, 19);
this.Label5.TabIndex = 6;
this.Label5.Text = "Ventas Finalizadas";
//
// lblVentasFinalizada
//
this.lblVentasFinalizada.AutoSize = true;
this.lblVentasFinalizada.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lblVentasFinalizada.Location = new System.Drawing.Point(530, 40);
this.lblVentasFinalizada.Name = "lblVentasFinalizada";
this.lblVentasFinalizada.Size = new System.Drawing.Size(13, 19);
this.lblVentasFinalizada.TabIndex = 7;
this.lblVentasFinalizada.Text = ".";
//
// btnImprimirReporte
//
this.btnImprimirReporte.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnImprimirReporte.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnImprimirReporte.Location = new System.Drawing.Point(774, 40);
this.btnImprimirReporte.Name = "btnImprimirReporte";
this.btnImprimirReporte.Size = new System.Drawing.Size(101, 50);
this.btnImprimirReporte.TabIndex = 8;
this.btnImprimirReporte.Text = "Imprimir Reporte";
this.btnImprimirReporte.UseVisualStyleBackColor = true;
this.btnImprimirReporte.Click += new System.EventHandler(this.btnImprimirReporte_Click_1);
//
// Panel11
//
this.Panel11.Controls.Add(this.Panel12);
this.Panel11.Controls.Add(this.Label6);
this.Panel11.Location = new System.Drawing.Point(633, 115);
this.Panel11.Name = "Panel11";
this.Panel11.Size = new System.Drawing.Size(379, 417);
this.Panel11.TabIndex = 9;
//
// Panel12
//
this.Panel12.Controls.Add(this.dgCxC);
this.Panel12.Dock = System.Windows.Forms.DockStyle.Bottom;
this.Panel12.Location = new System.Drawing.Point(0, 30);
this.Panel12.Name = "Panel12";
this.Panel12.Size = new System.Drawing.Size(379, 387);
this.Panel12.TabIndex = 11;
//
// dgCxC
//
dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dgCxC.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
this.dgCxC.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgCxC.BackgroundColor = System.Drawing.SystemColors.ActiveBorder;
this.dgCxC.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgCxC.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.dgCxC.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgCxC.ColumnHeadersVisible = false;
this.dgCxC.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Cliente,
this.DataGridViewTextBoxColumn7});
this.dgCxC.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgCxC.Location = new System.Drawing.Point(0, 0);
this.dgCxC.MultiSelect = false;
this.dgCxC.Name = "dgCxC";
this.dgCxC.ReadOnly = true;
this.dgCxC.RowHeadersVisible = false;
this.dgCxC.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dgCxC.ShowCellErrors = false;
this.dgCxC.ShowCellToolTips = false;
this.dgCxC.ShowEditingIcon = false;
this.dgCxC.ShowRowErrors = false;
this.dgCxC.Size = new System.Drawing.Size(379, 387);
this.dgCxC.TabIndex = 1;
//
// Cliente
//
this.Cliente.DataPropertyName = "Nombre";
this.Cliente.HeaderText = "Nombre";
this.Cliente.Name = "Cliente";
this.Cliente.ReadOnly = true;
//
// DataGridViewTextBoxColumn7
//
this.DataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.DataGridViewTextBoxColumn7.DataPropertyName = "Adeudo";
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle12.Format = "C";
this.DataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle12;
this.DataGridViewTextBoxColumn7.HeaderText = "Adeudo";
this.DataGridViewTextBoxColumn7.Name = "DataGridViewTextBoxColumn7";
this.DataGridViewTextBoxColumn7.ReadOnly = true;
this.DataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
//
// Label6
//
this.Label6.AutoSize = true;
this.Label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label6.Location = new System.Drawing.Point(3, 3);
this.Label6.Name = "Label6";
this.Label6.Size = new System.Drawing.Size(160, 24);
this.Label6.TabIndex = 10;
this.Label6.Text = "Cuentas X Cobrar";
//
// Label7
//
this.Label7.AutoSize = true;
this.Label7.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label7.Location = new System.Drawing.Point(400, 70);
this.Label7.Name = "Label7";
this.Label7.Size = new System.Drawing.Size(113, 19);
this.Label7.TabIndex = 10;
this.Label7.Text = "Ventas abiertas";
//
// lblVentasAbiertas
//
this.lblVentasAbiertas.AutoSize = true;
this.lblVentasAbiertas.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lblVentasAbiertas.Location = new System.Drawing.Point(530, 70);
this.lblVentasAbiertas.Name = "lblVentasAbiertas";
this.lblVentasAbiertas.Size = new System.Drawing.Size(13, 19);
this.lblVentasAbiertas.TabIndex = 11;
this.lblVentasAbiertas.Text = ".";
//
// FrmCerrarTurno
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1024, 544);
this.ControlBox = false;
this.Controls.Add(this.PnlTitulo);
this.Controls.Add(this.lblVentasAbiertas);
this.Controls.Add(this.Label7);
this.Controls.Add(this.Panel11);
this.Controls.Add(this.btnImprimirReporte);
this.Controls.Add(this.lblVentasFinalizada);
this.Controls.Add(this.Label5);
this.Controls.Add(this.btnCerrarTurno);
this.Controls.Add(this.txtFecha);
this.Controls.Add(this.txtNombre);
this.Controls.Add(this.Panel1);
this.MinimumSize = new System.Drawing.Size(1040, 560);
this.Name = "FrmCerrarTurno";
this.ShowInTaskbar = false;
this.Load += new System.EventHandler(this.FrmCerrarTurno_Load);
this.PnlTitulo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgSalidas)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgEntradas)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgDineroEnCaja)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgVentas)).EndInit();
this.Panel1.ResumeLayout(false);
this.Panel6.ResumeLayout(false);
this.Panel8.ResumeLayout(false);
this.Panel9.ResumeLayout(false);
this.Panel9.PerformLayout();
this.Panel7.ResumeLayout(false);
this.Panel10.ResumeLayout(false);
this.Panel10.PerformLayout();
this.Panel2.ResumeLayout(false);
this.Panel5.ResumeLayout(false);
this.Panel5.PerformLayout();
this.Panel3.ResumeLayout(false);
this.Panel4.ResumeLayout(false);
this.Panel4.PerformLayout();
this.Panel11.ResumeLayout(false);
this.Panel11.PerformLayout();
this.Panel12.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgCxC)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel PnlTitulo;
private System.Windows.Forms.Label txtNombre;
private System.Windows.Forms.Label txtFecha;
private System.Windows.Forms.DataGridView dgSalidas;
private System.Windows.Forms.DataGridView dgEntradas;
private System.Windows.Forms.DataGridView dgDineroEnCaja;
private System.Windows.Forms.DataGridView dgVentas;
private System.Windows.Forms.Button btnCerrarTurno;
private System.Windows.Forms.Panel Panel1;
private System.Windows.Forms.Panel Panel6;
private System.Windows.Forms.Panel Panel8;
private System.Windows.Forms.Panel Panel9;
private System.Windows.Forms.Panel Panel7;
private System.Windows.Forms.Panel Panel10;
private System.Windows.Forms.Label Label2;
private System.Windows.Forms.Panel Panel2;
private System.Windows.Forms.Panel Panel5;
private System.Windows.Forms.Label Label3;
private System.Windows.Forms.Panel Panel3;
private System.Windows.Forms.Panel Panel4;
private System.Windows.Forms.Label Label1;
private System.Windows.Forms.Label Label4;
private System.Windows.Forms.Label Label5;
private System.Windows.Forms.Label lblVentasFinalizada;
private System.Windows.Forms.Button btnImprimirReporte;
private System.Windows.Forms.Panel Panel11;
private System.Windows.Forms.Panel Panel12;
private System.Windows.Forms.DataGridView dgCxC;
private System.Windows.Forms.Label Label6;
private System.Windows.Forms.DataGridViewTextBoxColumn Cliente;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn Descripcion;
private System.Windows.Forms.DataGridViewTextBoxColumn Importe;
private System.Windows.Forms.DataGridViewTextBoxColumn MetodoPago;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn1;
private System.Windows.Forms.Label Label7;
private System.Windows.Forms.Label lblVentasAbiertas;
}
}

View File

@@ -0,0 +1,212 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmCerrarTurno : FormBase
{
private double DineroEnCaja;
private double Propinas;
public FrmCerrarTurno()
{
InitializeComponent();
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.Close();
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click(sender, e);
}
private void FrmCerrarTurno_Load(object sender, EventArgs e)
{
btnCerrarTurno.Focus();
// FIXME OIC
CargaVentasAbiertas();
CargaDatosCorte();
CargaVentasPago();
CargaEntradasSalidas();
CargaCxC();
}
private void CargaVentasAbiertas()
{
using (ClsVentas objVentas = new ClsVentas())
{
if (objVentas.GetVentas(-1, 6, -1, "-1", ModVarsPV.CorteActual.CveCorteTerminal, -1, UsuarioActual.CveEmpresa))
{
if (objVentas.DtResultados.Tabla.Rows.Count > 0)
{
btnCerrarTurno.Enabled = false;
ModExtensiones.Alert(string.Format("TIENE {0} VENTAS ABIERTAS, NO PUEDE FINALIZAR EL TURNO", objVentas.DtResultados.Tabla.Rows.Count), "");
}
}
}
}
private void CargaDatosCorte()
{
dgDineroEnCaja.AutoGenerateColumns = false;
using (ClsVta_Cortes objCorteTurno = new ClsVta_Cortes())
{
if (objCorteTurno.GetVta_Cortes(-1, "-1", "-1", UsuarioActual.CveUsuario, 0))
{
txtNombre.Text = string.Format("Corte de {0}, del {1}", objCorteTurno.UsuarioNombre, objCorteTurno.FechaInicial.ToShortDateString());
txtFecha.Text = string.Format("De {0} a las {1}", objCorteTurno.FechaInicial.ToShortTimeString(), DateTime.Now.ToShortTimeString());
var Tabla = new DataTable();
Tabla.Columns.Add("Descripcion");
Tabla.Columns.Add("Importe");
DataRow Row = default;
// Row = Tabla.NewRow()
// Row("Descripcion") = "Venta Total"
// ' Row("Importe") =.v¿ .Vendido.ToString("C")
// Tabla.Rows.Add(Row)
lblVentasFinalizada.Text = objCorteTurno.VendidoFinalizadas.ToString("C");
lblVentasAbiertas.Text = objCorteTurno.VendidoAbiertas.ToString("C");
Row = Tabla.NewRow();
Row["Descripcion"] = "Fondo de Caja";
Row["Importe"] = objCorteTurno.ImporteInicial.ToString("C");
Tabla.Rows.Add(Row);
Row = Tabla.NewRow();
Row["Descripcion"] = "Ventas en Efectivo";
Row["Importe"] = objCorteTurno.VendidoEfectivo.ToString("C");
Tabla.Rows.Add(Row);
Row = Tabla.NewRow();
Row["Descripcion"] = "Propinas";
Row["Importe"] = objCorteTurno.Propinas.ToString("C");
Propinas = objCorteTurno.Propinas;
Tabla.Rows.Add(Row);
Row = Tabla.NewRow();
Row["Descripcion"] = "Entradas";
Row["Importe"] = objCorteTurno.Ingresado.ToString("C");
Tabla.Rows.Add(Row);
Row = Tabla.NewRow();
Row["Descripcion"] = "Salidas";
Row["Importe"] = objCorteTurno.Retirado.ToString("C");
Tabla.Rows.Add(Row);
Row = Tabla.NewRow();
Row["Descripcion"] = "Total";
Row["Importe"] = (objCorteTurno.ImporteInicial + objCorteTurno.VendidoEfectivo + objCorteTurno.Ingresado - objCorteTurno.Retirado - objCorteTurno.Propinas).ToString("C");
DineroEnCaja = objCorteTurno.ImporteInicial + objCorteTurno.VendidoEfectivo + objCorteTurno.Ingresado - objCorteTurno.Retirado - objCorteTurno.Propinas;
Tabla.Rows.Add(Row);
dgDineroEnCaja.DataSource = Tabla;
}
}
}
private void CargaVentasPago()
{
dgVentas.AutoGenerateColumns = false;
using (ClsVentas objVentasPago = new ClsVentas())
{
if (objVentasPago.GetVta_VentasPago(ModVarsPV.CorteActual.CveCorteTerminal, UsuarioActual.CveEmpresa))
{
if (objVentasPago.DtResultados.Tabla.FiltraParametros("CveMetodoPago = 1").Rows.Count > 0)
{
DataRow[] RowEfectivo = objVentasPago.DtResultados.Tabla.Select("CveMetodoPago = 1");
RowEfectivo[0]["Importe"] = RowEfectivo[0]["Importe"].ToString().ToDouble() - Propinas;
objVentasPago.DtResultados.Tabla.AcceptChanges();
}
dgVentas.DataSource = objVentasPago.DtResultados.Tabla;
}
}
}
private void CargaEntradasSalidas()
{
dgEntradas.AutoGenerateColumns = false;
dgSalidas.AutoGenerateColumns = false;
using (ClsVta_MovimientosCaja objEntradasSalidas = new ClsVta_MovimientosCaja())
{
if (objEntradasSalidas.GetVta_MovimientosCaja(-1, ModVarsPV.CorteActual.CveCorteTerminal, (int)TipoMov.Ingreso))
{
dgEntradas.DataSource = objEntradasSalidas.DtResultados.Tabla;
}
if (objEntradasSalidas.GetVta_MovimientosCaja(-1, ModVarsPV.CorteActual.CveCorteTerminal, (int)TipoMov.Retiro))
{
dgSalidas.DataSource = objEntradasSalidas.DtResultados.Tabla;
}
}
}
private void CargaCxC()
{
dgCxC.AutoGenerateColumns = false;
using (ClsVentas objVentas = new ClsVentas())
{
if (objVentas.GetVentas(-1, -1, -1, "-1", ModVarsPV.CorteActual.CveCorteTerminal, -1, UsuarioActual.CveEmpresa))
{
dgCxC.DataSource = objVentas.DtResultados.Tabla.FiltraParametros("Pagado < Total AND CveEstatusFactura = 2");
}
}
}
private void btnCerrarTurno_Click_1(object sender, EventArgs e)
{
// Ingresar los detalles de corte de turno
using (ClsVentas objVentasPago = new ClsVentas())
{
if (objVentasPago.GetVta_VentasPago(ModVarsPV.CorteActual.CveCorteTerminal, UsuarioActual.CveEmpresa))
{
using (ClsVta_Cortes objCortesTurno = new ClsVta_Cortes())
{
foreach (DataRow Row in objVentasPago.DtResultados.Tabla.Rows)
{
if (objCortesTurno.AddVta_CortesDetalles(ModVarsPV.CorteActual.CveCorteTerminal, Row["CveMetodoPago"].ToString().ToEntero(), Row["Importe"].ToString().ToDouble()))
{
}
}
}
}
}
FrmCierreDeTurno NewMDIChild = new FrmCierreDeTurno(DineroEnCaja); // <----- aqui pudes cambiar la forma
if (NewMDIChild.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
MessageBox.Show("Se Cerro el Turno Correctamente!!!");
this.DialogResult = System.Windows.Forms.DialogResult.OK;
Environment.Exit(0);
}
}
private void btnImprimirReporte_Click_1(object sender, EventArgs e)
{
using (ClsImpresion objImpresion = new ClsImpresion(UsuarioActual))
{
objImpresion.ImpresionCortePrevio = true;
objImpresion.Imprimir(ModVarsPV.CorteActual.CveCorteTerminal, TipoImpresion.Corte, ModVarsPV.TamanoTicketConfigurado);
}
}
}
}
// Install-Package Microsoft.VisualBasic

View File

@@ -0,0 +1,60 @@
<root>
<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>
</root>

View File

@@ -0,0 +1,298 @@
using ADSUtileriasWF.Helpers;
namespace ADSUtileriasWF.PV.Views
{
partial class FrmCierreDeTurno
{
/// <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 Windows Form 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.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.TxtEsperadoEnCaja = new ADSUtileriasWF.Helpers.ADSTextBox();
this.label2 = new System.Windows.Forms.Label();
this.TxtDiferencia = new ADSUtileriasWF.Helpers.ADSTextBox();
this.label3 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.TxtDineroEnCaja = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.BtnAceptar = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.SuspendLayout();
//
// BtnMinimize
//
this.BtnMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMinimize.FlatAppearance.BorderSize = 0;
this.BtnMinimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMinimize.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMinimize.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize;
this.BtnMinimize.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMinimize.IconSize = 20;
this.BtnMinimize.Location = new System.Drawing.Point(293, 1);
this.BtnMinimize.Name = "BtnMinimize";
this.BtnMinimize.Rotation = 0D;
this.BtnMinimize.Size = new System.Drawing.Size(30, 28);
this.BtnMinimize.TabIndex = 0;
this.BtnMinimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMinimize.UseVisualStyleBackColor = true;
this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click_1);
//
// BtnMaximizeRestore
//
this.BtnMaximizeRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnMaximizeRestore.FlatAppearance.BorderSize = 0;
this.BtnMaximizeRestore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnMaximizeRestore.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnMaximizeRestore.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize;
this.BtnMaximizeRestore.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnMaximizeRestore.IconSize = 20;
this.BtnMaximizeRestore.Location = new System.Drawing.Point(323, 1);
this.BtnMaximizeRestore.Name = "BtnMaximizeRestore";
this.BtnMaximizeRestore.Rotation = 0D;
this.BtnMaximizeRestore.Size = new System.Drawing.Size(30, 28);
this.BtnMaximizeRestore.TabIndex = 0;
this.BtnMaximizeRestore.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnMaximizeRestore.UseVisualStyleBackColor = true;
this.BtnMaximizeRestore.Click += new System.EventHandler(this.BtnMaximizeRestore_Click_1);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.FlatAppearance.BorderSize = 0;
this.BtnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnClose.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnClose.IconChar = FontAwesome.Sharp.IconChar.Times;
this.BtnClose.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnClose.IconSize = 20;
this.BtnClose.Location = new System.Drawing.Point(353, 1);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Rotation = 0D;
this.BtnClose.Size = new System.Drawing.Size(30, 28);
this.BtnClose.TabIndex = 0;
this.BtnClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.BtnMinimize);
this.panel1.Controls.Add(this.BtnMaximizeRestore);
this.panel1.Controls.Add(this.BtnClose);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(384, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// label1
//
this.label1.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.Location = new System.Drawing.Point(10, 45);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(370, 50);
this.label1.TabIndex = 2;
this.label1.Text = "Por favor cuenta el dinero en caja e ingrésalo para proceder con el cierre de tur" +
"no";
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.panel2.Controls.Add(this.TxtEsperadoEnCaja);
this.panel2.Controls.Add(this.label2);
this.panel2.Location = new System.Drawing.Point(0, 100);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(390, 40);
this.panel2.TabIndex = 3;
//
// TxtEsperadoEnCaja
//
this.TxtEsperadoEnCaja.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.TxtEsperadoEnCaja.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TxtEsperadoEnCaja.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtEsperadoEnCaja.Location = new System.Drawing.Point(219, 5);
this.TxtEsperadoEnCaja.Name = "TxtEsperadoEnCaja";
this.TxtEsperadoEnCaja.ReadOnly = true;
this.TxtEsperadoEnCaja.Size = new System.Drawing.Size(150, 23);
this.TxtEsperadoEnCaja.TabIndex = 1;
this.TxtEsperadoEnCaja.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label2.Location = new System.Drawing.Point(10, 7);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(180, 19);
this.label2.TabIndex = 0;
this.label2.Text = "Efectivo esperado en caja";
//
// TxtDiferencia
//
this.TxtDiferencia.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.TxtDiferencia.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TxtDiferencia.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtDiferencia.Location = new System.Drawing.Point(219, 5);
this.TxtDiferencia.Name = "TxtDiferencia";
this.TxtDiferencia.ReadOnly = true;
this.TxtDiferencia.Size = new System.Drawing.Size(150, 23);
this.TxtDiferencia.TabIndex = 1;
this.TxtDiferencia.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label3.Location = new System.Drawing.Point(10, 7);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(78, 19);
this.label3.TabIndex = 0;
this.label3.Text = "Diferencia";
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.panel3.Controls.Add(this.TxtDiferencia);
this.panel3.Controls.Add(this.label3);
this.panel3.Location = new System.Drawing.Point(0, 200);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(390, 40);
this.panel3.TabIndex = 3;
//
// panel4
//
this.panel4.BackColor = System.Drawing.SystemColors.Control;
this.panel4.Controls.Add(this.TxtDineroEnCaja);
this.panel4.Controls.Add(this.label4);
this.panel4.Location = new System.Drawing.Point(0, 150);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(390, 40);
this.panel4.TabIndex = 3;
//
// TxtDineroEnCaja
//
this.TxtDineroEnCaja.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtDineroEnCaja.Location = new System.Drawing.Point(219, 5);
//this.TxtDineroEnCaja.Mask = "###,###,###,###.00";
this.TxtDineroEnCaja.Name = "TxtDineroEnCaja";
this.TxtDineroEnCaja.Size = new System.Drawing.Size(150, 26);
this.TxtDineroEnCaja.TabIndex = 1;
this.TxtDineroEnCaja.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.TxtDineroEnCaja.KeyUp += new System.Windows.Forms.KeyEventHandler(this.TxtDineroEnCaja_KeyUp);
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.SystemColors.Control;
this.label4.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label4.Location = new System.Drawing.Point(10, 7);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(207, 19);
this.label4.TabIndex = 0;
this.label4.Text = "¿Cuánto efectivo hay en Caja?";
//
// BtnAceptar
//
this.BtnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAceptar.Location = new System.Drawing.Point(294, 250);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(75, 43);
this.BtnAceptar.TabIndex = 4;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.label5.Location = new System.Drawing.Point(10, 5);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(118, 22);
this.label5.TabIndex = 1;
this.label5.Text = "Cerrar turno";
//
// FrmCierreDeTurno
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(384, 294);
this.ControlBox = false;
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.label1);
this.Controls.Add(this.panel1);
this.Name = "FrmCierreDeTurno";
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton iconButton3;
private System.Windows.Forms.Panel panel1;
private FontAwesome.Sharp.IconButton BtnClose;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel2;
private ADSTextBox TxtEsperadoEnCaja;
private System.Windows.Forms.Label label2;
private ADSTextBox TxtDiferencia;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.TextBox TxtDineroEnCaja;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.Label label5;
}
}

View File

@@ -0,0 +1,72 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmCierreDeTurno : FormBase
{
private double EsperadoEnCaja { get; set; }
public FrmCierreDeTurno(double EsperadoEnCaja_)
{
InitializeComponent();
EsperadoEnCaja = EsperadoEnCaja_;
TxtEsperadoEnCaja.Text = string.Format("${0:N2}", EsperadoEnCaja);
TxtDineroEnCaja.Text = EsperadoEnCaja.ToString();
TxtDiferencia.Text = string.Format("${0:N2}", 0);
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
this.Close();
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
BtnMinimize_Click(sender, e);
}
private void TxtDineroEnCaja_KeyUp(object sender, KeyEventArgs e)
{
decimal diferencia = TxtDineroEnCaja.Text.Replace("$", "").Replace(",", "").ToString().ToDecimal() - TxtEsperadoEnCaja.Text.Replace("$", "").Replace(",", "").ToString().ToDecimal();
TxtDiferencia.Text = string.Format("${0:N2}", diferencia);
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
using (ClsVta_Cortes objCorteTurno = new ClsVta_Cortes())
{
if (objCorteTurno.UpdateFinalizadoVta_Cortes(ModVarsPV.CorteActual.CveCorteTerminal, TxtDineroEnCaja.Text.ToDouble(), TxtDiferencia.Text.Replace("$", "").Replace(",", "").ToDouble(), UsuarioActual.CveEmpresa))
{
using (ClsImpresion objImpresion = new ClsImpresion(UsuarioActual))
{
objImpresion.Imprimir(ModVarsPV.CorteActual.CveCorteTerminal, TipoImpresion.Corte, ModVarsPV.TamanoTicketConfigurado);
}
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
else
{
ModExtensiones.Alert("Ocurrió un error al cerrar turno.", "Error", MessageBoxButtons.OK);
}
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More