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,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);
}
}
}
}
}

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,409 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmComandas
{
/// <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.components = new System.ComponentModel.Container();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.PnlFrmTitulo = new System.Windows.Forms.Panel();
this.timerComandas = new System.Windows.Forms.Timer(this.components);
this.procesoComandas = new System.ComponentModel.BackgroundWorker();
this.TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.ControlComanda1 = new ADSUtileriasWF.Views.PV.ControlUser.UscComanda();
this.ControlComanda4 = new ADSUtileriasWF.Views.PV.ControlUser.UscComanda();
this.ControlComanda2 = new ADSUtileriasWF.Views.PV.ControlUser.UscComanda();
this.ControlComanda5 = new ADSUtileriasWF.Views.PV.ControlUser.UscComanda();
this.ControlComanda3 = new ADSUtileriasWF.Views.PV.ControlUser.UscComanda();
this.ControlComanda6 = new ADSUtileriasWF.Views.PV.ControlUser.UscComanda();
this.btnEnPreparacion = new System.Windows.Forms.Button();
this.Panel1 = new System.Windows.Forms.Panel();
this.btnPedidosDeMesa = new System.Windows.Forms.Button();
this.btnDespacho = new System.Windows.Forms.Button();
this.lblHoraActual = new System.Windows.Forms.Label();
this.timerHoraActual = new System.Windows.Forms.Timer(this.components);
this.Panel2 = new System.Windows.Forms.Panel();
this.BtnComandasAdelantar = new System.Windows.Forms.Button();
this.BtnComandaAtrasar = new System.Windows.Forms.Button();
this.lblPagina = new System.Windows.Forms.Label();
this.Label1 = new System.Windows.Forms.Label();
this.Panel3 = new System.Windows.Forms.Panel();
this.PnlFrmTitulo.SuspendLayout();
this.TableLayoutPanel1.SuspendLayout();
this.Panel1.SuspendLayout();
this.Panel2.SuspendLayout();
this.Panel3.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(1044, 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(1074, 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(1104, 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);
//
// PnlFrmTitulo
//
this.PnlFrmTitulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlFrmTitulo.Controls.Add(this.BtnMinimize);
this.PnlFrmTitulo.Controls.Add(this.BtnMaximizeRestore);
this.PnlFrmTitulo.Controls.Add(this.BtnClose);
this.PnlFrmTitulo.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlFrmTitulo.Location = new System.Drawing.Point(0, 0);
this.PnlFrmTitulo.Name = "PnlFrmTitulo";
this.PnlFrmTitulo.Size = new System.Drawing.Size(1135, 30);
this.PnlFrmTitulo.TabIndex = 1;
this.PnlFrmTitulo.Visible = false;
this.PnlFrmTitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// timerComandas
//
this.timerComandas.Enabled = true;
this.timerComandas.Tick += new System.EventHandler(this.timerComandas_Tick);
//
// procesoComandas
//
this.procesoComandas.WorkerReportsProgress = true;
this.procesoComandas.WorkerSupportsCancellation = false;
this.procesoComandas.DoWork += new System.ComponentModel.DoWorkEventHandler(this.procesoComandas_DoWork);
this.procesoComandas.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.procesoComandas_ProgressChanged);
this.procesoComandas.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.procesoComandas_RunWorkerCompleted);
//
// TableLayoutPanel1
//
this.TableLayoutPanel1.ColumnCount = 3;
this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 332F));
this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 326F));
this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 342F));
this.TableLayoutPanel1.Controls.Add(this.ControlComanda1, 0, 0);
this.TableLayoutPanel1.Controls.Add(this.ControlComanda4, 0, 1);
this.TableLayoutPanel1.Controls.Add(this.ControlComanda2, 1, 0);
this.TableLayoutPanel1.Controls.Add(this.ControlComanda5, 1, 1);
this.TableLayoutPanel1.Controls.Add(this.ControlComanda3, 2, 0);
this.TableLayoutPanel1.Controls.Add(this.ControlComanda6, 2, 1);
this.TableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Left;
this.TableLayoutPanel1.Location = new System.Drawing.Point(140, 30);
this.TableLayoutPanel1.Margin = new System.Windows.Forms.Padding(1);
this.TableLayoutPanel1.Name = "TableLayoutPanel1";
this.TableLayoutPanel1.RowCount = 2;
this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.TableLayoutPanel1.Size = new System.Drawing.Size(1000, 724);
this.TableLayoutPanel1.TabIndex = 0;
//
// ControlComanda1
//
this.ControlComanda1.BackColor = System.Drawing.Color.White;
this.ControlComanda1.Location = new System.Drawing.Point(1, 1);
this.ControlComanda1.Margin = new System.Windows.Forms.Padding(1);
this.ControlComanda1.Name = "ControlComanda1";
this.ControlComanda1.Size = new System.Drawing.Size(330, 360);
this.ControlComanda1.TabIndex = 0;
this.ControlComanda1.EnSeleccion += new ADSUtileriasWF.Views.PV.ControlUser.UscComanda.EnSeleccionEventHandler(this.ControlComanda_EnSeleccion);
//
// ControlComanda4
//
this.ControlComanda4.BackColor = System.Drawing.Color.White;
this.ControlComanda4.Location = new System.Drawing.Point(1, 363);
this.ControlComanda4.Margin = new System.Windows.Forms.Padding(1);
this.ControlComanda4.Name = "ControlComanda4";
this.ControlComanda4.Size = new System.Drawing.Size(330, 360);
this.ControlComanda4.TabIndex = 4;
this.ControlComanda4.EnSeleccion += new ADSUtileriasWF.Views.PV.ControlUser.UscComanda.EnSeleccionEventHandler(this.ControlComanda_EnSeleccion);
//
// ControlComanda2
//
this.ControlComanda2.BackColor = System.Drawing.Color.White;
this.ControlComanda2.Location = new System.Drawing.Point(333, 1);
this.ControlComanda2.Margin = new System.Windows.Forms.Padding(1);
this.ControlComanda2.Name = "ControlComanda2";
this.ControlComanda2.Size = new System.Drawing.Size(324, 360);
this.ControlComanda2.TabIndex = 1;
this.ControlComanda2.EnSeleccion += new ADSUtileriasWF.Views.PV.ControlUser.UscComanda.EnSeleccionEventHandler(this.ControlComanda_EnSeleccion);
//
// ControlComanda5
//
this.ControlComanda5.BackColor = System.Drawing.Color.White;
this.ControlComanda5.Location = new System.Drawing.Point(333, 363);
this.ControlComanda5.Margin = new System.Windows.Forms.Padding(1);
this.ControlComanda5.Name = "ControlComanda5";
this.ControlComanda5.Size = new System.Drawing.Size(324, 360);
this.ControlComanda5.TabIndex = 5;
this.ControlComanda5.EnSeleccion += new ADSUtileriasWF.Views.PV.ControlUser.UscComanda.EnSeleccionEventHandler(this.ControlComanda_EnSeleccion);
//
// ControlComanda3
//
this.ControlComanda3.BackColor = System.Drawing.Color.White;
this.ControlComanda3.Location = new System.Drawing.Point(659, 1);
this.ControlComanda3.Margin = new System.Windows.Forms.Padding(1);
this.ControlComanda3.Name = "ControlComanda3";
this.ControlComanda3.Size = new System.Drawing.Size(331, 360);
this.ControlComanda3.TabIndex = 2;
this.ControlComanda3.EnSeleccion += new ADSUtileriasWF.Views.PV.ControlUser.UscComanda.EnSeleccionEventHandler(this.ControlComanda_EnSeleccion);
//
// ControlComanda6
//
this.ControlComanda6.BackColor = System.Drawing.Color.White;
this.ControlComanda6.Location = new System.Drawing.Point(659, 363);
this.ControlComanda6.Margin = new System.Windows.Forms.Padding(1);
this.ControlComanda6.Name = "ControlComanda6";
this.ControlComanda6.Size = new System.Drawing.Size(331, 360);
this.ControlComanda6.TabIndex = 6;
this.ControlComanda6.EnSeleccion += new ADSUtileriasWF.Views.PV.ControlUser.UscComanda.EnSeleccionEventHandler(this.ControlComanda_EnSeleccion);
//
// btnEnPreparacion
//
this.btnEnPreparacion.BackColor = System.Drawing.Color.LightGreen;
this.btnEnPreparacion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btnEnPreparacion.Location = new System.Drawing.Point(7, 13);
this.btnEnPreparacion.Name = "btnEnPreparacion";
this.btnEnPreparacion.Size = new System.Drawing.Size(111, 50);
this.btnEnPreparacion.TabIndex = 1;
this.btnEnPreparacion.Text = "EN PREPARACION";
this.btnEnPreparacion.UseVisualStyleBackColor = false;
this.btnEnPreparacion.Click += new System.EventHandler(this.btnEnPreparacion_Click);
//
// Panel1
//
this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Panel1.Controls.Add(this.btnPedidosDeMesa);
this.Panel1.Controls.Add(this.btnDespacho);
this.Panel1.Controls.Add(this.btnEnPreparacion);
this.Panel1.Location = new System.Drawing.Point(6, 43);
this.Panel1.Name = "Panel1";
this.Panel1.Size = new System.Drawing.Size(130, 186);
this.Panel1.TabIndex = 2;
//
// btnPedidosDeMesa
//
this.btnPedidosDeMesa.BackColor = System.Drawing.Color.Yellow;
this.btnPedidosDeMesa.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btnPedidosDeMesa.Location = new System.Drawing.Point(7, 125);
this.btnPedidosDeMesa.Name = "btnPedidosDeMesa";
this.btnPedidosDeMesa.Size = new System.Drawing.Size(111, 50);
this.btnPedidosDeMesa.TabIndex = 3;
this.btnPedidosDeMesa.Text = "PEDIDOS DE MESA";
this.btnPedidosDeMesa.UseVisualStyleBackColor = false;
//
// btnDespacho
//
this.btnDespacho.BackColor = System.Drawing.Color.Orange;
this.btnDespacho.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btnDespacho.Location = new System.Drawing.Point(7, 69);
this.btnDespacho.Name = "btnDespacho";
this.btnDespacho.Size = new System.Drawing.Size(111, 50);
this.btnDespacho.TabIndex = 2;
this.btnDespacho.Text = "DESPACHO";
this.btnDespacho.UseVisualStyleBackColor = false;
this.btnDespacho.Click += new System.EventHandler(this.btnDespacho_Click);
//
// lblHoraActual
//
this.lblHoraActual.AutoSize = true;
this.lblHoraActual.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblHoraActual.Location = new System.Drawing.Point(6, 9);
this.lblHoraActual.Name = "lblHoraActual";
this.lblHoraActual.Size = new System.Drawing.Size(128, 31);
this.lblHoraActual.TabIndex = 3;
this.lblHoraActual.Text = "00:00:00";
//
// timerHoraActual
//
this.timerHoraActual.Enabled = true;
this.timerHoraActual.Interval = 1000;
this.timerHoraActual.Tick += new System.EventHandler(this.timerHoraActual_Tick);
//
// Panel2
//
this.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Panel2.Controls.Add(this.BtnComandasAdelantar);
this.Panel2.Controls.Add(this.BtnComandaAtrasar);
this.Panel2.Controls.Add(this.lblPagina);
this.Panel2.Controls.Add(this.Label1);
this.Panel2.Location = new System.Drawing.Point(6, 235);
this.Panel2.Name = "Panel2";
this.Panel2.Size = new System.Drawing.Size(130, 178);
this.Panel2.TabIndex = 4;
//
// BtnComandasAdelantar
//
this.BtnComandasAdelantar.Enabled = false;
this.BtnComandasAdelantar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.BtnComandasAdelantar.Location = new System.Drawing.Point(68, 110);
this.BtnComandasAdelantar.Name = "BtnComandasAdelantar";
this.BtnComandasAdelantar.Size = new System.Drawing.Size(50, 50);
this.BtnComandasAdelantar.TabIndex = 3;
this.BtnComandasAdelantar.Text = "-->";
this.BtnComandasAdelantar.UseVisualStyleBackColor = true;
this.BtnComandasAdelantar.Click += new System.EventHandler(this.BtnComandasAdelantar_Click);
//
// BtnComandaAtrasar
//
this.BtnComandaAtrasar.Enabled = false;
this.BtnComandaAtrasar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.BtnComandaAtrasar.Location = new System.Drawing.Point(7, 110);
this.BtnComandaAtrasar.Name = "BtnComandaAtrasar";
this.BtnComandaAtrasar.Size = new System.Drawing.Size(50, 50);
this.BtnComandaAtrasar.TabIndex = 2;
this.BtnComandaAtrasar.Text = "<--";
this.BtnComandaAtrasar.UseVisualStyleBackColor = true;
this.BtnComandaAtrasar.Click += new System.EventHandler(this.BtnComandaAtrasar_Click);
//
// lblPagina
//
this.lblPagina.AutoSize = true;
this.lblPagina.Font = new System.Drawing.Font("Microsoft Sans Serif", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblPagina.Location = new System.Drawing.Point(30, 34);
this.lblPagina.Name = "lblPagina";
this.lblPagina.Size = new System.Drawing.Size(69, 73);
this.lblPagina.TabIndex = 1;
this.lblPagina.Text = "1";
//
// Label1
//
this.Label1.AutoSize = true;
this.Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.Label1.Location = new System.Drawing.Point(19, 10);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(80, 24);
this.Label1.TabIndex = 0;
this.Label1.Text = "Pagina:";
//
// Panel3
//
this.Panel3.Controls.Add(this.lblHoraActual);
this.Panel3.Controls.Add(this.Panel2);
this.Panel3.Controls.Add(this.Panel1);
this.Panel3.Dock = System.Windows.Forms.DockStyle.Left;
this.Panel3.Location = new System.Drawing.Point(0, 30);
this.Panel3.Name = "Panel3";
this.Panel3.Size = new System.Drawing.Size(140, 724);
this.Panel3.TabIndex = 5;
//
// FrmComandas
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1135, 754);
this.ControlBox = false;
this.Controls.Add(this.TableLayoutPanel1);
this.Controls.Add(this.Panel3);
this.Controls.Add(this.PnlFrmTitulo);
this.Name = "FrmComandas";
this.ShowInTaskbar = false;
this.Leave += new System.EventHandler(this.frmComandas_Leave);
this.PnlFrmTitulo.ResumeLayout(false);
this.TableLayoutPanel1.ResumeLayout(false);
this.Panel1.ResumeLayout(false);
this.Panel2.ResumeLayout(false);
this.Panel2.PerformLayout();
this.Panel3.ResumeLayout(false);
this.Panel3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel PnlFrmTitulo;
private System.Windows.Forms.Timer timerComandas;
public System.ComponentModel.BackgroundWorker procesoComandas;
private System.Windows.Forms.TableLayoutPanel TableLayoutPanel1;
private ADSUtileriasWF.Views.PV.ControlUser.UscComanda ControlComanda6;
private ADSUtileriasWF.Views.PV.ControlUser.UscComanda ControlComanda5;
private ADSUtileriasWF.Views.PV.ControlUser.UscComanda ControlComanda4;
private ADSUtileriasWF.Views.PV.ControlUser.UscComanda ControlComanda3;
private ADSUtileriasWF.Views.PV.ControlUser.UscComanda ControlComanda2;
private ADSUtileriasWF.Views.PV.ControlUser.UscComanda ControlComanda1;
private System.Windows.Forms.Button btnEnPreparacion;
private System.Windows.Forms.Panel Panel1;
private System.Windows.Forms.Label lblHoraActual;
private System.Windows.Forms.Timer timerHoraActual;
private System.Windows.Forms.Button btnPedidosDeMesa;
private System.Windows.Forms.Button btnDespacho;
private System.Windows.Forms.Panel Panel2;
private System.Windows.Forms.Button BtnComandaAtrasar;
private System.Windows.Forms.Label lblPagina;
private System.Windows.Forms.Label Label1;
private System.Windows.Forms.Button BtnComandasAdelantar;
private System.Windows.Forms.Panel Panel3;
}
}

View File

@@ -0,0 +1,239 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
using ADSUtileriasWF.Views.PV.ControlUser;
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 FrmComandas : FormBase
{
private int CveCategoria;
private string Categoria;
private List<int> CveVentaDetalleTerminalSeleccionadas = new List<int>();
private int indicePagina = 1;
public FrmComandas(int CveCategoria_, string Categoria_)
{
InitializeComponent();
CveCategoria = CveCategoria_;
Categoria = Categoria_;
this.Text = Categoria.ToUpper();
}
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 timerComandas_Tick(object sender, EventArgs e)
{
BtnComandaAtrasar.Enabled = false;
BtnComandasAdelantar.Enabled = false;
timerComandas.Stop();
timerComandas.Interval = 20000;
procesoComandas.RunWorkerAsync();
}
private void procesoComandas_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
{
int i = 1 - indicePagina * 6 + 6;
if (i != 1)
{
procesoComandas.ReportProgress(-20);
}
var objVenta = new ClsVentas();
// Dim i As Integer = 1
UscComanda Comanda;
if (objVenta.GetVentasDetalle(-1, WCF_PV.ClsVentasEstatusEntrega.Solicitado))
{
DataTable tmpDT = objVenta.DtResultados.Tabla.FiltraParametros("EstatusEntrega in (1, 2) and EsPromocion = 0 and CveEstatusFactura = 6 and CveCategoria = " + CveCategoria.ToString());
if (tmpDT.Rows.Count > 0)
{
int CveVentaTerminal = 0;
foreach (DataRow Row in tmpDT.FiltraParametros("", "", new[] { "CveVentaTerminal" }).Rows)
{
if (CveVentaTerminal != Row["CveVentaTerminal"].ToString().ToEntero())
{
CveVentaTerminal = Row["CveVentaTerminal"].ToString().ToEntero();
// ArticulosPorComanda = tmpDT.FiltraParametros("CveVentaTerminal = " + CveVentaTerminal.ToString).Rows.Count
if (i > 0 & i <= 6)
{
if (this.Controls.Find(string.Format("ControlComanda{0}", i), true).Length > 0)
{
Comanda = (UscComanda)this.Controls.Find(string.Format("ControlComanda{0}", i), true)[0];
// If Comanda.Tag <> CveVentaTerminal Then 'Or Comanda.dgComanda.Rows.Count - 1 <> ArticulosPorComanda Then
Comanda.Tag = CveVentaTerminal;
procesoComandas.ReportProgress(i);
// End If
i += 1;
}
}
else
{
procesoComandas.ReportProgress(-10);
i += 1;
}
}
}
}
}
// oculto las demas comandas
for (int ii = i; ii <= 6; ii++)
{
procesoComandas.ReportProgress(-i);
i += 1;
}
objVenta.Dispose();
}
private void procesoComandas_ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
{
switch (e.ProgressPercentage)
{
case 1:
{
ControlComanda1.CargaComanda(ControlComanda1.Tag.ToString().ToEntero(), CveCategoria);
break;
}
case 2:
{
ControlComanda2.CargaComanda(ControlComanda2.Tag.ToString().ToEntero(), CveCategoria);
break;
}
case 3:
{
ControlComanda3.CargaComanda(ControlComanda3.Tag.ToString().ToEntero(), CveCategoria);
break;
}
case 4:
{
ControlComanda4.CargaComanda(ControlComanda4.Tag.ToString().ToEntero(), CveCategoria);
break;
}
case 5:
{
ControlComanda5.CargaComanda(ControlComanda5.Tag.ToString().ToEntero(), CveCategoria);
break;
}
case 6:
{
ControlComanda6.CargaComanda(ControlComanda6.Tag.ToString().ToEntero(), CveCategoria);
break;
}
}
if (e.ProgressPercentage < 0 & e.ProgressPercentage >= -6)
{
// Ocultar comanda
int i = Math.Abs(e.ProgressPercentage);
UscComanda Comanda;
if (this.Controls.Find(string.Format("ControlComanda{0}", i), true).Length > 0)
{
Comanda = (UscComanda)this.Controls.Find(string.Format("ControlComanda{0}", i), true)[0];
Comanda.Visible = false;
Comanda.Tag = 0;
BtnComandasAdelantar.Enabled = false;
}
}
if (e.ProgressPercentage == -10)
{
BtnComandasAdelantar.Enabled = true;
}
if (e.ProgressPercentage == -20)
{
BtnComandaAtrasar.Enabled = true;
}
}
private void procesoComandas_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
{
timerComandas.Start();
}
private void frmComandas_Leave(object sender, EventArgs e)
{
timerComandas.Stop();
}
private void timerHoraActual_Tick(object sender, EventArgs e)
{
lblHoraActual.Text = DateTime.Now.ToString("HH:mm:ss");
}
private void ControlComanda_EnSeleccion(int CveVentaDetalleTerminal)
{
CveVentaDetalleTerminalSeleccionadas.Add(CveVentaDetalleTerminal);
timerComandas.Stop();
timerComandas.Start();
}
private void btnEnPreparacion_Click(object sender, EventArgs e)
{
var objVenta = new ClsVentas();
foreach (int i in CveVentaDetalleTerminalSeleccionadas)
objVenta.UpdateEstatusEntregaVentaDetalle(-1, i, WCF_PV.ClsVentasEstatusEntrega.Todas, WCF_PV.ClsVentasEstatusEntrega.EnProceso);
objVenta.Dispose();
CveVentaDetalleTerminalSeleccionadas.Clear();
ReiniciarTimerComandasRapido();
}
private void btnDespacho_Click(object sender, EventArgs e)
{
var objVenta = new ClsVentas();
foreach (int i in CveVentaDetalleTerminalSeleccionadas)
objVenta.UpdateEstatusEntregaVentaDetalle(-1, i, WCF_PV.ClsVentasEstatusEntrega.Todas, WCF_PV.ClsVentasEstatusEntrega.Preparado);
objVenta.Dispose();
CveVentaDetalleTerminalSeleccionadas.Clear();
ReiniciarTimerComandasRapido();
}
private void BtnComandasAdelantar_Click(object sender, EventArgs e)
{
indicePagina = indicePagina + 1;
lblPagina.Text = indicePagina.ToString();
timerComandas.Stop();
timerComandas.Interval = 100;
timerComandas.Start();
}
protected void ReiniciarTimerComandasRapido()
{
timerComandas.Stop();
timerComandas.Interval = 1000;
timerComandas.Start();
}
private void BtnComandaAtrasar_Click(object sender, EventArgs e)
{
indicePagina = indicePagina - 1;
lblPagina.Text = indicePagina.ToString();
timerComandas.Stop();
timerComandas.Interval = 100;
timerComandas.Start();
}
}
}

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,415 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmConfiguracionInicial
{
/// <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(FrmConfiguracionInicial));
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.tabControl1 = new System.Windows.Forms.TabControl();
this.TabWebService = new System.Windows.Forms.TabPage();
this.Gboxservicio = new System.Windows.Forms.GroupBox();
this.BtnConectarWCF = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.TxtRutaWCF = new System.Windows.Forms.TextBox();
this.gbConfiguracion = new System.Windows.Forms.GroupBox();
this.btnGuardar = new System.Windows.Forms.Button();
this.ddTipoImp = new System.Windows.Forms.ComboBox();
this.ddTipoTerminal = new System.Windows.Forms.ComboBox();
this.Label2 = new System.Windows.Forms.Label();
this.chkImprimirComandas = new System.Windows.Forms.CheckBox();
this.Label3 = new System.Windows.Forms.Label();
this.PnlBienvenido = new System.Windows.Forms.Panel();
this.BtnHideBienvenido = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.LblBienvenido = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.PnlTitulo.SuspendLayout();
this.tabControl1.SuspendLayout();
this.TabWebService.SuspendLayout();
this.Gboxservicio.SuspendLayout();
this.gbConfiguracion.SuspendLayout();
this.PnlBienvenido.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(403, 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(433, 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(463, 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.label5);
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(494, 30);
this.PnlTitulo.TabIndex = 1;
this.PnlTitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// tabControl1
//
this.tabControl1.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.tabControl1.Controls.Add(this.TabWebService);
this.tabControl1.Location = new System.Drawing.Point(0, 37);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(500, 324);
this.tabControl1.TabIndex = 2;
//
// TabWebService
//
this.TabWebService.Controls.Add(this.Gboxservicio);
this.TabWebService.Controls.Add(this.gbConfiguracion);
this.TabWebService.Location = new System.Drawing.Point(4, 24);
this.TabWebService.Name = "TabWebService";
this.TabWebService.Padding = new System.Windows.Forms.Padding(3);
this.TabWebService.Size = new System.Drawing.Size(492, 296);
this.TabWebService.TabIndex = 0;
this.TabWebService.Text = "Web Service";
this.TabWebService.UseVisualStyleBackColor = true;
//
// Gboxservicio
//
this.Gboxservicio.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Gboxservicio.Controls.Add(this.BtnConectarWCF);
this.Gboxservicio.Controls.Add(this.label4);
this.Gboxservicio.Controls.Add(this.TxtRutaWCF);
this.Gboxservicio.Location = new System.Drawing.Point(20, 5);
this.Gboxservicio.Name = "Gboxservicio";
this.Gboxservicio.Size = new System.Drawing.Size(455, 110);
this.Gboxservicio.TabIndex = 4;
this.Gboxservicio.TabStop = false;
this.Gboxservicio.Text = "1: Seleccione la ruta del servicio";
//
// BtnConectarWCF
//
this.BtnConectarWCF.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnConectarWCF.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.BtnConectarWCF.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28)))));
this.BtnConectarWCF.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.BtnConectarWCF.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnConectarWCF.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnConectarWCF.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.BtnConectarWCF.Location = new System.Drawing.Point(263, 50);
this.BtnConectarWCF.Name = "BtnConectarWCF";
this.BtnConectarWCF.Size = new System.Drawing.Size(165, 40);
this.BtnConectarWCF.TabIndex = 1;
this.BtnConectarWCF.Text = "Continuar";
this.BtnConectarWCF.UseVisualStyleBackColor = false;
this.BtnConectarWCF.Click += new System.EventHandler(this.BtnConectarWCF_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(8, 24);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(59, 15);
this.label4.TabIndex = 0;
this.label4.Text = "Ruta WCF";
//
// TxtRutaWCF
//
this.TxtRutaWCF.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtRutaWCF.Location = new System.Drawing.Point(68, 21);
this.TxtRutaWCF.Name = "TxtRutaWCF";
this.TxtRutaWCF.Size = new System.Drawing.Size(360, 23);
this.TxtRutaWCF.TabIndex = 1;
this.TxtRutaWCF.Text = "http://localhost:8000/WCF/";
//
// gbConfiguracion
//
this.gbConfiguracion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.gbConfiguracion.Controls.Add(this.btnGuardar);
this.gbConfiguracion.Controls.Add(this.ddTipoImp);
this.gbConfiguracion.Controls.Add(this.ddTipoTerminal);
this.gbConfiguracion.Controls.Add(this.Label2);
this.gbConfiguracion.Controls.Add(this.chkImprimirComandas);
this.gbConfiguracion.Controls.Add(this.Label3);
this.gbConfiguracion.Enabled = false;
this.gbConfiguracion.Location = new System.Drawing.Point(20, 120);
this.gbConfiguracion.Name = "gbConfiguracion";
this.gbConfiguracion.Size = new System.Drawing.Size(455, 175);
this.gbConfiguracion.TabIndex = 3;
this.gbConfiguracion.TabStop = false;
this.gbConfiguracion.Text = "2: Configuración";
//
// btnGuardar
//
this.btnGuardar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnGuardar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.btnGuardar.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28)))));
this.btnGuardar.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.btnGuardar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnGuardar.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnGuardar.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.btnGuardar.Location = new System.Drawing.Point(263, 130);
this.btnGuardar.Name = "btnGuardar";
this.btnGuardar.Size = new System.Drawing.Size(165, 40);
this.btnGuardar.TabIndex = 1;
this.btnGuardar.Text = "Guardar";
this.btnGuardar.UseVisualStyleBackColor = false;
this.btnGuardar.Click += new System.EventHandler(this.btnGuardar_Click);
//
// ddTipoImp
//
this.ddTipoImp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ddTipoImp.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.ddTipoImp.Enabled = false;
this.ddTipoImp.FormattingEnabled = true;
this.ddTipoImp.Items.AddRange(new object[] {
"CHICA",
"NORMAL"});
this.ddTipoImp.Location = new System.Drawing.Point(100, 94);
this.ddTipoImp.Name = "ddTipoImp";
this.ddTipoImp.Size = new System.Drawing.Size(328, 23);
this.ddTipoImp.TabIndex = 5;
//
// ddTipoTerminal
//
this.ddTipoTerminal.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ddTipoTerminal.DisplayMember = "Categoria";
this.ddTipoTerminal.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.ddTipoTerminal.FormattingEnabled = true;
this.ddTipoTerminal.Location = new System.Drawing.Point(100, 19);
this.ddTipoTerminal.Name = "ddTipoTerminal";
this.ddTipoTerminal.Size = new System.Drawing.Size(328, 23);
this.ddTipoTerminal.TabIndex = 3;
this.ddTipoTerminal.ValueMember = "CveCategoria";
//
// Label2
//
this.Label2.AutoSize = true;
this.Label2.Location = new System.Drawing.Point(5, 20);
this.Label2.Name = "Label2";
this.Label2.Size = new System.Drawing.Size(78, 15);
this.Label2.TabIndex = 2;
this.Label2.Text = "Tipo Terminal";
//
// chkImprimirComandas
//
this.chkImprimirComandas.AutoSize = true;
this.chkImprimirComandas.Location = new System.Drawing.Point(5, 55);
this.chkImprimirComandas.Name = "chkImprimirComandas";
this.chkImprimirComandas.Size = new System.Drawing.Size(132, 19);
this.chkImprimirComandas.TabIndex = 6;
this.chkImprimirComandas.Text = "Imprimir Comandas";
this.chkImprimirComandas.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage;
this.chkImprimirComandas.UseVisualStyleBackColor = true;
this.chkImprimirComandas.CheckedChanged += new System.EventHandler(this.chkImprimirComandas_CheckedChanged);
//
// Label3
//
this.Label3.AutoSize = true;
this.Label3.Location = new System.Drawing.Point(5, 94);
this.Label3.Name = "Label3";
this.Label3.Size = new System.Drawing.Size(86, 15);
this.Label3.TabIndex = 4;
this.Label3.Text = "Tipo Impresora";
//
// PnlBienvenido
//
this.PnlBienvenido.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.PnlBienvenido.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlBienvenido.Controls.Add(this.BtnHideBienvenido);
this.PnlBienvenido.Controls.Add(this.label1);
this.PnlBienvenido.Controls.Add(this.LblBienvenido);
this.PnlBienvenido.Location = new System.Drawing.Point(0, 30);
this.PnlBienvenido.Name = "PnlBienvenido";
this.PnlBienvenido.Size = new System.Drawing.Size(500, 342);
this.PnlBienvenido.TabIndex = 3;
//
// BtnHideBienvenido
//
this.BtnHideBienvenido.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnHideBienvenido.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
this.BtnHideBienvenido.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28)))));
this.BtnHideBienvenido.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.BtnHideBienvenido.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnHideBienvenido.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnHideBienvenido.ForeColor = System.Drawing.Color.LightGray;
this.BtnHideBienvenido.Location = new System.Drawing.Point(210, 264);
this.BtnHideBienvenido.Name = "BtnHideBienvenido";
this.BtnHideBienvenido.Size = new System.Drawing.Size(263, 40);
this.BtnHideBienvenido.TabIndex = 5;
this.BtnHideBienvenido.Text = "Continuar";
this.BtnHideBienvenido.UseVisualStyleBackColor = false;
this.BtnHideBienvenido.Click += new System.EventHandler(this.BtnHideBienvenido_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.label1.Location = new System.Drawing.Point(31, 101);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(402, 21);
this.label1.TabIndex = 1;
this.label1.Text = "Para iniciar es necesario realizar una breve configuracion";
//
// LblBienvenido
//
this.LblBienvenido.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LblBienvenido.AutoSize = true;
this.LblBienvenido.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblBienvenido.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.LblBienvenido.Location = new System.Drawing.Point(10, 28);
this.LblBienvenido.Name = "LblBienvenido";
this.LblBienvenido.Size = new System.Drawing.Size(355, 32);
this.LblBienvenido.TabIndex = 0;
this.LblBienvenido.Text = "Bienvenido a su punto de venta";
//
// 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(183, 22);
this.label5.TabIndex = 1;
this.label5.Text = "Configuración inicial";
//
// FrmConfiguracionInicial
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(494, 364);
this.ControlBox = false;
this.Controls.Add(this.PnlBienvenido);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.PnlTitulo);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmConfiguracionInicial";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.PnlTitulo.ResumeLayout(false);
this.PnlTitulo.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.TabWebService.ResumeLayout(false);
this.Gboxservicio.ResumeLayout(false);
this.Gboxservicio.PerformLayout();
this.gbConfiguracion.ResumeLayout(false);
this.gbConfiguracion.PerformLayout();
this.PnlBienvenido.ResumeLayout(false);
this.PnlBienvenido.PerformLayout();
this.ResumeLayout(false);
}
#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.TabControl tabControl1;
private System.Windows.Forms.TabPage TabWebService;
private System.Windows.Forms.GroupBox gbConfiguracion;
private System.Windows.Forms.Button btnGuardar;
private System.Windows.Forms.ComboBox ddTipoImp;
private System.Windows.Forms.ComboBox ddTipoTerminal;
private System.Windows.Forms.Label Label2;
private System.Windows.Forms.CheckBox chkImprimirComandas;
private System.Windows.Forms.Label Label3;
private System.Windows.Forms.Panel PnlBienvenido;
private System.Windows.Forms.Label LblBienvenido;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button BtnHideBienvenido;
private System.Windows.Forms.GroupBox Gboxservicio;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox TxtRutaWCF;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button BtnConectarWCF;
private System.Windows.Forms.Label label5;
}
}

View File

@@ -0,0 +1,215 @@
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;
using System.Xml;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmConfiguracionInicial : FormBase
{
private bool _ispopup;
public FrmConfiguracionInicial(bool ispopup = true)
{
InitializeComponent();
_ispopup = ispopup;
Setispopup(ispopup);
}
private void btnGuardar_Click(object sender, EventArgs e)
{
try
{
XmlTextWriter writer = new XmlTextWriter("Configuracion.xml", System.Text.Encoding.UTF8);
writer.WriteStartDocument(true);
writer.Formatting = Formatting.Indented;
writer.Indentation = 2;
writer.WriteStartElement("Configuracion");
writer.WriteStartElement("RutaWCF");
writer.WriteString(TxtRutaWCF.Text);
writer.WriteEndElement();
writer.WriteStartElement("TipoTerminal");
writer.WriteString(ddTipoTerminal.SelectedItem == null ? "0_CAJA" : string.Format("{0}_{1}", ddTipoTerminal.SelectedValue, ddTipoTerminal.Text));
writer.WriteEndElement();
writer.WriteStartElement("ImprimirComandas");
writer.WriteString(chkImprimirComandas.Checked.ToString());
writer.WriteEndElement();
writer.WriteStartElement("TipoImpresora");
writer.WriteString(ddTipoImp.SelectedItem == null ? "CHICA" : ddTipoImp.SelectedItem.ToString());
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndDocument();
writer.Close();
ValidaConfiguracion();
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
catch (Exception ex)
{
ModExtensiones.OnError("Error al guardar la configuracion", "Error", ex, MessageBoxIcon.Error);
}
if (_ispopup)
{
this.Close();
}
}
private void BtnConectarWCF_Click(object sender, EventArgs e)
{
string RutaWCF = TxtRutaWCF.Text;
using (ClsCategorias objCategorias = new ClsCategorias(RutaWCF))
{
if (objCategorias.GetCategorias())
{
DataRow dr;
dr = objCategorias.DtResultados.Tabla.NewRow();
dr["CveCategoria"] = "0";
dr["Categoria"] = "CAJA";
objCategorias.DtResultados.Tabla.Rows.Add(dr);
dr = objCategorias.DtResultados.Tabla.NewRow();
dr["CveCategoria"] = "1";
dr["Categoria"] = "MESEROS";
objCategorias.DtResultados.Tabla.Rows.Add(dr);
ddTipoTerminal.DataSource = objCategorias.DtResultados.Tabla;
gbConfiguracion.Enabled = true;
}
}
}
private void chkImprimirComandas_CheckedChanged(object sender, EventArgs e)
{
ddTipoImp.Enabled = chkImprimirComandas.Checked;
}
private void BtnClose_Click_1(object sender, EventArgs e)
{
base.BtnClose_Click(sender, e);
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
base.BtnMaximizeRestore_Click(sender, e);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
base.BtnMinimize_Click(sender, e);
}
public static bool ValidaConfiguracion()
{
bool retorno = false;
string ArchivoConfiguracion = String.Format("{0}\\Configuracion.xml", System.IO.Directory.GetCurrentDirectory());
if (System.IO.File.Exists(ArchivoConfiguracion))
{
// Leer Archivo de Configuracion
XmlDocument m_xmld;
XmlNodeList m_nodelist;
XmlNode m_node;
// Creamos el "Document"
m_xmld = new XmlDocument();
// Cargamos el archivo
m_xmld.Load(string.Format(@"{0}\Configuracion.xml", System.IO.Directory.GetCurrentDirectory()));
// Obtenemos la lista de los nodos "name"
m_nodelist = m_xmld.SelectNodes("/Configuracion");
m_node = m_nodelist[0];
// Iniciamos el ciclo de lectura
foreach (XmlNode node in m_node.ChildNodes)
{
// Obtenemos el atributo del codigo
switch (node.Name.ToString().ToUpper() ?? "")
{
case "RUTAWCF":
{
ModVarsPV.RutaWCF = node.ChildNodes[0].Value;
break;
}
case "IMPRIMIRCOMANDAS":
{
ModVarsPV.ImprimirComandas = node.ChildNodes[0].Value.ToBool();
break;
}
case "TIPOIMPRESORA":
{
ModVarsPV.TamanoTicketConfigurado = node.ChildNodes[0].Value.ToUpper() == "CHICO" | node.ChildNodes[0].Value.ToUpper() == "CHICA" ? Data.Externa.PV.TamanoTicket.Chico : Data.Externa.PV.TamanoTicket.Normal;
break;
}
case "TIPOTERMINAL":
{
ModVarsPV.TipoTerminal = node.ChildNodes[0].Value;
break;
}
}
}
m_xmld = default;
// Sacar la sucursal del Servicio WCF
using (ClsSucursales obj = new ClsSucursales())
{
if (obj.GetSucursales())
{
WCF_PV.Usuario UsuarioActual = new WCF_PV.Usuario();
UsuarioActual.CveSucursal = obj.CveSucursal;
}
}
retorno = true;
}
else
{
retorno = false;
}
return retorno;
}
public void Setispopup(bool ispopup)
{
if (ispopup)
{
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
}
else
{
tabControl1.Location =new System.Drawing.Point(tabControl1.Location.X, 0);
hidepnlBienvinido();
}
PnlTitulo.Visible = ispopup;
}
public void hidepnlBienvinido()
{
PnlBienvenido.Hide();
this.tabControl1.BringToFront();
}
private void BtnHideBienvenido_Click(object sender, EventArgs e)
{
hidepnlBienvinido();
}
}
}

View File

@@ -0,0 +1,854 @@
<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>
<assembly alias="System.Drawing.Common" name="System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing.Common" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAXXsAAAEAIACouAAAFgAAACgAAABdAAAA9gAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/Pz8AP//
/wCrq6sTysrKCurq6gD6+voA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A9fX1AKysrU1dXV7DVlZWyHV1da6goKBsxMTEMeTk5AD29vYA////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD9/f0A4uHiAHZ3erlSUlTrKiot7RAQEPEjIyP1SkpK+XJycs+bm5uFv7+/Qd/f
3wT19fUA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD29vYAs7OzVVxcYO9WVlj5TU1O+icoKP0GBgb/BwcH/xAQ
EP8qKir/TU1N/25ubtmXl5eNwcHBPdzc3Ajy8vIA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP39/QDo6OkAgYKFtlhbXP5UVVf/VFRX/0tL
TP8pKSn/BgYG/wcHB/8ODg7/EhIS/xgYGP8uLi7/UlJS/3JyctGWlpaMuLi4S9fX1xHv7+8A/Pz8AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APn5+QDAwMM9ZGRn7FdZ
W/9VVVf/UlJV/1FRU/9OT1D/KCgp/wUFBf8JCQn/Dg4O/xISEv8ZGRn/HBwc/yIiIv8zMzP/UFBQ/3Fx
cdWTk5OTvb29Q/Hx8QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+AO3t
7QCQkZGYXl9i/1ZXWv9UVVf/UVJV/09PUP9RUlT/UlJS/yYmJv8FBQX/CgoK/xEREf8TExP/Ghoa/xwc
HP8jIyP/KSkp/y0tLf85OTn/W1tb+6+vr1/4+PgA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A+vr6AM3N0CZsbG/dXV5f/1ZXWv9UVVf/UlNV/05OT/9MTE3/VFRW/1ZXV/8fHx//BQUF/woK
Cv8RERH/FBQU/xoaGv8eHh7/IyMj/ygoKP8sLCz/NTU1/1paWvu6urpI+vr6AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A8vLyAJ2eoIFgYGP/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/SUlK/1pa
W/9aWlr/FBQU/wQEBP8NDQ3/ERER/xYWFv8aGhr/ICAg/yMjI/8pKSn/LCws/zY2Nv9hYWHww8PDOfz8
/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD8/PwA1tbXE3V2ec5fYGP/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/RkZJ/0ZJSf9lZWX/VlZW/wwMDP8GBgb/DQ0N/xEREf8WFhb/Gxsb/yEhIf8kJCT/Kioq/y0t
Lf84ODj/ampq4dDQ0B7///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDz8/MAqamra2Rma/9fX2L/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dJ/0RERv9KSkv/bXBw/0xMTP8GBgb/BwcH/w4ODv8SEhL/GBgY/xsb
G/8hISH/JCQk/yoqKv8tLS3/OTk5/3d3d8ra2toL////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP39/QDg4OAAfH5/vmNl
aP9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQEH/TU1N/2dnZ/8mJif/BQUF/wkJ
Cf8ODg7/ExMT/xkZGf8cHBz/IiIi/yYmJv8rKyv/Li4u/z4+Pv+AgIC34ODgAP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APf3
9wC4uLpMamps4WFkZ/9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/PT4//0lK
Sv8+Pz//BgYG/wUFBf8HBwf/Dg4O/xMTE/8aGhr/Hh4e/yMjI/8nJyf/LCws/zAwMP9AQED/jIyMoO3t
7QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f39AOHh4gCAgYS3Z2dq/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VF
Rf9BQkL/PT4+/zk8PP85OTn/Pj4+/zU1Nf8kJCT/GRkZ/xMTE/8SEhL/FhYW/xsbG/8hISH/JiYm/yws
LP8wMDD/QEBA/4+Pj5zp6ekA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A9/f3ALi4ukxsbnPdZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0VFRf9BQkL/PT4+/zk7O/9OT0//cHBw/3BwcP9paWn/Xl5e/1FRUf9ERET/NTU1/yoq
Kv8jIyP/IiIi/yQkJP8qKir/Li4u/05OTv+Xl5eN7+/vAP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD+/v4A6enqAImJjKdqa3H/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQkL/Pj4+/0ZGRv98fHz/e3t7/3l5ef93d3f/d3d3/3h4
eP91dXX/bm5u/2ZmZv9cXFz/Tk5O/0JCQv84ODj/NDQ0/zQ0NP9QUFD/oaGhevb29gD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD4+PoAw8TEOXFydtVnaG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/QEBB/3Z2d/+Ojo7/d3d3/3d3
d/9bW1v/NjY2/0RERP9dXV3/bW1t/3d3d/94eHj/eHh4/3Jycv9ra2v/ZGRk/1lZWf9SUlL/aWlp4bi4
uEz7+/sA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDu7+0Ak5OWlG5w
cv9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf8/QEH/VlZY/5+f
n/9/fn7/eHh4/2xsbP88PDz/IyMj/xEREf8TExP/JiYm/zk5Of9NTU3/YGBg/3BwcP95eXn/eXl5/3h4
eP90dHT/eHh4/6Ojo3b29vYA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8
/ADMzMwmd3d8ymxtcP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0RE
RP9FRUf/hoaI/5aWlv93d3f/d3d3/1VVVf8uLi7/LS0t/yQkJP8KCgr/BQUF/w0NDf8YGBj/IyMj/zEx
Mf9DQ0P/VFRU/2dnZ/90dHT/iIiI/8bGxjH8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APr6+gCsrK5ncHN2/2xscf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dJ/0RERv9bXFz/n5+f/35+fv92dnb/aWlp/zs7O/8tLS3/MTEx/zMzM/8uLi7/CQkJ/wUF
Bf8KCgr/Dg4O/xYWFv8cHBz/JCQk/zIyMv8/Pz//XV1d/5+fn37R0dEe7OzsAPv7+wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APz8/ADJyckueHl/xmxucP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/RkZI/0dJTP+FhYX/j4+P/3Z2dv91dXX/T09P/zExMf8wMDD/MDAw/zEx
Mf87Ozv/NTU1/wYGBv8GBgb/CwsL/xEREf8TExP/Ghoa/x8fH/8kJCT/MDAw/0VFRf9aWlr7c3Nz0aGh
oXrn5+cA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDv7+8AoqKodm5wcv9naG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9LS07/R0dH/15eX/+XmJr/e3t7/3d3d/9nZ2f/OTk5/zAw
MP8wMDD/MDAw/zAwMP8zMzP/SUlJ/zY2Nv8EBAT/BwcH/w0NDf8RERH/FxcX/xsbG/8gICD/JCQk/ykp
Kf8uLi7/Nzc3/1JSUv+VlZWR8PDwAP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+vv8AP38/AD8/PwA3t7eBIWF
if9qanL/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9LS0z/S0xN/4CBgv+JiYn/eHh4/3R0
dP9OTk7/MzMz/y8yMv8wMDD/MDAw/zAwMP8wMDD/ODg4/1NTU/8zMzP/BAQE/wcHB/8NDQ3/ERER/xcX
F/8bGxv/ICAg/yQkJP8qKir/Li4u/zU1Nf9SUlL/o6OjdvT09AD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD5+/8Ao8v7cr7I
10Hi394E7OzsAMDAv/9yc3f/Zmdp/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05PUP9MTE3/YGFi/4+P
j/96enr/eHh4/2VlZ/88PDz/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/z8/P/9iYmL/LS0t/wMD
A/8HBwf/EBAQ/xMTE/8ZGRn/Hh4e/yIiIv8nJyf/Kysr/zAwMP84ODj/WVlZ/62trWP5+fkA////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP7/
/wDZ6v8LO5j//2+i4v+1s6//u7m5/7y8vP+Fhor/ZGRo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9QUFL/fX1+/4SEhP93d3f/dHR0/01OTv81NTf/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP9LS0v/bW1t/xsbG/8EBAT/CgoK/xAQEP8UFBT/GRkZ/x4eHv8iIiL/Jycn/ysrK/8xMTH/ODg4/2Bg
YPS8vLxF/Pz8AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APn8/wCWx/+JBIf//ymL+f+To7v/qaWj/6utrf+ZmZv/bW5u/19gZv9fX2L/XF1g/1ZX
Wv9UVVf/UVJV/09QUP9fX2P/h4eH/3l6eP92dnb/YWFh/z09Pf83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8yMjL/W1tb/3BwcP8ODg7/BAQE/wwMDP8RERH/FhYW/xoaGv8fHx//IyMj/ygo
KP8tLS3/MjIy/zs7O/9oaGjkxMTENf7+/gD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A/v7/AOPw/wBEnv//AIX//wSC//9bmOX/qamq/6ajov+hoaH/iIiK/2Jj
Z/9eX1//XF1g/1ZXWv9VVVf/UVJU/1JTU/93d3f/f39//3h4eP9xcnL/S0tM/zg7O/83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/NjY2/3Jycv9qamr/BQUF/wYGBv8MDAz/ERER/xcX
F/8bGxv/ICAg/yQkJP8pKSn/LS0t/zIyMv8+Pj7/cnJy0dLS0hv///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+vz/AKrT/2cSiv//AYP//wCB//8oif3/jKjO/6mn
n/+jo6X/n52d/3l5fP9cXWD/XF1g/1ZXWv9VVVf/UVFW/19gYf9/f3//eXl5/3d3d/9hYWH/Pj4//zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/0BAQP+Dg4P/VlZW/wQE
BP8JCQn/DQ0N/xISEv8XFxf/Gxsb/yAgIP8kJCT/KSkp/y0tLf8yMjL/QUFB/39/f7rd3d0I////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A7fb/AFip//cAh///AYP//wKB
//8Gg///TZf1/6iwuf+loqH/paWl/5WVlf9oaWv/Wltc/1dZW/9UVVf/VFRW/3Fwcv98fHz/eHh4/29x
cf9MTEz/PT09/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4u
Lv9MTEz/f39//ykpKf8EBAT/CQkJ/w0NDf8SEhL/FxcX/xsbG/8gICD/JiYm/yoqKv8uLi7/MzMz/0ZG
Rv+Hh4er4+PjAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD7/f8At9j/TBqN
//8Ahf//AYP//wKB//8Agf//Gob//32q5v+vraj/o6Gh/6Kiov+Ghon/XV5f/1ZWWf9UVFn/X19i/3l5
ef95eXn/d3d3/15eX/9AQUP/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/UFBQ/1NTU/8NDQ3/BQUF/wsLC/8NDQ3/FBQU/xkZGf8eHh7/IiIi/ycn
J/8rKyv/MDAw/zU1Nf9LS0v/kpKSlOzs7AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wDx9/8AZrH/4QCI//8BhP//AYP//wKC//8DgP//A3///z2S//+ots7/qKWg/6Ojo/+dnJ7/dHR3/1VW
Vv9VVVr/ampq/3l5ef94eHj/bW1v/0xNTf9AQUH/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MjIy/0VFRf8rKyv/BAQE/wYGBv8LCwv/ERER/xYW
Fv8aGhr/Hh4e/yMjI/8nJyf/Kysr/zAwMP83Nzf/UFBQ/56enn709PQA////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APz9/wDH4/8uI5H//wCH//8BhP//AYP//wKC//8DgP//A3///xOC//9vp/T/tra1/6Gh
of+jo6P/lJOV/2RkaP9bW1v/c3Nz/3l5ef93dnb/XF1d/0NDRv9BQUH/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zMzM/8sLCz/BwcH/wMD
A/8FBQX/CQkJ/w0NDf8TExP/GRkZ/x4eHv8jIyP/KCgo/y0tLf8yMjL/OTk5/1dXV/+srKxn+Pj4AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APj7/wB5uv++Aov//wCF//8BhP//AYP//wKC//8DgP//A3///wZ/
//8ri///oLvl/7Gtp/+hoaH/o6Gh/4iIiP9sbG//e3t7/3t7e/9vbW//TExN/0RERv9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8xMTH/Ozs7/zk5Of8wMDD/KSkp/yIiIv8eHh7/HBwc/xsbG/8fHx//ISEh/yYmJv8qKir/MDAw/zk5
Of9fX1/0s7OzWPz8/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A/f7+ANjs/w8wlv//AIn//wCF//8BhP//AYP//wKC
//8DgP//A3///wN///8Jff//WJ7+/7i/yv+mo6H/o6Wl/5+fn/+Wlpb/mJiY/5SUlP9kZWf/RUVF/0VF
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/zMzM/9XV1f/enp6/3Fxcf9tbW3/aWlp/2VlZf9gYGD/Wlpa/1JSUv9MTEz/RkZG/0FB
Qf89PT3/Ozs7/zk5Of9AQED/Z2dn5MHBwT37+/sA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+Pv/AJTI/40Gjf//AIf//wCF
//8BhP//AYP//wKC//8DgP//Bn///wN///8Cff//G4P//3+t8v+wsLD/pKKh/6Ojo/+jo6P/o6Oj/4yM
jP9SUlX/RUVK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/LS0t/1RUVP+Tk5P/goKC/3l5ef96enr/enp6/3p6ev94eHj/eHh4/3V1
df90dHT/cnJy/3BwcP9ra2v/aWlp/2VlZf9jY2P/ZWVl/5SUlJHu7u4A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD+/v8A4O//AD+f
//8Aif//AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ///8Eff//B3z//yyI//+CodP/paWg/6Oj
o/+ioqL/n5+f/2xtb/9JSUr/R0dK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8tLS3/ODg4/5mZmf+cnJz/d3d3/3l5ef93d3f/cHBw/2tr
a/90dHT/eHh4/3x8fP98fHz/fHx8/3t7e/97e3v/eXl5/3h4eP93d3f/gICAt7CwsF/29vYA////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD5/P8Aoc//dgiO//8AiP//AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ///8Eff//BXz//wh7
//84hfL/m6Gx/6mopf+pqan/paWl/3d3d/9JSUr/RkdK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/aWlp/7S0tP+AgID/dnZ2/3h4
eP9sbGz/QUFB/yMjI/8pKSn/ODg4/0ZGRv9SUlL/Xl5e/2dnZ/9tbW3/dHR0/3l5ef99fX3/m5ubhePj
4wD+/v4A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDo9P8ATqX//wCM//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ/
//8Hff//BXz//wZ6//9FjPH/p6uz/7Gxr/+xsbH/tLS0/6Wlpf9fX2D/REVH/0VFRf9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9JSUn/s7Oz/5OT
k/91dXX/eXl5/3R0dP9SUlL/LS0t/xoaGv8GBgb/BgYG/wwMDP8WFhb/ICAg/ygoKP8zMzP/PT09/0ZG
Rv9XV1f/goKCs8HBwT3V1dUX6OjoAPLy8gD8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APr8/wCt1v9fF5H//wCJ//8Ah///AIf//wCF//8BhP//AYP//wKC
//8DgP//Bn///wZ///8Efv//Bnv//yuH//+RrNj/s7Gw/7O0tP+3t7f/urq6/7u7u/+SkpL/S0tM/0JC
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zU1
Nf+QkJD/s7Oz/3h4eP95eXn/d3d3/2FhYf83Nzf/Li4u/ywsLP8hISH/CQkJ/wQEBP8GBgb/DAwM/xIS
Ev8XFxf/HBwc/yMjI/8rKyv/PT09/09PT/9bW1v7a2tr3X9/f7qnp6du7u7uAP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APf7/wB+wP+zAI7//wCJ//8Ah///AIf//wCF
//8BhP//AYP//wKC//8DgP//Bn///wZ///8Efv//Dn7//3Sr9/+4urz/sbGx/7S0tP+5ubn/u7u7/76+
vv+4uLj/d3Z3/0BBQ/9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8uLi7/Li4u/19fX/+3t7f/hoaG/3Z2dv95eXn/bW1t/0RERP8tLS3/MDAw/zIyMv81NTX/LS0t/wsL
C/8EBAT/CQkJ/w0NDf8SEhL/FxcX/xsbG/8gICD/JiYm/yoqKv8tLS3/Nzc3/z8/P/9aWlr7oaGhevX1
9QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APv9/wC22/9QGJP//wCK
//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wN///8Hff//PpH//7bE2v+1s7H/srOz/7a2
tv+5ubn/vLy8/8DAwP/Dw8P/rKyt/1tcXP8+Pj//PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8tLS3/QEBA/5ycnP+ZmZn/dnZ2/3l5ef91dXX/VVVV/zAwMP8wMDD/MDAw/zAw
MP81NTX/QkJC/zY2Nv8JCQn/BAQE/woKCv8ODg7/ExMT/xgYGP8eHh7/IiIi/yYmJv8qKir/MDAw/zQ0
NP88PDz/XFxc97GxsVv7+/sA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8
+wDr8f4AZ7L/3QCM//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wR+//8Ugv//iLX2/8C+
vP+xsbH/tLS0/7m5uf+7u7v/vb29/8HBwf/ExMT/xcXF/5eXl/9EREb/PT09/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8yMjL/cnJy/6Wlpf97e3v/eHh4/3d3d/9iYmL/OTk5/y4u
Lv8wMDD/MDAw/zAwMP8xMTH/ODg4/1FRUf88PDz/BgYG/wUFBf8LCwv/EBAQ/xQUFP8ZGRn/Hx8f/yIi
Iv8nJyf/LCws/zExMf80NDT/PT09/2RkZOy8vLxF/Pz8AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD9/v8A1+r8D56xxH6tqqhrfJm3vgyH+v8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//A3///wh/
//9Alf//uMTV/7WzsP+zs7P/t7e3/7q6uv+8vLz/wcHB/8PDw//FxcX/ycnJ/8DAwP90dHX/OTk5/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9OTk7/nZ2d/4aGhv92dnb/eXl5/21t
bf9FRUX/Li4u/zAwMP8wMDD/MDAw/zAwMP8wMDD/MTEx/0RERP9jY2P/PDw8/wQEBP8GBgb/DAwM/xER
Ef8WFhb/Ghoa/x8fH/8kJCT/KSkp/ywsLP8xMTH/NjY2/z8/P/9qamrhx8fHMf7+/gD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD2+/8AfcL/t0qO1P9+enf/eHt8/zuBy/8AiP//AIf//wCF//8BhP//AYP//wKC
//8DgP//A3///xOC//+DsfL/vbq5/7Gxsf+0tLT/ubm5/7y8vP+9vb3/wcHB/8TExP/IyMj/ycnJ/87O
zv+wsLL/UlNT/zY2Nv83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/zc3N/+AgID/lJSU/3d3
d/95eXn/eHh4/1ZWVv8yMjL/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zQ0NP9SUlL/cXFx/zEx
Mf8DAwP/BwcH/wwMDP8RERH/FxcX/xoaGv8gICD/JCQk/ygoKP8sLCz/MjIy/zY2Nv9CQkL/dHR0ztLS
0hv///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP3+/wDN6P8iJJz//xWR/v9ofpb/dHFp/2Z4iv8XhPT/AIf//wCF
//8BhP//AYP//wKC//8DgP//AH7//0aW//+1vsn/s7Gw/7S0tP+4uLj/ubm5/729vf/BwcH/w8PD/8XF
xf/IyMj/y8vL/83Nzf/Pz8/+oqKj9kBCQvo0NTf/NDQ0/zExMf8wMDD/MDAw/zAwMP8uLi7/MjIy/2Nj
Y/+VlZX/eXl5/3l5ef94eHj/aWlp/zY2Nv8uLi7/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8zMzP/X19f/4aGhv8sLCz/AgIC/wkJCf8NDQ3/ERER/xcXF/8bGxv/ICAg/yQkJP8pKSn/LS0t/zIy
Mv82Njb/QEBA/3Nzc9HW1tYT////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APj7/wCBxP+vAJX//wCR//9NkNL/d3Rv/3Jx
cv9Gf7z/AIf//wCF//8BhP//AYP//wKC//8DgP//FIT//4Sv6v+5trL/s7Gx/7a2tv+5ubn/u7u7/76+
vv/BwcH/xMTE/8jIyP/Hx8f/ysrK/83Nzf/Q0NDsz9DQlIiIiK81Njb0NDQ0/zExMf8wMDD/MDAw/zAw
MP8uLi7/RUVF/4qKiv+BgYH/d3d3/3l5ef9zc3P/SUlJ/ywsLP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8tLS3/Ozs7/3l5ef+MjIz/HBwc/wMDA/8JCQn/Dg4O/xISEv8XFxf/HBwc/yAg
IP8kJCT/Kioq/y4uLv80NDT/Nzc3/0VFRf99fX2+4ODgAP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v//ANzu/wgvoP//AJL//wCR
//8llfv/d4me/3Jxaf9qd4n/HYPt/wCG//8BhP//AYP//wKB//8Agf//Q5T8/6+4xf+zsbH/tLS0/7i4
uP+5ubn/vLy8/8HBwf/Dw8P/xsbG/8jIyP/Jycn/y8vL/87Ozv7Q0NBz09PTCczNzRZgYGDAMzMz/TEx
Mf8wMDD/MDAw/zAwMP80NDT/bW1t/4aGhv93d3f/eXl5/3h4eP9aWlr/MTEx/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/Li4u/0VFRf+Tk5P/ioqK/wwMDP8EBAT/CgoK/xAQ
EP8SEhL/GRkZ/xwcHP8hISH/JCQk/ysrK/8uLi7/NDQ0/zc3N/9KSkr/iIiIp+np6QD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+fz/AJXP
/4kAl///AJD//wCQ//8Aj///XZzd/397d/9ycXH/TX2z/wCG//8AhP//AYP//wOA//8Vhv//gavi/7i0
sP+zsbH/tra2/7m5uf+8vLz/v7+//8HBwf/FxcX/ycnJ/8rKyv/Kysr/zc3N/9DQ0NnS0tIH1dXVAf//
/wC8vLwmQUFB5jIzM/4wMDD/MDAw/y4uLv9NTU3/g4OD/3p6ev95eXn/eHh4/2lpaf85OTn/LS0t/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP9TU1P/q6ur/39/
f/8EBAT/BQUF/woKCv8QEBD/FBQU/xkZGf8eHh7/IyMj/ycnJ/8sLCz/MDAw/zU1Nf85OTn/Tk5O/5OT
k5T19fUA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD+/v8A5PT/AD6n//8AlP//AJD//wCQ//8Ajv//LZr//4aXq/9ycGr/bXaB/yaB5f8Ahf//AYP//wCB
//89kvn/qrO+/7OxsP+1tbX/uLi4/7q6uv+9vb3/wcHB/8PDw//Gxsb/ycnJ/8vLy//MzMz/zs7O+9HR
0TLc3NwB1tbWAv///wD///8Ah4eHZTMzM+IwMDD+Li4u/zg4OP9tbW3/fX19/3d3d/95eXn/c3Nz/0pK
Sv8tLS3/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4u
Lv8yMjL/ampq/7y8vP9eXl7/AgIC/wYGBv8MDAz/ERER/xQUFP8aGhr/Hh4e/yMjI/8pKSn/LCws/zIy
Mv82Njb/Ozs7/1NTU/+8vLxF+fn5AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD5/P8An9T/egOW//8Akv//AJD//wCQ//8Ajv//AI///22n5v+Cf3v/cnFv/1N8
qf8BhP//AIP//weC//94o9v/trOx/7Ozs/+2trb/ubm5/7y8vP++vr7/wcHB/8TExP/IyMj/yMjI/8vL
y//Ozs7+0NDQv9TU1ATV1dUA3NzcAP///wD///8A29vbAVtbW3gxMTHhMDAw/VBQUP98fHz/eHh4/3l5
ef93d3f/Xl5e/zIyMv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zExMf8uLi7/ODg4/35+fv+4uLj/QEBA/wICAv8HBwf/DAwM/xEREf8UFBT/Ghoa/yAg
IP8jIyP/KSkp/ywsLP8yMjL/NjY2/z09Pf9ra2vdxsbGMfz8/AD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wDq9P8ATK///wCW//8Akv//AJD//wCQ//8Ajv//AI3//zee
//+XoK3/cW1r/3B3fP8qgd//AIL//y6L+P+lr7v/tLOx/7S0tP+4uLj/urq6/729vf/BwcH/wsLC/8bG
xv/IyMj/ysrK/8zMzP/Ozs7v0tLSHP///wDZ2dkA////AP///wD///8A////ALGxsRU4ODh+PDw85Gpq
av96enr/eXl5/3h4eP9ra2v/PT09/y4uLv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/0BAQP+Wlpb/r6+v/yQkJP8DAwP/BwcH/w0N
Df8RERH/FxcX/xsbG/8gICD/JCQk/ykpKf8tLS3/MjIy/zY2Nv9BQUH/eHh4xtLS0hv+/v4A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv9/wCv3P9bC5j//wCT//8Akv//AJD//wCQ
//8Ajv//AI7//wCQ//9+s+r/iYOA/29xb/9ZeqP/CYP//22e2f+2s7D/tLSz/7i4uP+5ubn/vLy8/8HB
wf/BwcH/xMTE/8nJyf/Jycn/zMzM/87OzvnS0tJx2NjYAdXV1QDe3t4AycnJAP///wD///8A////AP//
/wCGhoYYVFRUkXl5efJ4eHj/enp6/3h4eP9OTk7/LS0t/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9LS0v/paWl/5ub
m/8ODg7/BAQE/wkJCf8NDQ3/EhIS/xkZGf8bGxv/ISEh/yQkJP8rKyv/Li4u/zQ0NP85OTn/QkJC/4KC
grPc3NwI////AP///wD///8A////AP///wD///8A////AP///wD///8A////APH5/wBatf/0AJj//wCT
//8Akv//AJD//wCQ//8Ajv//AI7//wCL//86nf//oKy4/3Nxa/9vdXz/UIbG/5uotf+wr6r/sbGx/7S0
tP+5ubn/u7u7/7+/v//CwsL/yMjI/8rKyv/MzMz/zMzMP9DQ0EbT09MH3d3dAdra2gDJyckAycnJAP//
/wD///8A////AP///wD///8Ax8fHDc7OziHOzs4nzMzMK42Njf81NTX/Li4u/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/V1dX/7Ozs/9/f3//BAQE/wUFBf8KCgr/Dg4O/xMTE/8ZGRn/HBwc/yIiIv8mJib/Kysr/y4u
Lv80NDT/Ozs7/0dHR/+Li4uk4eHhAP///wD///8A////AP///wD///8A////AP///wD///8A/P7/AMHi
/zkXnP//AJX//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCM//8Ajv//e7Hr/4eDff9xcXH/dnuC/4SF
h/+JiYn/i4uL/5GRkf+VlZX/mZmZ/5ycnP+hoaH/pKSk/6CgoP+hoaH/o6OjmJycnCOhoaEB////AN3d
3QDKysoAzc3NAP///wD///8A////AP///wD///8A////AP///wD///8A3d3dCVtbW/8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8uLi7/MzMz/2xsbP+7u7v/YWFh/wICAv8GBgb/CgoK/xAQEP8TExP/GRkZ/x4e
Hv8jIyP/Jycn/ywsLP8xMTH/NjY2/zw8PP9NTU3/mJiYienp6QD///8A////AP///wD///8A////AP//
/wD///8A9vv/AG6+/9EAmP//AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCN//8Ai///KJX//3WN
qv9xbWn/dHRy/3h3d/96enr/fn5+/4KCgv+Dg4P/iIiI/4qKiv+NjY3/iYmJ/4ODg/+Ghob/ioqK6IqK
ilD///8A////AKenpwCnp6cAqampALa2tgD///8A////AP///wD///8A////AP///wD///8Ah4eHwjU1
Nf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zg4OP9/f3//u7u7/0RERP8BAQH/AgIC/wQE
BP8HBwf/CwsL/xEREf8WFhb/HBwc/yEhIf8oKCj/Li4u/zMzM/87Ozv/UVFR/6GhoXru7u4A////AP//
/wD///8A////AP///wD///8Aw+T/NR6f//8Al///AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCN
//8Ai///AIz//zSG3P91d3r/enl5/319ff+BgYH/g4OD/4ODg/+IiIj/iYmJ/42Njf+MjIz/jIyM/4mJ
if+Kior/ioqK8I6Ojn2Pj48B////AMrKygDGxsYAxsbGAMTExAD///8A////AP///wD///8A////AP//
/wC8vLxEPT09/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf8+Pj7/jIyM/7y8
vP94eHj/cnJy/3Z2dv95eXn/enp6/3x8fP94eHj/bm5u/2dnZ/9eXl7/WVlZ/1JSUv9MTEz/SkpK/2Bg
YOCxsbFF////AP///wD///8A////AP///wD///8Ajcv/mACY//8Alf//AJT//wCT//8Akv//AJD//wCQ
//8Ajv//AI7//wCN//8Ai///AIr//0OU6/+ioqf/qKel/6qqqv+tra3/r6+v/7Gxsf+xsbH/tLS0/7i4
uP+4uLj/t7e3/7Gxsf+zs7P/tbW14ri4uCn///8A////AMfHxwDCwsIAwcHBAMDAwAD///8A////AP//
/wD///8A////AP///wC7u7tQOzs7/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0t
Lf81NTX/hISE/+Xl5f/Nzc3/zMzM/87Ozv/Q0ND/0dHR/9PT0//Q0ND/ycnJ/8LCwv+5ubn/tLS0/6+v
r/+rq6v/qKio9aurqxbMzMwM////AP///wD///8A////AP///wD///8Azej/IiSi//8Al///AJT//wCT
//8Akv//AJD//wCQ//8Ajv//AI7//wCN//8Aiv//KJf//5mz0f+0sa//tLS0/7e3t/+6urr/vb29/8HB
wf/Dw8P/yMjI/8nJyf/IyMj/xcXF/8HBwf/Dw8PnyMjIrsfHxwH///8A////ALa2tgDBwcEAlpaWAJSU
lAD///8A////AP///wD///8A////AP///wD///8AhISExzExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/zExMf9ra2v/y8vL/7CwsP+Kior/j4+P/5WVlf+ampr/np6e/6Kiov+pqan/ra2t/7Gx
sf+1tbX/urq6/7+/v//ExMT8y8vLDf///wD09PQA////AP///wD///8A////AP///wD///8A9fv/AHrD
/7oAmP//AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCM//8AjP//ir31/7y5tP+xsbH/s7Oz/7Oz
sf+2trb/ubm5/7u7u/+/v7//wcHB/8TExP/Gxsb/v7+//729vf+6urrpsbGxWKmpqVylpaUC////AJ2d
nQCpqakAzc3NAI6OjgD///8A////AP///wD///8A////AP///wD///8A3NzcCWFhYf8xMTH/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/1lZWf/Dw8P/vb29/4aGhv+JiYn/jo6O/5OTk/+YmJj/nZ2d/6Ki
ov+oqKj/ra2t/7Ozs/+4uLj/vLy8/8PDw//KysoR////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/P3/AMfn/y4anv//AJX//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCK//9Co///wcrU/7Ox
r/+xs7j/bpfN/3eBiP+DgoH/h4eH/4mJif+MjIz/kJCQ/5OTk/+Xl5f/lpaW/5OTk/+MjIznjo6O6JOT
k9WUlJRpsbGxAZmZmQCcnJwAr6+vAP///wD///8A////AP///wD///8A////AP///wD///8A////AL+/
v0lDQ0P/MTEx/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8tLS3/SkpK/7Gxsf/Kysr/jIyM/4eHh/+Pj4//kpKS/5mZ
mf+dnZ3/oqKi/6ioqP+srKz/sbGx/7a2tv+7u7v/wcHB/8fHxxr///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APH4/wBiuf/kAJj//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCO
//+RwPT/vrqz/7Wxsf+Pqsv/F4b7/094q/91cWz/dHR0/3l5ef96enr/fn5+/4KCgv+EhIT/iYmJ/4aG
hv+EhIT/jY2N/5GRkf+UlJTolZWVG////wCZmZkAoaGhAMDAwAD///8A////AP///wCRkZGtPz8//09P
T/9dXV3/a2tr+3BwcPI8PDz/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf8+Pj7/mZmZ/9HR0f+Tk5P/hoaG/42N
jf+SkpL/l5eX/5ubm/+ioqL/p6en/6urq/+xsbH/tLS0/7q6uv+/v7//x8fHIP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv9/gC73/9FFJ7//wCV//8Akv//AJD//wCQ
//8Ajv//AIz//0Ci//+8ws//s7Gv/7Cztf9Klev/AIL//y2D5P9wdnr/c3Jw/3d3d/95eXn/fHx8/4GB
gf+EhIT/h4eH/4SEhP+EhIT/hoaG/4qKiv+MjIz/lJSUv6qqqgeZmZkAmpqaAKmpqQD///8A////AL6+
vkk/Pz//GRkZ/wMDA/8DAwP/BAQE/wQEBP8FBQX/IyMj/zIyMv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zc3N/+Hh4f/0tLS/56e
nv+FhYX/jIyM/5KSkv+Xl5f/mpqa/6Ghof+lpaX/q6ur/7CwsP+zs7P/urq6/76+vv3GxsYh0tLSAf//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDq9f8AU7H/+wCX
//8Akv//AJD//wCQ//8Ajv//A5H//4a47P+7t7D/t7Oz/4upzf8Khv//AIP//wuE//9fga7/dnJs/3Z2
dv95eXn/e3t7/4CAgP+CgoL/hoaG/4WFhf+Ghob/iIiI/4uLi/+SkpL/l5eX/6CgoDnAwMAKmZmZAJ+f
nwD///8A////AGNjY/8xMTH/LS0t/xAQEP8AAAD/AAAA/wAAAP8AAAD/CQkJ/y0tLf8xMTH/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/MTEx/3Bw
cP/R0dH/rq6u/4aGhv+Li4v/kpKS/5WVlf+ampr/oKCg/6Ojo/+rq6v/r6+v/7Ozs/+4uLj/vLy8+cPD
wyH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD6/f4Aq9j/YwGV//8Akv//AJD//wCQ//8Ajf//QKD//7O9xv+0sbD/q7O3/0OU7/8Ag///AYT//wCC
//88iOP/eHyA/3Jxcf93eHj/eXl5/35+fv+BgYH/g4OD/4WFhf+Hh4f/i4uL/46Ojv+SkpL/mZmZ/5qa
muepqakZ29vbApmZmQD///8Aj4+PsTg4OP8wMDD/MjIy/zAwMP8KCgr/AAAA/wAAAP8AAAD/AgIC/xgY
GP8yMjL/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8uLi7/XV1d/8TExP+5ubn/hoaG/4qKiv+QkJD/lJSU/5qamv+enp7/oqKi/6mpqf+urq7/s7Oz/7e3
t/+7u7v6w8PDlP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A6vb/AEuu//8Alv//AJD//wCP//8Dkv//grHk/7izsf+2s7P/eqTU/wCH
//8Ahf//AYT//wGD//8Zhv//bIy0/3dzbf91dXX/eXl5/3t7e/9/f3//gYGB/4aGhv+JiYn/i4uL/5GR
kf+SkpL/lpaW/5mZmf+fn5/As7OzL////wDDw8M/RERE/zEyMv8wMDD/MTEx/zU1Nf80NDT/AwMD/wAA
AP8AAAD/AAAA/wQEBP8kJCT/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/y0tLf9KSkr/q6ur/8HBwf+Li4v/iIiI/4+Pj/+Tk5P/mpqa/52dnf+hoaH/paWl/6ys
rP+ysrL/tra2/7q6uv/BwcHRysrKAf///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+v3/AKHU/3YAlP//AJD//wCP//84nPr/rba9/7Wx
r/+qsbr/NJL1/wCF//8Ahf//AYT//wGD//8Eg///SJDq/3+Dhv9ycW//eHh4/3p6ev9+fn7/gYGB/4SE
hP+IiIj/ioqK/46Ojv+RkZH/lJSU/5iYmP+ZmZn8p6endbW2uFxucHD2NTU1/zExMf8wMDD/MDAw/zEx
Mf9DQ0P/Kysr/wAAAP8AAAD/AAAA/wAAAP8LCwv/LS0t/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/z4+Pv+QkJD/xMTE/5GRkf+Ghob/jo6O/5KSkv+YmJj/nJyc/6Gh
of+kpKT/qqqq/7CwsP+1tbX/urq6/8DAwPnIyMgK////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7/AOLz/gA6p///AJP//wCS
//94qdv/tbGw/7S0sv9yodn/AIb//wCG//8Ahf//AYT//wGD//8Fgf//HYf//3WVwv94dW//dXV1/3l5
ef97e3v/f39//4KCgv+Ghob/iYmJ/4uLi/+RkZH/kpKS/5aWlv+ZmZn/m5ub/25wcP88PT3/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP82Njb/UlJS/xoaGv8AAAD/AAAA/wAAAP8CAgL/GBgY/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/NjY2/3V1df+6urr/l5eX/4aGhv+NjY3/kpKS/5eX
l/+bm5v/oKCg/6Ojo/+oqKj/rq6u/7Ozs/+5ubn/vr6+/sbGxhH///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APf7
/wCRy/+RAJL//y+X9f+lsbf/trOx/6Svvv8pkPj/AIb//wCG//8Ahf//AYT//wGD//8Cgf//AoL//06V
8f+Gio3/cXFv/3d3d/95eXn/fX19/4GBgf+Dg4P/iIiI/4qKiv+Ojo7/kZGR/5SUlP+Xl5f/gICA/0JC
RP81Nzf/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/RkZG/1VVVf8FBQX/AAAA/wAAAP8AAAD/BAQE/ycn
J/8xMTH/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8xMTH/XV1d/6qqqv+cnJz/hoaG/4yM
jP+SkpL/lpaW/5qamv+fn5//o6Oj/6enp/+srKz/s7Oz/7e3t/+9vb3/xMTEGf///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP3+/gDX7f8PL6D//3Ko3f+6tbD/t7ey/2yh3P8Ah///AIf//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//yKH//+En8f/eHVv/3V1df95eXn/e3t7/4GBgf+CgoL/hoaG/4mJif+MjIz/kJCQ/5OT
k/+Ojo7/U1NV/zg5Of83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/NDQ0/15eXv9DQ0P/AAAA/wAA
AP8AAAD/AAAA/xEREf8uLi7/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9LS0v/kpKS/6Cg
oP+Ghob/ioqK/5CQkP+UlJT/mpqa/5+fn/+jo6P/p6en/6qqqv+wsLD/tbW1/7y8vP/BwcEm////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD3+/8Aps/6bra/zVDIxsI5q7rQZyOP+P8Ah///AIf//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//weB//9bnPL/jI6Q/3Fwbv94eHj/eXl5/35+fv+BgYH/hISE/4eH
h/+Kior/jo6O/5CQkP9rbGz/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/z4+
Pv91dXX/Jycn/wAAAP8AAAD/AAAA/wMDA/8eHh7/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/z8/
P/9+fn7/np6e/4iIiP+Kior/j4+P/5OTk/+ampr/nZ2d/6Ghof+np6f/q6ur/7CwsP+0tLT/urq6/8HB
wTH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9vr+APf29gDy9fkAfrv+twCM
//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wF///8pif//kqnM/3p3cf90dHT/eXl5/3t7
e/9/f3//goKC/4aGhv+JiYn/jY2N/3x8fP9JSUn/PT09/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zExMf9ZWVn/d3d3/wUFBf8AAAD/AAAA/wAAAP8GBgb/KCgo/zExMf8wMDD/MDAw/zAw
MP8wMDD/NjY2/2ZmZv+UlJT/i4uL/4qKiv+Pj4//kpKS/5iYmP+bm5v/oKCg/6Wlpf+rq6v/sLCw/7S0
tP+5ubn+wMDAOMzMzAH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP3+
/wDO5v8iKpn//wCM//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wN///8IgP//ZKL3/5eZ
mf9xcG3/d3d4/3p6ev9+fn7/gYGB/4ODg/+IiIj/hISE/1pbXP89QED/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf82Njb/eXl5/1ZWVv8AAAD/AAAA/wAAAP8BAQH/EBAQ/y4u
Lv8wMDD/MDAw/zAwMP8yMjL/T09P/4aGhv+Li4v/h4eH/46Ojv+SkpL/l5eX/5ubm/+fn5//pKSk/6qq
qv+urq7/s7Oz/7e3t/W/v7+hy8vLAv///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APf6/wB3vP/CAZD//wCK//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wN/
//8Gf///Jon//5Ov1/9+e3X/c3Nz/3l5ef97e3v/f39//4GBgf+EhIb/a2tr/0VFR/9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/S0tL/5WVlf8mJib/AAAA/wAA
AP8AAAD/AwMD/x4eHv8yMjL/MDAw/zAwMP9CQkL/cnJy/4qKiv+IiIj/jIyM/5KSkv+Xl5f/m5ub/56e
nv+kpKT/qqqq/66urv+0tLT/uLi4/7u7u3jLy8sB////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APf6/wB3vP/CAI///wCK//8AiP//AIf//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//wZ///8Efv//B33//1ea+/+Vlp3/cXFu/3l5ef95eXn/fn5+/4GBgf93d3f/Tk5P/0RE
Rv9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/MzMz/3Bw
cP+Ojo7/BAQE/wAAAP8AAAD/AAAA/wYGBv8pKSn/MTEx/zU1Nf9eXl7/hYWF/4iIiP+Li4v/kpKS/5qa
mv+fn5//pqam/6ampv+rq6v/rKysybKysse1tbXBvLy8pcTExA3///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APz9/wDB4P85GpL//wCM//8AiP//AIf//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//B33//x6D//9wl8//dnNw/3Fxcf94eHj/fHx8/319
ff9eXl//RUVH/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/z4+Pv+dnZ3/YGBg/wAAAP8AAAD/AAAA/wICAv8TExP/MTEx/01NTf+AgID/jY2N/42N
jf+RkZH/kZGR/4qKiv+CgoL/eHh4/3BwcP+Ghob/s7Ozq7a2to+9vb1pxMTEAv///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDv9/8AX7H/7ACO
//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//BH3//wZ7//88iPP/k5mj/5ua
mv+ioqL/paWl/3x8ff9LS07/RUdK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/zAwMP9ZWVn/qKio/xgYGP8AAAD/AAAA/wAAAP8DAwP/Jycn/1dX
V/9dXV3/UVFR/0JCQv8xMTH/IyMj/xkZGf8NDQ3/BgYG/wUFBf8UFBT/dnZ2zIKCggPNzc0A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD7/f4AvN3/RRSP//8Aif//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//BXz//xqB
//+Cquf/xcTE/8TDxf/Dw8X/vr7B/3l5fP9GRkb/R0dK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8yMjL/d3d3/3Jycv8CAgL/AAAA/wAA
AP8AAAD/AgIC/wQEBP8CAgL/AQEB/wEBAf8BAQH/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/Gxsb/5mZ
mT3///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A7vb/AFmv//QAjP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ/
//8Cfv//C37//3eu+v/IyMz/w8HD/8LCxP/Dw8X/w8PF/6Wlpv9SUlX/RUVI/0VFRf9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/Ozs7/3Bw
cP8hISH/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wEB
Af8BAQH/Dg4OpFtbWwH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+/3/ALDW/1sJjP//AIj//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//wN///8Eff//VZ///87U3//EwsH/wsLE/8PDxf/Dw8X/wMDC/7i4uP90dXb/RERH/0VF
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/0NDQ/80NDT/AQEB/wAAAP8AAAD/AAAA/wAAAP8AAAD/AgIC/wYGBv8RERH/Ghoa/yEh
If8sLCz/OTk5/0xMTP9ZWVmtYGBgBf///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AOr0/wBIo///AIr//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//wJ+//8niv//ssvt/8zIxP/BwcP/xMTG/7Cwsf9VVVf/ODg4/y0t
MP8qKyv/QUFD/0VFR/9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8nJyf/DAwM/xMTE/8iIiL/NjY2/0xMTP9gYGD/c3Nz/39/
f/9/f3//g4OD/5KSkv+hoaH/p6en/7GxsdK3t7cL////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APn8
/wChzf92Aov//wCG//8Ahf//AYT//wGD//8Cgf//AYD//weB//93sPv/z8/P/8HBwf/CwsT/vr7A/4CA
g/8wMDP/AQEB/wEBAf8CAgL/Jygo/0dHSf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9AQED/aWlp/3x8fP+IiIj/jo6O/5aW
lv+dnZ3/n5+f/56env+ioqL/pqam/6qqqv+vr6//s7Oz6LW1tRT///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/wDg7/8AOp3//wCJ//8Ahf//AYT//wGD//8Cgf//AID//zuT//+9yt//xsTA/8HB
xP/CwsT/nZ2f/1pbXP9NTVD/FBQW/wAAAP8AAAD/BgYG/zw9Pf9DRET/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/Li4u/05OTv97e3v/h4eH/4uL
i/+Pj4//lJSU/5mZmf+dnZ3/nJyc/56env+jo6P/p6en/62trf+ysrL1tbW1Kf///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD3+v8Ak8f/kQCI//8Ahf//AYT//wGD//8BgP//E4b//4+2
7//KyMb/wsHD/8TExP+zs7X/bGxu/1VWWP9VVVj/QEFD/wQEBP8AAAD/AQEB/xscHP9EREb/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/SkpK/5iY
mP+Li4v/iYmJ/46Ojv+SkpL/mJiY/5ycnP+enp7/np6e/6Ghof+np6f/rKys/7Kysvyzs7M5////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD+//8A2e3/CzKW//8Ah///AYT//wKC
//8Ag///VZ36/8LI0f/DwsH/wsLE/76/wf+Hh4r/V1lb/1dZWv9VVlj/U1NW/ygoKf8AAAD/AAAA/wQE
Bf82Njb/P0BA/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0t
Lf8/Pz//paWl/5qamv+Ghob/jY2N/5KSkv+Xl5f/nJyc/56env+enp7/oaGh/6Wlpf+qqqr/sbGx/7Oz
s0b///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9/v/AIfB
/6QAiP//AYT//wCC//8kjP//oLrg/8jFwf/CwsT/w8PF/6Gho/9hYWT/Wlte/1ZXWv9VVVf/U1NY/01N
Tv8HBwf/AAAA/wEBAf8XFxf/Pj8//zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/LS0t/zY2Nv+UlJT/rq6u/4WFhf+MjIz/kpKS/5aWlv+bm5v/n5+f/6CgoP+hoaH/paWl/6qq
qv+xsbH/tra2QP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f7/ANPo/xcokf//AIb//wCC//9ppO//xsXF/8LCwv/Dw8X/tLS2/3Jzdv9dXWD/XF1g/1ZX
Wv9VVVf/UlJV/1VVV/85OTn/AAAA/wAAAP8DAwP/Li4w/z09Pf83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8uLi7/MTEx/3l5ef+zs7P/h4eH/4yMjP+QkJD/lZWV/5qamv+dnZ3/np6e/6Cg
oP+kpKT/qKio/6+vr/+2trZF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APb6/wBvtf/QAIb//yeL/f+vvdD/x8XD/8TExv/BwcP/jIyO/19f
Y/9fX1//XF1g/1ZXWv9UVVf/UlNV/1FRUf9XV1n/FBQU/wAAAP8BAQH/ERES/zw8Pf83ODr/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/Wlpa/62trf+Kior/iYmJ/4+Pj/+Tk5P/mJiY/5qa
mv+ampr/n5+f/6Ojo/+oqKj/rq6u/7KysmnDw8MB////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APz9/wDF3/8hHI7/4n6v66nNycgrw8PFOcXF
xzWrq6z/Z2lu/19fZv9fX2D/XF1g/1ZXWv9UVVf/UVJV/1BQUP9WVln/RkZG/wEBAf8AAAD/AwMD/yUn
J/85PDz/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9JSUn/nJyc/5GRkf+Hh4f/j4+P/5OT
k/+Wlpb/l5eX/5iYmP+enp7/oqKi/6ioqP+tra32sLCwcL29vQX///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD1+v8Ansb3HtDT
3wri4eEA7u7uAN7e3gSDhIj/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UVNV/05OT/9OTlH/ZWVn/yEh
If8AAAD/AAAA/wsLC/81NTX/NTU1/zExMf8wMDD/MDAw/zAwMP8wMDD/LS0t/zs7O/+IiIj/lpaW/4WF
hf+NjY3/kZGR/5eXl/+Wlpb/l5eX/52dnf+hoaH/p6en/6ysrPy0tLSYu7u7Av///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A+fr8APv8+wD+/v4A9fX3ALKzs1hqa27/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05P
T/9MTE3/V1dZ/1xcXP8CAgL/AAAA/wICAv8gICD/Njc2/zExMf8wMDD/MDAw/zAwMP8uLi7/NDQ0/25u
bv+VlZX/h4eH/4yMjP+RkZH/lpaW/5mZmf+Xl5f/m5ub/6CgoP+lpaX/rKys/re3t72+vr4C////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD7+/sA0dLSHnh5fcZoaW//ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9LS0z/S0tM/2lrav8tLS3/AAAA/wAAAP8GBgb/LjAw/zIzM/8wMDD/MDAw/y4u
Lv8xMTH/WVlZ/4+Pj/+IiIj/i4uL/5GRkf+UlJT/mZmZ/5ycnP+ZmZn/n5+f/6SkpP+pqan/uLi438XF
xQP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDs7OwAkJGWmG5wcf9naG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/1dXWf9sbG7/AwMD/wAAAP8BAQH/Gxoa/zQ0
NP8wMDD/MDAw/y0tLf9FRUX/hISE/4mJif+Kior/kJCQ/5OTk/+ZmZn/n5+f/6Ojo/+jo6P/pqam/6en
p8WxsbGfwcHBDf///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8/AC3uLtQc3N40Wts
cf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0dHSf90dHT/OTk5/wAA
AP8AAAD/BAUF/ysrK/8xMTH/Li4u/zg4OP9xcXH/iIiI/4mJif+QkJD/lJSU/52dnf+ioqL/qKio/6Wl
pf+Wlpb/m5ub/62trXOTk5MR////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APv7
+wC/v8FBb3Fz1WttcP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0RF
SP9VVVX/eHh4/wUFBf8AAAD/AQEB/xMTE/8yMjL/MTEx/1lZWf+IiIj/jY2N/5OTk/+Wlpb/lJSU/4OD
g/9nZ2f/QkJC/yEhIf8NDQ3/Hh4e/5GRkVP///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDm5uYAhoeNq25wcf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0RERP9EREb/d3d4/0RERP8AAAD/AAAA/wMDA/8oKCj/U1NT/4ODg/+BgYH/cXFx/1VV
Vf85OTn/HBwc/wcHB/8BAQH/AQEB/wEBAf8GBgb/Hx8fsXh4eAL///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD39/cAs7O2WG1ucdlnaG7/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQEH/UFBS/3Fxcf8FBQX/AAAA/wEBAf8RERH/Pz8//zY2
Nv8XFxf/BQUF/wICAv8BAQH/AAAA/wQEBP8bGxv/PT09/2dnZ/+Pj4+vsbGxBP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD9/f0A4uLlAH5/grppanD/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/QEBB/1dZWf8mJib/AAAA/wAA
AP8AAAD/AgIC/wEBAf8AAAD/AAAA/woKCv8zMzP/XFxc/39/f/+YmJj/q6ur/7CwsKi2trYN////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9fX1AK+v
sF9qbHH/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQkL/Pj4+/z0+
P/8tLS3/AAAA/wAAAP8AAAD/BQUF/x4eHv9BQUH/Z2dn/4iIiP+ZmZn/o6Oj/6enp/+tra3/sLCw6rS0
tBj///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f39ANvb3gt5eX/GZ2dq/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VF
Rf9BQkL/PT4//zo8PP8sLC7/FxcX/zExMf9VVVX/dHR0/4uLi/+YmJj/oKCg/6Kiov+mpqb/p6en/62t
rf+zs7P1ubm5Fv///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APLy8gCioqV2Z2hr/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0VFRf9BQkL/PT4+/zc4OP9SUlL/enp6/4mJif+QkJD/lJSU/5iYmP+dnZ3/oaGh/6en
p/+rq6v/sLCw/7S0tPzAwMAT////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv7+wDU1dYXbm5w2WJkaP9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/Pj8//2hpaf+IiIr/iIiI/42Njf+RkZH/l5eX/5ub
m/+goKD/paWl/6qqqv+xsbH/s7Oz/7+/vxv///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDx8fEAl5ecjWRm
af9fX2L/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0RERP9AQUH/bG1v/6enqP+JiYn/i4uL/5GR
kf+Wlpb/mpqa/6CgoP+lpaX/qqqq/6+vr/+zs7P/vLy8Jf///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD7+/sAzMzOJmlra+FfX2L/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0JDRf9eX1//qamp/46O
jv+JiYn/kZGR/5SUlP+ZmZn/n5+f/6Kiov+qqqr/rq6u/7Ozs/+7u7su////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A8PDwAI6Ok5xhYmX/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/RkZI/1FQ
U/+YmJj/lJSU/4eHh/+Pj4//kpKS/5mZmf+enp7/oaGh/6mpqf+srKz/s7Oz/7q6ujXFxcUB////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+fn5AMfHyTFmZmjoXF1g/1ZXWv9UVVf/UlNV/05O
T/9KSk3/TU1O/4WFhf+Wlpb/iIiI/4+Pj/+RkZH/mZmZ/5ycnP+hoaH/qKio/6ysrP+xsbH/t7e3QsPD
wwP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+AOvr6wCEhYivXl9f/1ZX
Wv9UVVf/UlNV/05PT/9MTE3/c3R0/5aWlv+IiIj/jY2N/5GRkf+YmJj/nJyc/6Ghof+np6f/q6ur/7Gx
sf+5ublMvr6+HOTk5AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APj4
+AC7vL9IXl9i9FZXWv9UVVf/UVJV/09QUP9hYmL/jo+P/4mJif+MjIz/kZGR/5aWlv+ampr/oaGh/6en
p/+vr6//s7OzWLW1tVTKysoq4eHhAP7+/gD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDp6OoAfX5+vlpbXv9VVVf/UVJU/1paW/+Dg4P/iYmJ/4qKiv+RkZH/lpaW/5yc
nP+jo6P/qqqqa7GxsVvExMQ13NzcCO/v7wD8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD39/cAtLW1VFdZXf9VVVf/U1NY/3R0dP+JiYn/i4uL/5OT
k/+YmJj/mpqahaurq2fDw8M53t7eBPDw8AD+/v4A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD9/f0A5ufnAHR0d85WV1n/ZmZp/4iI
iP+NjY2gkZGRmKioqG7Dw8M539/fBPT09AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9vb2AK+v
sF9lZmjoioqMpKioqG7GxsYx5+fnAPj4+AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/v7+AOvr6wDLzMwq6urqAPv7+wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///////////////j/////////////
//j///////////////j///////////////j///////////////j///////////////j/////////////
//j///////////////j///////////////j///////////////j////8//////////j////4H///////
//j////4Af////////j////wAD////////j////wAAf///////j////gAAH///////j////gAAD/////
//j////AAAB///////j////AAAA///////j///+AAAAf//////j///+AAAAP//////j///+AAAAP////
//j///8AAAAH//////j///8AAAAD//////j///4AAAAB//////j///4AAAAA//////j///wAAAAAf///
//j///wAAAAAf/////j///gAAAAAf/////j///gAAAAAP/////j///gAAAAAD/////j///wAAAAAB///
//j///wAAAAAA/////j//+IAAAAAAf////j//8AAAAAAAP////j//8AAAAAAAH////j//8AAAAAAAD//
//j//4AAAAAAAB////j//4AAAAAAAB////j//wAAAAAAAA////j//wAAAAAAAAf///j//gAAAAAAAAP/
//j//gAAAAAAAAH///j//AAAAAAAAAD///j//AAAAAAAAAD///j//AAAAAAAAAD///j/+AAAAAAAAAH/
//j/+AAAAAAAAAB///j/8AAAAAAAAAAP//j/8AAAAAAAAAAH//j/8AAAAAAAAAAD//j/+AAAAAAAAAAB
//j/wAAAAAAAAAAA//j/wAAAAAAAAAAAf/j/gAAAAAAAAAAAP/j/gAAAAAAAAAAAP/j/AAAAAAAAAAAA
H/j/AAAAAgAAAAAAD/j/AAAAAwAAAAAAB/j+AAAADwAAAAAAA/j+AAAAH4AAAAAAAfj8AAAAH8AAAAAA
APj8AAAAH+AAAAAAAPj4AAAAP/wAAAAAAHj4AAAAf/wAAAAAADjwAAAAP/gAAAAAABjwAAAAf/gAAAAA
ABjwAAAAf/wAAAAAAHj4AAAAP/wAAAAAAPj4AAAAH/4AAAAAAfj8AAAAH8AAAAAAA/j8AAAAD4AAAAAA
A/j+AAAAB4AAAAAAD/j+AAAAAwAAAAAAH/j/AAAAAgAAAAAAH/j/AAAAAAAAAAAAP/j/gAAAAAAAAAAA
f/j/gAAAAAAAAAAA//j/gAAAAAAAAAAB//j/wAAAAAAAAAAD//j/+AAAAAAAAAAD//j/8AAAAAAAAAAH
//j/8AAAAAAAAAAP//j/8AAAAAAAAAAf//j/8AAAAAAAAAA///j/+AAAAAAAAAD///j/+AAAAAAAAAD/
//j//AAAAAAAAAD///j//AAAAAAAAAH///j//gAAAAAAAAP///j//gAAAAAAAAf///j//wAAAAAAAA//
//j//wAAAAAAAB////j//wAAAAAAAD////j//4AAAAAAAH////j//4AAAAAAAP////j//8AAAAAAAP//
//j//8AAAAAAAf////j//+YAAAAAA/////j///4AAAAAB/////j///wAAAAAD/////j///wAAAAAH///
//j///gAAAAAP/////j///gAAAAAf/////j///wAAAAAf/////j///wAAAAA//////j///4AAAAB////
//j///4AAAAD//////j///4AAAAH//////j///8AAAAP//////j///8AAAAf//////j///+AAAA/////
//j///+AAAB///////j////AAAB///////j////AAAD///////j////gAAH///////j////gAAP/////
//j////wAA////////j////wAH////////j////4A/////////j////4P/////////j////9////////
//j///////////////g=
</value>
</data>
</root>

View File

@@ -0,0 +1,126 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmConsultaPrecios
{
/// <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.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(709, 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(739, 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(769, 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.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(800, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// FrmConsultaPrecios
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.ControlBox = false;
this.Controls.Add(this.panel1);
this.Name = "FrmConsultaPrecios";
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel panel1;
}
}

View File

@@ -0,0 +1,36 @@
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 FrmConsultaPrecios : FormBase
{
public FrmConsultaPrecios()
{
InitializeComponent();
}
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,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>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,605 @@
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 FrmCuenta : FormBase
{
#region propiedades
int tCveVentaTerminal = 0;
int tCveEstatusFactura = 0;
bool tImpreso = false;
int tCveMesa = 0;
int tCveVendedor = 0;
int tDescuentoPorPorcentaje = 0;
#endregion
public FrmCuenta()
{
InitializeComponent();
ShowhideFiltros();
CargaEstatus();
CargaMeseros();
}
public void CargaCuentas()
{
// carga las ventas activas
DGVCuentas.AutoGenerateColumns = false;
int Estatus = DdlFiltraestatus.SelectedValue is null ? 6 : DdlFiltraestatus.SelectedValue.ToString().ToEntero();
int CveMesero = DdlFiltraMesero.SelectedValue is null ? -1 : DdlFiltraMesero.SelectedValue.ToString().ToEntero();
var Venta = new ClsVentas();
if (Venta.GetVentas(-1, Estatus, CveMesero, "-1", ModVarsPV.CorteActual.CveCorteTerminal, ModVarsPV.UsuarioActual.CveUsuario, ModVarsPV.UsuarioActual.CveEmpresa))
{
DGVCuentas.DataSource = Venta.DtResultados.Tabla;
LblContadorCuentas.Text = string.Format("Cuentas:{0:N0}", Venta.DtResultados.Tabla.Rows.Count);
if (tCveVentaTerminal > 0)
{
// RMF mejorar el localizar y seleccionar el renglon del grid
foreach (DataGridViewRow dr in DGVCuentas.Rows)
{
if (dr.Cells["CveVentaTerminal"].Value.ToString().ToEntero() == tCveVentaTerminal)
{
dr.Selected = true;
break;
}
}
}
}
Venta.Dispose();
}
private void CargaEstatus()
{
var dt = new DataTable();
dt.Columns.Add("Estatus", Type.GetType("System.String"));
dt.Columns.Add("CveEstatus", Type.GetType("System.Int32"));
DataRow drow;
drow = dt.NewRow();
drow["CveEstatus"] = 6;
drow["Estatus"] = "Activas";
dt.Rows.Add(drow);
drow = dt.NewRow();
drow["CveEstatus"] = 2;
drow["Estatus"] = "Pagadas";
dt.Rows.Add(drow);
drow = dt.NewRow();
drow["CveEstatus"] = -1;
drow["Estatus"] = "Todas";
dt.Rows.Add(drow);
dt.AcceptChanges();
DdlFiltraestatus.DisplayMember = "Estatus";
DdlFiltraestatus.ValueMember = "CveEstatus";
DdlFiltraestatus.DataSource = dt;
}
private void CargaMeseros()
{
using (ClsVta_Vendedores objMeseros = new ClsVta_Vendedores())
{
if (objMeseros.GetVta_Vendedores())
{
DataRow drow;
drow = objMeseros.DtResultados.Tabla.NewRow();
drow["CveVendedor"] = -1;
drow["Vendedor"] = "TODOS";
objMeseros.DtResultados.Tabla.Rows.InsertAt(drow, 0);
DdlFiltraMesero.DisplayMember = "Vendedor";
DdlFiltraMesero.ValueMember = "CveVendedor";
DdlFiltraMesero.DataSource = objMeseros.DtResultados.Tabla;
}
}
}
private void CargaCuenta(bool ActualizarTotales)
{
using (ClsVentas Venta = new ClsVentas())
{
if (Venta.GetVentas(tCveVentaTerminal, -1, -1, "-1", -1, ModVarsPV.UsuarioActual.CveUsuario, ModVarsPV.UsuarioActual.CveEmpresa))
{
LblCuentaDescuento.Text = Venta.DescuentoPorcentaje > 0 ? "*Descuento" : "Descuento";
tDescuentoPorPorcentaje = Venta.DescuentoPorcentaje;
if (Venta.GetVentasDetalle(tCveVentaTerminal))
{
tCveMesa = Venta.CveMesa;
tCveVendedor = Venta.CveVendedor;
DGVDetalle.AutoGenerateColumns = false;
DGVDetalle.DataSource = Venta.DtResultados.Tabla;
txtCliente.Text = Venta.NombreCliente;
TxtCuenta.Text = Venta.Cuenta;
TxtMesero.Text = Venta.Vendedor;
TxtPersonas.Text = Venta.NumeroPersonas.ToString();
TxtFechaApertura.Text = string.Format("{0:dd/MM/yyyy HH:mm}", Venta.FechaApertura);
if (Venta.FechaCierre.Year > 2000) { TxtFechaCierre.Text = string.Format("{0:dd/MM/yyyy HH:mm}", Venta.FechaCierre); }
TxtMesa.Text = Venta.Mesa;
tImpreso = Venta.Impreso;
tCveEstatusFactura = Venta.CveEstatusFactura;
BtnPagarCuenta.Enabled = tImpreso;
if (Venta.CveEstatusFactura == 2)
{
BtnPagarCuenta.Text = "Cambiar Pago";
BtnImprimirCuenta.Enabled = true;
BtnReAbrirCuenta.Enabled = false;
BtnCambiarMesa.Enabled = false;
BtnBorrarCuenta.Enabled = false;
BtnCambiarMesero.Enabled = false;
BtnDividirCuenta.Enabled = false;
}
else
{
BtnPagarCuenta.Text = "Pagar Cuenta";
BtnImprimirCuenta.Enabled = true;
BtnReAbrirCuenta.Enabled = !tImpreso;
BtnCambiarMesa.Enabled = !tImpreso;
BtnBorrarCuenta.Enabled = !tImpreso;
BtnBorrarCuenta.Enabled = !tImpreso;
BtnCambiarMesero.Enabled = !tImpreso;
BtnDividirCuenta.Enabled = !tImpreso;
}
// BtnJuntarCuenta.Enabled = Not Venta.Impreso
double SubTotal, IVA, Total, Descuento;
Descuento = Venta.DtResultados.Tabla.SUM("Descuento") + Math.Abs(Venta.DtResultados.Tabla.SUM("Importe", "Importe < 0"));
IVA = Venta.DtResultados.Tabla.SUM("ImporteIVA");
Total = Venta.DtResultados.Tabla.SUM("Total");
SubTotal = Total - IVA + Descuento;
TxtSubtotal.Text = String.Format("${0:N2}", SubTotal);
TxtImpuestos.Text = String.Format("${0:N2}", IVA);
TxtDescuento.Text = String.Format("${0:N2}", Descuento);
TxtTotal.Text = String.Format("${0:N2}", Total);
// QUITARLO DE AQUI
if (ActualizarTotales == true)
Venta.UpdateVenta(SubTotal, Descuento, IVA, Total, -1, -1, tCveVentaTerminal);
}
}
}
}
private void ShowhideFiltros()
{
if (BtnShowhideFiltros.IconChar == FontAwesome.Sharp.IconChar.ChevronUp)
{
BtnShowhideFiltros.IconChar = FontAwesome.Sharp.IconChar.ChevronDown;
PnlFiltros.Height = 30;
}
else
{
BtnShowhideFiltros.IconChar = FontAwesome.Sharp.IconChar.ChevronUp;
PnlFiltros.Height = 140;
}
}
private void BtnShowhideFiltros_Click(object sender, EventArgs e)
{
ShowhideFiltros();
}
private void BtncambiaFiltros(object sender, EventArgs e)
{
CargaCuentas();
}
private void DGVCuentas_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
tCveVentaTerminal = DGVCuentas.Rows[e.RowIndex].Cells["CveVentaTerminal"].Value.ToString().ToEntero();
CargaCuenta(false);
}
}
private void DGVCuentas_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
tCveVentaTerminal = DGVCuentas.Rows[e.RowIndex].Cells["CveVentaTerminal"].Value.ToString().ToEntero();
CargaCuenta(false);
if (tCveEstatusFactura != 2)
{
//ReAbrirCuenta();
}
else
{
MessageBox.Show("Esta Cuenta ya esta Cerrada y no se puede agregrar mas Productos");
}
}
}
private void BtnAbrirCuenta_Click(object sender, EventArgs e)
{
FrmCuentaApertura newcuenta = new ADSUtileriasWF.PV.Views.FrmCuentaApertura(-1, "");
if ((newcuenta.ShowDialog()) == System.Windows.Forms.DialogResult.OK)
{
tCveVentaTerminal = newcuenta.CveVentaTerminal;
//Imprimir comanda
CargaCuenta(true);
CargaCuentas();
}
}
private void BtnPagarCuenta_Click(object sender, EventArgs e)
{
if (tCveVentaTerminal > 0)
{
// Dim cw As New FrmCuentaPagar(TxtTotal.Text)
FrmMetodoPago cw = new FrmMetodoPago(TxtTotal.Text.Replace("$", "").Replace(",", "").ToDouble(), tCveVentaTerminal, tCveEstatusFactura, txtCliente.Text, true);
//cw.Closed += popup_PagarCuenta;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
FinalizarVenta(cw.MetodosPago);
lblTotalAnt.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", cw.Total);
lblPagoCon.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", cw.Pagado);
lblCambio.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", cw.Cambio);
DGVDetalle.DataSource = "";
TxtCuenta.Text = "";
TxtPersonas.Text = "";
TxtMesa.Text = "";
TxtMesero.Text = "";
TxtFechaApertura.Text = "";
TxtFechaCierre.Text = "";
TxtSubtotal.Text = "$0.00";
TxtDescuento.Text = "$0.00";
TxtImpuestos.Text = "$0.00";
TxtTotal.Text = "$0.00";
}
}
}
//private void popup_PagarCuenta(object sender, EventArgs e)
//{
// // Dim lw As FrmCuentaPagar = DirectCast(sender, FrmCuentaPagar)
// FrmMetodoPago cw = (FrmMetodoPago)sender;
// if (cw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// FinalizarVenta(cw.MetodosPago);
// lblTotalAnt.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", cw.Total);
// lblPagoCon.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", cw.Pagado);
// lblCambio.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", cw.Cambio);
// DGVDetalle.DataSource = "";
// TxtCuenta.Text = "";
// TxtPersonas.Text = "";
// TxtMesa.Text = "";
// TxtMesero.Text = "";
// TxtFechaApertura.Text = "";
// TxtFechaCierre.Text = "";
// TxtSubtotal.Text = "$0.00";
// TxtDescuento.Text = "$0.00";
// TxtImpuestos.Text = "$0.00";
// TxtTotal.Text = "$0.00";
// }
//}
private void FinalizarVenta(System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> MetodoPago)
{
var objVentas = new ClsVentas();
bool ErrorDetalles = false;
double SubTotal = default, IVA = default, Descuento = default, Total = default;
double Propina = 0d;
// objVentas.IniciaTransacSQL()
DataTable dtDetalle = default;
if (objVentas.GetVentas(tCveVentaTerminal, -1, -1, "-1", -1, -1, UsuarioActual.CveEmpresa))
{
// If objVentas.DescuentoPorcentaje > 0 Then
// objVentas.UpdateDescuentoPorcentaje(objVentas.DescuentoPorcentaje, tCveVentaTerminal, True)
// End If
if (objVentas.GetVentasDetalle(tCveVentaTerminal))
{
dtDetalle = objVentas.DtResultados.Tabla;
SubTotal = dtDetalle.SUM("Importe", "Importe > 0");
Descuento = dtDetalle.SUM("Descuento") + Math.Abs(dtDetalle.SUM("Importe", "Importe < 0")); // (objVentas.SubTotal * objVentas.DescuentoPorcentaje / 100) + dtDetalle.SUM("Descuento") + Math.Abs(dtDetalle.SUM("Importe", "Importe < 0"))
IVA = dtDetalle.SUM("ImporteIVA");
Total = SubTotal + IVA - Descuento;
}
else
{
ModExtensiones.OnError("Error al Obtener los Detalles de Venta", "Error", new Exception(), MessageBoxIcon.Error);
ErrorDetalles = true;
}
// Quitar todos los pagos Previos
if (ErrorDetalles == false)
{
if (objVentas.RemoveVta_VentasPago(tCveVentaTerminal, -1))
{
foreach (ClsMetodosPago.ClsMetodosPagoModel Row in MetodoPago)
{
// Se agregan los Pagos
if (Row.Importe > 0)
{
Propina = Propina + Row.ImportePropina;
if (!objVentas.AddVta_VentasPago(tCveVentaTerminal, Row.CveMetodoPago, Row.Importe, Row.ImportePropina))
{
ErrorDetalles = true;
}
}
}
}
}
if (ErrorDetalles == false)
{
// Se guarda la venta, actualizo los montos y le cambio el estatus... EL MAS IMPORTANTE
if (!objVentas.UpdateVenta(SubTotal, Descuento, IVA, Total, Propina, 2, tCveVentaTerminal))
{
ErrorDetalles = true;
}
}
if (ErrorDetalles)
{
// objVentas.RollBack()
ModExtensiones.OnError("Error al registrar el pago de la cuenta", "Error", new Exception(), MessageBoxIcon.Error);
}
else
{
// objVentas.Commit()
}
}
objVentas.Dispose();
CargaCuentas();
}
private void BtnCambiarMesero_Click(object sender, EventArgs e)
{
FrmCambiarMesero cw = new FrmCambiarMesero(tCveVentaTerminal, tCveVendedor);
//cw.Closed += popup_CambiarMesero;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
CargaCuentas();
CargaCuenta(false);
}
}
//private void popup_CambiarMesero(object sender, EventArgs e)
//{
// FrmCambiarMesero cw = (FrmCambiarMesero)sender;
// if (cw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// CargaCuentas();
// CargaCuenta(false);
// }
//}
private void BtnCambiarMesa_Click(object sender, EventArgs e)
{
FrmCambiarMesa cw = new FrmCambiarMesa(tCveVentaTerminal, tCveMesa);
//cw.Closed += popup_CambiarMesa;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
CargaCuentas();
CargaCuenta(false);
}
}
//private void popup_CambiarMesa(object sender, EventArgs e)
//{
// FrmCambiarMesa lw = (FrmCambiarMesa)sender;
// if (lw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// CargaCuentas();
// CargaCuenta(false);
// }
//}
private void BtnDividirCuenta_Click(object sender, EventArgs e)
{
var cw = new FrmDividirCuenta(tCveVentaTerminal);
//cw.Closed += popup_DividirCuenta;
cw.ShowDialog();
CargaCuentas();
CargaCuenta(true);
}
//private void popup_DividirCuenta(object sender, EventArgs e)
//{
// CargaCuentas();
// CargaCuenta(true);
//}
private void BtnReAbrirCuenta_Click(object sender, EventArgs e)
{
ReAbrirCuenta();
}
protected void ReAbrirCuenta()
{
var Frm = new FrmMesero(tCveVentaTerminal, tCveEstatusFactura, tImpreso);
//Frm.Closed += popup_ReAbrirCuenta;
Frm.ShowDialog();
procesoImprimirComanda.RunWorkerAsync(Frm.CveVentaTerminal);
CargaCuentas();
CargaCuenta(true);
}
//private void popup_ReAbrirCuenta(object sender, EventArgs e)
//{
// FrmMesero lw = (FrmMesero)sender;
// procesoImprimirComanda.RunWorkerAsync(lw.CveVentaTerminal);
// CargaCuentas();
// CargaCuenta(true);
//}
private void BtnImprimirCuenta_Click(object sender, EventArgs e)
{
// imprimir la mesa
var Venta = new ClsVentas();
Venta.UpdateImpreso(tCveVentaTerminal);
Venta.Dispose();
var Imprimir = new ClsImpresion(UsuarioActual);
Imprimir.Imprimir(tCveVentaTerminal, TipoImpresion.Venta, ModVarsPV.TamanoTicketConfigurado);
Imprimir.Dispose();
CargaCuentas();
BtnPagarCuenta.Enabled = true;
BtnReAbrirCuenta.Enabled = false;
BtnImprimirCuenta.Enabled = false;
BtnCambiarMesa.Enabled = false;
BtnBorrarCuenta.Enabled = false;
BtnCambiarMesero.Enabled = false;
BtnDividirCuenta.Enabled = false;
// BtnJuntarCuenta.Enabled = False
}
private void CmbFiltraEstatus_SelectedIndexChanged(object sender, EventArgs e)
{
CargaCuentas();
}
private void procesoImprimirComanda_DoWork(object sender, DoWorkEventArgs e)
{
var objVenta = new ClsVentas();
objVenta.CveVentaTerminal = e.Argument.ToString().ToEntero();
if (objVenta.GetVentasDetalle(objVenta.CveVentaTerminal))
{
int CveCategoria = 0;
foreach (DataRow R in objVenta.DtResultados.Tabla.FiltraParametros("ComandaOrden = MAX(ComandaOrden) and Impreso = 0", "CveCategoria").Rows)
{
if (CveCategoria != R["CveCategoria"].ToString().ToEntero())
{
if (CveCategoria > 0)
{
System.Threading.Thread.Sleep(5000);
}
CveCategoria = R["CveCategoria"].ToString().ToEntero();
// Imprimir la comanda de la categoria
var objImprimir = new ClsImpresion(UsuarioActual);
objImprimir.dtVentasDetalles = objVenta.DtResultados.Tabla.FiltraParametros("ComandaOrden = MAX(ComandaOrden) and Impreso = 0", "CveCategoria");
objImprimir.Imprimir(CveCategoria, TipoImpresion.Comanda, ModVarsPV.TamanoTicketConfigurado);
objImprimir.Dispose();
}
}
}
objVenta.Dispose();
}
private void BtnJuntarCuenta_Click(object sender, EventArgs e)
{
var cw = new FrmJuntarCuenta();
//cw.Closed += popup_JuntarCuenta;
cw.ShowDialog();
CargaCuentas();
CargaCuenta(true);
}
//private void popup_JuntarCuenta(object sender, EventArgs e)
//{
// CargaCuentas();
// CargaCuenta(true);
//}
private void BtnDescuento_Click(object sender, EventArgs e)
{
FrmProceso frmProceso = new FrmProceso(92, false);
DialogResult result = frmProceso.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
// Preguntar por el porcentaje de descuento a aplicar
FrmDescuentoPorPorcentaje cw = new FrmDescuentoPorPorcentaje(tDescuentoPorPorcentaje == 0 ? 10 : tDescuentoPorPorcentaje);
//cw.Closed += popup_Descuento;
//cw.Show();
endDescuento(cw);
}
else
{
MessageBox.Show("Denegado");
}
}
//private void popup_Descuento(object sender, EventArgs e)
//{
// FrmDescuentoPorPorcentaje cw = (FrmDescuentoPorPorcentaje)sender;
// if (cw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// tDescuentoPorPorcentaje = cw.PorcentajeDescuento;
// var objVenta = new ClsVentas();
// if (objVenta.UpdateDescuentoPorcentaje(cw.PorcentajeDescuento, tCveVentaTerminal, true))
// {
// if (cw.PorcentajeDescuento == 0)
// {
// LblCuentaDescuento.Text = "Descuento";
// }
// else
// {
// LblCuentaDescuento.Text = "Descuento*";
// }
// CargaCuenta(true);
// }
// objVenta.Dispose();
// }
//}
private void BtnCambiarCuenta_Click(object sender, EventArgs e)
{
}
private void btnCxP_Click(object sender, EventArgs e)
{
var frmClientes = new FrmBuscarCliente();
DialogResult result = frmClientes.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
// Preguntar por el porcentaje de descuento a aplicar
FrmDescuentoPorPorcentaje cw = new FrmDescuentoPorPorcentaje(tDescuentoPorPorcentaje == 0 ? 10 : tDescuentoPorPorcentaje);
endDescuento(cw);
}
else
{
MessageBox.Show("Denegado");
}
}
private void endDescuento(FrmDescuentoPorPorcentaje cw)
{
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
tDescuentoPorPorcentaje = cw.PorcentajeDescuento;
var objVenta = new ClsVentas();
if (objVenta.UpdateDescuentoPorcentaje(cw.PorcentajeDescuento, tCveVentaTerminal, true))
{
if (cw.PorcentajeDescuento == 0)
{
LblCuentaDescuento.Text = "Descuento";
}
else
{
LblCuentaDescuento.Text = "Descuento*";
}
CargaCuenta(true);
}
objVenta.Dispose();
}
}
private void BtnBorrarCuenta_Click(object sender, EventArgs e)
{
MessageBox.Show("en el codigo estaba en blanco");
FrmProceso frmProceso = new FrmProceso(1000, false);
DialogResult result = frmProceso.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
}
else
{
MessageBox.Show("Denegado");
}
}
}
}

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,481 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmCuentaApertura
{
/// <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(FrmCuentaApertura));
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.panel2 = new System.Windows.Forms.Panel();
this.BtnCancelar = new System.Windows.Forms.Button();
this.BtnAceptar = new System.Windows.Forms.Button();
this.TxtPersonas = new System.Windows.Forms.TextBox();
this.TxtApertura = new System.Windows.Forms.TextBox();
this.DdlMeseros = new System.Windows.Forms.ComboBox();
this.DdlMesa = new System.Windows.Forms.ComboBox();
this.LblMesero = new System.Windows.Forms.Label();
this.LblMesa = new System.Windows.Forms.Label();
this.LblPersona = new System.Windows.Forms.Label();
this.lblCuenta = new System.Windows.Forms.Label();
this.GboxTecladoNumerico = new System.Windows.Forms.GroupBox();
this.BtnBack = new FontAwesome.Sharp.IconButton();
this.BtnNum = new System.Windows.Forms.Button();
this.BtnNum3 = new System.Windows.Forms.Button();
this.BtnNum2 = new System.Windows.Forms.Button();
this.BtnNum6 = new System.Windows.Forms.Button();
this.BtnNum5 = new System.Windows.Forms.Button();
this.BtnNum1 = new System.Windows.Forms.Button();
this.BtnNum4 = new System.Windows.Forms.Button();
this.BtnNum9 = new System.Windows.Forms.Button();
this.BtnNum8 = new System.Windows.Forms.Button();
this.BtnNum7 = new System.Windows.Forms.Button();
this.lbltitulofrm = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.GboxTecladoNumerico.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(588, 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(618, 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(648, 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);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.panel1.Controls.Add(this.lbltitulofrm);
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(679, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(91)))), ((int)(((byte)(115)))), ((int)(((byte)(143)))));
this.panel2.Controls.Add(this.BtnCancelar);
this.panel2.Controls.Add(this.BtnAceptar);
this.panel2.Controls.Add(this.TxtPersonas);
this.panel2.Controls.Add(this.TxtApertura);
this.panel2.Controls.Add(this.DdlMeseros);
this.panel2.Controls.Add(this.DdlMesa);
this.panel2.Controls.Add(this.LblMesero);
this.panel2.Controls.Add(this.LblMesa);
this.panel2.Controls.Add(this.LblPersona);
this.panel2.Controls.Add(this.lblCuenta);
this.panel2.Location = new System.Drawing.Point(0, 30);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(400, 360);
this.panel2.TabIndex = 2;
//
// BtnCancelar
//
this.BtnCancelar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(145)))), ((int)(((byte)(173)))));
this.BtnCancelar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnCancelar.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnCancelar.Location = new System.Drawing.Point(72, 250);
this.BtnCancelar.Name = "BtnCancelar";
this.BtnCancelar.Size = new System.Drawing.Size(120, 35);
this.BtnCancelar.TabIndex = 8;
this.BtnCancelar.Text = "Cancelar";
this.BtnCancelar.UseVisualStyleBackColor = false;
this.BtnCancelar.Click += new System.EventHandler(this.BtnCancelar_Click);
//
// BtnAceptar
//
this.BtnAceptar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(145)))), ((int)(((byte)(173)))));
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(230, 250);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(120, 35);
this.BtnAceptar.TabIndex = 8;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = false;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// TxtPersonas
//
this.TxtPersonas.Font = new System.Drawing.Font("Open Sans", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtPersonas.Location = new System.Drawing.Point(150, 76);
this.TxtPersonas.Name = "TxtPersonas";
this.TxtPersonas.Size = new System.Drawing.Size(200, 31);
this.TxtPersonas.TabIndex = 7;
this.TxtPersonas.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.TxtPersonas.TextChanged += new System.EventHandler(this.TxtOnlynumbers_TextChanged);
this.TxtPersonas.Enter += new System.EventHandler(this.Txt_Enter);
//
// TxtApertura
//
this.TxtApertura.Font = new System.Drawing.Font("Open Sans", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtApertura.Location = new System.Drawing.Point(150, 25);
this.TxtApertura.Name = "TxtApertura";
this.TxtApertura.Size = new System.Drawing.Size(200, 31);
this.TxtApertura.TabIndex = 6;
this.TxtApertura.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.TxtApertura.TextChanged += new System.EventHandler(this.TxtOnlynumbers_TextChanged);
this.TxtApertura.Enter += new System.EventHandler(this.Txt_Enter);
//
// DdlMeseros
//
this.DdlMeseros.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.DdlMeseros.Font = new System.Drawing.Font("Open Sans", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DdlMeseros.FormattingEnabled = true;
this.DdlMeseros.Location = new System.Drawing.Point(150, 178);
this.DdlMeseros.Name = "DdlMeseros";
this.DdlMeseros.Size = new System.Drawing.Size(200, 31);
this.DdlMeseros.TabIndex = 5;
//
// DdlMesa
//
this.DdlMesa.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.DdlMesa.Font = new System.Drawing.Font("Open Sans", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DdlMesa.FormattingEnabled = true;
this.DdlMesa.Location = new System.Drawing.Point(150, 127);
this.DdlMesa.Name = "DdlMesa";
this.DdlMesa.Size = new System.Drawing.Size(200, 31);
this.DdlMesa.TabIndex = 4;
//
// LblMesero
//
this.LblMesero.AutoSize = true;
this.LblMesero.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblMesero.Location = new System.Drawing.Point(25, 178);
this.LblMesero.Name = "LblMesero";
this.LblMesero.Size = new System.Drawing.Size(79, 26);
this.LblMesero.TabIndex = 3;
this.LblMesero.Text = "Mesero";
//
// LblMesa
//
this.LblMesa.AutoSize = true;
this.LblMesa.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblMesa.Location = new System.Drawing.Point(25, 127);
this.LblMesa.Name = "LblMesa";
this.LblMesa.Size = new System.Drawing.Size(60, 26);
this.LblMesa.TabIndex = 2;
this.LblMesa.Text = "Mesa";
//
// LblPersona
//
this.LblPersona.AutoSize = true;
this.LblPersona.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblPersona.Location = new System.Drawing.Point(25, 76);
this.LblPersona.Name = "LblPersona";
this.LblPersona.Size = new System.Drawing.Size(94, 26);
this.LblPersona.TabIndex = 1;
this.LblPersona.Text = "Personas";
//
// lblCuenta
//
this.lblCuenta.AutoSize = true;
this.lblCuenta.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lblCuenta.Location = new System.Drawing.Point(25, 25);
this.lblCuenta.Name = "lblCuenta";
this.lblCuenta.Size = new System.Drawing.Size(77, 26);
this.lblCuenta.TabIndex = 0;
this.lblCuenta.Text = "Cuenta";
//
// GboxTecladoNumerico
//
this.GboxTecladoNumerico.Controls.Add(this.BtnBack);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum3);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum2);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum6);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum5);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum1);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum4);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum9);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum8);
this.GboxTecladoNumerico.Controls.Add(this.BtnNum7);
this.GboxTecladoNumerico.Enabled = false;
this.GboxTecladoNumerico.Location = new System.Drawing.Point(405, 30);
this.GboxTecladoNumerico.Name = "GboxTecladoNumerico";
this.GboxTecladoNumerico.Size = new System.Drawing.Size(265, 360);
this.GboxTecladoNumerico.TabIndex = 3;
this.GboxTecladoNumerico.TabStop = false;
this.GboxTecladoNumerico.Text = "Teclado Numerico";
//
// BtnBack
//
this.BtnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnBack.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnBack.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnBack.IconChar = FontAwesome.Sharp.IconChar.ArrowLeft;
this.BtnBack.IconColor = System.Drawing.Color.Black;
this.BtnBack.IconSize = 45;
this.BtnBack.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnBack.Location = new System.Drawing.Point(180, 275);
this.BtnBack.Name = "BtnBack";
this.BtnBack.Rotation = 0D;
this.BtnBack.Size = new System.Drawing.Size(75, 75);
this.BtnBack.TabIndex = 1;
this.BtnBack.UseVisualStyleBackColor = true;
this.BtnBack.Click += new System.EventHandler(this.BtnBack_Click);
//
// BtnNum
//
this.BtnNum.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum.Location = new System.Drawing.Point(95, 275);
this.BtnNum.Name = "BtnNum";
this.BtnNum.Size = new System.Drawing.Size(75, 75);
this.BtnNum.TabIndex = 0;
this.BtnNum.Text = "0";
this.BtnNum.UseVisualStyleBackColor = true;
this.BtnNum.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum3
//
this.BtnNum3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum3.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum3.Location = new System.Drawing.Point(180, 190);
this.BtnNum3.Name = "BtnNum3";
this.BtnNum3.Size = new System.Drawing.Size(75, 75);
this.BtnNum3.TabIndex = 0;
this.BtnNum3.Text = "3";
this.BtnNum3.UseVisualStyleBackColor = true;
this.BtnNum3.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum2
//
this.BtnNum2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum2.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum2.Location = new System.Drawing.Point(95, 190);
this.BtnNum2.Name = "BtnNum2";
this.BtnNum2.Size = new System.Drawing.Size(75, 75);
this.BtnNum2.TabIndex = 0;
this.BtnNum2.Text = "2";
this.BtnNum2.UseVisualStyleBackColor = true;
this.BtnNum2.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum6
//
this.BtnNum6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum6.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum6.Location = new System.Drawing.Point(180, 105);
this.BtnNum6.Name = "BtnNum6";
this.BtnNum6.Size = new System.Drawing.Size(75, 75);
this.BtnNum6.TabIndex = 0;
this.BtnNum6.Text = "6";
this.BtnNum6.UseVisualStyleBackColor = true;
this.BtnNum6.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum5
//
this.BtnNum5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum5.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum5.Location = new System.Drawing.Point(95, 105);
this.BtnNum5.Name = "BtnNum5";
this.BtnNum5.Size = new System.Drawing.Size(75, 75);
this.BtnNum5.TabIndex = 0;
this.BtnNum5.Text = "5";
this.BtnNum5.UseVisualStyleBackColor = true;
this.BtnNum5.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum1
//
this.BtnNum1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum1.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum1.Location = new System.Drawing.Point(10, 190);
this.BtnNum1.Name = "BtnNum1";
this.BtnNum1.Size = new System.Drawing.Size(75, 75);
this.BtnNum1.TabIndex = 0;
this.BtnNum1.Text = "1";
this.BtnNum1.UseVisualStyleBackColor = true;
this.BtnNum1.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum4
//
this.BtnNum4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum4.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum4.Location = new System.Drawing.Point(10, 105);
this.BtnNum4.Name = "BtnNum4";
this.BtnNum4.Size = new System.Drawing.Size(75, 75);
this.BtnNum4.TabIndex = 0;
this.BtnNum4.Text = "4";
this.BtnNum4.UseVisualStyleBackColor = true;
this.BtnNum4.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum9
//
this.BtnNum9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum9.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum9.Location = new System.Drawing.Point(180, 20);
this.BtnNum9.Name = "BtnNum9";
this.BtnNum9.Size = new System.Drawing.Size(75, 75);
this.BtnNum9.TabIndex = 0;
this.BtnNum9.Text = "9";
this.BtnNum9.UseVisualStyleBackColor = true;
this.BtnNum9.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum8
//
this.BtnNum8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum8.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum8.Location = new System.Drawing.Point(95, 20);
this.BtnNum8.Name = "BtnNum8";
this.BtnNum8.Size = new System.Drawing.Size(75, 75);
this.BtnNum8.TabIndex = 0;
this.BtnNum8.Text = "8";
this.BtnNum8.UseVisualStyleBackColor = true;
this.BtnNum8.Click += new System.EventHandler(this.BtnNum_Click);
//
// BtnNum7
//
this.BtnNum7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNum7.Font = new System.Drawing.Font("Open Sans", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNum7.Location = new System.Drawing.Point(10, 20);
this.BtnNum7.Name = "BtnNum7";
this.BtnNum7.Size = new System.Drawing.Size(75, 75);
this.BtnNum7.TabIndex = 0;
this.BtnNum7.Text = "7";
this.BtnNum7.UseVisualStyleBackColor = true;
this.BtnNum7.Click += new System.EventHandler(this.BtnNum_Click);
//
// lbltitulofrm
//
this.lbltitulofrm.AutoSize = true;
this.lbltitulofrm.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbltitulofrm.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.lbltitulofrm.Location = new System.Drawing.Point(10, 5);
this.lbltitulofrm.Name = "lbltitulofrm";
this.lbltitulofrm.Size = new System.Drawing.Size(116, 22);
this.lbltitulofrm.TabIndex = 1;
this.lbltitulofrm.Text = "Abrir cuenta";
//
// FrmCuentaApertura
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(679, 384);
this.ControlBox = false;
this.Controls.Add(this.GboxTecladoNumerico);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmCuentaApertura";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.GboxTecladoNumerico.ResumeLayout(false);
this.ResumeLayout(false);
}
#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.Panel panel2;
private System.Windows.Forms.Label LblMesero;
private System.Windows.Forms.Label LblMesa;
private System.Windows.Forms.Label LblPersona;
private System.Windows.Forms.Label lblCuenta;
private System.Windows.Forms.TextBox TxtPersonas;
private System.Windows.Forms.TextBox TxtApertura;
private System.Windows.Forms.ComboBox DdlMeseros;
private System.Windows.Forms.ComboBox DdlMesa;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.Button BtnCancelar;
private System.Windows.Forms.GroupBox GboxTecladoNumerico;
private System.Windows.Forms.Button BtnNum;
private System.Windows.Forms.Button BtnNum3;
private System.Windows.Forms.Button BtnNum2;
private System.Windows.Forms.Button BtnNum6;
private System.Windows.Forms.Button BtnNum5;
private System.Windows.Forms.Button BtnNum1;
private System.Windows.Forms.Button BtnNum4;
private System.Windows.Forms.Button BtnNum9;
private System.Windows.Forms.Button BtnNum8;
private System.Windows.Forms.Button BtnNum7;
private FontAwesome.Sharp.IconButton BtnBack;
private System.Windows.Forms.Label lbltitulofrm;
}
}

View File

@@ -0,0 +1,282 @@
using ADSUtileriasWF.Helpers;
using ADSUtileriasWF.Data.Externa.PV;
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 FrmCuentaApertura : FormBase
{
public int CveVentaTerminal { get; set; }
public int CveVendedor { get; set; }
public string Vendedor { get; set; }
TextBox txtFoco;
public FrmCuentaApertura(int CveVendedor_, string Vendedor_,bool EsTouch = false )
{
InitializeComponent();
CveVendedor = CveVendedor_;
Vendedor = Vendedor_;
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
if (EsTouch == true)
{
GboxTecladoNumerico.Visible = true;
}
else
{
GboxTecladoNumerico.Visible = false;
this.Size = new Size(400, 320);
}
using (ClsCuentas Cuenta = new ClsCuentas())
{
if (Cuenta.GetVendedores())
{
DdlMeseros.DisplayMember = "Vendedor";
DdlMeseros.ValueMember = "CveVendedor";
DdlMeseros.DataSource = Cuenta.DtResultados.Tabla.DefaultView;
if (CveVendedor > 0)
{
DdlMeseros.SelectedValue = CveVendedor;
DdlMeseros.Enabled = false;
}
}
}
using (ClsVta_Mesas Mesas = new ClsVta_Mesas())
{
if (Mesas.GetVta_Mesas())
{
DdlMesa.DisplayMember = "Mesa";
DdlMesa.ValueMember = "CveMesa";
DdlMesa.DataSource = Mesas.DtResultados.Tabla.DefaultView;
foreach (DataRow drowmesa in Mesas.DtResultados.Tabla.Rows)
{
if (drowmesa["VentasAbiertas"].ToString().ToEntero() > 0)
{
drowmesa["Mesa"] = string.Format("{0}, ({1})", drowmesa["Mesa"], drowmesa["VentasAbiertas"]);
}
}
}
}
}
private void closeok(FrmMesero frmmesero)
{
using (ClsVentas objVenta = new ClsVentas())
{
objVenta.CveVentaTerminal = frmmesero.CveVentaTerminal;
if (objVenta.GetVentasDetalle(objVenta.CveVentaTerminal))
{
int CveCategoria = 0;
foreach (DataRow drow in objVenta.DtResultados.Tabla.FiltraParametros("ComandaOrden = MAX(ComandaOrden) and Impreso = 0", "CveCategoria").Rows)
{
if (CveCategoria != drow["CveCategoria"].ToString().ToEntero())
{
if (CveCategoria > 0)
{
System.Threading.Thread.Sleep(5000);
}
CveCategoria = drow["CveCategoria"].ToString().ToEntero();
// Imprimir la comanda de la categoria
using (ClsImpresion objImprimir = new ClsImpresion(UsuarioActual ))
{
objImprimir.dtVentasDetalles = objVenta.DtResultados.Tabla.FiltraParametros("ComandaOrden = MAX(ComandaOrden) and Impreso = 0", "CveCategoria");
objImprimir.Imprimir(CveCategoria, TipoImpresion.Comanda, ModVarsPV.TamanoTicketConfigurado);
}
}
}
}
}
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
// guarda en ventas
if (TxtPersonas.Text.ToEntero() == 0 || TxtPersonas.Text.ToEntero() > 251)
{
MessageBox.Show("Ingrese correctamente el número de personas de la mesa");
return;
}
if(DdlMeseros.SelectedValue == null)
{
MessageBox.Show("Seleccione un mesero");
return;
}
if (DdlMesa.SelectedValue == null)
{
MessageBox.Show("Seleccione una mesa");
return;
}
var Venta = new ClsVentas();
if (Venta.AddVenta("Rem", 0, ModVarsPV.CveClientePG, 0, 0, 0, 0, 1, 0, 0, DateTime.Now, "", "", 6, DdlMeseros.SelectedValue.ToString().ToEntero(), ModVarsPV.CorteActual.CveCorteTerminal, DdlMesa.SelectedValue.ToString().ToEntero(), TxtPersonas.Text.ToEntero(), TxtApertura.Text, UsuarioActual.CveUsuario, UsuarioActual.CveSucursal, UsuarioActual.CveEmpresa))
{
CveVentaTerminal = Venta.CveVentaTerminal;
FrmMesero frmmesero = new FrmMesero(Venta.CveVentaTerminal, 6, false);
frmmesero.ShowDialog();
closeok(frmmesero);
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
Venta.Dispose();
}
private void BtnCancelar_Click(object sender, EventArgs e)
{
}
private void BtnNum_Click(object sender, EventArgs e)
{
if (txtFoco != null)
{
string numero = ((Button)sender).Text;
string inicio = "";
string fin = "";
int SelectionStart = txtFoco.SelectionStart;
int SelectionLength = txtFoco.SelectionLength;
int linicio = 0;
int lfin = SelectionStart;
if (lfin > 0)
{
inicio = txtFoco.Text.Substring(linicio, lfin);
}
linicio = SelectionStart + SelectionLength;
lfin = txtFoco.Text.Length - linicio;
if (lfin > 0)
{
fin = txtFoco.Text.Substring(linicio, lfin);
}
txtFoco.Text = string.Format("{0}{1}{2}", inicio, numero, fin);
SelectionStart = SelectionStart + 1;
txtFoco.Focus();
txtFoco.SelectionStart = SelectionStart;
txtFoco.SelectionLength = 0;
}
}
private void BtnBack_Click(object sender, EventArgs e)
{
if (txtFoco != null)
{
string inicio = "";
string fin = "";
int SelectionStart = txtFoco.SelectionStart;
int SelectionLength = txtFoco.SelectionLength;
if (SelectionStart == 0 && SelectionLength == 0)
{
System.Media.SystemSounds.Exclamation.Play();
}
else
{
int linicio = 0;
int lfin = SelectionStart - (SelectionLength == 0 && SelectionStart > 0 ? 1 : 0);
if (lfin > 0)
{
inicio = txtFoco.Text.Substring(linicio, lfin);
}
linicio = SelectionStart + SelectionLength;
lfin = txtFoco.Text.Length - linicio;
if (lfin > 0)
{
fin = txtFoco.Text.Substring(linicio, lfin);
}
txtFoco.Text = string.Format("{0}{1}", inicio, fin);
SelectionStart = SelectionStart - (SelectionLength == 0 && SelectionStart > 0 ? 1 : 0);
}
txtFoco.Focus();
txtFoco.SelectionStart = SelectionStart;
txtFoco.SelectionLength = 0;
}
}
private void TxtApertura_Enter(object sender, EventArgs e)
{
}
private void Txt_Enter(object sender, EventArgs e)
{
txtFoco = (TextBox)sender;
GboxTecladoNumerico.Enabled = true;
}
private void TxtOnlynumbers_TextChanged(object sender, EventArgs e)
{
TextBox txt = (TextBox)sender;
if (System.Text.RegularExpressions.Regex.IsMatch(txt.Text, "[^0-9]"))
{
string inicio = "";
string fin = "";
int SelectionStart = txt.SelectionStart;
int SelectionLength = 0;
int linicio = 0;
int lfin = SelectionStart - (SelectionLength == 0 && SelectionStart > 0 ? 1 : 0);
if (lfin > 0)
{
inicio = txt.Text.Substring(linicio, lfin);
}
linicio = SelectionStart + SelectionLength;
lfin = txt.Text.Length - linicio;
if (lfin > 0)
{
fin = txt.Text.Substring(linicio, lfin);
}
txt.Text = string.Format("{0}{1}", inicio, fin);
SelectionStart = SelectionStart - (SelectionLength == 0 && SelectionStart > 0 ? 1 : 0);
//txt.Focus();
txt.SelectionStart = SelectionStart;
txt.SelectionLength = 0;
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void BtnMaximizeRestore_Click_1(object sender, EventArgs e)
{
this.BtnMaximizeRestore_Click(null, null);
}
private void BtnMinimize_Click_1(object sender, EventArgs e)
{
this.BtnMinimize_Click(null, null);
}
}
}

View File

@@ -0,0 +1,854 @@
<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>
<assembly alias="System.Drawing.Common" name="System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing.Common" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAXXsAAAEAIACouAAAFgAAACgAAABdAAAA9gAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/Pz8AP//
/wCrq6sTysrKCurq6gD6+voA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A9fX1AKysrU1dXV7DVlZWyHV1da6goKBsxMTEMeTk5AD29vYA////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD9/f0A4uHiAHZ3erlSUlTrKiot7RAQEPEjIyP1SkpK+XJycs+bm5uFv7+/Qd/f
3wT19fUA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD29vYAs7OzVVxcYO9WVlj5TU1O+icoKP0GBgb/BwcH/xAQ
EP8qKir/TU1N/25ubtmXl5eNwcHBPdzc3Ajy8vIA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP39/QDo6OkAgYKFtlhbXP5UVVf/VFRX/0tL
TP8pKSn/BgYG/wcHB/8ODg7/EhIS/xgYGP8uLi7/UlJS/3JyctGWlpaMuLi4S9fX1xHv7+8A/Pz8AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APn5+QDAwMM9ZGRn7FdZ
W/9VVVf/UlJV/1FRU/9OT1D/KCgp/wUFBf8JCQn/Dg4O/xISEv8ZGRn/HBwc/yIiIv8zMzP/UFBQ/3Fx
cdWTk5OTvb29Q/Hx8QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+AO3t
7QCQkZGYXl9i/1ZXWv9UVVf/UVJV/09PUP9RUlT/UlJS/yYmJv8FBQX/CgoK/xEREf8TExP/Ghoa/xwc
HP8jIyP/KSkp/y0tLf85OTn/W1tb+6+vr1/4+PgA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A+vr6AM3N0CZsbG/dXV5f/1ZXWv9UVVf/UlNV/05OT/9MTE3/VFRW/1ZXV/8fHx//BQUF/woK
Cv8RERH/FBQU/xoaGv8eHh7/IyMj/ygoKP8sLCz/NTU1/1paWvu6urpI+vr6AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A8vLyAJ2eoIFgYGP/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/SUlK/1pa
W/9aWlr/FBQU/wQEBP8NDQ3/ERER/xYWFv8aGhr/ICAg/yMjI/8pKSn/LCws/zY2Nv9hYWHww8PDOfz8
/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD8/PwA1tbXE3V2ec5fYGP/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/RkZJ/0ZJSf9lZWX/VlZW/wwMDP8GBgb/DQ0N/xEREf8WFhb/Gxsb/yEhIf8kJCT/Kioq/y0t
Lf84ODj/ampq4dDQ0B7///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDz8/MAqamra2Rma/9fX2L/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dJ/0RERv9KSkv/bXBw/0xMTP8GBgb/BwcH/w4ODv8SEhL/GBgY/xsb
G/8hISH/JCQk/yoqKv8tLS3/OTk5/3d3d8ra2toL////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP39/QDg4OAAfH5/vmNl
aP9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQEH/TU1N/2dnZ/8mJif/BQUF/wkJ
Cf8ODg7/ExMT/xkZGf8cHBz/IiIi/yYmJv8rKyv/Li4u/z4+Pv+AgIC34ODgAP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APf3
9wC4uLpMamps4WFkZ/9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/PT4//0lK
Sv8+Pz//BgYG/wUFBf8HBwf/Dg4O/xMTE/8aGhr/Hh4e/yMjI/8nJyf/LCws/zAwMP9AQED/jIyMoO3t
7QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f39AOHh4gCAgYS3Z2dq/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VF
Rf9BQkL/PT4+/zk8PP85OTn/Pj4+/zU1Nf8kJCT/GRkZ/xMTE/8SEhL/FhYW/xsbG/8hISH/JiYm/yws
LP8wMDD/QEBA/4+Pj5zp6ekA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A9/f3ALi4ukxsbnPdZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0VFRf9BQkL/PT4+/zk7O/9OT0//cHBw/3BwcP9paWn/Xl5e/1FRUf9ERET/NTU1/yoq
Kv8jIyP/IiIi/yQkJP8qKir/Li4u/05OTv+Xl5eN7+/vAP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD+/v4A6enqAImJjKdqa3H/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQkL/Pj4+/0ZGRv98fHz/e3t7/3l5ef93d3f/d3d3/3h4
eP91dXX/bm5u/2ZmZv9cXFz/Tk5O/0JCQv84ODj/NDQ0/zQ0NP9QUFD/oaGhevb29gD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD4+PoAw8TEOXFydtVnaG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/QEBB/3Z2d/+Ojo7/d3d3/3d3
d/9bW1v/NjY2/0RERP9dXV3/bW1t/3d3d/94eHj/eHh4/3Jycv9ra2v/ZGRk/1lZWf9SUlL/aWlp4bi4
uEz7+/sA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDu7+0Ak5OWlG5w
cv9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf8/QEH/VlZY/5+f
n/9/fn7/eHh4/2xsbP88PDz/IyMj/xEREf8TExP/JiYm/zk5Of9NTU3/YGBg/3BwcP95eXn/eXl5/3h4
eP90dHT/eHh4/6Ojo3b29vYA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8
/ADMzMwmd3d8ymxtcP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0RE
RP9FRUf/hoaI/5aWlv93d3f/d3d3/1VVVf8uLi7/LS0t/yQkJP8KCgr/BQUF/w0NDf8YGBj/IyMj/zEx
Mf9DQ0P/VFRU/2dnZ/90dHT/iIiI/8bGxjH8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APr6+gCsrK5ncHN2/2xscf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dJ/0RERv9bXFz/n5+f/35+fv92dnb/aWlp/zs7O/8tLS3/MTEx/zMzM/8uLi7/CQkJ/wUF
Bf8KCgr/Dg4O/xYWFv8cHBz/JCQk/zIyMv8/Pz//XV1d/5+fn37R0dEe7OzsAPv7+wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APz8/ADJyckueHl/xmxucP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/RkZI/0dJTP+FhYX/j4+P/3Z2dv91dXX/T09P/zExMf8wMDD/MDAw/zEx
Mf87Ozv/NTU1/wYGBv8GBgb/CwsL/xEREf8TExP/Ghoa/x8fH/8kJCT/MDAw/0VFRf9aWlr7c3Nz0aGh
oXrn5+cA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDv7+8AoqKodm5wcv9naG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9LS07/R0dH/15eX/+XmJr/e3t7/3d3d/9nZ2f/OTk5/zAw
MP8wMDD/MDAw/zAwMP8zMzP/SUlJ/zY2Nv8EBAT/BwcH/w0NDf8RERH/FxcX/xsbG/8gICD/JCQk/ykp
Kf8uLi7/Nzc3/1JSUv+VlZWR8PDwAP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+vv8AP38/AD8/PwA3t7eBIWF
if9qanL/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9LS0z/S0xN/4CBgv+JiYn/eHh4/3R0
dP9OTk7/MzMz/y8yMv8wMDD/MDAw/zAwMP8wMDD/ODg4/1NTU/8zMzP/BAQE/wcHB/8NDQ3/ERER/xcX
F/8bGxv/ICAg/yQkJP8qKir/Li4u/zU1Nf9SUlL/o6OjdvT09AD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD5+/8Ao8v7cr7I
10Hi394E7OzsAMDAv/9yc3f/Zmdp/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05PUP9MTE3/YGFi/4+P
j/96enr/eHh4/2VlZ/88PDz/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/z8/P/9iYmL/LS0t/wMD
A/8HBwf/EBAQ/xMTE/8ZGRn/Hh4e/yIiIv8nJyf/Kysr/zAwMP84ODj/WVlZ/62trWP5+fkA////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP7/
/wDZ6v8LO5j//2+i4v+1s6//u7m5/7y8vP+Fhor/ZGRo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9QUFL/fX1+/4SEhP93d3f/dHR0/01OTv81NTf/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP9LS0v/bW1t/xsbG/8EBAT/CgoK/xAQEP8UFBT/GRkZ/x4eHv8iIiL/Jycn/ysrK/8xMTH/ODg4/2Bg
YPS8vLxF/Pz8AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APn8/wCWx/+JBIf//ymL+f+To7v/qaWj/6utrf+ZmZv/bW5u/19gZv9fX2L/XF1g/1ZX
Wv9UVVf/UVJV/09QUP9fX2P/h4eH/3l6eP92dnb/YWFh/z09Pf83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8yMjL/W1tb/3BwcP8ODg7/BAQE/wwMDP8RERH/FhYW/xoaGv8fHx//IyMj/ygo
KP8tLS3/MjIy/zs7O/9oaGjkxMTENf7+/gD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A/v7/AOPw/wBEnv//AIX//wSC//9bmOX/qamq/6ajov+hoaH/iIiK/2Jj
Z/9eX1//XF1g/1ZXWv9VVVf/UVJU/1JTU/93d3f/f39//3h4eP9xcnL/S0tM/zg7O/83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/NjY2/3Jycv9qamr/BQUF/wYGBv8MDAz/ERER/xcX
F/8bGxv/ICAg/yQkJP8pKSn/LS0t/zIyMv8+Pj7/cnJy0dLS0hv///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+vz/AKrT/2cSiv//AYP//wCB//8oif3/jKjO/6mn
n/+jo6X/n52d/3l5fP9cXWD/XF1g/1ZXWv9VVVf/UVFW/19gYf9/f3//eXl5/3d3d/9hYWH/Pj4//zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/0BAQP+Dg4P/VlZW/wQE
BP8JCQn/DQ0N/xISEv8XFxf/Gxsb/yAgIP8kJCT/KSkp/y0tLf8yMjL/QUFB/39/f7rd3d0I////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A7fb/AFip//cAh///AYP//wKB
//8Gg///TZf1/6iwuf+loqH/paWl/5WVlf9oaWv/Wltc/1dZW/9UVVf/VFRW/3Fwcv98fHz/eHh4/29x
cf9MTEz/PT09/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4u
Lv9MTEz/f39//ykpKf8EBAT/CQkJ/w0NDf8SEhL/FxcX/xsbG/8gICD/JiYm/yoqKv8uLi7/MzMz/0ZG
Rv+Hh4er4+PjAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD7/f8At9j/TBqN
//8Ahf//AYP//wKB//8Agf//Gob//32q5v+vraj/o6Gh/6Kiov+Ghon/XV5f/1ZWWf9UVFn/X19i/3l5
ef95eXn/d3d3/15eX/9AQUP/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/UFBQ/1NTU/8NDQ3/BQUF/wsLC/8NDQ3/FBQU/xkZGf8eHh7/IiIi/ycn
J/8rKyv/MDAw/zU1Nf9LS0v/kpKSlOzs7AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wDx9/8AZrH/4QCI//8BhP//AYP//wKC//8DgP//A3///z2S//+ots7/qKWg/6Ojo/+dnJ7/dHR3/1VW
Vv9VVVr/ampq/3l5ef94eHj/bW1v/0xNTf9AQUH/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MjIy/0VFRf8rKyv/BAQE/wYGBv8LCwv/ERER/xYW
Fv8aGhr/Hh4e/yMjI/8nJyf/Kysr/zAwMP83Nzf/UFBQ/56enn709PQA////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APz9/wDH4/8uI5H//wCH//8BhP//AYP//wKC//8DgP//A3///xOC//9vp/T/tra1/6Gh
of+jo6P/lJOV/2RkaP9bW1v/c3Nz/3l5ef93dnb/XF1d/0NDRv9BQUH/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zMzM/8sLCz/BwcH/wMD
A/8FBQX/CQkJ/w0NDf8TExP/GRkZ/x4eHv8jIyP/KCgo/y0tLf8yMjL/OTk5/1dXV/+srKxn+Pj4AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APj7/wB5uv++Aov//wCF//8BhP//AYP//wKC//8DgP//A3///wZ/
//8ri///oLvl/7Gtp/+hoaH/o6Gh/4iIiP9sbG//e3t7/3t7e/9vbW//TExN/0RERv9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8xMTH/Ozs7/zk5Of8wMDD/KSkp/yIiIv8eHh7/HBwc/xsbG/8fHx//ISEh/yYmJv8qKir/MDAw/zk5
Of9fX1/0s7OzWPz8/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A/f7+ANjs/w8wlv//AIn//wCF//8BhP//AYP//wKC
//8DgP//A3///wN///8Jff//WJ7+/7i/yv+mo6H/o6Wl/5+fn/+Wlpb/mJiY/5SUlP9kZWf/RUVF/0VF
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/zMzM/9XV1f/enp6/3Fxcf9tbW3/aWlp/2VlZf9gYGD/Wlpa/1JSUv9MTEz/RkZG/0FB
Qf89PT3/Ozs7/zk5Of9AQED/Z2dn5MHBwT37+/sA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+Pv/AJTI/40Gjf//AIf//wCF
//8BhP//AYP//wKC//8DgP//Bn///wN///8Cff//G4P//3+t8v+wsLD/pKKh/6Ojo/+jo6P/o6Oj/4yM
jP9SUlX/RUVK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/LS0t/1RUVP+Tk5P/goKC/3l5ef96enr/enp6/3p6ev94eHj/eHh4/3V1
df90dHT/cnJy/3BwcP9ra2v/aWlp/2VlZf9jY2P/ZWVl/5SUlJHu7u4A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD+/v8A4O//AD+f
//8Aif//AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ///8Eff//B3z//yyI//+CodP/paWg/6Oj
o/+ioqL/n5+f/2xtb/9JSUr/R0dK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8tLS3/ODg4/5mZmf+cnJz/d3d3/3l5ef93d3f/cHBw/2tr
a/90dHT/eHh4/3x8fP98fHz/fHx8/3t7e/97e3v/eXl5/3h4eP93d3f/gICAt7CwsF/29vYA////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD5/P8Aoc//dgiO//8AiP//AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ///8Eff//BXz//wh7
//84hfL/m6Gx/6mopf+pqan/paWl/3d3d/9JSUr/RkdK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/aWlp/7S0tP+AgID/dnZ2/3h4
eP9sbGz/QUFB/yMjI/8pKSn/ODg4/0ZGRv9SUlL/Xl5e/2dnZ/9tbW3/dHR0/3l5ef99fX3/m5ubhePj
4wD+/v4A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDo9P8ATqX//wCM//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ/
//8Hff//BXz//wZ6//9FjPH/p6uz/7Gxr/+xsbH/tLS0/6Wlpf9fX2D/REVH/0VFRf9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9JSUn/s7Oz/5OT
k/91dXX/eXl5/3R0dP9SUlL/LS0t/xoaGv8GBgb/BgYG/wwMDP8WFhb/ICAg/ygoKP8zMzP/PT09/0ZG
Rv9XV1f/goKCs8HBwT3V1dUX6OjoAPLy8gD8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APr8/wCt1v9fF5H//wCJ//8Ah///AIf//wCF//8BhP//AYP//wKC
//8DgP//Bn///wZ///8Efv//Bnv//yuH//+RrNj/s7Gw/7O0tP+3t7f/urq6/7u7u/+SkpL/S0tM/0JC
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zU1
Nf+QkJD/s7Oz/3h4eP95eXn/d3d3/2FhYf83Nzf/Li4u/ywsLP8hISH/CQkJ/wQEBP8GBgb/DAwM/xIS
Ev8XFxf/HBwc/yMjI/8rKyv/PT09/09PT/9bW1v7a2tr3X9/f7qnp6du7u7uAP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APf7/wB+wP+zAI7//wCJ//8Ah///AIf//wCF
//8BhP//AYP//wKC//8DgP//Bn///wZ///8Efv//Dn7//3Sr9/+4urz/sbGx/7S0tP+5ubn/u7u7/76+
vv+4uLj/d3Z3/0BBQ/9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8uLi7/Li4u/19fX/+3t7f/hoaG/3Z2dv95eXn/bW1t/0RERP8tLS3/MDAw/zIyMv81NTX/LS0t/wsL
C/8EBAT/CQkJ/w0NDf8SEhL/FxcX/xsbG/8gICD/JiYm/yoqKv8tLS3/Nzc3/z8/P/9aWlr7oaGhevX1
9QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APv9/wC22/9QGJP//wCK
//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wN///8Hff//PpH//7bE2v+1s7H/srOz/7a2
tv+5ubn/vLy8/8DAwP/Dw8P/rKyt/1tcXP8+Pj//PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8tLS3/QEBA/5ycnP+ZmZn/dnZ2/3l5ef91dXX/VVVV/zAwMP8wMDD/MDAw/zAw
MP81NTX/QkJC/zY2Nv8JCQn/BAQE/woKCv8ODg7/ExMT/xgYGP8eHh7/IiIi/yYmJv8qKir/MDAw/zQ0
NP88PDz/XFxc97GxsVv7+/sA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8
+wDr8f4AZ7L/3QCM//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wR+//8Ugv//iLX2/8C+
vP+xsbH/tLS0/7m5uf+7u7v/vb29/8HBwf/ExMT/xcXF/5eXl/9EREb/PT09/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8yMjL/cnJy/6Wlpf97e3v/eHh4/3d3d/9iYmL/OTk5/y4u
Lv8wMDD/MDAw/zAwMP8xMTH/ODg4/1FRUf88PDz/BgYG/wUFBf8LCwv/EBAQ/xQUFP8ZGRn/Hx8f/yIi
Iv8nJyf/LCws/zExMf80NDT/PT09/2RkZOy8vLxF/Pz8AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD9/v8A1+r8D56xxH6tqqhrfJm3vgyH+v8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//A3///wh/
//9Alf//uMTV/7WzsP+zs7P/t7e3/7q6uv+8vLz/wcHB/8PDw//FxcX/ycnJ/8DAwP90dHX/OTk5/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9OTk7/nZ2d/4aGhv92dnb/eXl5/21t
bf9FRUX/Li4u/zAwMP8wMDD/MDAw/zAwMP8wMDD/MTEx/0RERP9jY2P/PDw8/wQEBP8GBgb/DAwM/xER
Ef8WFhb/Ghoa/x8fH/8kJCT/KSkp/ywsLP8xMTH/NjY2/z8/P/9qamrhx8fHMf7+/gD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD2+/8AfcL/t0qO1P9+enf/eHt8/zuBy/8AiP//AIf//wCF//8BhP//AYP//wKC
//8DgP//A3///xOC//+DsfL/vbq5/7Gxsf+0tLT/ubm5/7y8vP+9vb3/wcHB/8TExP/IyMj/ycnJ/87O
zv+wsLL/UlNT/zY2Nv83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/zc3N/+AgID/lJSU/3d3
d/95eXn/eHh4/1ZWVv8yMjL/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zQ0NP9SUlL/cXFx/zEx
Mf8DAwP/BwcH/wwMDP8RERH/FxcX/xoaGv8gICD/JCQk/ygoKP8sLCz/MjIy/zY2Nv9CQkL/dHR0ztLS
0hv///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP3+/wDN6P8iJJz//xWR/v9ofpb/dHFp/2Z4iv8XhPT/AIf//wCF
//8BhP//AYP//wKC//8DgP//AH7//0aW//+1vsn/s7Gw/7S0tP+4uLj/ubm5/729vf/BwcH/w8PD/8XF
xf/IyMj/y8vL/83Nzf/Pz8/+oqKj9kBCQvo0NTf/NDQ0/zExMf8wMDD/MDAw/zAwMP8uLi7/MjIy/2Nj
Y/+VlZX/eXl5/3l5ef94eHj/aWlp/zY2Nv8uLi7/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8zMzP/X19f/4aGhv8sLCz/AgIC/wkJCf8NDQ3/ERER/xcXF/8bGxv/ICAg/yQkJP8pKSn/LS0t/zIy
Mv82Njb/QEBA/3Nzc9HW1tYT////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APj7/wCBxP+vAJX//wCR//9NkNL/d3Rv/3Jx
cv9Gf7z/AIf//wCF//8BhP//AYP//wKC//8DgP//FIT//4Sv6v+5trL/s7Gx/7a2tv+5ubn/u7u7/76+
vv/BwcH/xMTE/8jIyP/Hx8f/ysrK/83Nzf/Q0NDsz9DQlIiIiK81Njb0NDQ0/zExMf8wMDD/MDAw/zAw
MP8uLi7/RUVF/4qKiv+BgYH/d3d3/3l5ef9zc3P/SUlJ/ywsLP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8tLS3/Ozs7/3l5ef+MjIz/HBwc/wMDA/8JCQn/Dg4O/xISEv8XFxf/HBwc/yAg
IP8kJCT/Kioq/y4uLv80NDT/Nzc3/0VFRf99fX2+4ODgAP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v//ANzu/wgvoP//AJL//wCR
//8llfv/d4me/3Jxaf9qd4n/HYPt/wCG//8BhP//AYP//wKB//8Agf//Q5T8/6+4xf+zsbH/tLS0/7i4
uP+5ubn/vLy8/8HBwf/Dw8P/xsbG/8jIyP/Jycn/y8vL/87Ozv7Q0NBz09PTCczNzRZgYGDAMzMz/TEx
Mf8wMDD/MDAw/zAwMP80NDT/bW1t/4aGhv93d3f/eXl5/3h4eP9aWlr/MTEx/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/Li4u/0VFRf+Tk5P/ioqK/wwMDP8EBAT/CgoK/xAQ
EP8SEhL/GRkZ/xwcHP8hISH/JCQk/ysrK/8uLi7/NDQ0/zc3N/9KSkr/iIiIp+np6QD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+fz/AJXP
/4kAl///AJD//wCQ//8Aj///XZzd/397d/9ycXH/TX2z/wCG//8AhP//AYP//wOA//8Vhv//gavi/7i0
sP+zsbH/tra2/7m5uf+8vLz/v7+//8HBwf/FxcX/ycnJ/8rKyv/Kysr/zc3N/9DQ0NnS0tIH1dXVAf//
/wC8vLwmQUFB5jIzM/4wMDD/MDAw/y4uLv9NTU3/g4OD/3p6ev95eXn/eHh4/2lpaf85OTn/LS0t/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP9TU1P/q6ur/39/
f/8EBAT/BQUF/woKCv8QEBD/FBQU/xkZGf8eHh7/IyMj/ycnJ/8sLCz/MDAw/zU1Nf85OTn/Tk5O/5OT
k5T19fUA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD+/v8A5PT/AD6n//8AlP//AJD//wCQ//8Ajv//LZr//4aXq/9ycGr/bXaB/yaB5f8Ahf//AYP//wCB
//89kvn/qrO+/7OxsP+1tbX/uLi4/7q6uv+9vb3/wcHB/8PDw//Gxsb/ycnJ/8vLy//MzMz/zs7O+9HR
0TLc3NwB1tbWAv///wD///8Ah4eHZTMzM+IwMDD+Li4u/zg4OP9tbW3/fX19/3d3d/95eXn/c3Nz/0pK
Sv8tLS3/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4u
Lv8yMjL/ampq/7y8vP9eXl7/AgIC/wYGBv8MDAz/ERER/xQUFP8aGhr/Hh4e/yMjI/8pKSn/LCws/zIy
Mv82Njb/Ozs7/1NTU/+8vLxF+fn5AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD5/P8An9T/egOW//8Akv//AJD//wCQ//8Ajv//AI///22n5v+Cf3v/cnFv/1N8
qf8BhP//AIP//weC//94o9v/trOx/7Ozs/+2trb/ubm5/7y8vP++vr7/wcHB/8TExP/IyMj/yMjI/8vL
y//Ozs7+0NDQv9TU1ATV1dUA3NzcAP///wD///8A29vbAVtbW3gxMTHhMDAw/VBQUP98fHz/eHh4/3l5
ef93d3f/Xl5e/zIyMv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zExMf8uLi7/ODg4/35+fv+4uLj/QEBA/wICAv8HBwf/DAwM/xEREf8UFBT/Ghoa/yAg
IP8jIyP/KSkp/ywsLP8yMjL/NjY2/z09Pf9ra2vdxsbGMfz8/AD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wDq9P8ATK///wCW//8Akv//AJD//wCQ//8Ajv//AI3//zee
//+XoK3/cW1r/3B3fP8qgd//AIL//y6L+P+lr7v/tLOx/7S0tP+4uLj/urq6/729vf/BwcH/wsLC/8bG
xv/IyMj/ysrK/8zMzP/Ozs7v0tLSHP///wDZ2dkA////AP///wD///8A////ALGxsRU4ODh+PDw85Gpq
av96enr/eXl5/3h4eP9ra2v/PT09/y4uLv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/0BAQP+Wlpb/r6+v/yQkJP8DAwP/BwcH/w0N
Df8RERH/FxcX/xsbG/8gICD/JCQk/ykpKf8tLS3/MjIy/zY2Nv9BQUH/eHh4xtLS0hv+/v4A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv9/wCv3P9bC5j//wCT//8Akv//AJD//wCQ
//8Ajv//AI7//wCQ//9+s+r/iYOA/29xb/9ZeqP/CYP//22e2f+2s7D/tLSz/7i4uP+5ubn/vLy8/8HB
wf/BwcH/xMTE/8nJyf/Jycn/zMzM/87OzvnS0tJx2NjYAdXV1QDe3t4AycnJAP///wD///8A////AP//
/wCGhoYYVFRUkXl5efJ4eHj/enp6/3h4eP9OTk7/LS0t/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9LS0v/paWl/5ub
m/8ODg7/BAQE/wkJCf8NDQ3/EhIS/xkZGf8bGxv/ISEh/yQkJP8rKyv/Li4u/zQ0NP85OTn/QkJC/4KC
grPc3NwI////AP///wD///8A////AP///wD///8A////AP///wD///8A////APH5/wBatf/0AJj//wCT
//8Akv//AJD//wCQ//8Ajv//AI7//wCL//86nf//oKy4/3Nxa/9vdXz/UIbG/5uotf+wr6r/sbGx/7S0
tP+5ubn/u7u7/7+/v//CwsL/yMjI/8rKyv/MzMz/zMzMP9DQ0EbT09MH3d3dAdra2gDJyckAycnJAP//
/wD///8A////AP///wD///8Ax8fHDc7OziHOzs4nzMzMK42Njf81NTX/Li4u/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/V1dX/7Ozs/9/f3//BAQE/wUFBf8KCgr/Dg4O/xMTE/8ZGRn/HBwc/yIiIv8mJib/Kysr/y4u
Lv80NDT/Ozs7/0dHR/+Li4uk4eHhAP///wD///8A////AP///wD///8A////AP///wD///8A/P7/AMHi
/zkXnP//AJX//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCM//8Ajv//e7Hr/4eDff9xcXH/dnuC/4SF
h/+JiYn/i4uL/5GRkf+VlZX/mZmZ/5ycnP+hoaH/pKSk/6CgoP+hoaH/o6OjmJycnCOhoaEB////AN3d
3QDKysoAzc3NAP///wD///8A////AP///wD///8A////AP///wD///8A3d3dCVtbW/8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8uLi7/MzMz/2xsbP+7u7v/YWFh/wICAv8GBgb/CgoK/xAQEP8TExP/GRkZ/x4e
Hv8jIyP/Jycn/ywsLP8xMTH/NjY2/zw8PP9NTU3/mJiYienp6QD///8A////AP///wD///8A////AP//
/wD///8A9vv/AG6+/9EAmP//AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCN//8Ai///KJX//3WN
qv9xbWn/dHRy/3h3d/96enr/fn5+/4KCgv+Dg4P/iIiI/4qKiv+NjY3/iYmJ/4ODg/+Ghob/ioqK6IqK
ilD///8A////AKenpwCnp6cAqampALa2tgD///8A////AP///wD///8A////AP///wD///8Ah4eHwjU1
Nf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zg4OP9/f3//u7u7/0RERP8BAQH/AgIC/wQE
BP8HBwf/CwsL/xEREf8WFhb/HBwc/yEhIf8oKCj/Li4u/zMzM/87Ozv/UVFR/6GhoXru7u4A////AP//
/wD///8A////AP///wD///8Aw+T/NR6f//8Al///AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCN
//8Ai///AIz//zSG3P91d3r/enl5/319ff+BgYH/g4OD/4ODg/+IiIj/iYmJ/42Njf+MjIz/jIyM/4mJ
if+Kior/ioqK8I6Ojn2Pj48B////AMrKygDGxsYAxsbGAMTExAD///8A////AP///wD///8A////AP//
/wC8vLxEPT09/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf8+Pj7/jIyM/7y8
vP94eHj/cnJy/3Z2dv95eXn/enp6/3x8fP94eHj/bm5u/2dnZ/9eXl7/WVlZ/1JSUv9MTEz/SkpK/2Bg
YOCxsbFF////AP///wD///8A////AP///wD///8Ajcv/mACY//8Alf//AJT//wCT//8Akv//AJD//wCQ
//8Ajv//AI7//wCN//8Ai///AIr//0OU6/+ioqf/qKel/6qqqv+tra3/r6+v/7Gxsf+xsbH/tLS0/7i4
uP+4uLj/t7e3/7Gxsf+zs7P/tbW14ri4uCn///8A////AMfHxwDCwsIAwcHBAMDAwAD///8A////AP//
/wD///8A////AP///wC7u7tQOzs7/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0t
Lf81NTX/hISE/+Xl5f/Nzc3/zMzM/87Ozv/Q0ND/0dHR/9PT0//Q0ND/ycnJ/8LCwv+5ubn/tLS0/6+v
r/+rq6v/qKio9aurqxbMzMwM////AP///wD///8A////AP///wD///8Azej/IiSi//8Al///AJT//wCT
//8Akv//AJD//wCQ//8Ajv//AI7//wCN//8Aiv//KJf//5mz0f+0sa//tLS0/7e3t/+6urr/vb29/8HB
wf/Dw8P/yMjI/8nJyf/IyMj/xcXF/8HBwf/Dw8PnyMjIrsfHxwH///8A////ALa2tgDBwcEAlpaWAJSU
lAD///8A////AP///wD///8A////AP///wD///8AhISExzExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/zExMf9ra2v/y8vL/7CwsP+Kior/j4+P/5WVlf+ampr/np6e/6Kiov+pqan/ra2t/7Gx
sf+1tbX/urq6/7+/v//ExMT8y8vLDf///wD09PQA////AP///wD///8A////AP///wD///8A9fv/AHrD
/7oAmP//AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCM//8AjP//ir31/7y5tP+xsbH/s7Oz/7Oz
sf+2trb/ubm5/7u7u/+/v7//wcHB/8TExP/Gxsb/v7+//729vf+6urrpsbGxWKmpqVylpaUC////AJ2d
nQCpqakAzc3NAI6OjgD///8A////AP///wD///8A////AP///wD///8A3NzcCWFhYf8xMTH/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/1lZWf/Dw8P/vb29/4aGhv+JiYn/jo6O/5OTk/+YmJj/nZ2d/6Ki
ov+oqKj/ra2t/7Ozs/+4uLj/vLy8/8PDw//KysoR////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/P3/AMfn/y4anv//AJX//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCK//9Co///wcrU/7Ox
r/+xs7j/bpfN/3eBiP+DgoH/h4eH/4mJif+MjIz/kJCQ/5OTk/+Xl5f/lpaW/5OTk/+MjIznjo6O6JOT
k9WUlJRpsbGxAZmZmQCcnJwAr6+vAP///wD///8A////AP///wD///8A////AP///wD///8A////AL+/
v0lDQ0P/MTEx/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8tLS3/SkpK/7Gxsf/Kysr/jIyM/4eHh/+Pj4//kpKS/5mZ
mf+dnZ3/oqKi/6ioqP+srKz/sbGx/7a2tv+7u7v/wcHB/8fHxxr///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APH4/wBiuf/kAJj//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCO
//+RwPT/vrqz/7Wxsf+Pqsv/F4b7/094q/91cWz/dHR0/3l5ef96enr/fn5+/4KCgv+EhIT/iYmJ/4aG
hv+EhIT/jY2N/5GRkf+UlJTolZWVG////wCZmZkAoaGhAMDAwAD///8A////AP///wCRkZGtPz8//09P
T/9dXV3/a2tr+3BwcPI8PDz/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf8+Pj7/mZmZ/9HR0f+Tk5P/hoaG/42N
jf+SkpL/l5eX/5ubm/+ioqL/p6en/6urq/+xsbH/tLS0/7q6uv+/v7//x8fHIP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv9/gC73/9FFJ7//wCV//8Akv//AJD//wCQ
//8Ajv//AIz//0Ci//+8ws//s7Gv/7Cztf9Klev/AIL//y2D5P9wdnr/c3Jw/3d3d/95eXn/fHx8/4GB
gf+EhIT/h4eH/4SEhP+EhIT/hoaG/4qKiv+MjIz/lJSUv6qqqgeZmZkAmpqaAKmpqQD///8A////AL6+
vkk/Pz//GRkZ/wMDA/8DAwP/BAQE/wQEBP8FBQX/IyMj/zIyMv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zc3N/+Hh4f/0tLS/56e
nv+FhYX/jIyM/5KSkv+Xl5f/mpqa/6Ghof+lpaX/q6ur/7CwsP+zs7P/urq6/76+vv3GxsYh0tLSAf//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDq9f8AU7H/+wCX
//8Akv//AJD//wCQ//8Ajv//A5H//4a47P+7t7D/t7Oz/4upzf8Khv//AIP//wuE//9fga7/dnJs/3Z2
dv95eXn/e3t7/4CAgP+CgoL/hoaG/4WFhf+Ghob/iIiI/4uLi/+SkpL/l5eX/6CgoDnAwMAKmZmZAJ+f
nwD///8A////AGNjY/8xMTH/LS0t/xAQEP8AAAD/AAAA/wAAAP8AAAD/CQkJ/y0tLf8xMTH/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/MTEx/3Bw
cP/R0dH/rq6u/4aGhv+Li4v/kpKS/5WVlf+ampr/oKCg/6Ojo/+rq6v/r6+v/7Ozs/+4uLj/vLy8+cPD
wyH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD6/f4Aq9j/YwGV//8Akv//AJD//wCQ//8Ajf//QKD//7O9xv+0sbD/q7O3/0OU7/8Ag///AYT//wCC
//88iOP/eHyA/3Jxcf93eHj/eXl5/35+fv+BgYH/g4OD/4WFhf+Hh4f/i4uL/46Ojv+SkpL/mZmZ/5qa
muepqakZ29vbApmZmQD///8Aj4+PsTg4OP8wMDD/MjIy/zAwMP8KCgr/AAAA/wAAAP8AAAD/AgIC/xgY
GP8yMjL/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8uLi7/XV1d/8TExP+5ubn/hoaG/4qKiv+QkJD/lJSU/5qamv+enp7/oqKi/6mpqf+urq7/s7Oz/7e3
t/+7u7v6w8PDlP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A6vb/AEuu//8Alv//AJD//wCP//8Dkv//grHk/7izsf+2s7P/eqTU/wCH
//8Ahf//AYT//wGD//8Zhv//bIy0/3dzbf91dXX/eXl5/3t7e/9/f3//gYGB/4aGhv+JiYn/i4uL/5GR
kf+SkpL/lpaW/5mZmf+fn5/As7OzL////wDDw8M/RERE/zEyMv8wMDD/MTEx/zU1Nf80NDT/AwMD/wAA
AP8AAAD/AAAA/wQEBP8kJCT/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/y0tLf9KSkr/q6ur/8HBwf+Li4v/iIiI/4+Pj/+Tk5P/mpqa/52dnf+hoaH/paWl/6ys
rP+ysrL/tra2/7q6uv/BwcHRysrKAf///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+v3/AKHU/3YAlP//AJD//wCP//84nPr/rba9/7Wx
r/+qsbr/NJL1/wCF//8Ahf//AYT//wGD//8Eg///SJDq/3+Dhv9ycW//eHh4/3p6ev9+fn7/gYGB/4SE
hP+IiIj/ioqK/46Ojv+RkZH/lJSU/5iYmP+ZmZn8p6endbW2uFxucHD2NTU1/zExMf8wMDD/MDAw/zEx
Mf9DQ0P/Kysr/wAAAP8AAAD/AAAA/wAAAP8LCwv/LS0t/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/z4+Pv+QkJD/xMTE/5GRkf+Ghob/jo6O/5KSkv+YmJj/nJyc/6Gh
of+kpKT/qqqq/7CwsP+1tbX/urq6/8DAwPnIyMgK////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7/AOLz/gA6p///AJP//wCS
//94qdv/tbGw/7S0sv9yodn/AIb//wCG//8Ahf//AYT//wGD//8Fgf//HYf//3WVwv94dW//dXV1/3l5
ef97e3v/f39//4KCgv+Ghob/iYmJ/4uLi/+RkZH/kpKS/5aWlv+ZmZn/m5ub/25wcP88PT3/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP82Njb/UlJS/xoaGv8AAAD/AAAA/wAAAP8CAgL/GBgY/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/NjY2/3V1df+6urr/l5eX/4aGhv+NjY3/kpKS/5eX
l/+bm5v/oKCg/6Ojo/+oqKj/rq6u/7Ozs/+5ubn/vr6+/sbGxhH///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APf7
/wCRy/+RAJL//y+X9f+lsbf/trOx/6Svvv8pkPj/AIb//wCG//8Ahf//AYT//wGD//8Cgf//AoL//06V
8f+Gio3/cXFv/3d3d/95eXn/fX19/4GBgf+Dg4P/iIiI/4qKiv+Ojo7/kZGR/5SUlP+Xl5f/gICA/0JC
RP81Nzf/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/RkZG/1VVVf8FBQX/AAAA/wAAAP8AAAD/BAQE/ycn
J/8xMTH/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8xMTH/XV1d/6qqqv+cnJz/hoaG/4yM
jP+SkpL/lpaW/5qamv+fn5//o6Oj/6enp/+srKz/s7Oz/7e3t/+9vb3/xMTEGf///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP3+/gDX7f8PL6D//3Ko3f+6tbD/t7ey/2yh3P8Ah///AIf//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//yKH//+En8f/eHVv/3V1df95eXn/e3t7/4GBgf+CgoL/hoaG/4mJif+MjIz/kJCQ/5OT
k/+Ojo7/U1NV/zg5Of83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/NDQ0/15eXv9DQ0P/AAAA/wAA
AP8AAAD/AAAA/xEREf8uLi7/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9LS0v/kpKS/6Cg
oP+Ghob/ioqK/5CQkP+UlJT/mpqa/5+fn/+jo6P/p6en/6qqqv+wsLD/tbW1/7y8vP/BwcEm////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD3+/8Aps/6bra/zVDIxsI5q7rQZyOP+P8Ah///AIf//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//weB//9bnPL/jI6Q/3Fwbv94eHj/eXl5/35+fv+BgYH/hISE/4eH
h/+Kior/jo6O/5CQkP9rbGz/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/z4+
Pv91dXX/Jycn/wAAAP8AAAD/AAAA/wMDA/8eHh7/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/z8/
P/9+fn7/np6e/4iIiP+Kior/j4+P/5OTk/+ampr/nZ2d/6Ghof+np6f/q6ur/7CwsP+0tLT/urq6/8HB
wTH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9vr+APf29gDy9fkAfrv+twCM
//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wF///8pif//kqnM/3p3cf90dHT/eXl5/3t7
e/9/f3//goKC/4aGhv+JiYn/jY2N/3x8fP9JSUn/PT09/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zExMf9ZWVn/d3d3/wUFBf8AAAD/AAAA/wAAAP8GBgb/KCgo/zExMf8wMDD/MDAw/zAw
MP8wMDD/NjY2/2ZmZv+UlJT/i4uL/4qKiv+Pj4//kpKS/5iYmP+bm5v/oKCg/6Wlpf+rq6v/sLCw/7S0
tP+5ubn+wMDAOMzMzAH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP3+
/wDO5v8iKpn//wCM//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wN///8IgP//ZKL3/5eZ
mf9xcG3/d3d4/3p6ev9+fn7/gYGB/4ODg/+IiIj/hISE/1pbXP89QED/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf82Njb/eXl5/1ZWVv8AAAD/AAAA/wAAAP8BAQH/EBAQ/y4u
Lv8wMDD/MDAw/zAwMP8yMjL/T09P/4aGhv+Li4v/h4eH/46Ojv+SkpL/l5eX/5ubm/+fn5//pKSk/6qq
qv+urq7/s7Oz/7e3t/W/v7+hy8vLAv///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APf6/wB3vP/CAZD//wCK//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wN/
//8Gf///Jon//5Ov1/9+e3X/c3Nz/3l5ef97e3v/f39//4GBgf+EhIb/a2tr/0VFR/9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/S0tL/5WVlf8mJib/AAAA/wAA
AP8AAAD/AwMD/x4eHv8yMjL/MDAw/zAwMP9CQkL/cnJy/4qKiv+IiIj/jIyM/5KSkv+Xl5f/m5ub/56e
nv+kpKT/qqqq/66urv+0tLT/uLi4/7u7u3jLy8sB////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APf6/wB3vP/CAI///wCK//8AiP//AIf//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//wZ///8Efv//B33//1ea+/+Vlp3/cXFu/3l5ef95eXn/fn5+/4GBgf93d3f/Tk5P/0RE
Rv9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/MzMz/3Bw
cP+Ojo7/BAQE/wAAAP8AAAD/AAAA/wYGBv8pKSn/MTEx/zU1Nf9eXl7/hYWF/4iIiP+Li4v/kpKS/5qa
mv+fn5//pqam/6ampv+rq6v/rKysybKysse1tbXBvLy8pcTExA3///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APz9/wDB4P85GpL//wCM//8AiP//AIf//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//B33//x6D//9wl8//dnNw/3Fxcf94eHj/fHx8/319
ff9eXl//RUVH/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/z4+Pv+dnZ3/YGBg/wAAAP8AAAD/AAAA/wICAv8TExP/MTEx/01NTf+AgID/jY2N/42N
jf+RkZH/kZGR/4qKiv+CgoL/eHh4/3BwcP+Ghob/s7Ozq7a2to+9vb1pxMTEAv///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDv9/8AX7H/7ACO
//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//BH3//wZ7//88iPP/k5mj/5ua
mv+ioqL/paWl/3x8ff9LS07/RUdK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/zAwMP9ZWVn/qKio/xgYGP8AAAD/AAAA/wAAAP8DAwP/Jycn/1dX
V/9dXV3/UVFR/0JCQv8xMTH/IyMj/xkZGf8NDQ3/BgYG/wUFBf8UFBT/dnZ2zIKCggPNzc0A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD7/f4AvN3/RRSP//8Aif//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//BXz//xqB
//+Cquf/xcTE/8TDxf/Dw8X/vr7B/3l5fP9GRkb/R0dK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8yMjL/d3d3/3Jycv8CAgL/AAAA/wAA
AP8AAAD/AgIC/wQEBP8CAgL/AQEB/wEBAf8BAQH/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/Gxsb/5mZ
mT3///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A7vb/AFmv//QAjP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ/
//8Cfv//C37//3eu+v/IyMz/w8HD/8LCxP/Dw8X/w8PF/6Wlpv9SUlX/RUVI/0VFRf9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/Ozs7/3Bw
cP8hISH/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wEB
Af8BAQH/Dg4OpFtbWwH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+/3/ALDW/1sJjP//AIj//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//wN///8Eff//VZ///87U3//EwsH/wsLE/8PDxf/Dw8X/wMDC/7i4uP90dXb/RERH/0VF
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/0NDQ/80NDT/AQEB/wAAAP8AAAD/AAAA/wAAAP8AAAD/AgIC/wYGBv8RERH/Ghoa/yEh
If8sLCz/OTk5/0xMTP9ZWVmtYGBgBf///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AOr0/wBIo///AIr//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//wJ+//8niv//ssvt/8zIxP/BwcP/xMTG/7Cwsf9VVVf/ODg4/y0t
MP8qKyv/QUFD/0VFR/9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8nJyf/DAwM/xMTE/8iIiL/NjY2/0xMTP9gYGD/c3Nz/39/
f/9/f3//g4OD/5KSkv+hoaH/p6en/7GxsdK3t7cL////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APn8
/wChzf92Aov//wCG//8Ahf//AYT//wGD//8Cgf//AYD//weB//93sPv/z8/P/8HBwf/CwsT/vr7A/4CA
g/8wMDP/AQEB/wEBAf8CAgL/Jygo/0dHSf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9AQED/aWlp/3x8fP+IiIj/jo6O/5aW
lv+dnZ3/n5+f/56env+ioqL/pqam/6qqqv+vr6//s7Oz6LW1tRT///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/wDg7/8AOp3//wCJ//8Ahf//AYT//wGD//8Cgf//AID//zuT//+9yt//xsTA/8HB
xP/CwsT/nZ2f/1pbXP9NTVD/FBQW/wAAAP8AAAD/BgYG/zw9Pf9DRET/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/Li4u/05OTv97e3v/h4eH/4uL
i/+Pj4//lJSU/5mZmf+dnZ3/nJyc/56env+jo6P/p6en/62trf+ysrL1tbW1Kf///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD3+v8Ak8f/kQCI//8Ahf//AYT//wGD//8BgP//E4b//4+2
7//KyMb/wsHD/8TExP+zs7X/bGxu/1VWWP9VVVj/QEFD/wQEBP8AAAD/AQEB/xscHP9EREb/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/SkpK/5iY
mP+Li4v/iYmJ/46Ojv+SkpL/mJiY/5ycnP+enp7/np6e/6Ghof+np6f/rKys/7Kysvyzs7M5////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD+//8A2e3/CzKW//8Ah///AYT//wKC
//8Ag///VZ36/8LI0f/DwsH/wsLE/76/wf+Hh4r/V1lb/1dZWv9VVlj/U1NW/ygoKf8AAAD/AAAA/wQE
Bf82Njb/P0BA/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0t
Lf8/Pz//paWl/5qamv+Ghob/jY2N/5KSkv+Xl5f/nJyc/56env+enp7/oaGh/6Wlpf+qqqr/sbGx/7Oz
s0b///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9/v/AIfB
/6QAiP//AYT//wCC//8kjP//oLrg/8jFwf/CwsT/w8PF/6Gho/9hYWT/Wlte/1ZXWv9VVVf/U1NY/01N
Tv8HBwf/AAAA/wEBAf8XFxf/Pj8//zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/LS0t/zY2Nv+UlJT/rq6u/4WFhf+MjIz/kpKS/5aWlv+bm5v/n5+f/6CgoP+hoaH/paWl/6qq
qv+xsbH/tra2QP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f7/ANPo/xcokf//AIb//wCC//9ppO//xsXF/8LCwv/Dw8X/tLS2/3Jzdv9dXWD/XF1g/1ZX
Wv9VVVf/UlJV/1VVV/85OTn/AAAA/wAAAP8DAwP/Li4w/z09Pf83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8uLi7/MTEx/3l5ef+zs7P/h4eH/4yMjP+QkJD/lZWV/5qamv+dnZ3/np6e/6Cg
oP+kpKT/qKio/6+vr/+2trZF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APb6/wBvtf/QAIb//yeL/f+vvdD/x8XD/8TExv/BwcP/jIyO/19f
Y/9fX1//XF1g/1ZXWv9UVVf/UlNV/1FRUf9XV1n/FBQU/wAAAP8BAQH/ERES/zw8Pf83ODr/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/Wlpa/62trf+Kior/iYmJ/4+Pj/+Tk5P/mJiY/5qa
mv+ampr/n5+f/6Ojo/+oqKj/rq6u/7KysmnDw8MB////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APz9/wDF3/8hHI7/4n6v66nNycgrw8PFOcXF
xzWrq6z/Z2lu/19fZv9fX2D/XF1g/1ZXWv9UVVf/UVJV/1BQUP9WVln/RkZG/wEBAf8AAAD/AwMD/yUn
J/85PDz/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9JSUn/nJyc/5GRkf+Hh4f/j4+P/5OT
k/+Wlpb/l5eX/5iYmP+enp7/oqKi/6ioqP+tra32sLCwcL29vQX///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD1+v8Ansb3HtDT
3wri4eEA7u7uAN7e3gSDhIj/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UVNV/05OT/9OTlH/ZWVn/yEh
If8AAAD/AAAA/wsLC/81NTX/NTU1/zExMf8wMDD/MDAw/zAwMP8wMDD/LS0t/zs7O/+IiIj/lpaW/4WF
hf+NjY3/kZGR/5eXl/+Wlpb/l5eX/52dnf+hoaH/p6en/6ysrPy0tLSYu7u7Av///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A+fr8APv8+wD+/v4A9fX3ALKzs1hqa27/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05P
T/9MTE3/V1dZ/1xcXP8CAgL/AAAA/wICAv8gICD/Njc2/zExMf8wMDD/MDAw/zAwMP8uLi7/NDQ0/25u
bv+VlZX/h4eH/4yMjP+RkZH/lpaW/5mZmf+Xl5f/m5ub/6CgoP+lpaX/rKys/re3t72+vr4C////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD7+/sA0dLSHnh5fcZoaW//ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9LS0z/S0tM/2lrav8tLS3/AAAA/wAAAP8GBgb/LjAw/zIzM/8wMDD/MDAw/y4u
Lv8xMTH/WVlZ/4+Pj/+IiIj/i4uL/5GRkf+UlJT/mZmZ/5ycnP+ZmZn/n5+f/6SkpP+pqan/uLi438XF
xQP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDs7OwAkJGWmG5wcf9naG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/1dXWf9sbG7/AwMD/wAAAP8BAQH/Gxoa/zQ0
NP8wMDD/MDAw/y0tLf9FRUX/hISE/4mJif+Kior/kJCQ/5OTk/+ZmZn/n5+f/6Ojo/+jo6P/pqam/6en
p8WxsbGfwcHBDf///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8/AC3uLtQc3N40Wts
cf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0dHSf90dHT/OTk5/wAA
AP8AAAD/BAUF/ysrK/8xMTH/Li4u/zg4OP9xcXH/iIiI/4mJif+QkJD/lJSU/52dnf+ioqL/qKio/6Wl
pf+Wlpb/m5ub/62trXOTk5MR////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APv7
+wC/v8FBb3Fz1WttcP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0RF
SP9VVVX/eHh4/wUFBf8AAAD/AQEB/xMTE/8yMjL/MTEx/1lZWf+IiIj/jY2N/5OTk/+Wlpb/lJSU/4OD
g/9nZ2f/QkJC/yEhIf8NDQ3/Hh4e/5GRkVP///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDm5uYAhoeNq25wcf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0RERP9EREb/d3d4/0RERP8AAAD/AAAA/wMDA/8oKCj/U1NT/4ODg/+BgYH/cXFx/1VV
Vf85OTn/HBwc/wcHB/8BAQH/AQEB/wEBAf8GBgb/Hx8fsXh4eAL///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD39/cAs7O2WG1ucdlnaG7/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQEH/UFBS/3Fxcf8FBQX/AAAA/wEBAf8RERH/Pz8//zY2
Nv8XFxf/BQUF/wICAv8BAQH/AAAA/wQEBP8bGxv/PT09/2dnZ/+Pj4+vsbGxBP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD9/f0A4uLlAH5/grppanD/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/QEBB/1dZWf8mJib/AAAA/wAA
AP8AAAD/AgIC/wEBAf8AAAD/AAAA/woKCv8zMzP/XFxc/39/f/+YmJj/q6ur/7CwsKi2trYN////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9fX1AK+v
sF9qbHH/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQkL/Pj4+/z0+
P/8tLS3/AAAA/wAAAP8AAAD/BQUF/x4eHv9BQUH/Z2dn/4iIiP+ZmZn/o6Oj/6enp/+tra3/sLCw6rS0
tBj///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f39ANvb3gt5eX/GZ2dq/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VF
Rf9BQkL/PT4//zo8PP8sLC7/FxcX/zExMf9VVVX/dHR0/4uLi/+YmJj/oKCg/6Kiov+mpqb/p6en/62t
rf+zs7P1ubm5Fv///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APLy8gCioqV2Z2hr/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0VFRf9BQkL/PT4+/zc4OP9SUlL/enp6/4mJif+QkJD/lJSU/5iYmP+dnZ3/oaGh/6en
p/+rq6v/sLCw/7S0tPzAwMAT////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv7+wDU1dYXbm5w2WJkaP9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/Pj8//2hpaf+IiIr/iIiI/42Njf+RkZH/l5eX/5ub
m/+goKD/paWl/6qqqv+xsbH/s7Oz/7+/vxv///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDx8fEAl5ecjWRm
af9fX2L/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0RERP9AQUH/bG1v/6enqP+JiYn/i4uL/5GR
kf+Wlpb/mpqa/6CgoP+lpaX/qqqq/6+vr/+zs7P/vLy8Jf///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD7+/sAzMzOJmlra+FfX2L/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0JDRf9eX1//qamp/46O
jv+JiYn/kZGR/5SUlP+ZmZn/n5+f/6Kiov+qqqr/rq6u/7Ozs/+7u7su////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A8PDwAI6Ok5xhYmX/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/RkZI/1FQ
U/+YmJj/lJSU/4eHh/+Pj4//kpKS/5mZmf+enp7/oaGh/6mpqf+srKz/s7Oz/7q6ujXFxcUB////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+fn5AMfHyTFmZmjoXF1g/1ZXWv9UVVf/UlNV/05O
T/9KSk3/TU1O/4WFhf+Wlpb/iIiI/4+Pj/+RkZH/mZmZ/5ycnP+hoaH/qKio/6ysrP+xsbH/t7e3QsPD
wwP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+AOvr6wCEhYivXl9f/1ZX
Wv9UVVf/UlNV/05PT/9MTE3/c3R0/5aWlv+IiIj/jY2N/5GRkf+YmJj/nJyc/6Ghof+np6f/q6ur/7Gx
sf+5ublMvr6+HOTk5AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APj4
+AC7vL9IXl9i9FZXWv9UVVf/UVJV/09QUP9hYmL/jo+P/4mJif+MjIz/kZGR/5aWlv+ampr/oaGh/6en
p/+vr6//s7OzWLW1tVTKysoq4eHhAP7+/gD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDp6OoAfX5+vlpbXv9VVVf/UVJU/1paW/+Dg4P/iYmJ/4qKiv+RkZH/lpaW/5yc
nP+jo6P/qqqqa7GxsVvExMQ13NzcCO/v7wD8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD39/cAtLW1VFdZXf9VVVf/U1NY/3R0dP+JiYn/i4uL/5OT
k/+YmJj/mpqahaurq2fDw8M53t7eBPDw8AD+/v4A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD9/f0A5ufnAHR0d85WV1n/ZmZp/4iI
iP+NjY2gkZGRmKioqG7Dw8M539/fBPT09AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9vb2AK+v
sF9lZmjoioqMpKioqG7GxsYx5+fnAPj4+AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/v7+AOvr6wDLzMwq6urqAPv7+wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///////////////j/////////////
//j///////////////j///////////////j///////////////j///////////////j/////////////
//j///////////////j///////////////j///////////////j////8//////////j////4H///////
//j////4Af////////j////wAD////////j////wAAf///////j////gAAH///////j////gAAD/////
//j////AAAB///////j////AAAA///////j///+AAAAf//////j///+AAAAP//////j///+AAAAP////
//j///8AAAAH//////j///8AAAAD//////j///4AAAAB//////j///4AAAAA//////j///wAAAAAf///
//j///wAAAAAf/////j///gAAAAAf/////j///gAAAAAP/////j///gAAAAAD/////j///wAAAAAB///
//j///wAAAAAA/////j//+IAAAAAAf////j//8AAAAAAAP////j//8AAAAAAAH////j//8AAAAAAAD//
//j//4AAAAAAAB////j//4AAAAAAAB////j//wAAAAAAAA////j//wAAAAAAAAf///j//gAAAAAAAAP/
//j//gAAAAAAAAH///j//AAAAAAAAAD///j//AAAAAAAAAD///j//AAAAAAAAAD///j/+AAAAAAAAAH/
//j/+AAAAAAAAAB///j/8AAAAAAAAAAP//j/8AAAAAAAAAAH//j/8AAAAAAAAAAD//j/+AAAAAAAAAAB
//j/wAAAAAAAAAAA//j/wAAAAAAAAAAAf/j/gAAAAAAAAAAAP/j/gAAAAAAAAAAAP/j/AAAAAAAAAAAA
H/j/AAAAAgAAAAAAD/j/AAAAAwAAAAAAB/j+AAAADwAAAAAAA/j+AAAAH4AAAAAAAfj8AAAAH8AAAAAA
APj8AAAAH+AAAAAAAPj4AAAAP/wAAAAAAHj4AAAAf/wAAAAAADjwAAAAP/gAAAAAABjwAAAAf/gAAAAA
ABjwAAAAf/wAAAAAAHj4AAAAP/wAAAAAAPj4AAAAH/4AAAAAAfj8AAAAH8AAAAAAA/j8AAAAD4AAAAAA
A/j+AAAAB4AAAAAAD/j+AAAAAwAAAAAAH/j/AAAAAgAAAAAAH/j/AAAAAAAAAAAAP/j/gAAAAAAAAAAA
f/j/gAAAAAAAAAAA//j/gAAAAAAAAAAB//j/wAAAAAAAAAAD//j/+AAAAAAAAAAD//j/8AAAAAAAAAAH
//j/8AAAAAAAAAAP//j/8AAAAAAAAAAf//j/8AAAAAAAAAA///j/+AAAAAAAAAD///j/+AAAAAAAAAD/
//j//AAAAAAAAAD///j//AAAAAAAAAH///j//gAAAAAAAAP///j//gAAAAAAAAf///j//wAAAAAAAA//
//j//wAAAAAAAB////j//wAAAAAAAD////j//4AAAAAAAH////j//4AAAAAAAP////j//8AAAAAAAP//
//j//8AAAAAAAf////j//+YAAAAAA/////j///4AAAAAB/////j///wAAAAAD/////j///wAAAAAH///
//j///gAAAAAP/////j///gAAAAAf/////j///wAAAAAf/////j///wAAAAA//////j///4AAAAB////
//j///4AAAAD//////j///4AAAAH//////j///8AAAAP//////j///8AAAAf//////j///+AAAA/////
//j///+AAAB///////j////AAAB///////j////AAAD///////j////gAAH///////j////gAAP/////
//j////wAA////////j////wAH////////j////4A/////////j////4P/////////j////9////////
//j///////////////g=
</value>
</data>
</root>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,611 @@
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 FrmCuentaMesero : FormBase
{
private int tCveVentaTerminal = 0;
private int tCveEstatusFactura = 0;
private bool tImpreso = false;
private int tCveMesa = 0;
private int tCveVendedor = 0;
private string tVendedor = 0.ToString();
private string tContrasenaMesero = "";
private int indicePagina = 1;
private DataTable dtMesas;
public FrmCuentaMesero()
{
InitializeComponent();
panelCuenta.Visible = false;
PanelListadoDeCuentas.Visible = false;
}
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 frmCuenta_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult opc = ModExtensiones.Alert("¿Desea salir de esta aplicación?", "Salir", MessageBoxButtons.YesNo);
if (opc == System.Windows.Forms.DialogResult.Yes)
{
Environment.Exit(0);
}
else
{
e.Cancel = true;
}
}
private void frmCuenta_Load(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
CargaEstatus();
CargaMeseros();
}
public void CargaCuentas()
{
// carga las ventas activas
int Estatus = CmbFiltraEstatus.SelectedValue is null ? 6 : CmbFiltraEstatus.SelectedValue.ToString().ToEntero();
int CveMesero = CmbFiltraMesero.SelectedValue is null ? -1 : CmbFiltraMesero.SelectedValue.ToString().ToEntero();
var Venta = new ClsVentas();
if (Venta.GetVentas(-1, Estatus, CveMesero, "-1", ModVarsPV.CorteActual.CveCorteTerminal, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
{
indicePagina = 1;
dtMesas = Venta.DtResultados.Tabla;
CargaBTNs(indicePagina, dtMesas);
TxtNumCuentas.Text = Venta.DtResultados.Tabla.Rows.Count.ToString("###");
}
Venta.Dispose();
}
private void CargaBTNs(int indice, DataTable dtVentas)
{
// Dim i As Integer = 1 - indice + 1
int i = 1 - indicePagina * 24 + 24;
BtnAtrasar.Enabled = i == 1 ? false : true;
Button Btn;
foreach (DataRow dr in dtVentas.Rows)
{
if (i > 0 & i <= 24)
{
if (this.Controls.Find(string.Format("btnMesa{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("btnMesa{0}", i), true)[0];
Btn.BackColor = ModVarsPV.ColorBTNs;
Btn.Text = dr["Mesa"].ToString().ToUpper();
Btn.Visible = true;
Btn.Tag = dr["CveVentaTerminal"];
i += 1;
}
}
else
{
BtnAdelantar.Enabled = true;
i += 1;
}
}
// i += 1
// oculto los demas botones
for (int ii = i; ii <= 24; ii++)
{
if (this.Controls.Find(string.Format("btnMesa{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("btnMesa{0}", i), true)[0];
Btn.Visible = false;
Btn.Tag = "";
i += 1;
BtnAdelantar.Enabled = false;
}
}
}
private void CargaEstatus()
{
var dt = new DataTable();
dt.Columns.Add("Estatus", Type.GetType("System.String"));
dt.Columns.Add("CveEstatus", Type.GetType("System.Int32"));
DataRow Dr;
Dr = dt.NewRow();
Dr["CveEstatus"] = 6;
Dr["Estatus"] = "Activas";
dt.Rows.Add(Dr);
Dr = dt.NewRow();
Dr["CveEstatus"] = 2;
Dr["Estatus"] = "Pagadas";
dt.Rows.Add(Dr);
Dr = dt.NewRow();
Dr["CveEstatus"] = -1;
Dr["Estatus"] = "Todas";
dt.Rows.Add(Dr);
CmbFiltraEstatus.DisplayMember = "Estatus";
CmbFiltraEstatus.ValueMember = "CveEstatus";
CmbFiltraEstatus.DataSource = dt.AsDataView();
}
private void CargaMeseros()
{
var objMeseros = new ClsVta_Vendedores();
if (objMeseros.GetVta_Vendedores())
{
DataRow Dr;
Dr = objMeseros.DtResultados.Tabla.NewRow();
Dr["CveVendedor"] = -1;
Dr["Vendedor"] = "TODOS";
objMeseros.DtResultados.Tabla.Rows.InsertAt(Dr, 0);
CmbFiltraMesero.DisplayMember = "Vendedor";
CmbFiltraMesero.ValueMember = "CveVendedor";
CmbFiltraMesero.DataSource = objMeseros.DtResultados.Tabla.AsDataView();
}
objMeseros.Dispose();
}
private void BtnAbrirCuenta_Click(object sender, EventArgs e)
{
var NewMDIChild = new FrmCuentaApertura(UsuarioActual.CveVendedor, "", true);
if (NewMDIChild.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
tCveVentaTerminal = NewMDIChild.CveVentaTerminal;
CargaCuenta();
// Imprimir comanda
CargaCuentas();
}
}
//private void popup_Closed(object sender, EventArgs e)
//{
// FrmCuentaApertura NewMDIChild = (FrmCuentaApertura)sender;
// if (NewMDIChild.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// tCveVentaTerminal = NewMDIChild.CveVentaTerminal;
// CargaCuenta();
// // Imprimir comanda
// CargaCuentas();
// }
//}
private void CargaCuenta()
{
var Venta = new ClsVentas();
if (Venta.GetVentas(tCveVentaTerminal, -1, -1, "-1", -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
{
if (Venta.GetVentasDetalle(tCveVentaTerminal))
{
tCveMesa = Venta.CveMesa;
tCveVendedor = Venta.CveVendedor;
tCveEstatusFactura = Venta.CveEstatusFactura;
tImpreso = Venta.Impreso;
DGVDetalle.AutoGenerateColumns = false;
DGVDetalle.DataSource = Venta.DtResultados.Tabla;
txtCliente.Text = Venta.NombreCliente;
TxtCuenta.Text = Venta.Cuenta;
TxtPersonas.Text = Venta.NumeroPersonas.ToString();
TxtFechaApertura.Text = Venta.FechaApertura.ToString("dd-MM-yyyy");
if (Venta.FechaCierre.Year > 2000) { TxtFechaCierre.Text = Venta.FechaCierre.ToString("dd-MM-yyyy"); }
TxtMesa.Text = Venta.Mesa;
BtnCambiarMesa.Enabled = !tImpreso;
BtnCambiarCuenta.Enabled = !tImpreso;
BtnCambiarMesero.Enabled = !tImpreso;
BtnDividirCuenta.Enabled = !tImpreso;
BtnJuntarCuenta.Enabled = !tImpreso;
double SubTotal, IVA, Total, Descuento;
Descuento = Venta.DtResultados.Tabla.SUM("Descuento") + Math.Abs(Venta.DtResultados.Tabla.SUM("Importe", "Importe < 0"));
SubTotal = Venta.DtResultados.Tabla.SUM("Importe", "Importe > 0");
IVA = Venta.DtResultados.Tabla.SUM("ImporteIVA");
Total = SubTotal + IVA - Descuento;
TxtSubtotal.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", SubTotal);
TxtImpuestos.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", IVA);
TxtDescuento.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", Descuento);
TxtTotal.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", Total);
Venta.UpdateVenta(SubTotal, Descuento, IVA, Total, -1, -1, tCveVentaTerminal);
}
}
Venta.Dispose();
}
private void BtnPagarCuenta_Click(object sender, EventArgs e)
{
if (tCveVentaTerminal > 0)
{
// Dim cw As New FrmCuentaPagar(TxtTotal.Text)
var cw = new FrmMetodoPago(TxtTotal.Text.Replace("$", "").Replace(",", "").ToDouble(), tCveVentaTerminal, tCveEstatusFactura, txtCliente.Text, true);
//cw.Closed += popup_PagarCuenta;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
FinalizarVenta(cw.MetodosPago);
DGVDetalle.DataSource = "";
TxtCuenta.Text = "";
TxtPersonas.Text = "";
TxtMesa.Text = "";
TxtFechaApertura.Text = "";
TxtFechaCierre.Text = "";
TxtSubtotal.Text = "$0.00";
TxtDescuento.Text = "$0.00";
TxtImpuestos.Text = "$0.00";
TxtTotal.Text = "$0.00";
}
}
}
//private void popup_PagarCuenta(object sender, EventArgs e)
//{
// // Dim lw As FrmCuentaPagar = DirectCast(sender, FrmCuentaPagar)
// FrmMetodoPago cw = (FrmMetodoPago)sender;
// if (cw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// FinalizarVenta(cw.MetodosPago);
// DGVDetalle.DataSource = "";
// TxtCuenta.Text = "";
// TxtPersonas.Text = "";
// TxtMesa.Text = "";
// TxtFechaApertura.Text = "";
// TxtFechaCierre.Text = "";
// TxtSubtotal.Text = "$0.00";
// TxtDescuento.Text = "$0.00";
// TxtImpuestos.Text = "$0.00";
// TxtTotal.Text = "$0.00";
// }
//}
private void FinalizarVenta(System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> MetodoPago)
{
var objVentas = new ClsVentas();
bool ErrorDetalles = false;
double SubTotal = default, IVA = default, Descuento = default, Total = default;
// objVentas.IniciaTransacSQL()
DataTable dtDetalle = null;
if (objVentas.GetVentasDetalle(tCveVentaTerminal))
{
dtDetalle = objVentas.DtResultados.Tabla;
SubTotal = dtDetalle.SUM("Importe", "Importe > 0");
IVA = dtDetalle.SUM("ImporteIVA");
Descuento = dtDetalle.SUM("Descuento") + Math.Abs(dtDetalle.SUM("Importe", "Importe < 0"));
Total = SubTotal + IVA - Descuento;
}
// Se agregan los Pagos
foreach (ClsMetodosPago.ClsMetodosPagoModel Row in MetodoPago)
{
if (Row.Importe > 0)
{
if (!objVentas.AddVta_VentasPago(tCveVentaTerminal, Row.CveMetodoPago, Row.Importe, Row.ImportePropina))
{
ErrorDetalles = true;
}
}
}
if (ErrorDetalles == false)
{
// Se guarda la venta, actualizo los montos y le cambio el estatus
if (!objVentas.UpdateVenta(SubTotal, Descuento, IVA, Total, -1, 2, tCveVentaTerminal))
{
ErrorDetalles = true;
}
}
if (ErrorDetalles)
{
// objVentas.RollBack()
ModExtensiones.OnError("Error al registrar el pago de la cuenta", "Error", new Exception(), MessageBoxIcon.Error);
}
else
{
// objVentas.Commit()
}
objVentas.Dispose();
CargaCuentas();
}
private void BtnCambiarMesero_Click(object sender, EventArgs e)
{
var cw = new FrmCambiarMesero(tCveVentaTerminal, tCveVendedor);
//cw.Closed += popup_CambiarMesero;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
CargaCuentas();
CargaCuenta();
}
}
//private void popup_CambiarMesero(object sender, EventArgs e)
//{
// FrmCambiarMesero cw = (FrmCambiarMesero)sender;
// if (cw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// CargaCuentas();
// CargaCuenta();
// }
//}
private void BtnCambiarMesa_Click(object sender, EventArgs e)
{
var cw = new FrmCambiarMesa(tCveVentaTerminal, tCveMesa);
//cw.Closed += popup_CambiarMesa;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
CargaCuentas();
CargaCuenta();
}
}
//private void popup_CambiarMesa(object sender, EventArgs e)
//{
// FrmCambiarMesa cw = (FrmCambiarMesa)sender;
// if (cw.DialogResult == System.Windows.Forms.DialogResult.OK)
// {
// CargaCuentas();
// CargaCuenta();
// }
//}
private void BtnDividirCuenta_Click(object sender, EventArgs e)
{
var cw = new FrmDividirCuenta(tCveVentaTerminal);
//cw.Closed += popup_DividirCuenta;
//cw.Show();
if (cw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
CargaCuentas();
CargaCuenta();
}
}
//private void popup_DividirCuenta(object sender, EventArgs e)
//{
// CargaCuentas();
// CargaCuenta();
//}
private void BtnReAbrirCuenta_Click(object sender, EventArgs e)
{
ReAbrirCuenta();
}
protected void ReAbrirCuenta()
{
var Frm = new FrmMesero(tCveVentaTerminal, tCveEstatusFactura, tImpreso, false);
//Frm.Closed += popup_ReAbrirCuenta;
//Frm.Show();
if (Frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
procesoImprimirComanda.RunWorkerAsync(Frm.CveVentaTerminal);
CargaCuentas();
CargaCuenta();
}
}
//private void popup_ReAbrirCuenta(object sender, EventArgs e)
//{
// FrmMesero Frm = (FrmMesero)sender;
// procesoImprimirComanda.RunWorkerAsync(Frm.CveVentaTerminal);
// CargaCuentas();
// CargaCuenta();
//}
private void BtnImprimirCuenta_Click(object sender, EventArgs e)
{
// imprimir la mesa
var Venta = new ClsVentas();
Venta.UpdateImpreso(tCveVentaTerminal);
Venta.Dispose();
var Imprimir = new ClsImpresion(UsuarioActual);
Imprimir.Imprimir(tCveVentaTerminal, TipoImpresion.Venta, ModVarsPV.TamanoTicketConfigurado);
Imprimir.Dispose();
CargaCuentas();
BtnCambiarMesa.Enabled = false;
BtnCambiarCuenta.Enabled = false;
BtnCambiarMesero.Enabled = false;
BtnDividirCuenta.Enabled = false;
BtnJuntarCuenta.Enabled = false;
}
private void CmbFiltraEstatus_SelectedIndexChanged(object sender, EventArgs e)
{
CargaCuentas();
}
private void CmbFiltraMesero_SelectedIndexChanged(object sender, EventArgs e)
{
CargaCuentas();
}
private void frmCuenta_Resize(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
panelLoginMesero.Location = new Point((this.Size.Width - panelLoginMesero.Width) / 2, panelLoginMesero.Location.Y);
}
private void procesoImprimirComanda_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
{
var objVenta = new ClsVentas();
objVenta.CveVentaTerminal = e.Argument.ToString().ToEntero();
if (objVenta.GetVentasDetalle(objVenta.CveVentaTerminal))
{
int CveCategoria = 0;
foreach (DataRow R in objVenta.DtResultados.Tabla.FiltraParametros("ComandaOrden = MAX(ComandaOrden) and Impreso = 0", "CveCategoria").Rows)
{
if (CveCategoria != R["CveCategoria"].ToString().ToEntero())
{
if (CveCategoria > 0)
{
System.Threading.Thread.Sleep(5000);
}
CveCategoria = R["CveCategoria"].ToString().ToEntero();
// Imprimir la comanda de la categoria
var objImprimir = new ClsImpresion(UsuarioActual);
objImprimir.dtVentasDetalles = objVenta.DtResultados.Tabla.FiltraParametros("ComandaOrden = MAX(ComandaOrden) and Impreso = 0", "CveCategoria");
objImprimir.Imprimir(CveCategoria, TipoImpresion.Comanda, ModVarsPV.TamanoTicketConfigurado);
objImprimir.Dispose();
}
}
}
objVenta.Dispose();
}
/* TODO ERROR: Skipped RegionDirectiveTrivia */
private void btn1_Click(object sender, EventArgs e)
{
TeclaPresionada("1");
}
private void btn2_Click(object sender, EventArgs e)
{
TeclaPresionada("2");
}
private void btn3_Click(object sender, EventArgs e)
{
TeclaPresionada("3");
}
private void btn4_Click(object sender, EventArgs e)
{
TeclaPresionada("4");
}
private void btn5_Click(object sender, EventArgs e)
{
TeclaPresionada("5");
}
private void btn6_Click(object sender, EventArgs e)
{
TeclaPresionada("6");
}
private void btn7_Click(object sender, EventArgs e)
{
TeclaPresionada("7");
}
private void btn8_Click(object sender, EventArgs e)
{
TeclaPresionada("8");
}
private void btn9_Click(object sender, EventArgs e)
{
TeclaPresionada("9");
}
private void btn0_Click(object sender, EventArgs e)
{
TeclaPresionada("0");
}
protected void TeclaPresionada(string Presionado)
{
tContrasenaMesero = tContrasenaMesero + Presionado.ToString();
}
private void btnLoginMesero_Click(object sender, EventArgs e)
{
CmbFiltraMesero.SelectedIndex = CmbFiltraMesero.Items.IndexOf(0);
panelCuenta.Visible = true;
PanelListadoDeCuentas.Visible = true;
panelLoginMesero.Visible = false;
//foreach (object It in CmbFiltraMesero.Items)
//{
// if (((System.Data.DataRowView)It).Row.ItemArray[0].ToString().ToEntero() == UsuarioActual.CveVendedor)
// {
// CmbFiltraMesero.SelectedIndex = CmbFiltraMesero.Items.IndexOf(It);
// break;
// }
//}
//var proxy = new WCF_PV.PuntoVentaClient(ModVarsPV.EndPointName, ModVarsPV.Address);
//try
//{
// UsuarioActual = proxy.ValidarUsuarioMesero(tContrasenaMesero);
// proxy = default;
// if (UsuarioActual is object && UsuarioActual.CveUsuario > 0)
// {
// panelCuenta.Visible = true;
// PanelListadoDeCuentas.Visible = true;
// panelLoginMesero.Visible = false;
// foreach (object It in CmbFiltraMesero.Items)
// {
// if (((System.Data.DataRowView)It).Row.ItemArray[0].ToString().ToEntero()== UsuarioActual.CveVendedor)
// {
// CmbFiltraMesero.SelectedIndex = CmbFiltraMesero.Items.IndexOf(It);
// break;
// }
// }
// }
// else
// {
// ModExtensiones.OnError(UsuarioActual is object ? UsuarioActual.Nombre : "Usuario o Password Incorrecto", "Error", new Exception(), MessageBoxIcon.Error);
// }
//}
//catch (Exception ex)
//{
// ModExtensiones.OnError(string.Format("No se pudo conectar a el Servidor WCF, {0}", ex.InnerException.Message), "Error", ex, MessageBoxIcon.Error);
//}
//tContrasenaMesero = "";
}
/* TODO ERROR: Skipped EndRegionDirectiveTrivia */
private void btnMesa1_Click(object sender, EventArgs e)
{
Button Btn = (Button)sender;
if (tCveVentaTerminal != Btn.Tag.ToString().ToEntero())
{
tCveVentaTerminal = Btn.Tag.ToString().ToEntero();
CargaCuenta();
}
else
{
ReAbrirCuenta();
}
}
private void BtnAdelantar_Click(object sender, EventArgs e)
{
indicePagina += 1;
CargaBTNs(indicePagina, dtMesas);
}
private void BtnAtrasar_Click(object sender, EventArgs e)
{
indicePagina -= 1;
CargaBTNs(indicePagina, dtMesas);
}
}
}

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,278 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmCuentaPagar
{
/// <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.dgMetodosPago = new System.Windows.Forms.DataGridView();
this.Clave = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MetodoPago = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Importe = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Label5 = new System.Windows.Forms.Label();
this.txtResta = new System.Windows.Forms.MaskedTextBox();
this.txtTotal = new System.Windows.Forms.MaskedTextBox();
this.Label4 = new System.Windows.Forms.Label();
this.Label3 = new System.Windows.Forms.Label();
this.txtPagado = new System.Windows.Forms.MaskedTextBox();
this.BtnAceptar = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgMetodosPago)).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(423, 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(453, 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(483, 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.label1);
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(514, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// dgMetodosPago
//
this.dgMetodosPago.AllowUserToAddRows = false;
this.dgMetodosPago.AllowUserToDeleteRows = false;
this.dgMetodosPago.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgMetodosPago.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Clave,
this.MetodoPago,
this.Importe});
this.dgMetodosPago.Location = new System.Drawing.Point(10, 40);
this.dgMetodosPago.MultiSelect = false;
this.dgMetodosPago.Name = "dgMetodosPago";
this.dgMetodosPago.Size = new System.Drawing.Size(293, 353);
this.dgMetodosPago.TabIndex = 1;
this.dgMetodosPago.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dgMetodosPago_CellValidating);
//
// Clave
//
this.Clave.DataPropertyName = "CveMetodoPago";
this.Clave.HeaderText = "Clave";
this.Clave.Name = "Clave";
this.Clave.ReadOnly = true;
this.Clave.Visible = false;
//
// MetodoPago
//
this.MetodoPago.DataPropertyName = "MetodoPago";
this.MetodoPago.HeaderText = "Metodo de Pago";
this.MetodoPago.Name = "MetodoPago";
this.MetodoPago.ReadOnly = true;
this.MetodoPago.Width = 150;
//
// Importe
//
this.Importe.DataPropertyName = "Importe";
this.Importe.HeaderText = "Importe";
this.Importe.Name = "Importe";
//
// Label5
//
this.Label5.AutoSize = true;
this.Label5.Location = new System.Drawing.Point(333, 179);
this.Label5.Name = "Label5";
this.Label5.Size = new System.Drawing.Size(35, 15);
this.Label5.TabIndex = 15;
this.Label5.Text = "Resta";
//
// txtResta
//
this.txtResta.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtResta.Location = new System.Drawing.Point(394, 167);
this.txtResta.Name = "txtResta";
this.txtResta.Size = new System.Drawing.Size(100, 30);
this.txtResta.TabIndex = 14;
this.txtResta.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// txtTotal
//
this.txtTotal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtTotal.Location = new System.Drawing.Point(394, 131);
this.txtTotal.Name = "txtTotal";
this.txtTotal.Size = new System.Drawing.Size(100, 30);
this.txtTotal.TabIndex = 13;
this.txtTotal.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// Label4
//
this.Label4.AutoSize = true;
this.Label4.Location = new System.Drawing.Point(333, 143);
this.Label4.Name = "Label4";
this.Label4.Size = new System.Drawing.Size(32, 15);
this.Label4.TabIndex = 12;
this.Label4.Text = "Total";
//
// Label3
//
this.Label3.AutoSize = true;
this.Label3.Location = new System.Drawing.Point(333, 107);
this.Label3.Name = "Label3";
this.Label3.Size = new System.Drawing.Size(47, 15);
this.Label3.TabIndex = 11;
this.Label3.Text = "Pagado";
//
// txtPagado
//
this.txtPagado.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtPagado.Location = new System.Drawing.Point(394, 95);
this.txtPagado.Name = "txtPagado";
this.txtPagado.Size = new System.Drawing.Size(100, 30);
this.txtPagado.TabIndex = 10;
this.txtPagado.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// BtnAceptar
//
this.BtnAceptar.Location = new System.Drawing.Point(419, 309);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(75, 44);
this.BtnAceptar.TabIndex = 16;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.label1.Location = new System.Drawing.Point(10, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(122, 22);
this.label1.TabIndex = 1;
this.label1.Text = "Pagar cuenta";
//
// FrmCuentaPagar
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(514, 414);
this.ControlBox = false;
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.Label5);
this.Controls.Add(this.txtResta);
this.Controls.Add(this.txtTotal);
this.Controls.Add(this.Label4);
this.Controls.Add(this.Label3);
this.Controls.Add(this.txtPagado);
this.Controls.Add(this.dgMetodosPago);
this.Controls.Add(this.panel1);
this.Name = "FrmCuentaPagar";
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgMetodosPago)).EndInit();
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.DataGridView dgMetodosPago;
private System.Windows.Forms.Label Label5;
private System.Windows.Forms.MaskedTextBox txtResta;
private System.Windows.Forms.MaskedTextBox txtTotal;
private System.Windows.Forms.Label Label4;
private System.Windows.Forms.Label Label3;
private System.Windows.Forms.MaskedTextBox txtPagado;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.DataGridViewTextBoxColumn Clave;
private System.Windows.Forms.DataGridViewTextBoxColumn MetodoPago;
private System.Windows.Forms.DataGridViewTextBoxColumn Importe;
private System.Windows.Forms.Label label1;
}
}

View File

@@ -0,0 +1,118 @@
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.Linq;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmCuentaPagar : FormBase
{
public System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> MetodosPago = new System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel>();
public System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> ls = new System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel>();
public double Total;
public double Pagado;
public double Resta;
public double Cambio;
public FrmCuentaPagar(double Total_)
{
InitializeComponent();
Total = Total_;
txtTotal.Text = Total.ToString("C");
txtResta.Text = Total.ToString("C");
// Llenar los metods de pago
CargaMetodosPago();
}
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);
}
protected void CargaMetodosPago()
{
var objMetodosPago = new ClsMetodosPago();
if (objMetodosPago.GetMetodosPago())
{
foreach (DataRow Row in objMetodosPago.DtResultados.Tabla.FiltraParametros("CveMetodoPago IN (1,4,5)").Rows)
ls.Add(new ClsMetodosPago.ClsMetodosPagoModel(Row["CveMetodoPago"].ToString().ToEntero(), Row["MetodoPago"].ToString(), 0));
dgMetodosPago.DataSource = ls;
}
objMetodosPago.Dispose();
dgMetodosPago.CurrentCell = dgMetodosPago.Rows[0].Cells[2];
}
protected bool SumarToTales()
{
Pagado = 0d;
foreach (ClsMetodosPago.ClsMetodosPagoModel MetodoPago in ls) { Pagado = Pagado + MetodoPago.Importe; }
txtPagado.Text = Pagado.ToString("C");
if (Pagado >= Total)
{
Cambio = Pagado - Total;
Resta = 0d;
return true;
}
else
{
Resta = Total - Pagado;
txtResta.Text = Resta.ToString("C");
return false;
}
}
private void BtnCerrar_Click(object sender, EventArgs e)
{
this.Close();
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
if (SumarToTales())
{
MetodosPago = ls;
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
}
private void dgMetodosPago_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
{
if (e.ColumnIndex == 2)
{
if (! double.TryParse(e.FormattedValue.ToString(), out _))
{
e.Cancel = true;
MessageBox.Show("Ingrese un valor correcto");
}
else
{
var obj = ls.First((value) => value.CveMetodoPago == dgMetodosPago.Rows[e.RowIndex].Cells["Clave"].Value.ToString().ToEntero());
this.ls[ls.IndexOf(obj)].Importe = e.FormattedValue.ToString().ToDouble();
BtnAceptar.Enabled = SumarToTales();
}
}
}
}
}

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,187 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmDescuentoPorPorcentaje
{
/// <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.txtDescuento = new System.Windows.Forms.NumericUpDown();
this.lbldescuento = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtDescuento)).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(195, 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(225, 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(255, 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.label1);
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(286, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// txtDescuento
//
this.txtDescuento.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtDescuento.Location = new System.Drawing.Point(35, 107);
this.txtDescuento.Name = "txtDescuento";
this.txtDescuento.Size = new System.Drawing.Size(222, 26);
this.txtDescuento.TabIndex = 2;
this.txtDescuento.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// lbldescuento
//
this.lbldescuento.AutoSize = true;
this.lbldescuento.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbldescuento.Location = new System.Drawing.Point(35, 72);
this.lbldescuento.Name = "lbldescuento";
this.lbldescuento.Size = new System.Drawing.Size(222, 22);
this.lbldescuento.TabIndex = 3;
this.lbldescuento.Text = "Porcentaje de descuento";
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Enabled = false;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.button1.Location = new System.Drawing.Point(154, 153);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(103, 42);
this.button1.TabIndex = 12;
this.button1.Text = "Aceptar";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.label1.Location = new System.Drawing.Point(10, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(101, 22);
this.label1.TabIndex = 1;
this.label1.Text = "Descuento";
//
// FrmDescuentoPorPorcentaje
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(286, 218);
this.ControlBox = false;
this.Controls.Add(this.button1);
this.Controls.Add(this.lbldescuento);
this.Controls.Add(this.txtDescuento);
this.Controls.Add(this.panel1);
this.Name = "FrmDescuentoPorPorcentaje";
this.ShowInTaskbar = false;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txtDescuento)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton iconButton3;
private System.Windows.Forms.Panel panel1;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.NumericUpDown txtDescuento;
private System.Windows.Forms.Label lbldescuento;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
}
}

View File

@@ -0,0 +1,46 @@
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 FrmDescuentoPorPorcentaje : FormBase
{
public int PorcentajeDescuento;
public FrmDescuentoPorPorcentaje(int PorcentajeDescuento_)
{
InitializeComponent();
PorcentajeDescuento = PorcentajeDescuento_;
txtDescuento.Value = PorcentajeDescuento;
}
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 BtnAceptar_Click(object sender, EventArgs e)
{
PorcentajeDescuento = txtDescuento.Value.ToString().ToEntero();
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
}
}

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,473 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmDividirCuenta
{
/// <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 dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.PnlFrmTitulo = new System.Windows.Forms.Panel();
this.DGVDividir1 = new System.Windows.Forms.DataGridView();
this.ColCveVentaDetalleTerminal1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DGVDividir = new System.Windows.Forms.DataGridView();
this.Chk = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.ColCveVentaDetalleTerminal = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColCantidad = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColDescripcion = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DGVDividir2 = new System.Windows.Forms.DataGridView();
this.ColCveVentaDetalleTerminal2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DGVDividir3 = new System.Windows.Forms.DataGridView();
this.ColCveVentaDetalleTerminal3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BtnDividir1 = new System.Windows.Forms.Button();
this.BtnDividir2 = new System.Windows.Forms.Button();
this.BtnDividir3 = new System.Windows.Forms.Button();
this.BtnAceptar = new System.Windows.Forms.Button();
this.LblFrmTitulo = new System.Windows.Forms.Label();
this.PnlFrmTitulo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir3)).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(803, 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(833, 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(863, 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.Click += new System.EventHandler(this.BtnClose_Click_1);
//
// PnlFrmTitulo
//
this.PnlFrmTitulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlFrmTitulo.Controls.Add(this.LblFrmTitulo);
this.PnlFrmTitulo.Controls.Add(this.BtnMinimize);
this.PnlFrmTitulo.Controls.Add(this.BtnMaximizeRestore);
this.PnlFrmTitulo.Controls.Add(this.BtnClose);
this.PnlFrmTitulo.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlFrmTitulo.Location = new System.Drawing.Point(0, 0);
this.PnlFrmTitulo.Name = "PnlFrmTitulo";
this.PnlFrmTitulo.Size = new System.Drawing.Size(894, 30);
this.PnlFrmTitulo.TabIndex = 1;
this.PnlFrmTitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// DGVDividir1
//
this.DGVDividir1.AllowUserToAddRows = false;
this.DGVDividir1.AllowUserToDeleteRows = false;
this.DGVDividir1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVDividir1.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVDividir1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVDividir1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ColCveVentaDetalleTerminal1,
this.DataGridViewTextBoxColumn7,
this.DataGridViewTextBoxColumn8});
this.DGVDividir1.Location = new System.Drawing.Point(484, 45);
this.DGVDividir1.Name = "DGVDividir1";
this.DGVDividir1.ReadOnly = true;
this.DGVDividir1.RowHeadersVisible = false;
this.DGVDividir1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVDividir1.Size = new System.Drawing.Size(400, 141);
this.DGVDividir1.TabIndex = 4;
//
// ColCveVentaDetalleTerminal1
//
this.ColCveVentaDetalleTerminal1.DataPropertyName = "CveVentaDetalleTerminal";
this.ColCveVentaDetalleTerminal1.HeaderText = "#";
this.ColCveVentaDetalleTerminal1.Name = "ColCveVentaDetalleTerminal1";
this.ColCveVentaDetalleTerminal1.ReadOnly = true;
this.ColCveVentaDetalleTerminal1.Visible = false;
//
// DataGridViewTextBoxColumn7
//
this.DataGridViewTextBoxColumn7.DataPropertyName = "Cantidad";
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle11.Format = "N";
this.DataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle11;
this.DataGridViewTextBoxColumn7.FillWeight = 30.45685F;
this.DataGridViewTextBoxColumn7.HeaderText = "Cant";
this.DataGridViewTextBoxColumn7.Name = "DataGridViewTextBoxColumn7";
this.DataGridViewTextBoxColumn7.ReadOnly = true;
//
// DataGridViewTextBoxColumn8
//
this.DataGridViewTextBoxColumn8.DataPropertyName = "PS";
dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle12;
this.DataGridViewTextBoxColumn8.FillWeight = 169.5432F;
this.DataGridViewTextBoxColumn8.HeaderText = "Descripción";
this.DataGridViewTextBoxColumn8.Name = "DataGridViewTextBoxColumn8";
this.DataGridViewTextBoxColumn8.ReadOnly = true;
//
// DGVDividir
//
this.DGVDividir.AllowUserToAddRows = false;
this.DGVDividir.AllowUserToDeleteRows = false;
this.DGVDividir.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVDividir.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVDividir.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVDividir.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Chk,
this.ColCveVentaDetalleTerminal,
this.ColCantidad,
this.ColDescripcion});
this.DGVDividir.Location = new System.Drawing.Point(12, 45);
this.DGVDividir.Name = "DGVDividir";
this.DGVDividir.RowHeadersVisible = false;
this.DGVDividir.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVDividir.Size = new System.Drawing.Size(400, 435);
this.DGVDividir.TabIndex = 3;
this.DGVDividir.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGVDividir_CellContentClick);
this.DGVDividir.CurrentCellDirtyStateChanged += new System.EventHandler(this.DataGridView1_CurrentCellDirtyStateChanged);
//
// Chk
//
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle13.NullValue = false;
this.Chk.DefaultCellStyle = dataGridViewCellStyle13;
this.Chk.FalseValue = "0";
this.Chk.FillWeight = 30.38233F;
this.Chk.HeaderText = "";
this.Chk.IndeterminateValue = "0";
this.Chk.Name = "Chk";
this.Chk.ReadOnly = true;
this.Chk.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.Chk.TrueValue = "1";
//
// ColCveVentaDetalleTerminal
//
this.ColCveVentaDetalleTerminal.DataPropertyName = "CveVentaDetalleTerminal";
this.ColCveVentaDetalleTerminal.HeaderText = "Column1";
this.ColCveVentaDetalleTerminal.Name = "ColCveVentaDetalleTerminal";
this.ColCveVentaDetalleTerminal.ReadOnly = true;
this.ColCveVentaDetalleTerminal.Visible = false;
//
// ColCantidad
//
this.ColCantidad.DataPropertyName = "Cantidad";
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle14.Format = "N";
this.ColCantidad.DefaultCellStyle = dataGridViewCellStyle14;
this.ColCantidad.FillWeight = 38.63053F;
this.ColCantidad.HeaderText = "Cant";
this.ColCantidad.Name = "ColCantidad";
this.ColCantidad.ReadOnly = true;
//
// ColDescripcion
//
this.ColDescripcion.DataPropertyName = "PS";
dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColDescripcion.DefaultCellStyle = dataGridViewCellStyle15;
this.ColDescripcion.FillWeight = 184.6609F;
this.ColDescripcion.HeaderText = "Descripción";
this.ColDescripcion.Name = "ColDescripcion";
this.ColDescripcion.ReadOnly = true;
//
// DGVDividir2
//
this.DGVDividir2.AllowUserToAddRows = false;
this.DGVDividir2.AllowUserToDeleteRows = false;
this.DGVDividir2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVDividir2.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVDividir2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVDividir2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ColCveVentaDetalleTerminal2,
this.DataGridViewTextBoxColumn12,
this.DataGridViewTextBoxColumn13});
this.DGVDividir2.Location = new System.Drawing.Point(484, 192);
this.DGVDividir2.Name = "DGVDividir2";
this.DGVDividir2.ReadOnly = true;
this.DGVDividir2.RowHeadersVisible = false;
this.DGVDividir2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVDividir2.Size = new System.Drawing.Size(400, 141);
this.DGVDividir2.TabIndex = 5;
//
// ColCveVentaDetalleTerminal2
//
this.ColCveVentaDetalleTerminal2.DataPropertyName = "CveVentaDetalleTerminal";
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle16.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle16.Format = "N";
this.ColCveVentaDetalleTerminal2.DefaultCellStyle = dataGridViewCellStyle16;
this.ColCveVentaDetalleTerminal2.HeaderText = "#";
this.ColCveVentaDetalleTerminal2.Name = "ColCveVentaDetalleTerminal2";
this.ColCveVentaDetalleTerminal2.ReadOnly = true;
this.ColCveVentaDetalleTerminal2.Visible = false;
//
// DataGridViewTextBoxColumn12
//
this.DataGridViewTextBoxColumn12.DataPropertyName = "Cantidad";
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle17.Format = "N";
this.DataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle17;
this.DataGridViewTextBoxColumn12.FillWeight = 30.45685F;
this.DataGridViewTextBoxColumn12.HeaderText = "Cant";
this.DataGridViewTextBoxColumn12.Name = "DataGridViewTextBoxColumn12";
this.DataGridViewTextBoxColumn12.ReadOnly = true;
//
// DataGridViewTextBoxColumn13
//
this.DataGridViewTextBoxColumn13.DataPropertyName = "PS";
dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle18;
this.DataGridViewTextBoxColumn13.FillWeight = 169.5432F;
this.DataGridViewTextBoxColumn13.HeaderText = "Descripción";
this.DataGridViewTextBoxColumn13.Name = "DataGridViewTextBoxColumn13";
this.DataGridViewTextBoxColumn13.ReadOnly = true;
//
// DGVDividir3
//
this.DGVDividir3.AllowUserToAddRows = false;
this.DGVDividir3.AllowUserToDeleteRows = false;
this.DGVDividir3.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVDividir3.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVDividir3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVDividir3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ColCveVentaDetalleTerminal3,
this.DataGridViewTextBoxColumn17,
this.DataGridViewTextBoxColumn18});
this.DGVDividir3.Location = new System.Drawing.Point(484, 339);
this.DGVDividir3.Name = "DGVDividir3";
this.DGVDividir3.ReadOnly = true;
this.DGVDividir3.RowHeadersVisible = false;
this.DGVDividir3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVDividir3.Size = new System.Drawing.Size(400, 141);
this.DGVDividir3.TabIndex = 6;
//
// ColCveVentaDetalleTerminal3
//
this.ColCveVentaDetalleTerminal3.DataPropertyName = "CveVentaDetalleTerminal";
this.ColCveVentaDetalleTerminal3.HeaderText = "#";
this.ColCveVentaDetalleTerminal3.Name = "ColCveVentaDetalleTerminal3";
this.ColCveVentaDetalleTerminal3.ReadOnly = true;
this.ColCveVentaDetalleTerminal3.Visible = false;
//
// DataGridViewTextBoxColumn17
//
this.DataGridViewTextBoxColumn17.DataPropertyName = "Cantidad";
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle19.Format = "N";
this.DataGridViewTextBoxColumn17.DefaultCellStyle = dataGridViewCellStyle19;
this.DataGridViewTextBoxColumn17.FillWeight = 30.45685F;
this.DataGridViewTextBoxColumn17.HeaderText = "Cant";
this.DataGridViewTextBoxColumn17.Name = "DataGridViewTextBoxColumn17";
this.DataGridViewTextBoxColumn17.ReadOnly = true;
//
// DataGridViewTextBoxColumn18
//
this.DataGridViewTextBoxColumn18.DataPropertyName = "PS";
dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.DataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle20;
this.DataGridViewTextBoxColumn18.FillWeight = 169.5432F;
this.DataGridViewTextBoxColumn18.HeaderText = "Descripción";
this.DataGridViewTextBoxColumn18.Name = "DataGridViewTextBoxColumn18";
this.DataGridViewTextBoxColumn18.ReadOnly = true;
//
// BtnDividir1
//
this.BtnDividir1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.BtnDividir1.Location = new System.Drawing.Point(418, 93);
this.BtnDividir1.Name = "BtnDividir1";
this.BtnDividir1.Size = new System.Drawing.Size(60, 60);
this.BtnDividir1.TabIndex = 7;
this.BtnDividir1.Text = ">";
this.BtnDividir1.UseVisualStyleBackColor = true;
this.BtnDividir1.Click += new System.EventHandler(this.BtnDividir1_Click);
//
// BtnDividir2
//
this.BtnDividir2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.BtnDividir2.Location = new System.Drawing.Point(418, 238);
this.BtnDividir2.Name = "BtnDividir2";
this.BtnDividir2.Size = new System.Drawing.Size(60, 60);
this.BtnDividir2.TabIndex = 8;
this.BtnDividir2.Text = ">";
this.BtnDividir2.UseVisualStyleBackColor = true;
this.BtnDividir2.Click += new System.EventHandler(this.BtnDividir2_Click);
//
// BtnDividir3
//
this.BtnDividir3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.BtnDividir3.Location = new System.Drawing.Point(418, 382);
this.BtnDividir3.Name = "BtnDividir3";
this.BtnDividir3.Size = new System.Drawing.Size(60, 60);
this.BtnDividir3.TabIndex = 9;
this.BtnDividir3.Text = ">";
this.BtnDividir3.UseVisualStyleBackColor = true;
this.BtnDividir3.Click += new System.EventHandler(this.BtnDividir3_Click);
//
// BtnAceptar
//
this.BtnAceptar.Location = new System.Drawing.Point(809, 495);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(75, 44);
this.BtnAceptar.TabIndex = 10;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// 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(1, 5);
this.LblFrmTitulo.Name = "LblFrmTitulo";
this.LblFrmTitulo.Size = new System.Drawing.Size(129, 22);
this.LblFrmTitulo.TabIndex = 1;
this.LblFrmTitulo.Text = "Dividir cuenta";
//
// FrmDividirCuenta
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(894, 547);
this.ControlBox = false;
this.Controls.Add(this.PnlFrmTitulo);
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.BtnDividir3);
this.Controls.Add(this.BtnDividir2);
this.Controls.Add(this.BtnDividir1);
this.Controls.Add(this.DGVDividir3);
this.Controls.Add(this.DGVDividir2);
this.Controls.Add(this.DGVDividir1);
this.Controls.Add(this.DGVDividir);
this.Name = "FrmDividirCuenta";
this.ShowInTaskbar = false;
this.Load += new System.EventHandler(this.FrmDividirCuenta_Load);
this.PnlFrmTitulo.ResumeLayout(false);
this.PnlFrmTitulo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DGVDividir3)).EndInit();
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel PnlFrmTitulo;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.DataGridView DGVDividir1;
private System.Windows.Forms.DataGridView DGVDividir;
private System.Windows.Forms.DataGridView DGVDividir2;
private System.Windows.Forms.DataGridView DGVDividir3;
private System.Windows.Forms.Button BtnDividir1;
private System.Windows.Forms.Button BtnDividir2;
private System.Windows.Forms.Button BtnDividir3;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCveVentaDetalleTerminal1;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn8;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCveVentaDetalleTerminal2;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn12;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn13;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCveVentaDetalleTerminal3;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn17;
private System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn18;
private System.Windows.Forms.DataGridViewCheckBoxColumn Chk;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCveVentaDetalleTerminal;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCantidad;
private System.Windows.Forms.DataGridViewTextBoxColumn ColDescripcion;
private System.Windows.Forms.Label LblFrmTitulo;
}
}

View File

@@ -0,0 +1,275 @@
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 FrmDividirCuenta : FormBase
{
public int tCveVentaTerminal;
private DataTable DtInicial;
public FrmDividirCuenta(int tCveVentaTerminal_)
{
InitializeComponent();
tCveVentaTerminal = tCveVentaTerminal_;
}
private void FrmDividirCuenta_Load(object sender, EventArgs e)
{
this.DGVDividir1.Columns.Add("RowNum", "#");
this.DGVDividir1.Columns.Add("Cantidad", "Cant");
this.DGVDividir1.Columns.Add("3", "3");
DGVDividir1.AutoGenerateColumns = false;
DGVDividir2.AutoGenerateColumns = false;
DGVDividir3.AutoGenerateColumns = false;
CargaDetalle();
}
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 CargaDetalle()
{
var ObjVentas = new ClsVentas();
if (ObjVentas.GetVentasDetalle(tCveVentaTerminal))
{
DtInicial = ObjVentas.DtResultados.Tabla.FiltraParametros("CveVentaDetalleTerminalPadre IS NULL AND EsPromocion = 0");
DGVDividir.AutoGenerateColumns = false;
DGVDividir.DataSource = DtInicial;
}
ObjVentas.Dispose();
}
private void BtnDividir1_Click(object sender, EventArgs e)
{
DataTable dtt = DtInicial.Copy();
int i = 0;
foreach (DataGridViewRow dr in DGVDividir.Rows)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)dr.Cells[0];
if (cell.Value is object)
{
DGVDividir1.Rows.Add(dr.Cells["ColCveVentaDetalleTerminal"].Value, dr.Cells["ColCantidad"].Value, dr.Cells["ColDescripcion"].Value);
// DGVDividir.Rows.Remove(dr)
// elimino manual cada registro de la dtt
foreach (DataRow drr in dtt.Rows)
{
if (drr["CveVentaDetalleTerminal"].ToString().ToEntero() == dr.Cells["ColCveVentaDetalleTerminal"].Value.ToString().ToEntero())
{
drr.Delete();
dtt.AcceptChanges();
break;
}
}
}
}
DGVDividir.DataSource = dtt;
}
private void DataGridView1_CurrentCellDirtyStateChanged(object sender, EventArgs e)
{
// Obligatorio para columnas tipo check
if (DGVDividir.IsCurrentCellDirty)
{
DGVDividir.CommitEdit(DataGridViewDataErrorContexts.Commit);
}
}
private void DGVDividir_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 0)
{
if (((DataGridViewCheckBoxCell)DGVDividir.Rows[e.RowIndex].Cells[0]).Value is null)
{
((DataGridViewCheckBoxCell)DGVDividir.Rows[e.RowIndex].Cells[0]).Value = "1";
}
else
{
string Str = ((DataGridViewCheckBoxCell)DGVDividir.Rows[e.RowIndex].Cells[0]).Value.ToString();
if (Str == "0")
{
Str = "1";
}
else
{
Str = "0";
} ((DataGridViewCheckBoxCell)DGVDividir.Rows[e.RowIndex].Cells[0]).Value = Str;
}
}
if (e.ColumnIndex == 3)
{
DataGridViewRow dr = DGVDividir.Rows[e.RowIndex];
dr.Selected = !dr.Selected;
}
}
private void BtnDividir2_Click(object sender, EventArgs e)
{
DataTable dtt = DtInicial.Copy();
int i = 0;
foreach (DataGridViewRow dr in DGVDividir.Rows)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)dr.Cells[0];
if (cell.Value is object)
{
DGVDividir2.Rows.Add(dr.Cells["ColCveVentaDetalleTerminal"].Value, dr.Cells["ColCantidad"].Value, dr.Cells["ColDescripcion"].Value);
// DGVDividir.Rows.Remove(dr)
// elimino manual cada registro de la dtt
foreach (DataRow drr in dtt.Rows)
{
if (drr["CveVentaDetalleTerminal"] == dr.Cells["ColCveVentaDetalleTerminal"].Value)
{
drr.Delete();
dtt.AcceptChanges();
break;
}
}
}
}
DGVDividir.DataSource = dtt;
}
private void BtnDividir3_Click(object sender, EventArgs e)
{
DataTable dtt = DtInicial.Copy();
int i = 0;
foreach (DataGridViewRow dr in DGVDividir.Rows)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)dr.Cells[0];
if (cell.Value is object)
{
DGVDividir3.Rows.Add(dr.Cells["ColCveVentaDetalleTerminal"].Value, dr.Cells["ColCantidad"].Value, dr.Cells["ColDescripcion"].Value);
// DGVDividir.Rows.Remove(dr)
// elimino manual cada registro de la dtt
foreach (DataRow drr in dtt.Rows)
{
if (drr["CveVentaDetalleTerminal"].ToString().ToEntero() == dr.Cells["ColCveVentaDetalleTerminal"].Value.ToString().ToEntero())
{
drr.Delete();
dtt.AcceptChanges();
break;
}
}
}
}
DGVDividir.DataSource = dtt;
}
private void BtnCerrar_Click(object sender, EventArgs e)
{
this.Close();
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
string Cuenta;
bool ErrorDetalles = false;
var ObjVentas = new ClsVentas();
int NuevoCveVentaTerminal;
// ObjVentas.IniciaTransacSQL()
if (ObjVentas.GetVentas(tCveVentaTerminal, -1, -1, "-1", -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
{
// recorro el primer grid y inserto la primer venta
Cuenta = ObjVentas.Cuenta;
if (DGVDividir1.Rows.Count > 0)
{
// inserta la venta
NuevoCveVentaTerminal = ObjVentas.AddVentaCopia(tCveVentaTerminal, Cuenta + "-1", UsuarioActual.CveUsuario);
if (NuevoCveVentaTerminal < 0)
{
ErrorDetalles = true;
}
if (!ErrorDetalles)
{
foreach (DataGridViewRow dr in DGVDividir1.Rows)
// mueve el detalle a la nueva venta
ObjVentas.DivideVenta(dr.Cells["ColCveVentaDetalleTerminal1"].Value.ToString().ToEntero(), NuevoCveVentaTerminal);
}
}
if (DGVDividir2.Rows.Count > 0)
{
// inserta la venta
NuevoCveVentaTerminal = ObjVentas.AddVentaCopia(tCveVentaTerminal, Cuenta + "-2", UsuarioActual.CveUsuario);
if (NuevoCveVentaTerminal < 0)
{
ErrorDetalles = true;
}
if (!ErrorDetalles)
{
foreach (DataGridViewRow dr in DGVDividir2.Rows)
// mueve el detalle a la nueva venta
ObjVentas.DivideVenta(dr.Cells["ColCveVentaDetalleTerminal2"].Value.ToString().ToEntero(), NuevoCveVentaTerminal);
}
}
if (DGVDividir3.Rows.Count > 0)
{
// inserta la venta
NuevoCveVentaTerminal = ObjVentas.AddVentaCopia(tCveVentaTerminal, Cuenta + "-3", UsuarioActual.CveUsuario);
if (NuevoCveVentaTerminal < 0)
{
ErrorDetalles = true;
}
if (!ErrorDetalles)
{
foreach (DataGridViewRow dr in DGVDividir3.Rows)
// mueve el detalle a la nueva venta
ObjVentas.DivideVenta(dr.Cells["ColCveVentaDetalleTerminal3"].Value.ToString().ToEntero(), NuevoCveVentaTerminal);
}
}
DGVDividir.AutoGenerateColumns = false;
DGVDividir.DataSource = DtInicial;
}
ObjVentas.Dispose();
if (ErrorDetalles)
{
// ObjVentas.RollBack()
ModExtensiones.OnError("Error al registrar el pago de la cuenta", "Error", new Exception(), MessageBoxIcon.Error);
}
else
{
// ObjVentas.Commit()
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
ObjVentas.Dispose();
}
}
}

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,188 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmEstadoSubirInfo
{
/// <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.PnlTitulo = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.dgReporte = new System.Windows.Forms.DataGridView();
this.btnActualizar = new System.Windows.Forms.Button();
this.PnlTitulo.SuspendLayout();
this.GroupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgReporte)).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(472, 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(502, 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(532, 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.label1);
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(563, 30);
this.PnlTitulo.TabIndex = 1;
this.PnlTitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.label1.Location = new System.Drawing.Point(10, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(163, 22);
this.label1.TabIndex = 1;
this.label1.Text = "Subir información";
//
// GroupBox1
//
this.GroupBox1.Controls.Add(this.dgReporte);
this.GroupBox1.Location = new System.Drawing.Point(10, 40);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Size = new System.Drawing.Size(546, 249);
this.GroupBox1.TabIndex = 0;
this.GroupBox1.TabStop = false;
this.GroupBox1.Text = "Informacion en el Servidor";
//
// dgReporte
//
this.dgReporte.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgReporte.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgReporte.Location = new System.Drawing.Point(6, 19);
this.dgReporte.Name = "dgReporte";
this.dgReporte.Size = new System.Drawing.Size(534, 224);
this.dgReporte.TabIndex = 0;
//
// btnActualizar
//
this.btnActualizar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btnActualizar.Location = new System.Drawing.Point(10, 290);
this.btnActualizar.Name = "btnActualizar";
this.btnActualizar.Size = new System.Drawing.Size(546, 37);
this.btnActualizar.TabIndex = 1;
this.btnActualizar.Text = "ACTUALIZAR";
this.btnActualizar.UseVisualStyleBackColor = true;
this.btnActualizar.Click += new System.EventHandler(this.btnActualizar_Click);
//
// FrmEstadoSubirInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(563, 332);
this.ControlBox = false;
this.Controls.Add(this.PnlTitulo);
this.Controls.Add(this.btnActualizar);
this.Controls.Add(this.GroupBox1);
this.Name = "FrmEstadoSubirInfo";
this.ShowInTaskbar = false;
this.Load += new System.EventHandler(this.frmEstadoSubirInfo_Load);
this.PnlTitulo.ResumeLayout(false);
this.PnlTitulo.PerformLayout();
this.GroupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgReporte)).EndInit();
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton iconButton2;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel PnlTitulo;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private System.Windows.Forms.GroupBox GroupBox1;
private System.Windows.Forms.DataGridView dgReporte;
private System.Windows.Forms.Button btnActualizar;
private System.Windows.Forms.Label label1;
}
}

View File

@@ -0,0 +1,58 @@
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 FrmEstadoSubirInfo : FormBase
{
public FrmEstadoSubirInfo()
{
InitializeComponent();
}
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 frmEstadoSubirInfo_Load(object sender, EventArgs e)
{
CargaInfo();
}
protected void CargaInfo()
{
using (ClsEmpresas objEmpresa = new ClsEmpresas())
{
if (objEmpresa.GetReporteInfo())
{
dgReporte.DataSource = objEmpresa.DtResultados.Tabla;
}
}
}
private void btnActualizar_Click(object sender, EventArgs e)
{
CargaInfo();
}
}
}

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,223 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmIniciaTurno
{
/// <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.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.TxtDescripcion = new System.Windows.Forms.TextBox();
this.BtnCancelar = new System.Windows.Forms.Button();
this.BtnIniciar = 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.TxtImporteInicial = new System.Windows.Forms.TextBox();
this.LblFrmTitulo = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.Location = new System.Drawing.Point(50, 50);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(119, 22);
this.label1.TabIndex = 0;
this.label1.Text = "Dinero en caja";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label2.Location = new System.Drawing.Point(50, 100);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(100, 22);
this.label2.TabIndex = 1;
this.label2.Text = "Descripción";
//
// TxtDescripcion
//
this.TxtDescripcion.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtDescripcion.Location = new System.Drawing.Point(200, 95);
this.TxtDescripcion.Name = "TxtDescripcion";
this.TxtDescripcion.Size = new System.Drawing.Size(153, 29);
this.TxtDescripcion.TabIndex = 3;
//
// BtnCancelar
//
this.BtnCancelar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnCancelar.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnCancelar.Location = new System.Drawing.Point(136, 146);
this.BtnCancelar.Name = "BtnCancelar";
this.BtnCancelar.Size = new System.Drawing.Size(92, 35);
this.BtnCancelar.TabIndex = 4;
this.BtnCancelar.Text = "Cancelar";
this.BtnCancelar.UseVisualStyleBackColor = true;
this.BtnCancelar.Click += new System.EventHandler(this.BtnCancelar_Click);
//
// BtnIniciar
//
this.BtnIniciar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnIniciar.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnIniciar.Location = new System.Drawing.Point(261, 146);
this.BtnIniciar.Name = "BtnIniciar";
this.BtnIniciar.Size = new System.Drawing.Size(92, 35);
this.BtnIniciar.TabIndex = 4;
this.BtnIniciar.Text = "Iniciar turno";
this.BtnIniciar.UseVisualStyleBackColor = true;
this.BtnIniciar.Click += new System.EventHandler(this.BtnIniciar_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(303, 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(333, 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(363, 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.BtnClose1_Click);
//
// 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(394, 30);
this.panel1.TabIndex = 1;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// TxtImporteInicial
//
this.TxtImporteInicial.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtImporteInicial.Location = new System.Drawing.Point(200, 47);
//this.TxtImporteInicial.Mask = "###,###,###,###.00";
this.TxtImporteInicial.Name = "TxtImporteInicial";
this.TxtImporteInicial.Size = new System.Drawing.Size(153, 29);
this.TxtImporteInicial.TabIndex = 5;
this.TxtImporteInicial.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// 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(10, 5);
this.LblFrmTitulo.Name = "LblFrmTitulo";
this.LblFrmTitulo.Size = new System.Drawing.Size(116, 22);
this.LblFrmTitulo.TabIndex = 1;
this.LblFrmTitulo.Text = "Iniciar turno";
//
// FrmIniciaTurno
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(394, 207);
this.Controls.Add(this.TxtImporteInicial);
this.Controls.Add(this.panel1);
this.Controls.Add(this.BtnIniciar);
this.Controls.Add(this.BtnCancelar);
this.Controls.Add(this.TxtDescripcion);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "FrmIniciaTurno";
this.Text = "FrmIniciaTurno";
this.Load += new System.EventHandler(this.FrmIniciaTurno_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button BtnCancelar;
private System.Windows.Forms.Button BtnIniciar;
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.TextBox TxtImporteInicial;
private System.Windows.Forms.TextBox TxtDescripcion;
private System.Windows.Forms.Label LblFrmTitulo;
}
}

View File

@@ -0,0 +1,69 @@
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 FrmIniciaTurno : FormBase
{
public FrmIniciaTurno()
{
InitializeComponent();
}
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 BtnClose1_Click(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
BtnClose_Click(sender, e);
}
private void BtnCancelar_Click(object sender, EventArgs e)
{
BtnClose1_Click(sender, e);
}
private void FrmIniciaTurno_Load(object sender, EventArgs e)
{
TxtDescripcion.Text = DateTime.Now.ToString("dd/MMMM/yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("es-ES"));
}
private void BtnIniciar_Click(object sender, EventArgs e)
{
var objCorteTurno = new ClsVta_Cortes();
if (objCorteTurno.AddVta_Cortes(DateTime.Now, TxtImporteInicial.Text.Replace("_", "").Replace(",", "").ToDouble(), UsuarioActual.CveUsuario, TxtDescripcion.Text, UsuarioActual.CveEmpresa))
{
objCorteTurno.GetVta_Cortes(-1, "-1", "-1", UsuarioActual.CveUsuario, 0);
if (objCorteTurno.DtResultados.Tabla.Rows.Count > 0)
{
ModVarsPV.CorteActual = new ClsVta_Cortes.ClsVta_CortesModel(objCorteTurno.DtResultados.Tabla.Rows[0]);
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
else
{
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
}
objCorteTurno.Dispose();
this.Close();
}
}
}

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,502 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmInicio
{
/// <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(FrmInicio));
PnlMenu = new System.Windows.Forms.Panel();
byadsistemas = new System.Windows.Forms.Label();
BtnConfiguracion = new FontAwesome.Sharp.IconButton();
BtnReporte = new FontAwesome.Sharp.IconButton();
BtnCorte = new FontAwesome.Sharp.IconButton();
BtnRetiro = new FontAwesome.Sharp.IconButton();
BtnIngresos = new FontAwesome.Sharp.IconButton();
BtnComedor = new FontAwesome.Sharp.IconButton();
PnlLogo = new System.Windows.Forms.Panel();
pictureBox1 = new System.Windows.Forms.PictureBox();
PnlTitle = new System.Windows.Forms.Panel();
PnlmenuXD = new System.Windows.Forms.Panel();
btnmenuXD = new FontAwesome.Sharp.IconButton();
PnlTitulo = new System.Windows.Forms.Panel();
LblEmpresa = new System.Windows.Forms.Label();
BtnMinimize = new FontAwesome.Sharp.IconButton();
BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
BtnClose = new FontAwesome.Sharp.IconButton();
PnlBody = new System.Windows.Forms.Panel();
PnlBodyForms = new System.Windows.Forms.Panel();
PnlTopMenu = new System.Windows.Forms.Panel();
LblUsuario = new System.Windows.Forms.Label();
IboxUsuario = new FontAwesome.Sharp.IconPictureBox();
PnlMenu.SuspendLayout();
PnlLogo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
PnlTitle.SuspendLayout();
PnlmenuXD.SuspendLayout();
PnlTitulo.SuspendLayout();
PnlBody.SuspendLayout();
PnlTopMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)IboxUsuario).BeginInit();
SuspendLayout();
//
// PnlMenu
//
PnlMenu.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
PnlMenu.BackColor = System.Drawing.Color.FromArgb(54, 65, 80);
PnlMenu.Controls.Add(byadsistemas);
PnlMenu.Controls.Add(BtnConfiguracion);
PnlMenu.Controls.Add(BtnReporte);
PnlMenu.Controls.Add(BtnCorte);
PnlMenu.Controls.Add(BtnRetiro);
PnlMenu.Controls.Add(BtnIngresos);
PnlMenu.Controls.Add(BtnComedor);
PnlMenu.Controls.Add(PnlLogo);
PnlMenu.Location = new System.Drawing.Point(0, 0);
PnlMenu.Name = "PnlMenu";
PnlMenu.Size = new System.Drawing.Size(220, 584);
PnlMenu.TabIndex = 0;
//
// byadsistemas
//
byadsistemas.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
byadsistemas.AutoSize = true;
byadsistemas.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
byadsistemas.Location = new System.Drawing.Point(65, 560);
byadsistemas.Name = "byadsistemas";
byadsistemas.Size = new System.Drawing.Size(91, 15);
byadsistemas.TabIndex = 1;
byadsistemas.Text = "by ADSISTEMAS";
//
// BtnConfiguracion
//
BtnConfiguracion.Dock = System.Windows.Forms.DockStyle.Top;
BtnConfiguracion.FlatAppearance.BorderSize = 0;
BtnConfiguracion.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnConfiguracion.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnConfiguracion.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnConfiguracion.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnConfiguracion.IconChar = FontAwesome.Sharp.IconChar.Tools;
BtnConfiguracion.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnConfiguracion.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnConfiguracion.IconSize = 28;
BtnConfiguracion.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnConfiguracion.Location = new System.Drawing.Point(0, 300);
BtnConfiguracion.Name = "BtnConfiguracion";
BtnConfiguracion.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
BtnConfiguracion.Rotation = 0D;
BtnConfiguracion.Size = new System.Drawing.Size(220, 40);
BtnConfiguracion.TabIndex = 0;
BtnConfiguracion.Text = "Configuración";
BtnConfiguracion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnConfiguracion.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnConfiguracion.UseVisualStyleBackColor = true;
BtnConfiguracion.Click += ActivateButton;
//
// BtnReporte
//
BtnReporte.Dock = System.Windows.Forms.DockStyle.Top;
BtnReporte.FlatAppearance.BorderSize = 0;
BtnReporte.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnReporte.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnReporte.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnReporte.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnReporte.IconChar = FontAwesome.Sharp.IconChar.FileContract;
BtnReporte.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnReporte.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnReporte.IconSize = 28;
BtnReporte.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnReporte.Location = new System.Drawing.Point(0, 260);
BtnReporte.Name = "BtnReporte";
BtnReporte.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
BtnReporte.Rotation = 0D;
BtnReporte.Size = new System.Drawing.Size(220, 40);
BtnReporte.TabIndex = 0;
BtnReporte.Text = "Reportes";
BtnReporte.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnReporte.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnReporte.UseVisualStyleBackColor = true;
BtnReporte.Click += ActivateButton;
//
// BtnCorte
//
BtnCorte.Dock = System.Windows.Forms.DockStyle.Top;
BtnCorte.FlatAppearance.BorderSize = 0;
BtnCorte.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnCorte.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnCorte.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnCorte.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnCorte.IconChar = FontAwesome.Sharp.IconChar.FileInvoiceDollar;
BtnCorte.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnCorte.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnCorte.IconSize = 28;
BtnCorte.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnCorte.Location = new System.Drawing.Point(0, 220);
BtnCorte.Name = "BtnCorte";
BtnCorte.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
BtnCorte.Rotation = 0D;
BtnCorte.Size = new System.Drawing.Size(220, 40);
BtnCorte.TabIndex = 0;
BtnCorte.Text = "Corte";
BtnCorte.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnCorte.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnCorte.UseVisualStyleBackColor = true;
BtnCorte.Click += ActivateButton;
//
// BtnRetiro
//
BtnRetiro.Dock = System.Windows.Forms.DockStyle.Top;
BtnRetiro.FlatAppearance.BorderSize = 0;
BtnRetiro.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnRetiro.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnRetiro.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnRetiro.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnRetiro.IconChar = FontAwesome.Sharp.IconChar.MoneyBillWave;
BtnRetiro.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnRetiro.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnRetiro.IconSize = 28;
BtnRetiro.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnRetiro.Location = new System.Drawing.Point(0, 180);
BtnRetiro.Name = "BtnRetiro";
BtnRetiro.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
BtnRetiro.Rotation = 0D;
BtnRetiro.Size = new System.Drawing.Size(220, 40);
BtnRetiro.TabIndex = 0;
BtnRetiro.Text = "Retiro";
BtnRetiro.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnRetiro.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnRetiro.UseVisualStyleBackColor = true;
BtnRetiro.Click += ActivateButton;
//
// BtnIngresos
//
BtnIngresos.Dock = System.Windows.Forms.DockStyle.Top;
BtnIngresos.FlatAppearance.BorderSize = 0;
BtnIngresos.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnIngresos.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnIngresos.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnIngresos.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnIngresos.IconChar = FontAwesome.Sharp.IconChar.Coins;
BtnIngresos.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnIngresos.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnIngresos.IconSize = 28;
BtnIngresos.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnIngresos.Location = new System.Drawing.Point(0, 140);
BtnIngresos.Name = "BtnIngresos";
BtnIngresos.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
BtnIngresos.Rotation = 0D;
BtnIngresos.Size = new System.Drawing.Size(220, 40);
BtnIngresos.TabIndex = 0;
BtnIngresos.Text = "Ingresos";
BtnIngresos.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnIngresos.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnIngresos.UseVisualStyleBackColor = true;
BtnIngresos.Click += ActivateButton;
//
// BtnComedor
//
BtnComedor.Dock = System.Windows.Forms.DockStyle.Top;
BtnComedor.FlatAppearance.BorderSize = 0;
BtnComedor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnComedor.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnComedor.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
BtnComedor.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnComedor.IconChar = FontAwesome.Sharp.IconChar.ShoppingCart;
BtnComedor.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
BtnComedor.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnComedor.IconSize = 28;
BtnComedor.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnComedor.Location = new System.Drawing.Point(0, 100);
BtnComedor.Name = "BtnComedor";
BtnComedor.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
BtnComedor.Rotation = 0D;
BtnComedor.Size = new System.Drawing.Size(220, 40);
BtnComedor.TabIndex = 0;
BtnComedor.Text = "Venta";
BtnComedor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
BtnComedor.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
BtnComedor.UseVisualStyleBackColor = true;
BtnComedor.Click += ActivateButton;
//
// PnlLogo
//
PnlLogo.Controls.Add(pictureBox1);
PnlLogo.Controls.Add(PnlTitle);
PnlLogo.Dock = System.Windows.Forms.DockStyle.Top;
PnlLogo.Location = new System.Drawing.Point(0, 0);
PnlLogo.Name = "PnlLogo";
PnlLogo.Size = new System.Drawing.Size(220, 100);
PnlLogo.TabIndex = 0;
//
// pictureBox1
//
pictureBox1.Image = (System.Drawing.Image)resources.GetObject("pictureBox1.Image");
pictureBox1.Location = new System.Drawing.Point(12, 36);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new System.Drawing.Size(51, 46);
pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
pictureBox1.TabIndex = 2;
pictureBox1.TabStop = false;
pictureBox1.Click += LblEmpresa_Click;
//
// PnlTitle
//
PnlTitle.BackColor = System.Drawing.Color.FromArgb(43, 54, 67);
PnlTitle.Controls.Add(PnlmenuXD);
PnlTitle.Dock = System.Windows.Forms.DockStyle.Top;
PnlTitle.Location = new System.Drawing.Point(0, 0);
PnlTitle.Name = "PnlTitle";
PnlTitle.Size = new System.Drawing.Size(220, 30);
PnlTitle.TabIndex = 0;
PnlTitle.MouseDown += ArrastrarForm_MouseDown;
//
// PnlmenuXD
//
PnlmenuXD.Controls.Add(btnmenuXD);
PnlmenuXD.Dock = System.Windows.Forms.DockStyle.Right;
PnlmenuXD.Location = new System.Drawing.Point(180, 0);
PnlmenuXD.Name = "PnlmenuXD";
PnlmenuXD.Size = new System.Drawing.Size(40, 30);
PnlmenuXD.TabIndex = 0;
//
// btnmenuXD
//
btnmenuXD.Dock = System.Windows.Forms.DockStyle.Top;
btnmenuXD.FlatAppearance.BorderSize = 0;
btnmenuXD.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnmenuXD.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnmenuXD.Font = new System.Drawing.Font("Segoe UI", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnmenuXD.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
btnmenuXD.IconChar = FontAwesome.Sharp.IconChar.Bars;
btnmenuXD.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
btnmenuXD.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnmenuXD.IconSize = 24;
btnmenuXD.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
btnmenuXD.Location = new System.Drawing.Point(0, 0);
btnmenuXD.Name = "btnmenuXD";
btnmenuXD.Rotation = 0D;
btnmenuXD.Size = new System.Drawing.Size(40, 30);
btnmenuXD.TabIndex = 0;
btnmenuXD.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage;
btnmenuXD.UseVisualStyleBackColor = true;
btnmenuXD.Click += BtnMenuShowHide_Click;
//
// PnlTitulo
//
PnlTitulo.BackColor = System.Drawing.Color.FromArgb(43, 54, 67);
PnlTitulo.Controls.Add(LblEmpresa);
PnlTitulo.Controls.Add(BtnMinimize);
PnlTitulo.Controls.Add(BtnMaximizeRestore);
PnlTitulo.Controls.Add(BtnClose);
PnlTitulo.Dock = System.Windows.Forms.DockStyle.Top;
PnlTitulo.Location = new System.Drawing.Point(0, 0);
PnlTitulo.Name = "PnlTitulo";
PnlTitulo.Size = new System.Drawing.Size(1238, 30);
PnlTitulo.TabIndex = 1;
PnlTitulo.MouseDown += ArrastrarForm_MouseDown;
//
// LblEmpresa
//
LblEmpresa.AutoSize = true;
LblEmpresa.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
LblEmpresa.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
LblEmpresa.Location = new System.Drawing.Point(226, 7);
LblEmpresa.Name = "LblEmpresa";
LblEmpresa.Size = new System.Drawing.Size(83, 15);
LblEmpresa.TabIndex = 2;
LblEmpresa.Text = "ADSISTEMAS";
LblEmpresa.Click += LblEmpresa_Click;
//
// 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(1147, 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;
//
// 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(1177, 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;
//
// 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(1207, 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;
//
// PnlBody
//
PnlBody.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
PnlBody.AutoScroll = true;
PnlBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
PnlBody.Controls.Add(PnlBodyForms);
PnlBody.Location = new System.Drawing.Point(220, 100);
PnlBody.Name = "PnlBody";
PnlBody.Size = new System.Drawing.Size(1014, 480);
PnlBody.TabIndex = 2;
PnlBody.SizeChanged += PnlBody_SizeChanged;
//
// PnlBodyForms
//
PnlBodyForms.Location = new System.Drawing.Point(0, 0);
PnlBodyForms.Name = "PnlBodyForms";
PnlBodyForms.Size = new System.Drawing.Size(200, 200);
PnlBodyForms.TabIndex = 0;
//
// PnlTopMenu
//
PnlTopMenu.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
PnlTopMenu.BackColor = System.Drawing.Color.FromArgb(54, 65, 80);
PnlTopMenu.Controls.Add(LblUsuario);
PnlTopMenu.Controls.Add(IboxUsuario);
PnlTopMenu.Location = new System.Drawing.Point(65, 30);
PnlTopMenu.Name = "PnlTopMenu";
PnlTopMenu.Size = new System.Drawing.Size(1179, 70);
PnlTopMenu.TabIndex = 3;
//
// LblUsuario
//
LblUsuario.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
LblUsuario.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
LblUsuario.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
LblUsuario.Location = new System.Drawing.Point(1025, 30);
LblUsuario.Name = "LblUsuario";
LblUsuario.Size = new System.Drawing.Size(140, 40);
LblUsuario.TabIndex = 1;
LblUsuario.Text = "Usuario este es un texto muy largo que se brincara la lines para no";
LblUsuario.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// IboxUsuario
//
IboxUsuario.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
IboxUsuario.BackColor = System.Drawing.Color.FromArgb(54, 65, 80);
IboxUsuario.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
IboxUsuario.IconChar = FontAwesome.Sharp.IconChar.Portrait;
IboxUsuario.IconColor = System.Drawing.Color.FromArgb(180, 188, 200);
IboxUsuario.IconFont = FontAwesome.Sharp.IconFont.Auto;
IboxUsuario.IconSize = 26;
IboxUsuario.Location = new System.Drawing.Point(1085, 5);
IboxUsuario.Name = "IboxUsuario";
IboxUsuario.Size = new System.Drawing.Size(32, 26);
IboxUsuario.TabIndex = 0;
IboxUsuario.TabStop = false;
//
// FrmInicio
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
ClientSize = new System.Drawing.Size(1238, 584);
ControlBox = false;
Controls.Add(PnlTopMenu);
Controls.Add(PnlBody);
Controls.Add(PnlMenu);
Controls.Add(PnlTitulo);
Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
MinimumSize = new System.Drawing.Size(650, 400);
Name = "FrmInicio";
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
PnlMenu.ResumeLayout(false);
PnlMenu.PerformLayout();
PnlLogo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
PnlTitle.ResumeLayout(false);
PnlmenuXD.ResumeLayout(false);
PnlTitulo.ResumeLayout(false);
PnlTitulo.PerformLayout();
PnlBody.ResumeLayout(false);
PnlTopMenu.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)IboxUsuario).EndInit();
ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel PnlMenu;
private System.Windows.Forms.Panel PnlLogo;
private FontAwesome.Sharp.IconButton BtnComedor;
private FontAwesome.Sharp.IconButton BtnConfiguracion;
private FontAwesome.Sharp.IconButton BtnReporte;
private FontAwesome.Sharp.IconButton BtnCorte;
private FontAwesome.Sharp.IconButton BtnRetiro;
private FontAwesome.Sharp.IconButton BtnIngresos;
private System.Windows.Forms.Panel PnlTitle;
private System.Windows.Forms.Panel PnlmenuXD;
private FontAwesome.Sharp.IconButton btnmenuXD;
private System.Windows.Forms.Panel PnlTitulo;
private FontAwesome.Sharp.IconButton BtnClose;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label byadsistemas;
private System.Windows.Forms.Panel PnlBody;
private System.Windows.Forms.Panel PnlTopMenu;
private System.Windows.Forms.Panel PnlBodyForms;
private FontAwesome.Sharp.IconPictureBox IboxUsuario;
private System.Windows.Forms.Label LblUsuario;
private System.Windows.Forms.Label LblEmpresa;
}
}

View File

@@ -0,0 +1,324 @@
using ADSUtileriasWF.Data.Externa.PV;
using ADSUtileriasWF.Helpers;
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.PV.Views
{
public partial class FrmInicio : FormBase
{
const int PnlMenuWidthOpen = 220;
const int PnlMenuWidthClose = 68;
private IconButton currentBtn;
private Form currentForm;
private Panel leftBorderBtn;
private FrmConfiguracionInicial configuracionInicial;
private FrmCuenta frmCuenta;
private FrmCuentaMesero frmCuentame;
private FrmPuntoVenta frmPv;
private FrmComandas frmComandas;
private FrmRetiroDinero frmRetiro;
private FrmRetiroDinero frmIngreso;
private FrmCerrarTurno frmCerrarTurno;
public FrmInicio()
{
InitializeComponent();
this.SetStyle(ControlStyles.ResizeRedraw, true);
leftBorderBtn = new Panel();
PnlMenu.Controls.Add(leftBorderBtn);
//FIXME();
LblUsuario.Text = UsuarioActual.Nombre;
LblEmpresa.Text = UsuarioActual.Empresa.empresa1Field;
if (ModVarsPV.CveTipoTerminal > 1)
{
activeMenu("BtnComedor");
BtnMenuShowHide_Click(null,null);
this.PnlBody.Width = PnlBody.Width + this.PnlMenu.Width;
this.PnlTopMenu.Width = PnlTopMenu.Width + this.PnlMenu.Width;
this.PnlMenu.Width = 0;
PnlMenu.Visible = false;
PnlTopMenu.Location = new System.Drawing.Point(0, PnlTopMenu.Location.Y);
PnlBody.Location = new System.Drawing.Point(0, PnlBody.Location.Y);
}
}
private void FIXME()
{
UsuarioActual = new WCF_PV.Usuario();
UsuarioActual.Nombre = "USR";
UsuarioActual.CveEmpresa = 1;
UsuarioActual.CveUsuario = 100;
UsuarioActual.CveSucursal = 10430;
UsuarioActual.Empresa = new WCF_PV.Empresa();
UsuarioActual.Empresa.empresa1Field = "Demo";
//ModVarsPV.CorteActual = new ClsVta_Cortes.ClsVta_CortesModel();
//ModVarsPV.CorteActual.CveCorteTerminal = 1;
}
#region viewchanges
private void BtnMenuShowHide_Click(object sender, EventArgs e)
{
int restante = PnlMenuWidthOpen - PnlMenuWidthClose;
if (PnlMenu.Size.Width == PnlMenuWidthOpen)
{
this.PnlMenu.Width = PnlMenuWidthClose;
LblEmpresa.Location = new System.Drawing.Point(10, LblEmpresa.Location.Y);
//this.PnlTopMenu.Width = PnlTopMenu.Width + restante;
//PnlTopMenu.Location = new System.Drawing.Point(PnlMenuWidthClose, PnlTopMenu.Location.Y);
this.PnlBody.Width = PnlBody.Width + restante;
PnlBody.Location = new System.Drawing.Point(PnlMenuWidthClose, PnlBody.Location.Y);
BtnConfiguracion.Text = "";
BtnReporte.Text = "";
BtnCorte.Text = "";
BtnRetiro.Text = "";
BtnIngresos.Text = "";
BtnComedor.Text = "";
PnlmenuXD.Dock = System.Windows.Forms.DockStyle.Left;
PnlmenuXD.Size = new System.Drawing.Size(PnlMenuWidthClose, 30);
btnmenuXD.Size = new System.Drawing.Size(PnlMenuWidthClose, 30);
btnmenuXD.Padding = new System.Windows.Forms.Padding(0, 0, 20, 0);
btnmenuXD.Text = " ";
}
else
{
PnlMenu.Width = PnlMenuWidthOpen;
LblEmpresa.Location = new System.Drawing.Point(160, LblEmpresa.Location.Y);
//PnlTopMenu.Location = new System.Drawing.Point(PnlMenuWidthOpen, PnlTopMenu.Location.Y);
//this.PnlTopMenu.Width = PnlTopMenu.Width - restante;
PnlBody.Location = new System.Drawing.Point(PnlMenuWidthOpen, PnlBody.Location.Y);
this.PnlBody.Width = PnlBody.Width - restante;
BtnConfiguracion.Text = "Configuración";
BtnReporte.Text = "Reportes";
BtnCorte.Text = "Corte";
BtnRetiro.Text = "Retiro";
BtnIngresos.Text = "Ingresos";
BtnComedor.Text = "Comedor";
PnlmenuXD.Dock = System.Windows.Forms.DockStyle.Right;
PnlmenuXD.Size = new System.Drawing.Size(40, 30);
btnmenuXD.Size = new System.Drawing.Size(40, 30);
btnmenuXD.Padding = new System.Windows.Forms.Padding(0, 0, 0, 0);
btnmenuXD.Text = "";
}
}
private void setActivateButton(object sender, EventArgs e)
{
if (currentBtn != sender)
{
if (currentBtn != null)
{
currentBtn.BackColor = System.Drawing.Color.FromArgb(54, 65, 80);
currentBtn.ForeColor = btnmenuXD.ForeColor;
currentBtn.TextAlign = ContentAlignment.MiddleLeft;
currentBtn.IconColor = Color.Gainsboro;
currentBtn.TextImageRelation = TextImageRelation.ImageBeforeText;
currentBtn.ImageAlign = ContentAlignment.MiddleLeft;
}
if (sender != null)
{
Color color = Color.FromArgb(53, 152, 220);
//Button
currentBtn = (IconButton)sender;
currentBtn.BackColor = Color.FromArgb(43, 54, 67);
//currentBtn.ForeColor = color;
currentBtn.TextAlign = ContentAlignment.MiddleCenter;
currentBtn.IconColor = color;
currentBtn.TextImageRelation = TextImageRelation.TextBeforeImage;
currentBtn.ImageAlign = ContentAlignment.MiddleRight;
//Left border button
leftBorderBtn.BackColor = color;
leftBorderBtn.Size = new Size(7, currentBtn.Size.Height);
leftBorderBtn.Location = new Point(0, currentBtn.Location.Y);
leftBorderBtn.Visible = true;
leftBorderBtn.BringToFront();
activeMenu(currentBtn.Name.ToString());
}
}
PnlBody_SizeChanged(PnlBody, null);
}
private void ActivateButton(object sender, EventArgs e)
{
setActivateButton(sender, e);
}
private void PnlBody_SizeChanged(object sender, EventArgs e)
{
int width = PnlBody.Width - 5;
int height = PnlBody.Height - 5;
if (currentForm != null)
{
if (width < currentForm.MinimumSize.Width)
{
width = currentForm.MinimumSize.Width;
}
if (height < currentForm.MinimumSize.Height)
{
height = currentForm.MinimumSize.Height;
}
currentForm.Size = new System.Drawing.Size(width, height);
}
PnlBodyForms.Size = new System.Drawing.Size(width, height);
}
#endregion
private void activeMenu(string buttonname)
{
bool isnewform = false;
if (currentForm != null)
{
currentForm.Hide();
currentForm = null;
}
switch (buttonname)
{
case "BtnComedor":
//var frm = new frmComandas(TipoTerminal.Split("_")(0), TipoTerminal.Split("_")(1));
if (ModVarsPV.CveTipoTerminal > 1)
{
if (frmComandas == null)
{
frmComandas = new FrmComandas(ModVarsPV.CveTipoTerminal, ModVarsPV.txtTipoTerminal);
isnewform = true;
}
currentForm = frmComandas;
}
else
{
//if (ModVarsPV.UsuarioActual.Empresa.pV_TerminalTipoField == 2)
//{
// if (ModVarsPV.CveTipoTerminal == 1)
// {
// if (frmCuentame == null)
// {
// frmCuentame = new FrmCuentaMesero();
// isnewform = true;
// }
// currentForm = frmCuentame;
// }
// else
// {
// if (frmCuenta == null)
// {
// frmCuenta = new FrmCuenta();
// isnewform = true;
// }
// currentForm = frmCuenta;
// }
//}
//else
//{
// if (frmPv == null)
// {
// frmPv = new FrmPuntoVenta();
// isnewform = true;
// }
// currentForm = frmPv;
//}
if (frmPv == null)
{
frmPv = new FrmPuntoVenta();
isnewform = true;
}
currentForm = frmPv;
}
WindowState = FormWindowState.Maximized;
break;
case "BtnIngresos":
if (frmIngreso != null)
{
frmIngreso.loadCaja();
}
else
{
frmIngreso = new FrmRetiroDinero(UsuarioActual.CveUsuario, (int)TipoMov.Ingreso);
isnewform = true;
}
currentForm = frmIngreso;
break;
case "BtnRetiro":
if (frmRetiro != null)
{
frmRetiro.loadCaja();
}
else
{
frmRetiro = new FrmRetiroDinero(UsuarioActual.CveUsuario, (int)TipoMov.Retiro);
isnewform = true;
}
currentForm = frmRetiro;
break;
case "BtnCorte":
if (frmCerrarTurno != null)
{
frmCerrarTurno.Close();
}
frmCerrarTurno = new FrmCerrarTurno();
isnewform = true;
currentForm = frmCerrarTurno;
break;
case "BtnReporte":
break;
case "BtnConfiguracion":
if (configuracionInicial == null)
{
configuracionInicial = new FrmConfiguracionInicial(false);
isnewform = true;
}
currentForm = configuracionInicial;
break;
default:
break;
}
if (currentForm != null)
{
if (isnewform)
{
currentForm.TopLevel = false;
currentForm.AutoScroll = true;
this.PnlBodyForms.Controls.Add(currentForm);
currentForm.FormBorderStyle = FormBorderStyle.None;
currentForm.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)));
}
PnlBodyForms.MinimumSize = currentForm.MinimumSize;
currentForm.BringToFront();
currentForm.Show();
}
else
{
PnlBodyForms.MinimumSize = new System.Drawing.Size(0, 0);
}
}
private void LblEmpresa_Click(object sender, EventArgs e)
{
activeMenu("");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,470 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmJuntarCuenta
{
/// <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 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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.PnlFrmTitulo = new System.Windows.Forms.Panel();
this.LblFrmTitulo = new System.Windows.Forms.Label();
this.BtnAceptar = new System.Windows.Forms.Button();
this.BtnAgregar = new System.Windows.Forms.Button();
this.DGVSeparar = new System.Windows.Forms.DataGridView();
this.DataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.ColCveVentaTerminal = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColCuenta = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColMesero = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColMesa = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DGVJuntar = new System.Windows.Forms.DataGridView();
this.DataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.ColCveVentaTerminal2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColCuenta2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColMesero2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColMesa2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.CmbFiltraMesa = new System.Windows.Forms.ComboBox();
this.Label1 = new System.Windows.Forms.Label();
this.CmbFiltraMesero = new System.Windows.Forms.ComboBox();
this.Label11 = new System.Windows.Forms.Label();
this.btnQuitar = new System.Windows.Forms.Button();
this.GroupBox2 = new System.Windows.Forms.GroupBox();
this.CmbCveVentaDetalle = new System.Windows.Forms.ComboBox();
this.PnlFrmTitulo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DGVSeparar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DGVJuntar)).BeginInit();
this.GroupBox1.SuspendLayout();
this.GroupBox2.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(806, 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(836, 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(866, 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);
//
// PnlFrmTitulo
//
this.PnlFrmTitulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlFrmTitulo.Controls.Add(this.LblFrmTitulo);
this.PnlFrmTitulo.Controls.Add(this.BtnMinimize);
this.PnlFrmTitulo.Controls.Add(this.BtnMaximizeRestore);
this.PnlFrmTitulo.Controls.Add(this.BtnClose);
this.PnlFrmTitulo.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlFrmTitulo.Location = new System.Drawing.Point(0, 0);
this.PnlFrmTitulo.Name = "PnlFrmTitulo";
this.PnlFrmTitulo.Size = new System.Drawing.Size(897, 30);
this.PnlFrmTitulo.TabIndex = 1;
this.PnlFrmTitulo.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(10, 5);
this.LblFrmTitulo.Name = "LblFrmTitulo";
this.LblFrmTitulo.Size = new System.Drawing.Size(125, 22);
this.LblFrmTitulo.TabIndex = 1;
this.LblFrmTitulo.Text = "Juntar cuenta";
//
// BtnAceptar
//
this.BtnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAceptar.Location = new System.Drawing.Point(811, 568);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(75, 44);
this.BtnAceptar.TabIndex = 19;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// BtnAgregar
//
this.BtnAgregar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.BtnAgregar.Location = new System.Drawing.Point(420, 313);
this.BtnAgregar.Name = "BtnAgregar";
this.BtnAgregar.Size = new System.Drawing.Size(60, 60);
this.BtnAgregar.TabIndex = 16;
this.BtnAgregar.Text = ">";
this.BtnAgregar.UseVisualStyleBackColor = true;
this.BtnAgregar.Click += new System.EventHandler(this.BtnAgregar_Click);
//
// DGVSeparar
//
this.DGVSeparar.AllowUserToAddRows = false;
this.DGVSeparar.AllowUserToDeleteRows = false;
this.DGVSeparar.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVSeparar.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVSeparar.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVSeparar.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.DataGridViewCheckBoxColumn1,
this.ColCveVentaTerminal,
this.ColCuenta,
this.ColMesero,
this.ColMesa});
this.DGVSeparar.Location = new System.Drawing.Point(12, 127);
this.DGVSeparar.Name = "DGVSeparar";
this.DGVSeparar.RowHeadersVisible = false;
this.DGVSeparar.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVSeparar.Size = new System.Drawing.Size(400, 435);
this.DGVSeparar.TabIndex = 21;
//
// DataGridViewCheckBoxColumn1
//
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle9.NullValue = false;
this.DataGridViewCheckBoxColumn1.DefaultCellStyle = dataGridViewCellStyle9;
this.DataGridViewCheckBoxColumn1.FalseValue = "0";
this.DataGridViewCheckBoxColumn1.FillWeight = 30.38233F;
this.DataGridViewCheckBoxColumn1.HeaderText = "";
this.DataGridViewCheckBoxColumn1.IndeterminateValue = "0";
this.DataGridViewCheckBoxColumn1.Name = "DataGridViewCheckBoxColumn1";
this.DataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.DataGridViewCheckBoxColumn1.TrueValue = "1";
//
// ColCveVentaTerminal
//
this.ColCveVentaTerminal.DataPropertyName = "CveVentaTerminal";
this.ColCveVentaTerminal.HeaderText = "Column1";
this.ColCveVentaTerminal.Name = "ColCveVentaTerminal";
this.ColCveVentaTerminal.ReadOnly = true;
this.ColCveVentaTerminal.Visible = false;
//
// ColCuenta
//
this.ColCuenta.DataPropertyName = "Cuenta";
dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColCuenta.DefaultCellStyle = dataGridViewCellStyle10;
this.ColCuenta.FillWeight = 38.63053F;
this.ColCuenta.HeaderText = "Cuenta";
this.ColCuenta.Name = "ColCuenta";
this.ColCuenta.ReadOnly = true;
//
// ColMesero
//
this.ColMesero.DataPropertyName = "Vendedor";
dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColMesero.DefaultCellStyle = dataGridViewCellStyle11;
this.ColMesero.FillWeight = 184.6609F;
this.ColMesero.HeaderText = "Mesero";
this.ColMesero.Name = "ColMesero";
this.ColMesero.ReadOnly = true;
//
// ColMesa
//
this.ColMesa.DataPropertyName = "Mesa";
dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColMesa.DefaultCellStyle = dataGridViewCellStyle12;
this.ColMesa.HeaderText = "Mesa";
this.ColMesa.Name = "ColMesa";
this.ColMesa.ReadOnly = true;
//
// DGVJuntar
//
this.DGVJuntar.AllowUserToAddRows = false;
this.DGVJuntar.AllowUserToDeleteRows = false;
this.DGVJuntar.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVJuntar.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVJuntar.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVJuntar.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.DataGridViewCheckBoxColumn2,
this.ColCveVentaTerminal2,
this.ColCuenta2,
this.ColMesero2,
this.ColMesa2});
this.DGVJuntar.Location = new System.Drawing.Point(486, 127);
this.DGVJuntar.Name = "DGVJuntar";
this.DGVJuntar.RowHeadersVisible = false;
this.DGVJuntar.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVJuntar.Size = new System.Drawing.Size(400, 435);
this.DGVJuntar.TabIndex = 22;
this.DGVJuntar.CurrentCellDirtyStateChanged += new System.EventHandler(this.DGVJuntar_CurrentCellDirtyStateChanged);
//
// DataGridViewCheckBoxColumn2
//
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle13.NullValue = false;
this.DataGridViewCheckBoxColumn2.DefaultCellStyle = dataGridViewCellStyle13;
this.DataGridViewCheckBoxColumn2.FalseValue = "0";
this.DataGridViewCheckBoxColumn2.FillWeight = 30.38233F;
this.DataGridViewCheckBoxColumn2.HeaderText = "";
this.DataGridViewCheckBoxColumn2.IndeterminateValue = "0";
this.DataGridViewCheckBoxColumn2.Name = "DataGridViewCheckBoxColumn2";
this.DataGridViewCheckBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
this.DataGridViewCheckBoxColumn2.TrueValue = "1";
//
// ColCveVentaTerminal2
//
this.ColCveVentaTerminal2.DataPropertyName = "CveVentaTerminal";
this.ColCveVentaTerminal2.HeaderText = "Column1";
this.ColCveVentaTerminal2.Name = "ColCveVentaTerminal2";
this.ColCveVentaTerminal2.ReadOnly = true;
this.ColCveVentaTerminal2.Visible = false;
//
// ColCuenta2
//
this.ColCuenta2.DataPropertyName = "Cuenta";
dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColCuenta2.DefaultCellStyle = dataGridViewCellStyle14;
this.ColCuenta2.FillWeight = 38.63053F;
this.ColCuenta2.HeaderText = "Cuenta";
this.ColCuenta2.Name = "ColCuenta2";
this.ColCuenta2.ReadOnly = true;
//
// ColMesero2
//
this.ColMesero2.DataPropertyName = "Mesero";
dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColMesero2.DefaultCellStyle = dataGridViewCellStyle15;
this.ColMesero2.FillWeight = 184.6609F;
this.ColMesero2.HeaderText = "Mesero";
this.ColMesero2.Name = "ColMesero2";
this.ColMesero2.ReadOnly = true;
//
// ColMesa2
//
this.ColMesa2.DataPropertyName = "Mesa";
dataGridViewCellStyle16.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ColMesa2.DefaultCellStyle = dataGridViewCellStyle16;
this.ColMesa2.HeaderText = "Mesa";
this.ColMesa2.Name = "ColMesa2";
this.ColMesa2.ReadOnly = true;
//
// GroupBox1
//
this.GroupBox1.Controls.Add(this.CmbFiltraMesa);
this.GroupBox1.Controls.Add(this.Label1);
this.GroupBox1.Controls.Add(this.CmbFiltraMesero);
this.GroupBox1.Controls.Add(this.Label11);
this.GroupBox1.Location = new System.Drawing.Point(12, 36);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Size = new System.Drawing.Size(400, 85);
this.GroupBox1.TabIndex = 23;
this.GroupBox1.TabStop = false;
this.GroupBox1.Text = "Filtros de Cuentas";
//
// CmbFiltraMesa
//
this.CmbFiltraMesa.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbFiltraMesa.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.CmbFiltraMesa.FormattingEnabled = true;
this.CmbFiltraMesa.Location = new System.Drawing.Point(91, 51);
this.CmbFiltraMesa.Name = "CmbFiltraMesa";
this.CmbFiltraMesa.Size = new System.Drawing.Size(303, 32);
this.CmbFiltraMesa.TabIndex = 28;
this.CmbFiltraMesa.SelectedIndexChanged += new System.EventHandler(this.CmbFiltraMesa_SelectedIndexChanged);
//
// 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(6, 54);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(61, 24);
this.Label1.TabIndex = 27;
this.Label1.Text = "Mesa:";
//
// CmbFiltraMesero
//
this.CmbFiltraMesero.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbFiltraMesero.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.CmbFiltraMesero.FormattingEnabled = true;
this.CmbFiltraMesero.Location = new System.Drawing.Point(91, 13);
this.CmbFiltraMesero.Name = "CmbFiltraMesero";
this.CmbFiltraMesero.Size = new System.Drawing.Size(303, 32);
this.CmbFiltraMesero.TabIndex = 26;
this.CmbFiltraMesero.SelectedIndexChanged += new System.EventHandler(this.CmbFiltraMesero_SelectedIndexChanged);
//
// Label11
//
this.Label11.AutoSize = true;
this.Label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Label11.Location = new System.Drawing.Point(6, 16);
this.Label11.Name = "Label11";
this.Label11.Size = new System.Drawing.Size(79, 24);
this.Label11.TabIndex = 25;
this.Label11.Text = "Mesero:";
//
// btnQuitar
//
this.btnQuitar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnQuitar.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btnQuitar.Location = new System.Drawing.Point(420, 379);
this.btnQuitar.Name = "btnQuitar";
this.btnQuitar.Size = new System.Drawing.Size(60, 60);
this.btnQuitar.TabIndex = 24;
this.btnQuitar.Text = "<";
this.btnQuitar.UseVisualStyleBackColor = true;
this.btnQuitar.Click += new System.EventHandler(this.btnQuitar_Click);
//
// GroupBox2
//
this.GroupBox2.Controls.Add(this.CmbCveVentaDetalle);
this.GroupBox2.Location = new System.Drawing.Point(486, 36);
this.GroupBox2.Name = "GroupBox2";
this.GroupBox2.Size = new System.Drawing.Size(400, 85);
this.GroupBox2.TabIndex = 25;
this.GroupBox2.TabStop = false;
this.GroupBox2.Text = "Cuenta Principal";
//
// CmbCveVentaDetalle
//
this.CmbCveVentaDetalle.DisplayMember = "VentaTerminal";
this.CmbCveVentaDetalle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbCveVentaDetalle.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.CmbCveVentaDetalle.FormattingEnabled = true;
this.CmbCveVentaDetalle.Location = new System.Drawing.Point(49, 26);
this.CmbCveVentaDetalle.Name = "CmbCveVentaDetalle";
this.CmbCveVentaDetalle.Size = new System.Drawing.Size(303, 32);
this.CmbCveVentaDetalle.TabIndex = 29;
this.CmbCveVentaDetalle.ValueMember = "CveVentaTerminal";
//
// FrmJuntarCuenta
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(897, 622);
this.ControlBox = false;
this.Controls.Add(this.PnlFrmTitulo);
this.Controls.Add(this.GroupBox2);
this.Controls.Add(this.btnQuitar);
this.Controls.Add(this.GroupBox1);
this.Controls.Add(this.DGVJuntar);
this.Controls.Add(this.DGVSeparar);
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.BtnAgregar);
this.Name = "FrmJuntarCuenta";
this.ShowInTaskbar = false;
this.Load += new System.EventHandler(this.frmJuntarCuenta_Load);
this.PnlFrmTitulo.ResumeLayout(false);
this.PnlFrmTitulo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.DGVSeparar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DGVJuntar)).EndInit();
this.GroupBox1.ResumeLayout(false);
this.GroupBox1.PerformLayout();
this.GroupBox2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton iconButton1;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel PnlFrmTitulo;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.Button BtnAceptar;
private System.Windows.Forms.Button BtnAgregar;
private System.Windows.Forms.DataGridView DGVSeparar;
private System.Windows.Forms.DataGridView DGVJuntar;
private System.Windows.Forms.GroupBox GroupBox1;
private System.Windows.Forms.ComboBox CmbFiltraMesa;
private System.Windows.Forms.Label Label1;
private System.Windows.Forms.ComboBox CmbFiltraMesero;
private System.Windows.Forms.Label Label11;
private System.Windows.Forms.DataGridViewCheckBoxColumn DataGridViewCheckBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCveVentaTerminal;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCuenta;
private System.Windows.Forms.DataGridViewTextBoxColumn ColMesero;
private System.Windows.Forms.DataGridViewTextBoxColumn ColMesa;
private System.Windows.Forms.Button btnQuitar;
private System.Windows.Forms.GroupBox GroupBox2;
private System.Windows.Forms.ComboBox CmbCveVentaDetalle;
private System.Windows.Forms.DataGridViewCheckBoxColumn DataGridViewCheckBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCveVentaTerminal2;
private System.Windows.Forms.DataGridViewTextBoxColumn ColCuenta2;
private System.Windows.Forms.DataGridViewTextBoxColumn ColMesero2;
private System.Windows.Forms.DataGridViewTextBoxColumn ColMesa2;
private System.Windows.Forms.Label LblFrmTitulo;
}
}

View File

@@ -0,0 +1,242 @@
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 FrmJuntarCuenta : FormBase
{
private List<string> CveVentasTerminal { get; set; } = new List<string>();
private DataTable DtInicial;
public FrmJuntarCuenta()
{
InitializeComponent();
}
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 frmJuntarCuenta_Load(object sender, EventArgs e)
{
CargaMeseros();
CargaMesas();
CargaCuentas();
}
private void CargaMeseros()
{
var objMeseros = new ClsVta_Vendedores();
if (objMeseros.GetVta_Vendedores())
{
DataRow Dr;
Dr = objMeseros.DtResultados.Tabla.NewRow();
Dr["CveVendedor"] = -1;
Dr["Vendedor"] = "TODOS";
objMeseros.DtResultados.Tabla.Rows.InsertAt(Dr, 0);
CmbFiltraMesero.DisplayMember = "Vendedor";
CmbFiltraMesero.ValueMember = "CveVendedor";
CmbFiltraMesero.DataSource = objMeseros.DtResultados.Tabla.AsDataView();
}
objMeseros.Dispose();
}
private void CargaMesas()
{
var objMesas = new ClsVta_Mesas();
if (objMesas.GetVta_Mesas())
{
DataRow Dr;
Dr = objMesas.DtResultados.Tabla.NewRow();
Dr["CveMesa"] = -1;
Dr["Mesa"] = "TODOS";
objMesas.DtResultados.Tabla.Rows.InsertAt(Dr, 0);
CmbFiltraMesa.DisplayMember = "Mesa";
CmbFiltraMesa.ValueMember = "CveMesa";
CmbFiltraMesa.DataSource = objMesas.DtResultados.Tabla.AsDataView();
}
objMesas.Dispose();
}
protected void CargaCuentas()
{
DGVSeparar.AutoGenerateColumns = false;
int Estatus = 6;
int CveMesero = CmbFiltraMesero.SelectedValue is null ? -1 : CmbFiltraMesero.SelectedValue.ToString().ToEntero();
int CveMesa = CmbFiltraMesa.SelectedValue is null ? -1 : CmbFiltraMesa.SelectedValue.ToString().ToEntero();
var Venta = new ClsVentas();
if (Venta.GetVentas(-1, Estatus, CveMesero, "-1", ModVarsPV.CorteActual.CveCorteTerminal, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
{
// CveVentasTerminal
string CveVentaTerminal = "";
foreach (string CveVT in CveVentasTerminal)
{
CveVentaTerminal += string.IsNullOrEmpty(CveVentaTerminal) ? CveVT.ToString() : string.Format(",{0}" + CveVT);
DtInicial = CveMesa > 0 ? Venta.DtResultados.Tabla.FiltraParametros("CveMesa = " + CveMesa.ToString()) : Venta.DtResultados.Tabla;
DtInicial = string.IsNullOrEmpty(CveVentaTerminal) ? DtInicial : DtInicial.FiltraParametros(string.Format("CveVentaTerminal not in ({0})", CveVentaTerminal));
DGVSeparar.DataSource = DtInicial;
}
}
Venta.Dispose();
}
private void CmbFiltraMesero_SelectedIndexChanged(object sender, EventArgs e)
{
CargaCuentas();
}
private void CmbFiltraMesa_SelectedIndexChanged(object sender, EventArgs e)
{
CargaCuentas();
}
private void DGVJuntar_CurrentCellDirtyStateChanged(object sender, EventArgs e)
{
// Obligatorio para columnas tipo check
if (DGVJuntar.IsCurrentCellDirty)
{
DGVJuntar.CommitEdit(DataGridViewDataErrorContexts.Commit);
}
}
private void BtnAgregar_Click(object sender, EventArgs e)
{
DataTable dtt = DtInicial.Copy();
int i = 0;
foreach (DataGridViewRow dr in DGVSeparar.Rows)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)dr.Cells[0];
if (cell.Value is object)
{
DGVJuntar.Rows.Add(0, dr.Cells["ColCveVentaTerminal"].Value, dr.Cells["ColCuenta"].Value, dr.Cells["ColMesero"].Value, dr.Cells["ColMesa"].Value);
// DGVDividir.Rows.Remove(dr)
// elimino manual cada registro de la dtt
foreach (DataRow drr in dtt.Rows)
{
if (drr["CveVentaTerminal"].ToString() == dr.Cells["ColCveVentaTerminal"].Value.ToString())
{
CveVentasTerminal.Add(drr["CveVentaTerminal"].ToString());
drr.Delete();
dtt.AcceptChanges();
break;
}
}
}
}
DtInicial = dtt;
DGVSeparar.DataSource = DtInicial;
CargaCuentasPrincipal();
}
private void btnQuitar_Click(object sender, EventArgs e)
{
foreach (DataGridViewRow dr in DGVJuntar.Rows)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)dr.Cells[0];
if (cell.Value is object)
{
// buscar el indice de este detalle
DGVJuntar.Rows.Remove(dr);
// CmbCveVentaDetalle.Items.RemoveAt(cell.RowIndex)
CveVentasTerminal.Remove(dr.Cells[1].Value.ToString());
}
}
CargaCuentas();
CargaCuentasPrincipal();
}
protected void CargaCuentasPrincipal()
{
CmbCveVentaDetalle.Items.Clear();
foreach (DataGridViewRow dr in DGVJuntar.Rows)
{
CmbCveVentaDetalle.Items.Add(new Item(string.Format("{0}, {1}, {2}", dr.Cells["ColCuenta2"].Value, dr.Cells["ColMesero2"].Value, dr.Cells["ColMesa2"].Value)
, dr.Cells["ColCveVentaTerminal2"].Value.ToString().ToEntero()));
}
}
private void BtnAceptar_Click(object sender, EventArgs e)
{
if (CmbCveVentaDetalle.SelectedItem is object)
{
if (DGVJuntar.Rows.Count > 0)
{
var objVenta = new ClsVentas();
foreach (DataGridViewRow Row in DGVJuntar.Rows)
{
int Cvevtaprincipal = CmbCveVentaDetalle.SelectedValue.ToString().ToEntero();
int cvevtaterminal = Row.Cells["ColCveVentaTerminal2"].Value.ToString().ToEntero();
if (Cvevtaprincipal != cvevtaterminal)
{
if (objVenta.JuntaVenta(Cvevtaprincipal, cvevtaterminal))
{
}
}
}
objVenta.Dispose();
this.Close();
}
else
{
MessageBox.Show("Agregue las Cuentas a Juntar");
}
}
else
{
MessageBox.Show("Seleccione la Venta que será la Principal");
}
}
class Item
{
public string Name;
public int Value;
public Item(string name__1, int value__2)
{
Name = name__1;
Value = value__2;
}
public override string ToString()
{
// Generates the text shown in the combo box
return Name;
}
}
}
}

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>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,920 @@
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.Reflection;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmMesero : FormBase
{
public int CveVentaTerminal { get; set; }
private int ComandaOrden { get; set; }
private Button BtnCategoSeleccionado = default;
private Button BtnClasifSeleccionado = default;
private Button BtnSeleccionado = default;
private Button BtnPaqueteSeleccionado = default;
private Button BtnCaracteristicaSeleccionado = default;
private bool PermiteEliminar = true;
private int tCveVentaTerminal;
private int tCveEstatusFactura;
private bool tImpreso;
private int tCveVentaDetalleTerminal;
private int tCvePS;
private DataTable dtCategorias;
private int IndiceCategorias;
private DataTable dtClasificaciones;
private int IndiceClasificaciones;
private DataTable dtPS;
private int IndicePS;
private DataTable dtPSCaracteristicas;
private int IndiceCaracteristicas;
private DataTable dtPSPaquetes;
private int IndicePaquetes;
public FrmMesero(double tCveVentaTerminal_, int tCveEstatusFactura_, bool tImpreso_, bool PermiteEliminar_ = true)
{
InitializeComponent();
tCveVentaTerminal = (int)tCveVentaTerminal_;
tCveEstatusFactura = tCveEstatusFactura_;
tImpreso = tImpreso_;
CveVentaTerminal = (int)tCveVentaTerminal_;
PermiteEliminar = PermiteEliminar_;
}
private void BtnClose1_Click(object sender, EventArgs e)
{
this.Close();
}
private void FrmMesero_FormClosing(object sender, FormClosingEventArgs e)
{
using (ClsVentas objVenta = new ClsVentas())
{
if (objVenta.UpdateEstatusEntregaVentaDetalle(tCveVentaTerminal, -1, WCF_PV.ClsVentasEstatusEntrega.Solicitando, WCF_PV.ClsVentasEstatusEntrega.Solicitado))
{
}
}
}
private void FrmMesero_Load(object sender, EventArgs e)
{
// cargar las clasificaciones
// tCveVentaTerminal = 12
CargaCategorias();
CargaClasificaciones(-1);
CargaProductos(tCveVentaTerminal);
CargaComandaOrden();
panelPS.Visible = false;
panelPSPaquetes.Visible = false;
panelPSCaracteristicas.Visible = false;
BtnEliminar.Enabled = false;
BtnMenos.Enabled = false;
BtnMas.Enabled = false;
}
private void CargaCategorias()
{
using (ClsCategorias Categorias = new ClsCategorias())
{
DataTable dt;
if (Categorias.GetCategorias())
{
dt = Categorias.DtResultados.Tabla;
int i = 1;
Button Btn;
foreach (DataRow dr in dt.Rows)
{
if (i <= 4)
{
if (this.Controls.Find(string.Format("BtnCat{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("BtnCat{0}", i), true)[0];
Btn.Text = dr["Categoria"].ToString();
Btn.Visible = true;
Btn.Tag = dr["CveCategoria"];
i += 1;
}
}
}
i += 1;
// oculto los demas botones
for (int ii = i; ii <= 4; ii++)
{
if (this.Controls.Find(string.Format("BtnCat{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("BtnCat{0}", i), true)[0];
Btn.Visible = false;
Btn.Tag = "";
i += 1;
}
}
}
}
}
private void CargaClasificaciones(int Categoria)
{
using (ClsClasificaciones Clasif = new ClsClasificaciones())
{
if (Clasif.GetClasificaciones(Categoria))
{
dtClasificaciones = Clasif.DtResultados.Tabla;
}
}
IndiceClasificaciones = 1;
CargaClasificacionesBTNs(IndiceClasificaciones);
}
private void CargaClasificacionesBTNs(int indice)
{
int i = 1 - indice + 1;
BtnClasifAtrasar.Enabled = i == 1 ? false : true;
Button Btn;
foreach (DataRow dr in dtClasificaciones.Rows)
{
panelClasificaciones.Visible = true;
if (i > 0 & i <= 10)
{
if (this.Controls.Find(string.Format("BtnClasif{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("BtnClasif{0}", i), true)[0];
Btn.BackColor = ModVarsPV.ColorBTNs;
Btn.Text = dr["Clasificacion"].ToString().ToUpper();
Btn.Visible = true;
Btn.Tag = dr["CveClasificacion"];
i += 1;
}
}
else
{
BtnClasifAdelantar.Enabled = true;
i += 1;
}
}
// i += 1
// oculto los demas botones
for (int ii = i; ii <= 10; ii++)
{
if (this.Controls.Find(string.Format("BtnClasif{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("BtnClasif{0}", i), true)[0];
Btn.Visible = false;
Btn.Tag = "";
i += 1;
BtnClasifAdelantar.Enabled = false;
}
}
}
private void CargaProductos(int Cve)
{
using (ClsVentas Venta = new ClsVentas())
{
if (Venta.GetVentasDetalle(Cve))
{
DGV.AutoGenerateColumns = false;
DGV.DataSource = Venta.DtResultados.Tabla;
if (Venta.DtResultados.Tabla.Rows.Count > 0)
{
DGV.Rows[Venta.DtResultados.Tabla.Rows.Count - 1].Selected = true;
}
foreach (DataGridViewRow Row in DGV.Rows)
{
if (DBNull.Value != (Row.Cells["EsPaquete"].Value) && Row.Cells["EsPaquete"].ToString().ToBool())
{
Row.DefaultCellStyle.BackColor = Color.Gray;
}
if (Row.Cells["CveVentaDetalleTerminalPadre"].Value is object && Row.Cells["CveVentaDetalleTerminalPadre"].Value.ToString().ToEntero() > 0)
{
Row.DefaultCellStyle.BackColor = Color.Silver;
}
switch (Row.Cells["EstatusEntrega"].Value)
{
case WCF_PV.ClsVentasEstatusEntrega.Solicitando:
{
Row.Cells["E"].Value = "";
break;
}
case WCF_PV.ClsVentasEstatusEntrega.Solicitado:
{
Row.Cells["E"].Value = "S";
Row.Cells["E"].Style.BackColor = Color.LightGreen;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.EnProceso:
{
Row.Cells["E"].Value = "P";
Row.Cells["E"].Style.BackColor = Color.Orange;
break;
}
case WCF_PV.ClsVentasEstatusEntrega.Preparado: //
{
break;
}
}
}
}
}
}
private void CargaComandaOrden()
{
using (ClsVentas Venta = new ClsVentas())
{
if (Venta.GetVentasDetalleComandaOrden(ModVarsPV.CorteActual.CveCorteTerminal))
{
ComandaOrden = Venta.DtResultados.CveRetorno;
}
}
}
private void CargaPS(int Clasificacion)
{
using (ClsProductosServicios Prod = new ClsProductosServicios())
{
if (Prod.GetPS(-1, Clasificacion))
{
dtPS = Prod.DtResultados.Tabla;
IndicePS = 1;
CargaPSBTNs(IndicePS);
}
}
}
private void CargaPSBTNs(int indice)
{
int i = 1 - indice + 1;
BtnAtrasar.Enabled = i == 1 ? false : true;
Button Btn;
foreach (DataRow dr in dtPS.Rows)
{
panelPS.Visible = true;
if (i > 0 & i <= 18)
{
if (this.Controls.Find(string.Format("Btn{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("Btn{0}", i), true)[0];
Btn.BackColor = ModVarsPV.ColorBTNs;
Btn.Text = dr["PS"].ToString().ToUpper();
Btn.Visible = true;
Btn.Tag = dr["CvePS"];
i += 1;
}
}
else
{
BtnAdelantar.Enabled = true;
i += 1;
}
}
// i += 1
// oculto los demas botones
for (int ii = i; ii <= 18; ii++)
{
if (this.Controls.Find(string.Format("Btn{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("Btn{0}", i), true)[0];
Btn.Visible = false;
Btn.Tag = "";
i += 1;
BtnAdelantar.Enabled = false;
}
}
}
private void CargaCaracteristicas(int CvePS)
{
var objPS = new ClsProductosServicios();
if (objPS.GetPSCaracteristicasOpciones(-1, CvePS))
{
dtPSCaracteristicas = objPS.DtResultados.Tabla;
}
objPS.Dispose();
IndiceCaracteristicas = 1;
CargaCaracteristicasBTNs(IndiceCaracteristicas);
}
private void CargaCaracteristicasBTNs(int indice)
{
int i = 1 - indice + 1;
btnAtrasarCaracteristicas.Enabled = i == 1 ? false : true;
Button Btn;
foreach (DataRow dr in dtPSCaracteristicas.Rows)
{
panelPSCaracteristicas.Visible = true;
if (i > 0 & i <= 7)
{
if (this.Controls.Find(string.Format("btnCaracteristicas{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("btnCaracteristicas{0}", i), true)[0];
Btn.BackColor = ModVarsPV.ColorBTNs;
Btn.Text = dr["Opcion"].ToString();
Btn.Visible = true;
Btn.Tag = dr["CveOpcion"];
i += 1;
}
}
else
{
btnAdelantarCaracteristicas.Enabled = true;
i += 1;
}
}
// i += 1
// oculto los demas botones
for (int ii = i; ii <= 7; ii++)
{
if (this.Controls.Find(string.Format("btnCaracteristicas{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("btnCaracteristicas{0}", i), true)[0];
Btn.Visible = false;
Btn.Tag = "";
i += 1;
btnAdelantarCaracteristicas.Enabled = false;
}
}
}
private void CargaPaquete(int CvePSPaquete)
{
var objPS = new ClsProductosServicios();
if (objPS.GetPSPaquetes(CvePSPaquete))
{
dtPSPaquetes = objPS.DtResultados.Tabla;
}
objPS.Dispose();
IndicePaquetes = 1;
CargaPaquetesBTNs(IndicePaquetes);
}
private void CargaPaquetesBTNs(int indice)
{
int i = 1 - indice + 1;
btnAtrasarPaquete.Enabled = i == 1 ? false : true;
Button Btn;
foreach (DataRow dr in dtPSPaquetes.Rows)
{
panelPSPaquetes.Visible = true;
if (i > 0 & i <= 10)
{
if (this.Controls.Find(string.Format("btnPaquete{0}", i), true).Length > 0)
{
for (int x = 1, loopTo = dr["Cantidad"].ToString().ToEntero(); x <= loopTo; x++)
{
var Venta = new ClsVentas();
if (Venta.AddVentaDetalle(tCveVentaTerminal, dr["CvePS"].ToString().ToEntero(), 1, dr["CveUnidadMedida"].ToString().ToEntero(), 0, 0, 0, "", 0, 0, ComandaOrden, 0, true, tCveVentaDetalleTerminal))
{
// tCveVentaDetalleTerminal = Venta.CveVentaDetalleTerminal
Btn = (Button)this.Controls.Find(string.Format("btnPaquete{0}", i), true)[0];
Btn.BackColor = ModVarsPV.ColorBTNs;
Btn.Text = dr["PS"].ToString().ToUpper();
Btn.Visible = true;
Btn.Tag = string.Format("{0},{1}", dr["CvePS"], Venta.CveVentaDetalleTerminal);
i += 1;
}
Venta.Dispose();
}
}
}
else
{
btnAdelantarPaquete.Enabled = true;
i += 1;
}
}
// i += 1
// oculto los demas botones
for (int ii = i; ii <= 10; ii++)
{
if (this.Controls.Find(string.Format("btnPaquete{0}", i), true).Length > 0)
{
Btn = (Button)this.Controls.Find(string.Format("btnPaquete{0}", i), true)[0];
Btn.Visible = false;
Btn.Tag = "";
i += 1;
btnAdelantarPaquete.Enabled = false;
}
}
}
private void IniciarBtnsClasificPSyCaracteristicas()
{
panelClasificaciones.Visible = false;
BtnClasifAdelantar.Enabled = false;
BtnClasif1.BackColor = ModVarsPV.ColorBTNs;
BtnClasif2.BackColor = ModVarsPV.ColorBTNs;
BtnClasif3.BackColor = ModVarsPV.ColorBTNs;
BtnClasif4.BackColor = ModVarsPV.ColorBTNs;
BtnClasif5.BackColor = ModVarsPV.ColorBTNs;
BtnClasif6.BackColor = ModVarsPV.ColorBTNs;
BtnClasif7.BackColor = ModVarsPV.ColorBTNs;
BtnClasif8.BackColor = ModVarsPV.ColorBTNs;
BtnClasif9.BackColor = ModVarsPV.ColorBTNs;
BtnClasif10.BackColor = ModVarsPV.ColorBTNs;
IniciarBtnsPSyCaracteristicas();
}
private void IniciarBtnsPSyCaracteristicas()
{
panelPS.Visible = false;
IniciarBtnsPSPaquetes();
BtnAdelantar.Enabled = false;
Btn1.BackColor = ModVarsPV.ColorBTNs;
Btn2.BackColor = ModVarsPV.ColorBTNs;
Btn3.BackColor = ModVarsPV.ColorBTNs;
Btn4.BackColor = ModVarsPV.ColorBTNs;
Btn5.BackColor = ModVarsPV.ColorBTNs;
Btn6.BackColor = ModVarsPV.ColorBTNs;
Btn7.BackColor = ModVarsPV.ColorBTNs;
Btn8.BackColor = ModVarsPV.ColorBTNs;
Btn9.BackColor = ModVarsPV.ColorBTNs;
Btn10.BackColor = ModVarsPV.ColorBTNs;
Btn11.BackColor = ModVarsPV.ColorBTNs;
Btn12.BackColor = ModVarsPV.ColorBTNs;
Btn13.BackColor = ModVarsPV.ColorBTNs;
Btn14.BackColor = ModVarsPV.ColorBTNs;
Btn15.BackColor = ModVarsPV.ColorBTNs;
Btn16.BackColor = ModVarsPV.ColorBTNs;
Btn17.BackColor = ModVarsPV.ColorBTNs;
Btn18.BackColor = ModVarsPV.ColorBTNs;
IniciarBtnsCaracteristicas();
}
private void IniciarBtnsPSPaquetes()
{
panelPSPaquetes.Visible = false;
btnAtrasarPaquete.Enabled = false;
btnPaquete1.BackColor = ModVarsPV.ColorBTNs;
btnPaquete2.BackColor = ModVarsPV.ColorBTNs;
btnPaquete3.BackColor = ModVarsPV.ColorBTNs;
btnPaquete4.BackColor = ModVarsPV.ColorBTNs;
btnPaquete5.BackColor = ModVarsPV.ColorBTNs;
btnPaquete6.BackColor = ModVarsPV.ColorBTNs;
btnPaquete7.BackColor = ModVarsPV.ColorBTNs;
btnPaquete8.BackColor = ModVarsPV.ColorBTNs;
btnPaquete9.BackColor = ModVarsPV.ColorBTNs;
btnPaquete10.BackColor = ModVarsPV.ColorBTNs;
IniciarBtnsCaracteristicas();
}
private void IniciarBtnsCaracteristicas()
{
panelPSCaracteristicas.Visible = false;
btnAdelantarCaracteristicas.Enabled = false;
btnCaracteristicas1.BackColor = ModVarsPV.ColorBTNs;
btnCaracteristicas2.BackColor = ModVarsPV.ColorBTNs;
btnCaracteristicas3.BackColor = ModVarsPV.ColorBTNs;
btnCaracteristicas4.BackColor = ModVarsPV.ColorBTNs;
btnCaracteristicas5.BackColor = ModVarsPV.ColorBTNs;
btnCaracteristicas6.BackColor = ModVarsPV.ColorBTNs;
btnCaracteristicas7.BackColor = ModVarsPV.ColorBTNs;
}
//protected void CargaBtnsPorPS(int CvePS)
//{
//}
private void BtnCat1_Click(object sender, EventArgs e)
{
IniciarBtnsClasificPSyCaracteristicas();
Button Btn = (Button)sender;
if (BtnCategoSeleccionado is object)
{
BtnCategoSeleccionado.BackColor = ModVarsPV.ColorBTNs;
}
Btn.BackColor = Color.CornflowerBlue;
BtnCategoSeleccionado = Btn;
CargaClasificaciones(Btn.Tag.ToString().ToEntero());
}
private void BtnClasif1_Click(object sender, EventArgs e)
{
IniciarBtnsPSyCaracteristicas();
Button Btn = (Button)sender;
if (BtnClasifSeleccionado is object)
{
BtnClasifSeleccionado.BackColor = ModVarsPV.ColorBTNs;
}
Btn.BackColor = Color.CornflowerBlue;
BtnClasifSeleccionado = Btn;
CargaPS(BtnClasifSeleccionado.Tag.ToString().ToEntero());
}
private void Btn1_Click(object sender, EventArgs e)
{
IniciarBtnsCaracteristicas();
IniciarBtnsPSPaquetes();
TxtCantidad.Text = "1";
// agregar el producto
if (BtnSeleccionado is object)
{
BtnSeleccionado.BackColor = ModVarsPV.ColorBTNs;
}
Button Btn = (Button)sender;
Btn.BackColor = Color.CornflowerBlue;
BtnSeleccionado = Btn;
using (ClsProductosServicios PS = new ClsProductosServicios())
{
if (PS.GetPS(Btn.Tag.ToString().ToEntero(), -1))
{
using (ClsVentas Venta = new ClsVentas())
{
PS.IVA = PS.IVA == -1 ? ModVarsPV.IVAClientePG : PS.IVA;
double IVAVentaDetalle = (TxtCantidad.Text.ToDouble() * (PS.Precio * PS.IVA).ToString().ToDouble());
double total = (TxtCantidad.Text.ToDouble() * PS.Precio.ToString().ToDouble()) + IVAVentaDetalle;
if (Venta.AddVentaDetalle(tCveVentaTerminal, PS.CvePS, TxtCantidad.Text.ToDouble(), PS.CveUnidadMedida, PS.Precio.ToString().ToDouble(), PS.IVA.ToString().ToDouble(), total, "", 0, 0, ComandaOrden, PS.IVA.ToString().ToDouble()))
{
tCveVentaDetalleTerminal = Venta.CveVentaDetalleTerminal;
tCvePS = PS.CvePS;
CargaCaracteristicas(Btn.Tag.ToString().ToEntero());
if (PS.EsPaquete)
{
CargaPaquete(Btn.Tag.ToString().ToEntero());
}
CargaProductos(tCveVentaTerminal);
}
}
}
}
}
private void btnCaracteristicas1_Click(object sender, EventArgs e)
{
// agregar el producto
Button Btn = (Button)sender;
var Venta = new ClsVentas();
if (Btn.BackColor == Color.CornflowerBlue)
{
Btn.BackColor = ModVarsPV.ColorBTNs;
if (Venta.RemoveVentasDetallesCaracteristicas(Btn.Tag.ToString().ToEntero(), tCvePS, tCveVentaDetalleTerminal))
{
// ' Dim dt As DataTable
// If Venta.GetVentasDetalle(tCveVentaTerminal) Then
// DGV.DataSource = Venta.DtResultados
// End If
}
}
else
{
Btn.BackColor = Color.CornflowerBlue;
if (Venta.AddVentasDetallesCaracteristicas(Btn.Tag.ToString().ToEntero(), tCvePS, tCveVentaDetalleTerminal))
{
// ' Dim dt As DataTable
// If Venta.GetVentasDetalle(tCveVentaTerminal) Then
// DGV.DataSource = Venta.DtResultados
// End If
}
}
Venta.Dispose();
}
private void btnPaquete1_Click(object sender, EventArgs e)
{
IniciarBtnsCaracteristicas();
// agregar el producto
if (BtnPaqueteSeleccionado is object)
{
BtnPaqueteSeleccionado.BackColor = ModVarsPV.ColorBTNs;
}
Button Btn = (Button)sender;
Btn.BackColor = Color.CornflowerBlue;
BtnPaqueteSeleccionado = Btn;
string[] splittag = Btn.Tag.ToString().Split(",");
using (ClsProductosServicios PS = new ClsProductosServicios())
{
if (PS.GetPS(splittag[0].ToString().ToEntero(), -1))
{
tCvePS = PS.CvePS;
tCveVentaDetalleTerminal = splittag[1].ToString().ToEntero();
CargaCaracteristicas(PS.CvePS);
}
}
}
private void BtnEliminar_Click(object sender, EventArgs e)
{
// '
if (DGV.SelectedRows.Count > 0)
{
if (DGV.SelectedRows[0].Cells["CveVentaDetalleTerminalPadre"].Value.ToString().ToEntero() == 0) // And DGV.SelectedRows(0).Cells("ColImporte").Value > 0 Then
{
bool Autorizado = true;
if (DGV.SelectedRows[0].Cells["EstatusEntrega"].Value.ToString().ToEntero() > 0)
{
// Revisar si el usuario tiene el Proceso habilitado
var frmProceso = new FrmProceso(93, tImpreso);
DialogResult result = frmProceso.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
// Si requiere bitacora y especificaron una observacion O no requiere bitacora
if (frmProceso.SolicitarBitacora == true & frmProceso.ObservacionesBitacora.Trim() != "" | frmProceso.SolicitarBitacora == false)
{
var objBitacora = new ClsVta_Bitacora();
// Ingresar el registro de bitacora, el que siempre se registra
objBitacora.AddVta_Bitacora(CveVentaTerminal, string.Format("Elimino: {0} {1}", DGV.SelectedRows[0].Cells["ColCantidad"].Value, DGV.SelectedRows[0].Cells["ColDescripcion"].Value), UsuarioActual.CveUsuario);
// Ingresar la justificacion
if (frmProceso.SolicitarBitacora == true)
objBitacora.AddVta_Bitacora(CveVentaTerminal, string.Format("{0}", frmProceso.ObservacionesBitacora), UsuarioActual.CveUsuario);
objBitacora.Dispose();
}
else
{
Autorizado = false;
}
}
else
{
Autorizado = false;
}
}
if (Autorizado == true)
{
int indiceDeseado = DGV.SelectedRows[0].Index;
int Cve = DGV.SelectedRows[0].Cells["CveVentaDetalleTerminal"].Value.ToString().ToEntero();
// actualizar
var Venta = new ClsVentas();
Venta.CveVentaTerminal = CveVentaTerminal;
Venta.DeleteVentaDetalle(Cve, Venta.CveVentaTerminal);
Venta.Dispose();
CargaProductos(tCveVentaTerminal);
DGV.ClearSelection();
if (DGV.Rows.Count > 0)
{
DGV.Rows[indiceDeseado > DGV.Rows.Count - 1 ? DGV.Rows.Count - 1 : indiceDeseado].Selected = true;
}
}
else
{
MessageBox.Show("Denegado");
}
}
else
{
ModExtensiones.OnError("No se Puede Eliminar un Producto perteneciente a un Combo", "Error", new Exception(), MessageBoxIcon.Error);
}
}
BtnEliminar.Enabled = false;
}
private void DGV_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex > 0)
{
DGV.ClearSelection();
DGV.Rows[e.RowIndex].Selected = true;
if (DGV.Rows[e.RowIndex].Cells["EstatusEntrega"].Value.ToString().ToEntero() > 0 & PermiteEliminar == false)
{
BtnEliminar.Enabled = false;
BtnMenos.Enabled = false;
BtnMas.Enabled = false;
}
else
{
BtnEliminar.Enabled = true;
BtnMenos.Enabled = true;
BtnMas.Enabled = true;
}
}
}
private void DGV_SelectionChanged(object sender, EventArgs e)
{
if (DGV.SelectedRows.Count > 0)
{
int Cve = DGV.SelectedRows[0].Cells["CveVentaDetalleTerminal"].Value.ToString().ToEntero();
TxtCantidad.Text = DGV.SelectedRows[0].Cells["ColCantidad"].Value.ToString();
// Si NO es paquete o no es promocion, si se puede agregar mas o eliminar
if (DGV.SelectedRows[0].Cells["ColImporte"].Value.ToString().ToEntero() > 0)
{
BtnMas.Enabled = true;
BtnMenos.Enabled = true;
BtnEliminar.Enabled = true;
}
else
{
BtnMas.Enabled = false;
BtnMenos.Enabled = false;
BtnEliminar.Enabled = false;
}
}
// CargaBtnsPorPS()
else if (DGV.CurrentCell is object)
DGV.Rows[DGV.CurrentCell.RowIndex].Selected = true;
}
private void BtnMas_Click(object sender, EventArgs e)
{
// sumar en la cantidad
if (DGV.SelectedRows.Count > 0)
{
if (DGV.SelectedRows[0].Cells["EsPaquete"].Value.ToString().ToBool() == false)
{
bool Autorizado = true;
if (tImpreso == true) // DGV.SelectedRows(0).Cells("EstatusEntrega").Value.ToString().ToEntero() > 0 Then
{
// Revisar si el usuario tiene el Proceso habilitado
FrmProceso frmProceso = new FrmProceso(93, tImpreso);
DialogResult result = frmProceso.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
// Si requiere bitacora y especificaron una observacion O no requiere bitacora
if (frmProceso.SolicitarBitacora == true & frmProceso.ObservacionesBitacora.Trim() != "" | frmProceso.SolicitarBitacora == false)
{
using (ClsVta_Bitacora objBitacora = new ClsVta_Bitacora())
{
// Ingresar el registro de bitacora, el que siempre se registra
objBitacora.AddVta_Bitacora(CveVentaTerminal, string.Format("Agrego: {1}", DGV.SelectedRows[0].Cells["ColCantidad"].Value, DGV.SelectedRows[0].Cells["ColDescripcion"].Value), UsuarioActual.CveUsuario);
// Ingresar la justificacion
if (frmProceso.SolicitarBitacora == true) { objBitacora.AddVta_Bitacora(CveVentaTerminal, string.Format("{0}", frmProceso.ObservacionesBitacora), UsuarioActual.CveUsuario); }
}
}
else
{
Autorizado = false;
}
}
else
{
Autorizado = false;
}
}
if (Autorizado == true)
{
int indiceDeseado = DGV.SelectedRows[0].Index;
int Cve=DGV.SelectedRows[0].Cells["CveVentaDetalleTerminal"].Value.ToString().ToEntero();
int Cantidad = TxtCantidad.Text.ToEntero();
Cantidad += 1;
// actualizar
var Venta = new ClsVentas();
Venta.UpdateCantidadVentaDetalle(tCveVentaTerminal, Cve, Cantidad);
Venta.Dispose();
CargaProductos(tCveVentaTerminal);
DGV.ClearSelection();
if (DGV.Rows.Count > 0)
{
DGV.Rows[indiceDeseado > DGV.Rows.Count - 1 ? DGV.Rows.Count - 1 : indiceDeseado].Selected = true;
}
}
else
{
MessageBox.Show("Denegado");
}
}
else
{
ModExtensiones.OnError("No se Puede Agregar mas Producto de Combo o Promocion", "Error", new Exception(), MessageBoxIcon.Error);
}
}
}
private void BtnMenos_Click(object sender, EventArgs e)
{
if (DGV.SelectedRows.Count > 0)
{
if (DGV.SelectedRows[0].Cells["CveVentaDetalleTerminalPadre"].Value.ToString().ToEntero() == 0)
{
bool Autorizado = true;
int Cantidad = TxtCantidad.Text.ToEntero();
Cantidad -= 1;
if (Cantidad == 0 & DGV.SelectedRows[0].Cells["EstatusEntrega"].Value.ToString().ToEntero() > 0 | tImpreso == true)
{
// Revisar si el usuario tiene el Proceso habilitado
FrmProceso frmProceso = new FrmProceso(93, tImpreso);
DialogResult result = frmProceso.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
// Si requiere bitacora y especificaron una observacion O no requiere bitacora
if (frmProceso.SolicitarBitacora == true & frmProceso.ObservacionesBitacora.Trim() != "" | frmProceso.SolicitarBitacora == false)
{
var objBitacora = new ClsVta_Bitacora();
// Ingresar el registro de bitacora, el que siempre se registra
objBitacora.AddVta_Bitacora(CveVentaTerminal, string.Format("Quito: {1}", DGV.SelectedRows[0].Cells["ColCantidad"].Value, DGV.SelectedRows[0].Cells["ColDescripcion"].Value), UsuarioActual.CveUsuario);
// Ingresar la justificacion
if (frmProceso.SolicitarBitacora == true)
objBitacora.AddVta_Bitacora(CveVentaTerminal, string.Format("{0}", frmProceso.ObservacionesBitacora), UsuarioActual.CveUsuario);
objBitacora.Dispose();
}
else
{
Autorizado = false;
}
}
else
{
Autorizado = false;
}
}
if (Autorizado == true)
{
int indiceDeseado = DGV.SelectedRows[0].Index;
int Cve = DGV.SelectedRows[0].Cells["CveVentaDetalleTerminal"].Value.ToString().ToEntero();
if (DGV.SelectedRows[0].Cells["EstatusEntrega"].Value.ToString().ToEntero() > 0 & PermiteEliminar == false)
{
MessageBox.Show("NO PUEDE ELIMINAR");
}
else
{
// actualizar
var Venta = new ClsVentas();
Venta.UpdateCantidadVentaDetalle(tCveVentaTerminal, Cve, Cantidad);
Venta.Dispose();
CargaProductos(tCveVentaTerminal);
DGV.ClearSelection();
if (DGV.Rows.Count > 0)
{
DGV.Rows[indiceDeseado > DGV.Rows.Count - 1 ? DGV.Rows.Count - 1 : indiceDeseado].Selected = true;
}
}
}
else
{
MessageBox.Show("Denegado");
}
}
else
{
ModExtensiones.OnError("No se Puede Eliminar un Producto perteneciente a un Combo", "Error", new Exception(), MessageBoxIcon.Error);
}
}
}
private void BtnCerrar_Click(object sender, EventArgs e)
{
this.Close();
}
private void BtnClasifAdelantar_Click(object sender, EventArgs e)
{
IniciarBtnsPSyCaracteristicas();
BtnClasifAtrasar.Enabled = true;
IndiceClasificaciones += 10;
CargaClasificacionesBTNs(IndiceClasificaciones);
}
private void BtnClasifAtrasar_Click(object sender, EventArgs e)
{
IniciarBtnsPSyCaracteristicas();
BtnClasifAdelantar.Enabled = true;
IndiceClasificaciones -= 10;
CargaClasificacionesBTNs(IndiceClasificaciones);
}
private void BtnAdelantar_Click(object sender, EventArgs e)
{
IniciarBtnsCaracteristicas();
BtnAtrasar.Enabled = true;
IndicePS += 18;
CargaPSBTNs(IndicePS);
}
private void BtnAtrasar_Click(object sender, EventArgs e)
{
IniciarBtnsCaracteristicas();
BtnAdelantar.Enabled = true;
IndicePS -= 18;
CargaPSBTNs(IndicePS);
}
private void btnAdelantarCaracteristicas_Click(object sender, EventArgs e)
{
btnAtrasarCaracteristicas.Enabled = true;
IndiceCaracteristicas += 8;
CargaCaracteristicasBTNs(IndiceCaracteristicas);
}
private void btnAtrasarCaracteristicas_Click(object sender, EventArgs e)
{
btnAdelantarCaracteristicas.Enabled = true;
IndiceCaracteristicas -= 8;
CargaCaracteristicasBTNs(IndiceCaracteristicas);
}
}
}

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,783 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmMetodoPago
{
/// <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();
BtnMinimize = new FontAwesome.Sharp.IconButton();
BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
BtnClose = new FontAwesome.Sharp.IconButton();
PnlFrmTitulo = new System.Windows.Forms.Panel();
label6 = new System.Windows.Forms.Label();
GroupBox1 = new System.Windows.Forms.GroupBox();
dgMetodosPago = new System.Windows.Forms.DataGridView();
Clave = new System.Windows.Forms.DataGridViewTextBoxColumn();
MetodoPago = new System.Windows.Forms.DataGridViewTextBoxColumn();
Importe = new System.Windows.Forms.DataGridViewTextBoxColumn();
ImportePropina = new System.Windows.Forms.DataGridViewTextBoxColumn();
GroupBox2 = new System.Windows.Forms.GroupBox();
BtnAddPago = new FontAwesome.Sharp.IconButton();
btnBuscarCliente = new FontAwesome.Sharp.IconButton();
txtCliente = new System.Windows.Forms.MaskedTextBox();
Label8 = new System.Windows.Forms.Label();
btnPagar = new System.Windows.Forms.Button();
rbCuentasXCobrar = new System.Windows.Forms.RadioButton();
rbContado = new System.Windows.Forms.RadioButton();
txtTotalFinal = new System.Windows.Forms.MaskedTextBox();
Label7 = new System.Windows.Forms.Label();
txtPropina = new System.Windows.Forms.MaskedTextBox();
txtResta = new System.Windows.Forms.MaskedTextBox();
Label5 = new System.Windows.Forms.Label();
lblPropina = new System.Windows.Forms.Label();
Label3 = new System.Windows.Forms.Label();
txtPagado = new System.Windows.Forms.MaskedTextBox();
txtImporte = new System.Windows.Forms.MaskedTextBox();
txtCveMetodoPago = new System.Windows.Forms.MaskedTextBox();
Label2 = new System.Windows.Forms.Label();
Label1 = new System.Windows.Forms.Label();
btnCxP = new System.Windows.Forms.Button();
txtTotal = new System.Windows.Forms.MaskedTextBox();
Label4 = new System.Windows.Forms.Label();
groupTeclado = new System.Windows.Forms.GroupBox();
btnSalir = new System.Windows.Forms.Button();
btnPunto = new System.Windows.Forms.Button();
btnCorregir = new System.Windows.Forms.Button();
btnEnter = new System.Windows.Forms.Button();
btn0 = new System.Windows.Forms.Button();
btn9 = new System.Windows.Forms.Button();
btn8 = new System.Windows.Forms.Button();
btn7 = new System.Windows.Forms.Button();
btn6 = new System.Windows.Forms.Button();
btn5 = new System.Windows.Forms.Button();
btn4 = new System.Windows.Forms.Button();
btn3 = new System.Windows.Forms.Button();
btn2 = new System.Windows.Forms.Button();
btn1 = new System.Windows.Forms.Button();
PnlFrmTitulo.SuspendLayout();
GroupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dgMetodosPago).BeginInit();
GroupBox2.SuspendLayout();
groupTeclado.SuspendLayout();
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(759, 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(789, 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(819, 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;
//
// PnlFrmTitulo
//
PnlFrmTitulo.BackColor = System.Drawing.Color.FromArgb(43, 54, 67);
PnlFrmTitulo.Controls.Add(label6);
PnlFrmTitulo.Controls.Add(BtnMinimize);
PnlFrmTitulo.Controls.Add(BtnMaximizeRestore);
PnlFrmTitulo.Controls.Add(BtnClose);
PnlFrmTitulo.Dock = System.Windows.Forms.DockStyle.Top;
PnlFrmTitulo.Location = new System.Drawing.Point(0, 0);
PnlFrmTitulo.Name = "PnlFrmTitulo";
PnlFrmTitulo.Size = new System.Drawing.Size(850, 30);
PnlFrmTitulo.TabIndex = 1;
PnlFrmTitulo.MouseDown += ArrastrarForm_MouseDown;
//
// label6
//
label6.AutoSize = true;
label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
label6.ForeColor = System.Drawing.Color.FromArgb(180, 188, 200);
label6.Location = new System.Drawing.Point(10, 5);
label6.Name = "label6";
label6.Size = new System.Drawing.Size(139, 20);
label6.TabIndex = 1;
label6.Text = "Metodo de pago";
//
// GroupBox1
//
GroupBox1.Controls.Add(dgMetodosPago);
GroupBox1.Location = new System.Drawing.Point(12, 264);
GroupBox1.Name = "GroupBox1";
GroupBox1.Size = new System.Drawing.Size(425, 176);
GroupBox1.TabIndex = 0;
GroupBox1.TabStop = false;
GroupBox1.Text = "Metodos de Pago";
//
// dgMetodosPago
//
dgMetodosPago.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dgMetodosPago.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgMetodosPago.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { Clave, MetodoPago, Importe, ImportePropina });
dgMetodosPago.Dock = System.Windows.Forms.DockStyle.Fill;
dgMetodosPago.Enabled = false;
dgMetodosPago.Location = new System.Drawing.Point(3, 19);
dgMetodosPago.Name = "dgMetodosPago";
dgMetodosPago.Size = new System.Drawing.Size(419, 154);
dgMetodosPago.TabIndex = 0;
dgMetodosPago.CellDoubleClick += dgMetodosPago_CellDoubleClick;
dgMetodosPago.CellEndEdit += dgMetodosPago_CellEndEdit;
//
// Clave
//
Clave.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
Clave.DataPropertyName = "CveMetodoPago";
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
Clave.DefaultCellStyle = dataGridViewCellStyle1;
Clave.HeaderText = "Clave";
Clave.Name = "Clave";
Clave.ReadOnly = true;
Clave.Width = 40;
//
// MetodoPago
//
MetodoPago.DataPropertyName = "MetodoPago";
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
MetodoPago.DefaultCellStyle = dataGridViewCellStyle2;
MetodoPago.HeaderText = "Metodo de Pago";
MetodoPago.Name = "MetodoPago";
MetodoPago.ReadOnly = true;
//
// Importe
//
Importe.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
Importe.DataPropertyName = "Importe";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle3.Format = "C";
Importe.DefaultCellStyle = dataGridViewCellStyle3;
Importe.HeaderText = "Importe";
Importe.Name = "Importe";
Importe.ReadOnly = true;
Importe.Width = 80;
//
// ImportePropina
//
ImportePropina.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
ImportePropina.DataPropertyName = "ImportePropina";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle4.Format = "C";
ImportePropina.DefaultCellStyle = dataGridViewCellStyle4;
ImportePropina.HeaderText = "ImportePropina";
ImportePropina.Name = "ImportePropina";
ImportePropina.Visible = false;
ImportePropina.Width = 60;
//
// GroupBox2
//
GroupBox2.Controls.Add(BtnAddPago);
GroupBox2.Controls.Add(btnBuscarCliente);
GroupBox2.Controls.Add(txtCliente);
GroupBox2.Controls.Add(Label8);
GroupBox2.Controls.Add(btnPagar);
GroupBox2.Controls.Add(rbCuentasXCobrar);
GroupBox2.Controls.Add(rbContado);
GroupBox2.Controls.Add(txtTotalFinal);
GroupBox2.Controls.Add(Label7);
GroupBox2.Controls.Add(txtPropina);
GroupBox2.Controls.Add(txtResta);
GroupBox2.Controls.Add(Label5);
GroupBox2.Controls.Add(lblPropina);
GroupBox2.Controls.Add(Label3);
GroupBox2.Controls.Add(txtPagado);
GroupBox2.Controls.Add(txtImporte);
GroupBox2.Controls.Add(txtCveMetodoPago);
GroupBox2.Controls.Add(Label2);
GroupBox2.Controls.Add(Label1);
GroupBox2.Location = new System.Drawing.Point(12, 36);
GroupBox2.Name = "GroupBox2";
GroupBox2.Size = new System.Drawing.Size(425, 222);
GroupBox2.TabIndex = 1;
GroupBox2.TabStop = false;
GroupBox2.Text = "Pago";
//
// BtnAddPago
//
BtnAddPago.BackColor = System.Drawing.SystemColors.Control;
BtnAddPago.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
BtnAddPago.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
BtnAddPago.IconChar = FontAwesome.Sharp.IconChar.MoneyCheck;
BtnAddPago.IconColor = System.Drawing.Color.Black;
BtnAddPago.IconFont = FontAwesome.Sharp.IconFont.Auto;
BtnAddPago.IconSize = 20;
BtnAddPago.Location = new System.Drawing.Point(197, 85);
BtnAddPago.Name = "BtnAddPago";
BtnAddPago.Rotation = 0D;
BtnAddPago.Size = new System.Drawing.Size(28, 30);
BtnAddPago.TabIndex = 19;
BtnAddPago.UseVisualStyleBackColor = false;
BtnAddPago.Click += BtnAddPago_Click;
//
// btnBuscarCliente
//
btnBuscarCliente.BackColor = System.Drawing.SystemColors.Control;
btnBuscarCliente.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnBuscarCliente.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnBuscarCliente.IconChar = FontAwesome.Sharp.IconChar.Users;
btnBuscarCliente.IconColor = System.Drawing.Color.Black;
btnBuscarCliente.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnBuscarCliente.IconSize = 20;
btnBuscarCliente.Location = new System.Drawing.Point(391, 13);
btnBuscarCliente.Name = "btnBuscarCliente";
btnBuscarCliente.Rotation = 0D;
btnBuscarCliente.Size = new System.Drawing.Size(28, 30);
btnBuscarCliente.TabIndex = 19;
btnBuscarCliente.UseVisualStyleBackColor = false;
btnBuscarCliente.Click += btnBuscarCliente_Click;
//
// txtCliente
//
txtCliente.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtCliente.Location = new System.Drawing.Point(91, 13);
txtCliente.Name = "txtCliente";
txtCliente.ReadOnly = true;
txtCliente.Size = new System.Drawing.Size(294, 30);
txtCliente.TabIndex = 18;
//
// Label8
//
Label8.AutoSize = true;
Label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label8.Location = new System.Drawing.Point(6, 16);
Label8.Name = "Label8";
Label8.Size = new System.Drawing.Size(73, 25);
Label8.TabIndex = 17;
Label8.Text = "Cliente";
//
// btnPagar
//
btnPagar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnPagar.Location = new System.Drawing.Point(238, 178);
btnPagar.Name = "btnPagar";
btnPagar.Size = new System.Drawing.Size(181, 37);
btnPagar.TabIndex = 16;
btnPagar.Text = "Pagar";
btnPagar.UseVisualStyleBackColor = true;
btnPagar.Click += btnPagar_Click;
//
// rbCuentasXCobrar
//
rbCuentasXCobrar.AutoSize = true;
rbCuentasXCobrar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
rbCuentasXCobrar.Location = new System.Drawing.Point(11, 191);
rbCuentasXCobrar.Name = "rbCuentasXCobrar";
rbCuentasXCobrar.Size = new System.Drawing.Size(170, 24);
rbCuentasXCobrar.TabIndex = 15;
rbCuentasXCobrar.Text = "Cuentas X Cobrar";
rbCuentasXCobrar.UseVisualStyleBackColor = true;
//
// rbContado
//
rbContado.AutoSize = true;
rbContado.Checked = true;
rbContado.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
rbContado.Location = new System.Drawing.Point(11, 161);
rbContado.Name = "rbContado";
rbContado.Size = new System.Drawing.Size(95, 24);
rbContado.TabIndex = 14;
rbContado.TabStop = true;
rbContado.Text = "Contado";
rbContado.UseVisualStyleBackColor = true;
//
// txtTotalFinal
//
txtTotalFinal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtTotalFinal.Location = new System.Drawing.Point(319, 49);
txtTotalFinal.Name = "txtTotalFinal";
txtTotalFinal.ReadOnly = true;
txtTotalFinal.Size = new System.Drawing.Size(100, 30);
txtTotalFinal.TabIndex = 13;
txtTotalFinal.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// Label7
//
Label7.AutoSize = true;
Label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label7.Location = new System.Drawing.Point(257, 52);
Label7.Name = "Label7";
Label7.Size = new System.Drawing.Size(56, 25);
Label7.TabIndex = 12;
Label7.Text = "Total";
//
// txtPropina
//
txtPropina.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtPropina.Location = new System.Drawing.Point(91, 121);
txtPropina.Name = "txtPropina";
txtPropina.Size = new System.Drawing.Size(100, 30);
txtPropina.TabIndex = 3;
txtPropina.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
txtPropina.Visible = false;
txtPropina.GotFocus += txtPropina_GotFocus;
txtPropina.KeyUp += txtPropina_KeyUp;
//
// txtResta
//
txtResta.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtResta.Location = new System.Drawing.Point(319, 121);
txtResta.Name = "txtResta";
txtResta.ReadOnly = true;
txtResta.Size = new System.Drawing.Size(100, 30);
txtResta.TabIndex = 8;
txtResta.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// Label5
//
Label5.AutoSize = true;
Label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label5.Location = new System.Drawing.Point(249, 124);
Label5.Name = "Label5";
Label5.Size = new System.Drawing.Size(62, 25);
Label5.TabIndex = 9;
Label5.Text = "Resta";
//
// lblPropina
//
lblPropina.AutoSize = true;
lblPropina.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
lblPropina.Location = new System.Drawing.Point(6, 124);
lblPropina.Name = "lblPropina";
lblPropina.Size = new System.Drawing.Size(79, 25);
lblPropina.TabIndex = 10;
lblPropina.Text = "Propina";
lblPropina.Visible = false;
//
// Label3
//
Label3.AutoSize = true;
Label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label3.Location = new System.Drawing.Point(233, 88);
Label3.Name = "Label3";
Label3.Size = new System.Drawing.Size(80, 25);
Label3.TabIndex = 5;
Label3.Text = "Pagado";
//
// txtPagado
//
txtPagado.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtPagado.Location = new System.Drawing.Point(319, 85);
txtPagado.Name = "txtPagado";
txtPagado.ReadOnly = true;
txtPagado.Size = new System.Drawing.Size(100, 30);
txtPagado.TabIndex = 4;
txtPagado.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// txtImporte
//
txtImporte.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtImporte.Location = new System.Drawing.Point(91, 85);
txtImporte.Name = "txtImporte";
txtImporte.Size = new System.Drawing.Size(100, 30);
txtImporte.TabIndex = 2;
txtImporte.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
txtImporte.Click += txtImporte_Click;
txtImporte.GotFocus += txtImporte_GotFocus;
txtImporte.KeyPress += txtImporte_KeyPress;
txtImporte.KeyUp += txtImporte_KeyUp;
txtImporte.Leave += txtImporte_Leave;
txtImporte.LostFocus += txtImporte_LostFocus;
//
// txtCveMetodoPago
//
txtCveMetodoPago.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtCveMetodoPago.Location = new System.Drawing.Point(91, 49);
txtCveMetodoPago.Name = "txtCveMetodoPago";
txtCveMetodoPago.Size = new System.Drawing.Size(57, 30);
txtCveMetodoPago.TabIndex = 1;
txtCveMetodoPago.Text = "1";
txtCveMetodoPago.GotFocus += txtCveMetodoPago_GotFocus;
txtCveMetodoPago.KeyUp += txtCveMetodoPago_KeyUp;
txtCveMetodoPago.LostFocus += txtCveMetodoPago_LostFocus;
//
// Label2
//
Label2.AutoSize = true;
Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label2.Location = new System.Drawing.Point(6, 85);
Label2.Name = "Label2";
Label2.Size = new System.Drawing.Size(77, 25);
Label2.TabIndex = 1;
Label2.Text = "Importe";
//
// Label1
//
Label1.AutoSize = true;
Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label1.Location = new System.Drawing.Point(6, 49);
Label1.Name = "Label1";
Label1.Size = new System.Drawing.Size(63, 25);
Label1.TabIndex = 0;
Label1.Text = "Clave";
//
// btnCxP
//
btnCxP.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btnCxP.Location = new System.Drawing.Point(294, 256);
btnCxP.Name = "btnCxP";
btnCxP.Size = new System.Drawing.Size(180, 25);
btnCxP.TabIndex = 14;
btnCxP.Text = "Cuentas x Cobrar";
btnCxP.UseVisualStyleBackColor = true;
btnCxP.Visible = false;
btnCxP.Click += btnCxP_Click;
//
// txtTotal
//
txtTotal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtTotal.Location = new System.Drawing.Point(284, 287);
txtTotal.Name = "txtTotal";
txtTotal.ReadOnly = true;
txtTotal.Size = new System.Drawing.Size(100, 30);
txtTotal.TabIndex = 7;
txtTotal.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
txtTotal.Visible = false;
//
// Label4
//
Label4.AutoSize = true;
Label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label4.Location = new System.Drawing.Point(214, 290);
Label4.Name = "Label4";
Label4.Size = new System.Drawing.Size(64, 25);
Label4.TabIndex = 6;
Label4.Text = "Venta";
Label4.Visible = false;
//
// groupTeclado
//
groupTeclado.Controls.Add(btnCxP);
groupTeclado.Controls.Add(btnSalir);
groupTeclado.Controls.Add(btnPunto);
groupTeclado.Controls.Add(btnCorregir);
groupTeclado.Controls.Add(btnEnter);
groupTeclado.Controls.Add(btn0);
groupTeclado.Controls.Add(btn9);
groupTeclado.Controls.Add(btn8);
groupTeclado.Controls.Add(btn7);
groupTeclado.Controls.Add(btn6);
groupTeclado.Controls.Add(btn5);
groupTeclado.Controls.Add(btn4);
groupTeclado.Controls.Add(txtTotal);
groupTeclado.Controls.Add(Label4);
groupTeclado.Controls.Add(btn3);
groupTeclado.Controls.Add(btn2);
groupTeclado.Controls.Add(btn1);
groupTeclado.Location = new System.Drawing.Point(443, 36);
groupTeclado.Name = "groupTeclado";
groupTeclado.Size = new System.Drawing.Size(396, 404);
groupTeclado.TabIndex = 10;
groupTeclado.TabStop = false;
groupTeclado.Text = "Teclado Numerico";
//
// btnSalir
//
btnSalir.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btnSalir.Location = new System.Drawing.Point(294, 115);
btnSalir.Name = "btnSalir";
btnSalir.Size = new System.Drawing.Size(90, 90);
btnSalir.TabIndex = 12;
btnSalir.Text = "Salir";
btnSalir.UseVisualStyleBackColor = true;
btnSalir.Click += btnSalir_Click;
//
// btnPunto
//
btnPunto.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btnPunto.Location = new System.Drawing.Point(6, 307);
btnPunto.Name = "btnPunto";
btnPunto.Size = new System.Drawing.Size(90, 90);
btnPunto.TabIndex = 11;
btnPunto.Text = ".";
btnPunto.UseVisualStyleBackColor = true;
btnPunto.Click += btnPunto_Click;
//
// btnCorregir
//
btnCorregir.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btnCorregir.ForeColor = System.Drawing.Color.Red;
btnCorregir.Location = new System.Drawing.Point(294, 19);
btnCorregir.Name = "btnCorregir";
btnCorregir.Size = new System.Drawing.Size(90, 90);
btnCorregir.TabIndex = 11;
btnCorregir.Text = "Corregir";
btnCorregir.UseVisualStyleBackColor = true;
btnCorregir.Click += btnCorregir_Click;
//
// btnEnter
//
btnEnter.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btnEnter.Location = new System.Drawing.Point(198, 307);
btnEnter.Name = "btnEnter";
btnEnter.Size = new System.Drawing.Size(90, 90);
btnEnter.TabIndex = 10;
btnEnter.Text = "OK";
btnEnter.UseVisualStyleBackColor = true;
btnEnter.Click += btnEnter_Click;
//
// btn0
//
btn0.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn0.Location = new System.Drawing.Point(102, 307);
btn0.Name = "btn0";
btn0.Size = new System.Drawing.Size(90, 90);
btn0.TabIndex = 9;
btn0.Text = "0";
btn0.UseVisualStyleBackColor = true;
btn0.Click += btn0_Click;
//
// btn9
//
btn9.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn9.Location = new System.Drawing.Point(198, 211);
btn9.Name = "btn9";
btn9.Size = new System.Drawing.Size(90, 90);
btn9.TabIndex = 8;
btn9.Text = "9";
btn9.UseVisualStyleBackColor = true;
btn9.Click += btn9_Click;
//
// btn8
//
btn8.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn8.Location = new System.Drawing.Point(102, 211);
btn8.Name = "btn8";
btn8.Size = new System.Drawing.Size(90, 90);
btn8.TabIndex = 7;
btn8.Text = "8";
btn8.UseVisualStyleBackColor = true;
btn8.Click += btn8_Click;
//
// btn7
//
btn7.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn7.Location = new System.Drawing.Point(6, 211);
btn7.Name = "btn7";
btn7.Size = new System.Drawing.Size(90, 90);
btn7.TabIndex = 6;
btn7.Text = "7";
btn7.UseVisualStyleBackColor = true;
btn7.Click += btn7_Click;
//
// btn6
//
btn6.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn6.Location = new System.Drawing.Point(198, 115);
btn6.Name = "btn6";
btn6.Size = new System.Drawing.Size(90, 90);
btn6.TabIndex = 5;
btn6.Text = "6";
btn6.UseVisualStyleBackColor = true;
btn6.Click += btn6_Click;
//
// btn5
//
btn5.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn5.Location = new System.Drawing.Point(102, 115);
btn5.Name = "btn5";
btn5.Size = new System.Drawing.Size(90, 90);
btn5.TabIndex = 4;
btn5.Text = "5";
btn5.UseVisualStyleBackColor = true;
btn5.Click += btn5_Click;
//
// btn4
//
btn4.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn4.Location = new System.Drawing.Point(6, 115);
btn4.Name = "btn4";
btn4.Size = new System.Drawing.Size(90, 90);
btn4.TabIndex = 3;
btn4.Text = "4";
btn4.UseVisualStyleBackColor = true;
btn4.Click += btn4_Click;
//
// btn3
//
btn3.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn3.Location = new System.Drawing.Point(198, 19);
btn3.Name = "btn3";
btn3.Size = new System.Drawing.Size(90, 90);
btn3.TabIndex = 2;
btn3.Text = "3";
btn3.UseVisualStyleBackColor = true;
btn3.Click += btn3_Click;
//
// btn2
//
btn2.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn2.Location = new System.Drawing.Point(102, 19);
btn2.Name = "btn2";
btn2.Size = new System.Drawing.Size(90, 90);
btn2.TabIndex = 1;
btn2.Text = "2";
btn2.UseVisualStyleBackColor = true;
btn2.Click += btn2_Click;
//
// btn1
//
btn1.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
btn1.Location = new System.Drawing.Point(6, 19);
btn1.Name = "btn1";
btn1.Size = new System.Drawing.Size(90, 90);
btn1.TabIndex = 0;
btn1.Text = "1";
btn1.UseVisualStyleBackColor = true;
btn1.Click += btn1_Click;
//
// FrmMetodoPago
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(850, 450);
ControlBox = false;
Controls.Add(PnlFrmTitulo);
Controls.Add(groupTeclado);
Controls.Add(GroupBox2);
Controls.Add(GroupBox1);
Name = "FrmMetodoPago";
ShowInTaskbar = false;
Load += frmMetodoPago_Load;
PnlFrmTitulo.ResumeLayout(false);
PnlFrmTitulo.PerformLayout();
GroupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dgMetodosPago).EndInit();
GroupBox2.ResumeLayout(false);
GroupBox2.PerformLayout();
groupTeclado.ResumeLayout(false);
groupTeclado.PerformLayout();
ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconButton iconButton2;
private FontAwesome.Sharp.IconButton BtnClose;
private System.Windows.Forms.Panel PnlFrmTitulo;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private System.Windows.Forms.GroupBox GroupBox1;
private System.Windows.Forms.DataGridView dgMetodosPago;
private System.Windows.Forms.GroupBox GroupBox2;
private System.Windows.Forms.Label Label1;
private System.Windows.Forms.MaskedTextBox txtImporte;
private System.Windows.Forms.MaskedTextBox txtCveMetodoPago;
private System.Windows.Forms.Label Label2;
private System.Windows.Forms.Label Label5;
private System.Windows.Forms.MaskedTextBox txtResta;
private System.Windows.Forms.MaskedTextBox txtTotal;
private System.Windows.Forms.Label Label4;
private System.Windows.Forms.Label Label3;
private System.Windows.Forms.MaskedTextBox txtPagado;
private System.Windows.Forms.GroupBox groupTeclado;
private System.Windows.Forms.Button btnPunto;
private System.Windows.Forms.Button btnEnter;
private System.Windows.Forms.Button btn0;
private System.Windows.Forms.Button btn9;
private System.Windows.Forms.Button btn8;
private System.Windows.Forms.Button btn7;
private System.Windows.Forms.Button btn6;
private System.Windows.Forms.Button btn5;
private System.Windows.Forms.Button btn4;
private System.Windows.Forms.Button btn3;
private System.Windows.Forms.Button btn2;
private System.Windows.Forms.Button btn1;
private System.Windows.Forms.Button btnCorregir;
private System.Windows.Forms.Button btnSalir;
private System.Windows.Forms.MaskedTextBox txtPropina;
private System.Windows.Forms.Label lblPropina;
private System.Windows.Forms.MaskedTextBox txtTotalFinal;
private System.Windows.Forms.Label Label7;
private System.Windows.Forms.Button btnCxP;
private System.Windows.Forms.Button btnPagar;
private System.Windows.Forms.RadioButton rbCuentasXCobrar;
private System.Windows.Forms.RadioButton rbContado;
private FontAwesome.Sharp.IconButton btnBuscarCliente;
private System.Windows.Forms.MaskedTextBox txtCliente;
private System.Windows.Forms.Label Label8;
private System.Windows.Forms.DataGridViewTextBoxColumn Clave;
private System.Windows.Forms.DataGridViewTextBoxColumn MetodoPago;
private System.Windows.Forms.DataGridViewTextBoxColumn Importe;
private System.Windows.Forms.DataGridViewTextBoxColumn ImportePropina;
private System.Windows.Forms.Label label6;
private FontAwesome.Sharp.IconButton BtnAddPago;
}
}

View File

@@ -0,0 +1,649 @@
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.Linq;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.PV.Views
{
public partial class FrmMetodoPago : FormBase
{
public System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> MetodosPago = new System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel>();
public System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> ls = new System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel>();
// Public ls As WS_PuntoVenta.GetMetodosPagosCompletedEventArgs
public double Total;
public int CveVentaTerminal;
public int CveEstatusFactura;
public double Pagado;
public double Resta;
public double Cambio;
public string btnConFocus;
public double ImporteTMP = 0d;
public FrmMetodoPago(double Total_, int CveVentaTerminal_, int CveEstatusFactura_, string NombreCliente, bool EsTouch)
{
InitializeComponent();
Total = Total_;
CveVentaTerminal = CveVentaTerminal_;
CveEstatusFactura = CveEstatusFactura_;
txtCliente.Text = NombreCliente;
txtTotal.Text = Total.ToString("C");
txtTotalFinal.Text = Total.ToString("C");
txtResta.Text = Total.ToString("C");
// Llenar los metods de pago
CargaMetodosPago();
if (CveEstatusFactura == 2)
{
btnBuscarCliente.Enabled = false;
rbCuentasXCobrar.Enabled = false;
txtCveMetodoPago.Enabled = false;
txtImporte.Enabled = false;
CargaPagos();
var objVenta = new ClsVentas();
if (objVenta.GetVentas(CveVentaTerminal, -1, -1, "-1", -1, -1, UsuarioActual.CveEmpresa))
{
if (objVenta.CveVentaTerminal > 0 && ModVarsPV.CveClientePG != objVenta.CveCliente)
{
btnPagar.Enabled = false;
}
else
{
dgMetodosPago.Columns["Importe"].ReadOnly = false;
dgMetodosPago.Columns["ImportePropina"].Visible = true;
dgMetodosPago.Enabled = true;
dgMetodosPago.Focus();
}
}
}
txtImporte.Text = Total.ToString("C");
txtCveMetodoPago.Focus();
SumarToTales();
groupTeclado.Visible = EsTouch;
}
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 frmMetodoPago_Load(object sender, EventArgs e)
{
txtCveMetodoPago.Focus();
}
protected void CargaPagos()
{
var objVenta = new ClsVentas();
if (objVenta.GetVta_VentasPago(CveVentaTerminal))
{
foreach (DataRow Row in objVenta.DtResultados.Tabla.Rows)
{
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == Row["CveMetodoPago"].ToString().ToEntero()))].Importe += Row["Importe"].ToString().ToDouble();
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == Row["CveMetodoPago"].ToString().ToEntero()))].ImportePropina += Row["ImportePropina"].ToString().ToDouble();
}
}
objVenta.Dispose();
// SumarToTales()
}
protected void CargaMetodosPago()
{
var objMetodosPago = new ClsMetodosPago();
if (objMetodosPago.GetMetodosPago())
{
foreach (DataRow Row in objMetodosPago.DtResultados.Tabla.FiltraParametros("CveMetodoPago in (1,2,4,5)", "CveMetodoPago").Rows)
ls.Add(new ClsMetodosPago.ClsMetodosPagoModel(Row["CveMetodoPago"].ToString().ToEntero(), Row["MetodoPago"].ToString(), 0));
dgMetodosPago.DataSource = ls;
}
objMetodosPago.Dispose();
}
private void txtImporte_Click(object sender, EventArgs e)
{
// txtImporte.Text = txtImporte.Text.Replace(",", "").Replace("$", "")
}
private void txtImporte_Leave(object sender, EventArgs e)
{
txtImporteLeave();
}
protected void txtImporteLeave()
{
if (txtImporte.Text == "")
{
txtImporte.Text = "0";
}
string Monto = txtImporte.Text.Replace(",", "").Replace("$", "");
string MontoText = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", Monto);
if (txtImporte.Text != MontoText)
{
txtImporte.Text = MontoText;
}
}
private void txtImporte_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
{
// If Not IsNumeric(txtImporte.Text) Then txtImporte.Focus() Else If txtPropina.Visible = False Then AgregarMetodoPago() Else txtPropina.Focus() : ImporteTMP = txtImporte.Text.ToDouble
if (!double.TryParse(txtImporte.Text.Replace(",", "").Replace("$", "").Replace(" ", ""), out _))
{
txtImporte.Focus();
}
else if (txtPropina.Visible == false || txtImporte.Text.ToEntero() == -1)
{
AgregarMetodoPago();
}
else
{
txtPropina.Focus();
ImporteTMP = txtImporte.Text.ToDouble();
}
break;
}
case Keys.Up:
{
txtCveMetodoPago.Focus();
break;
}
case Keys.Escape:
{
Salir();
break;
}
default:
{
break;
}
// If txtImporte.Text.IndexOf("$") >= 0 Then
// txtImporte.Text = txtImporte.Text.Substring(0, 1)
// txtImporte.SelectionStart = 1
// End If
}
}
protected void AgregarMetodoPago()
{
double ImportePagadoTMP;
// Propina = txtPropina.Text.ToDouble
if (txtImporte.Text.Trim().ToEntero() != -1)
{
if (txtImporte.Text.ToDouble() >= txtResta.Text.ToDouble())
{
ImportePagadoTMP = txtResta.Text.ToDouble();
Cambio = txtImporte.Text.ToDouble() - txtResta.Text.ToDouble();
}
else
{
ImportePagadoTMP = txtImporte.Text.ToDouble();
}
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == txtCveMetodoPago.Text.ToEntero()))].Importe += ImportePagadoTMP;
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == txtCveMetodoPago.Text.ToEntero()))].ImportePropina += txtPropina.Text.ToDouble();
}
else
{
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == txtCveMetodoPago.Text.ToEntero()))].Importe = 0;
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == txtCveMetodoPago.Text.ToEntero()))].ImportePropina = 0;
}
TerminarDePagar();
}
protected void TerminarDePagar()
{
// dgMetodosPago.DataSource = ls
if (SumarToTales() | rbCuentasXCobrar.Checked == true)
{
MetodosPago = ls;
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
else
{
MessageBox.Show($"debe cubrir los {txtResta.Text } para finalizar el pago");
//txtCveMetodoPago.Text = "";
txtCveMetodoPago.Focus();
}
}
protected bool SumarToTales()
{
Pagado = 0d;
foreach (ClsMetodosPago.ClsMetodosPagoModel MetodoPago in ls)
{ Pagado = Pagado + MetodoPago.Importe; }
txtPagado.Text = Pagado.ToString("C");
if (Pagado >= Total)
{
Pagado = Pagado + Cambio;
Resta = Total - Pagado;
txtResta.Text = Resta.ToString("C");
txtImporte.Text = Resta.ToString("C");
return true;
}
else
{
Resta = Total - Pagado;
txtResta.Text = Resta.ToString("C");
txtImporte.Text = Resta.ToString("C");
return false;
}
}
private void txtCveMetodoPago_GotFocus(object sender, EventArgs e)
{
btnConFocus = "txtCveMetodoPago";
txtCveMetodoPago.BackColor = Color.AliceBlue;
txtImporte.BackColor = Color.White;
txtPropina.BackColor = Color.White;
}
private void txtImporte_GotFocus(object sender, EventArgs e)
{
btnConFocus = "txtImporte";
txtCveMetodoPago.BackColor = Color.White;
txtImporte.BackColor = Color.AliceBlue;
txtPropina.BackColor = Color.White;
}
private void txtPropina_GotFocus(object sender, EventArgs e)
{
btnConFocus = "txtPropina";
txtCveMetodoPago.BackColor = Color.White;
txtImporte.BackColor = Color.White;
txtPropina.BackColor = Color.AliceBlue;
}
private void txtCveMetodoPago_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
case Keys.Down:
{
if (!int.TryParse(txtCveMetodoPago.Text, out _))
{
txtCveMetodoPago.Focus();
}
else
{
//txtPropina.Visible = txtCveMetodoPago.Text.Trim() == "1" ? false : true;
//lblPropina.Visible = txtPropina.Visible;
txtImporte.Focus();
}
break;
}
case var case2 when case2 == Keys.Escape:
{
Salir();
break;
}
}
}
protected void Salir()
{
this.DialogResult = System.Windows.Forms.DialogResult.Abort;
this.Close();
}
protected void TeclaPresionada(string Presionado)
{
switch (btnConFocus ?? "")
{
case "txtPropina":
{
switch (Presionado ?? "")
{
case "-1":
{
txtPropina.Text = "";
break;
}
case "Enter":
{
txtCveMetodoPago.Focus();
break;
}
default:
{
txtPropina.Text = txtPropina.Text + Presionado.ToString();
break;
}
}
break;
}
case "txtCveMetodoPago":
{
switch (Presionado ?? "")
{
case "-1":
{
txtCveMetodoPago.Text = "";
break;
}
case "Enter":
{
txtImporte.Focus();
break;
}
default:
{
txtCveMetodoPago.Text = txtCveMetodoPago.Text + Presionado.ToString();
break;
}
}
break;
}
case "txtImporte":
{
switch (Presionado ?? "")
{
case "-1":
{
txtImporte.Text = "";
break;
}
case "Enter":
{
TerminarDePagar();
break;
}
default:
{
if (txtImporte.Text.IndexOf("$") >= 0)
{
txtImporte.Text = Presionado.ToString();
}
else
{
txtImporte.Text = txtImporte.Text + Presionado.ToString();
}
break;
}
}
break;
}
}
}
private void btn1_Click(object sender, EventArgs e)
{
TeclaPresionada("1");
}
private void btn2_Click(object sender, EventArgs e)
{
TeclaPresionada("2");
}
private void btn3_Click(object sender, EventArgs e)
{
TeclaPresionada("3");
}
private void btn4_Click(object sender, EventArgs e)
{
TeclaPresionada("4");
}
private void btn5_Click(object sender, EventArgs e)
{
TeclaPresionada("5");
}
private void btn6_Click(object sender, EventArgs e)
{
TeclaPresionada("6");
}
private void btn7_Click(object sender, EventArgs e)
{
TeclaPresionada("7");
}
private void btn8_Click(object sender, EventArgs e)
{
TeclaPresionada("8");
}
private void btn9_Click(object sender, EventArgs e)
{
TeclaPresionada("9");
}
private void btn0_Click(object sender, EventArgs e)
{
TeclaPresionada("0");
}
private void btnPunto_Click(object sender, EventArgs e)
{
TeclaPresionada(".");
}
private void btnEnter_Click(object sender, EventArgs e)
{
TeclaPresionada("Enter");
}
private void btnCorregir_Click(object sender, EventArgs e)
{
TeclaPresionada("-1");
}
private void btnSalir_Click(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.None;
this.Close();
}
private void txtPropina_KeyUp(object sender, KeyEventArgs e)
{
// If IsNumeric(txtPropina.Text) OrElse txtPropina.Text.Trim = "" Then
// Total = txtTotal.Text.ToDouble + Propina
// Resta = Total - Pagado
// txtTotalFinal.Text = FormatCurrency(Total, 2)
// txtResta.Text = FormatCurrency(Resta, 2)
// txtImporte.Text = ImporteTMP + txtPropina.Text.ToDouble
// Else
// MessageBox.Show("Capture un dato numerico")
// End If
switch (e.KeyCode)
{
case var @case when @case == Keys.Enter:
{
if (!double.TryParse(txtPropina.Text, out _))
txtPropina.Focus();
else
AgregarMetodoPago();
break;
}
case var case1 when case1 == Keys.Up:
{
txtImporte.Focus();
break;
}
case var case2 when case2 == Keys.Escape:
{
Salir();
break;
}
default:
{
break;
}
// If txtImporte.Text.IndexOf("$") >= 0 Then
// txtImporte.Text = txtImporte.Text.Substring(0, 1)
// txtImporte.SelectionStart = 1
// End If
}
}
private void btnCxP_Click(object sender, EventArgs e)
{
FrmBuscarCliente cw = new FrmBuscarCliente();
cw.Closed += popup_BuscarCliente;
cw.Show();
}
private void txtImporte_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar != (char)Keys.Return & txtImporte.Text.IndexOf("$") >= 0)
{
txtImporte.Text = "";
}
}
private void txtCveMetodoPago_LostFocus(object sender, EventArgs e)
{
if (!int.TryParse(txtCveMetodoPago.Text, out _))
txtCveMetodoPago.Focus();
else
{
txtImporte.Focus();
//txtPropina.Visible = txtCveMetodoPago.Text.Trim() == "1" ? false : true;
//lblPropina.Visible = txtPropina.Visible;
}
}
private void txtImporte_LostFocus(object sender, EventArgs e)
{
if (!double.TryParse(txtImporte.Text, out _))
txtImporte.Focus();
}
private void btnBuscarCliente_Click(object sender, EventArgs e)
{
FrmBuscarCliente cw = new FrmBuscarCliente();
cw.Closed += popup_BuscarCliente;
cw.Show();
}
private void popup_BuscarCliente(object sender, EventArgs e)
{
FrmBuscarCliente lw = (FrmBuscarCliente)sender;
if (lw.DialogResult == System.Windows.Forms.DialogResult.OK)
{
int CveCliente = lw._cveCliente;
txtCliente.Text = lw._nombre;
var ObjVenta = new ClsVentas();
if (ObjVenta.UpdateCliente(CveCliente, CveVentaTerminal))
{
}
ObjVenta.Dispose();
}
}
private void btnPagar_Click(object sender, EventArgs e)
{
TerminarDePagar();
}
private void dgMetodosPago_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
}
private void dgMetodosPago_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
Resta = 0d;
Cambio = 0d;
Pagado = 0d;
SumarToTales();
double ImportePagadoTMP;
Cambio = 0d;
if (dgMetodosPago.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().ToDouble() >= txtResta.Text.ToDouble())
{
ImportePagadoTMP = txtResta.Text.ToDouble();
}
// Cambio = CDbl(dgMetodosPago.Rows(e.RowIndex).Cells(e.ColumnIndex).Value) - CDbl(txtResta.Text)
else
{
ImportePagadoTMP = dgMetodosPago.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().ToDouble();
}
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == txtCveMetodoPago.Text.ToEntero()))].Importe += ImportePagadoTMP;
this.ls[ls.IndexOf(ls.First((value) => value.CveMetodoPago == txtCveMetodoPago.Text.ToEntero()))].ImportePropina += txtPropina.Text.ToDouble();
if (dgMetodosPago.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().ToEntero() == 0)
{
dgMetodosPago.Rows[e.RowIndex].Cells[e.ColumnIndex + 1].Value = 0;
}
SumarToTales();
}
private void BtnAddPago_Click(object sender, EventArgs e)
{
double cantidad = 0;
double.TryParse(txtImporte.Text.Replace(",", "").Replace("$", "").Replace(" ", ""), out cantidad);
if (cantidad > 0)
{
AgregarMetodoPago();
}
else
{
MessageBox.Show("Ingrese un importe valido.");
}
}
}
}

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,229 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmProceso
{
/// <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.pnltitulo = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.iconPictureBox1 = new FontAwesome.Sharp.IconPictureBox();
this.TxtUsuario = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.lblpassword = new System.Windows.Forms.Label();
this.TxtPassword = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.pnltitulo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.iconPictureBox1)).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(261, 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(291, 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(321, 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.label2);
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(352, 30);
this.pnltitulo.TabIndex = 1;
this.pnltitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Open Sans", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.label2.Location = new System.Drawing.Point(10, 5);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(89, 22);
this.label2.TabIndex = 1;
this.label2.Text = "Autorizar";
//
// iconPictureBox1
//
this.iconPictureBox1.BackColor = System.Drawing.SystemColors.Control;
this.iconPictureBox1.ForeColor = System.Drawing.SystemColors.ControlText;
this.iconPictureBox1.IconChar = FontAwesome.Sharp.IconChar.UserCheck;
this.iconPictureBox1.IconColor = System.Drawing.SystemColors.ControlText;
this.iconPictureBox1.IconSize = 112;
this.iconPictureBox1.Location = new System.Drawing.Point(12, 55);
this.iconPictureBox1.Name = "iconPictureBox1";
this.iconPictureBox1.Size = new System.Drawing.Size(120, 112);
this.iconPictureBox1.TabIndex = 2;
this.iconPictureBox1.TabStop = false;
//
// TxtUsuario
//
this.TxtUsuario.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtUsuario.Location = new System.Drawing.Point(155, 75);
this.TxtUsuario.Name = "TxtUsuario";
this.TxtUsuario.Size = new System.Drawing.Size(166, 26);
this.TxtUsuario.TabIndex = 3;
this.TxtUsuario.KeyUp += new System.Windows.Forms.KeyEventHandler(this.TxtUsuario_KeyUp);
//
// label1
//
this.label1.AutoSize = true;
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(155, 55);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 19);
this.label1.TabIndex = 4;
this.label1.Text = "Autoriza";
//
// lblpassword
//
this.lblpassword.AutoSize = true;
this.lblpassword.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lblpassword.Location = new System.Drawing.Point(155, 110);
this.lblpassword.Name = "lblpassword";
this.lblpassword.Size = new System.Drawing.Size(86, 19);
this.lblpassword.TabIndex = 4;
this.lblpassword.Text = "Contraseña";
//
// TxtPassword
//
this.TxtPassword.Font = new System.Drawing.Font("Open Sans", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtPassword.Location = new System.Drawing.Point(155, 130);
this.TxtPassword.Name = "TxtPassword";
this.TxtPassword.Size = new System.Drawing.Size(166, 26);
this.TxtPassword.TabIndex = 3;
this.TxtPassword.KeyUp += new System.Windows.Forms.KeyEventHandler(this.TxtPassword_KeyUp);
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Enabled = false;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.button1.Location = new System.Drawing.Point(218, 178);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(103, 42);
this.button1.TabIndex = 12;
this.button1.Text = "Aceptar";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.BtnAceptar_Click);
//
// FrmProceso
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(352, 232);
this.ControlBox = false;
this.Controls.Add(this.button1);
this.Controls.Add(this.TxtPassword);
this.Controls.Add(this.lblpassword);
this.Controls.Add(this.label1);
this.Controls.Add(this.TxtUsuario);
this.Controls.Add(this.iconPictureBox1);
this.Controls.Add(this.pnltitulo);
this.Name = "FrmProceso";
this.ShowInTaskbar = false;
this.pnltitulo.ResumeLayout(false);
this.pnltitulo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.iconPictureBox1)).EndInit();
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 pnltitulo;
private FontAwesome.Sharp.IconButton BtnMinimize;
private FontAwesome.Sharp.IconPictureBox iconPictureBox1;
private System.Windows.Forms.TextBox TxtUsuario;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lblpassword;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox TxtPassword;
}
}

View File

@@ -0,0 +1,177 @@
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 FrmProceso : FormBase
{
public int CveProceso { get { return CveProceso_; } }
public bool SolicitarBitacora { get { return SolicitarBitacora_; } }
public string ObservacionesBitacora { get { return ObservacionesBitacora_; } }
private int CveProceso_;
private bool SolicitarBitacora_;
private string ObservacionesBitacora_ = "";
public FrmProceso(int CveProceso__, bool SolicitarBitacora__)
{
InitializeComponent();
CveProceso_ = CveProceso__;
SolicitarBitacora_ = SolicitarBitacora__;
this.DialogResult = System.Windows.Forms.DialogResult.No;
}
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 BtnAceptar_Click(object sender, EventArgs e)
{
ValidarUsuario();
}
private void TxtPassword_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
{
bool continaur = true;
if (TxtPassword.Text.Length > 0)
{
continaur = false;
}
if (continaur && TxtUsuario.Text.Length > 0)
{
ValidarUsuario();
}
else
{
TxtUsuario.Focus();
}
break;
}
}
}
private void TxtUsuario_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
{
bool continaur = true;
if (TxtUsuario.Text.Length > 0)
{
continaur = false;
}
if (continaur && TxtPassword.Text.Length > 0)
{
ValidarUsuario();
}
else
{
TxtPassword.Focus();
}
break;
}
}
}
protected void ValidarUsuario()
{
var proxy = new WCF_PV.PuntoVentaClient(WCF_PV.PuntoVentaClient.EndpointConfiguration.basicHttpBinding_IPuntoVenta, ModVarsPV.Address);
try
{
WCF_PV.Usuario Usuario = proxy.ValidarUsuario(TxtUsuario.Text, TxtPassword.Text);
proxy = default;
if (Usuario is object && Usuario.CveUsuario > 0)
{
ValidarProceso(Usuario.CveUsuario);
}
else
{
ModExtensiones.OnError(Usuario is object ? Usuario.Nombre : "Usuario o Password Incorrecto", "Error", new Exception(), MessageBoxIcon.Error);
}
}
catch (Exception ex)
{
ModExtensiones.OnError(string.Format("No se pudo conectar a el Servidor WCF, {0}", ex.InnerException.Message), "Error", ex, MessageBoxIcon.Error);
}
this.Close();
}
protected void ValidarProceso(int CveUsuario)
{
using (ClsUsuariosProcesos objUsuariosProcesos = new ClsUsuariosProcesos())
{
bool Permitido = false;
if (objUsuariosProcesos.GetUsuariosProcesos(CveProceso, CveUsuario))
{
Permitido = objUsuariosProcesos.Permitir > 0;
}
if (Permitido == true & SolicitarBitacora == true)
{
using (FrmBitacora frmBitacora = new FrmBitacora())
{
DialogResult result = frmBitacora.ShowDialog();
if (result != System.Windows.Forms.DialogResult.OK)
{
Permitido = false;
}
else
{
ObservacionesBitacora_ = frmBitacora.ObservacionesBitacora;
if (string.IsNullOrEmpty(ObservacionesBitacora_.Trim())) { MessageBox.Show("Debe indicar una Observacion y/o Justificacion"); }
}
}
}
if (Permitido == true)
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
else
{
this.DialogResult = System.Windows.Forms.DialogResult.No;
}
}
this.Close();
}
}
}
internal partial class SurroundingClass
{
private void OK_Click(object sender, EventArgs 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,609 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmPuntoVenta
{
/// <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 dataGridViewCellStyle8 = 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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmPuntoVenta));
PanelBusqueda = new System.Windows.Forms.Panel();
btnDescuento = new FontAwesome.Sharp.IconButton();
btnBuscarProducto = new FontAwesome.Sharp.IconButton();
btnBuscarProductos = new FontAwesome.Sharp.IconButton();
Button5 = new FontAwesome.Sharp.IconButton();
txtProductoServicio = new System.Windows.Forms.TextBox();
Button4 = new FontAwesome.Sharp.IconButton();
Label1 = new System.Windows.Forms.Label();
Button3 = new FontAwesome.Sharp.IconButton();
TabTickets = new System.Windows.Forms.TabControl();
TabPage1 = new System.Windows.Forms.TabPage();
dgPS = new System.Windows.Forms.DataGridView();
CveVentaDetalleTerminal = new System.Windows.Forms.DataGridViewTextBoxColumn();
Cantidad = new System.Windows.Forms.DataGridViewTextBoxColumn();
Codigo = new System.Windows.Forms.DataGridViewTextBoxColumn();
Descripcion = new System.Windows.Forms.DataGridViewTextBoxColumn();
Precio = new System.Windows.Forms.DataGridViewTextBoxColumn();
Oferta = new System.Windows.Forms.DataGridViewTextBoxColumn();
Importe = new System.Windows.Forms.DataGridViewTextBoxColumn();
PanelTotales = new System.Windows.Forms.Panel();
Panel1 = new System.Windows.Forms.Panel();
lblTotal = new System.Windows.Forms.Label();
Panel5 = new System.Windows.Forms.Panel();
lblCambio = new System.Windows.Forms.Label();
btnCobrar = new FontAwesome.Sharp.IconButton();
lblPagoCon = new System.Windows.Forms.Label();
lblProductosAgregados = new System.Windows.Forms.Label();
lblTotalAnt = new System.Windows.Forms.Label();
lblTotalInfo = new System.Windows.Forms.Label();
Label3 = new System.Windows.Forms.Label();
Label2 = new System.Windows.Forms.Label();
Panel3 = new System.Windows.Forms.Panel();
PanelBusqueda.SuspendLayout();
TabTickets.SuspendLayout();
TabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dgPS).BeginInit();
PanelTotales.SuspendLayout();
Panel1.SuspendLayout();
Panel5.SuspendLayout();
Panel3.SuspendLayout();
SuspendLayout();
//
// PanelBusqueda
//
PanelBusqueda.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
PanelBusqueda.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
PanelBusqueda.Controls.Add(btnDescuento);
PanelBusqueda.Controls.Add(btnBuscarProducto);
PanelBusqueda.Controls.Add(btnBuscarProductos);
PanelBusqueda.Controls.Add(Button5);
PanelBusqueda.Controls.Add(txtProductoServicio);
PanelBusqueda.Controls.Add(Button4);
PanelBusqueda.Controls.Add(Label1);
PanelBusqueda.Controls.Add(Button3);
PanelBusqueda.Location = new System.Drawing.Point(0, 0);
PanelBusqueda.Name = "PanelBusqueda";
PanelBusqueda.Size = new System.Drawing.Size(1290, 47);
PanelBusqueda.TabIndex = 15;
//
// btnDescuento
//
btnDescuento.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
btnDescuento.BackColor = System.Drawing.SystemColors.Control;
btnDescuento.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnDescuento.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnDescuento.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnDescuento.IconChar = FontAwesome.Sharp.IconChar.Plus;
btnDescuento.IconColor = System.Drawing.Color.Black;
btnDescuento.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnDescuento.IconSize = 16;
btnDescuento.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
btnDescuento.Location = new System.Drawing.Point(1180, 7);
btnDescuento.Name = "btnDescuento";
btnDescuento.Rotation = 0D;
btnDescuento.Size = new System.Drawing.Size(97, 35);
btnDescuento.TabIndex = 15;
btnDescuento.Text = "Descuento";
btnDescuento.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnDescuento.UseVisualStyleBackColor = false;
btnDescuento.Visible = false;
btnDescuento.Click += btnDescuento_Click;
//
// btnBuscarProducto
//
btnBuscarProducto.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
btnBuscarProducto.BackColor = System.Drawing.SystemColors.Control;
btnBuscarProducto.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnBuscarProducto.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnBuscarProducto.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnBuscarProducto.IconChar = FontAwesome.Sharp.IconChar.CartPlus;
btnBuscarProducto.IconColor = System.Drawing.Color.Black;
btnBuscarProducto.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnBuscarProducto.IconSize = 20;
btnBuscarProducto.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
btnBuscarProducto.Location = new System.Drawing.Point(481, 5);
btnBuscarProducto.Name = "btnBuscarProducto";
btnBuscarProducto.Rotation = 0D;
btnBuscarProducto.Size = new System.Drawing.Size(153, 35);
btnBuscarProducto.TabIndex = 13;
btnBuscarProducto.Text = "ENTER - Agregar Producto";
btnBuscarProducto.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnBuscarProducto.UseVisualStyleBackColor = false;
btnBuscarProducto.Click += btnBuscarProducto_Click;
//
// btnBuscarProductos
//
btnBuscarProductos.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
btnBuscarProductos.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnBuscarProductos.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnBuscarProductos.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnBuscarProductos.IconChar = FontAwesome.Sharp.IconChar.Search;
btnBuscarProductos.IconColor = System.Drawing.Color.Black;
btnBuscarProductos.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnBuscarProductos.IconSize = 20;
btnBuscarProductos.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
btnBuscarProductos.Location = new System.Drawing.Point(640, 5);
btnBuscarProductos.Name = "btnBuscarProductos";
btnBuscarProductos.Rotation = 0D;
btnBuscarProductos.Size = new System.Drawing.Size(110, 35);
btnBuscarProductos.TabIndex = 13;
btnBuscarProductos.Text = "F10 - Buscar";
btnBuscarProductos.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnBuscarProductos.UseVisualStyleBackColor = false;
btnBuscarProductos.Click += btnBuscarProductos_Click;
//
// Button5
//
Button5.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
Button5.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
Button5.IconChar = FontAwesome.Sharp.IconChar.Trash;
Button5.IconColor = System.Drawing.Color.Black;
Button5.IconFont = FontAwesome.Sharp.IconFont.Auto;
Button5.IconSize = 16;
Button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
Button5.Location = new System.Drawing.Point(1095, 5);
Button5.Name = "Button5";
Button5.Rotation = 0D;
Button5.Size = new System.Drawing.Size(79, 35);
Button5.TabIndex = 15;
Button5.Text = "Eliminar";
Button5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
Button5.UseVisualStyleBackColor = false;
Button5.Visible = false;
//
// txtProductoServicio
//
txtProductoServicio.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
txtProductoServicio.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
txtProductoServicio.Location = new System.Drawing.Point(169, 5);
txtProductoServicio.Name = "txtProductoServicio";
txtProductoServicio.Size = new System.Drawing.Size(306, 30);
txtProductoServicio.TabIndex = 1;
txtProductoServicio.KeyUp += txtProductoServicio_KeyUp;
//
// Button4
//
Button4.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
Button4.BackColor = System.Drawing.SystemColors.Control;
Button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
Button4.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
Button4.IconChar = FontAwesome.Sharp.IconChar.Pause;
Button4.IconColor = System.Drawing.Color.Black;
Button4.IconFont = FontAwesome.Sharp.IconFont.Auto;
Button4.IconSize = 16;
Button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
Button4.Location = new System.Drawing.Point(979, 5);
Button4.Name = "Button4";
Button4.Rotation = 0D;
Button4.Size = new System.Drawing.Size(110, 35);
Button4.TabIndex = 14;
Button4.Text = "F6 - Pendiente";
Button4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
Button4.UseVisualStyleBackColor = false;
Button4.Visible = false;
//
// Label1
//
Label1.AutoSize = true;
Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Label1.Location = new System.Drawing.Point(12, 12);
Label1.Name = "Label1";
Label1.Size = new System.Drawing.Size(132, 20);
Label1.TabIndex = 0;
Label1.Text = "Código de Barras";
//
// Button3
//
Button3.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
Button3.BackColor = System.Drawing.SystemColors.Control;
Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
Button3.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
Button3.IconChar = FontAwesome.Sharp.IconChar.Boxes;
Button3.IconColor = System.Drawing.Color.Black;
Button3.IconFont = FontAwesome.Sharp.IconFont.Auto;
Button3.IconSize = 16;
Button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
Button3.Location = new System.Drawing.Point(870, 5);
Button3.Name = "Button3";
Button3.Rotation = 0D;
Button3.Size = new System.Drawing.Size(103, 35);
Button3.TabIndex = 13;
Button3.Text = "F5 - Cambiar";
Button3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
Button3.UseVisualStyleBackColor = false;
Button3.Visible = false;
//
// TabTickets
//
TabTickets.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
TabTickets.Controls.Add(TabPage1);
TabTickets.Location = new System.Drawing.Point(3, 0);
TabTickets.Name = "TabTickets";
TabTickets.SelectedIndex = 0;
TabTickets.Size = new System.Drawing.Size(1287, 474);
TabTickets.TabIndex = 16;
//
// TabPage1
//
TabPage1.Controls.Add(dgPS);
TabPage1.Location = new System.Drawing.Point(4, 24);
TabPage1.Name = "TabPage1";
TabPage1.Padding = new System.Windows.Forms.Padding(3);
TabPage1.Size = new System.Drawing.Size(1279, 446);
TabPage1.TabIndex = 0;
TabPage1.Text = "Ticket 1";
TabPage1.UseVisualStyleBackColor = true;
//
// dgPS
//
dgPS.AllowUserToAddRows = false;
dgPS.AllowUserToDeleteRows = false;
dgPS.AllowUserToResizeColumns = false;
dgPS.AllowUserToResizeRows = false;
dgPS.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
dgPS.BackgroundColor = System.Drawing.Color.LightGray;
dgPS.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
dgPS.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dgPS.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgPS.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { CveVentaDetalleTerminal, Cantidad, Codigo, Descripcion, Precio, Oferta, Importe });
dgPS.Location = new System.Drawing.Point(3, 3);
dgPS.Name = "dgPS";
dgPS.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
dgPS.RowHeadersDefaultCellStyle = dataGridViewCellStyle8;
dgPS.Size = new System.Drawing.Size(1273, 437);
dgPS.TabIndex = 0;
dgPS.CellClick += dgPS_CellClick;
//
// CveVentaDetalleTerminal
//
CveVentaDetalleTerminal.DataPropertyName = "CveVentaDetalleTerminal";
CveVentaDetalleTerminal.HeaderText = "CveVentaDetalleTerminal";
CveVentaDetalleTerminal.Name = "CveVentaDetalleTerminal";
CveVentaDetalleTerminal.ReadOnly = true;
CveVentaDetalleTerminal.Visible = false;
//
// Cantidad
//
Cantidad.DataPropertyName = "Cantidad";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(192, 255, 255);
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
Cantidad.DefaultCellStyle = dataGridViewCellStyle2;
Cantidad.HeaderText = "Cantidad";
Cantidad.MinimumWidth = 150;
Cantidad.Name = "Cantidad";
Cantidad.ReadOnly = true;
Cantidad.Resizable = System.Windows.Forms.DataGridViewTriState.False;
Cantidad.Width = 150;
//
// Codigo
//
Codigo.DataPropertyName = "Codigo";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Codigo.DefaultCellStyle = dataGridViewCellStyle3;
Codigo.HeaderText = "Código";
Codigo.MinimumWidth = 150;
Codigo.Name = "Codigo";
Codigo.ReadOnly = true;
Codigo.Resizable = System.Windows.Forms.DataGridViewTriState.False;
Codigo.Width = 150;
//
// Descripcion
//
Descripcion.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
Descripcion.DataPropertyName = "PS";
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
Descripcion.DefaultCellStyle = dataGridViewCellStyle4;
Descripcion.HeaderText = "Descripción";
Descripcion.Name = "Descripcion";
Descripcion.ReadOnly = true;
Descripcion.Resizable = System.Windows.Forms.DataGridViewTriState.False;
//
// Precio
//
Precio.DataPropertyName = "PU";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(192, 255, 255);
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle5.Format = "C";
Precio.DefaultCellStyle = dataGridViewCellStyle5;
Precio.HeaderText = "Precio";
Precio.MinimumWidth = 150;
Precio.Name = "Precio";
Precio.ReadOnly = true;
Precio.Resizable = System.Windows.Forms.DataGridViewTriState.False;
Precio.Width = 150;
//
// Oferta
//
Oferta.DataPropertyName = "PUOferta";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle6.Format = "C";
Oferta.DefaultCellStyle = dataGridViewCellStyle6;
Oferta.HeaderText = "Oferta";
Oferta.MinimumWidth = 150;
Oferta.Name = "Oferta";
Oferta.ReadOnly = true;
Oferta.Resizable = System.Windows.Forms.DataGridViewTriState.False;
Oferta.Width = 150;
//
// Importe
//
Importe.DataPropertyName = "Total";
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(192, 255, 255);
dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle7.Format = "C";
Importe.DefaultCellStyle = dataGridViewCellStyle7;
Importe.HeaderText = "Importe";
Importe.MinimumWidth = 180;
Importe.Name = "Importe";
Importe.ReadOnly = true;
Importe.Resizable = System.Windows.Forms.DataGridViewTriState.False;
Importe.Width = 180;
//
// PanelTotales
//
PanelTotales.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
PanelTotales.Controls.Add(Panel1);
PanelTotales.Controls.Add(Panel5);
PanelTotales.Location = new System.Drawing.Point(0, 531);
PanelTotales.Name = "PanelTotales";
PanelTotales.Size = new System.Drawing.Size(1290, 111);
PanelTotales.TabIndex = 17;
//
// Panel1
//
Panel1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
Panel1.Controls.Add(lblTotal);
Panel1.Location = new System.Drawing.Point(1045, 1);
Panel1.Name = "Panel1";
Panel1.Padding = new System.Windows.Forms.Padding(0, 10, 5, 0);
Panel1.Size = new System.Drawing.Size(245, 101);
Panel1.TabIndex = 19;
//
// lblTotal
//
lblTotal.AutoSize = true;
lblTotal.Dock = System.Windows.Forms.DockStyle.Right;
lblTotal.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
lblTotal.Location = new System.Drawing.Point(121, 10);
lblTotal.Name = "lblTotal";
lblTotal.Size = new System.Drawing.Size(119, 46);
lblTotal.TabIndex = 17;
lblTotal.Text = "$0.00";
lblTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// Panel5
//
Panel5.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
Panel5.Controls.Add(lblCambio);
Panel5.Controls.Add(btnCobrar);
Panel5.Controls.Add(lblPagoCon);
Panel5.Controls.Add(lblProductosAgregados);
Panel5.Controls.Add(lblTotalAnt);
Panel5.Controls.Add(lblTotalInfo);
Panel5.Controls.Add(Label3);
Panel5.Controls.Add(Label2);
Panel5.Location = new System.Drawing.Point(0, 1);
Panel5.Name = "Panel5";
Panel5.Size = new System.Drawing.Size(1039, 101);
Panel5.TabIndex = 16;
//
// lblCambio
//
lblCambio.AutoSize = true;
lblCambio.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
lblCambio.ForeColor = System.Drawing.Color.Blue;
lblCambio.Location = new System.Drawing.Point(261, 65);
lblCambio.Name = "lblCambio";
lblCambio.Size = new System.Drawing.Size(66, 25);
lblCambio.TabIndex = 5;
lblCambio.Text = "$0.00";
//
// btnCobrar
//
btnCobrar.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
btnCobrar.BackColor = System.Drawing.Color.Gainsboro;
btnCobrar.FlatAppearance.BorderSize = 0;
btnCobrar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnCobrar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
btnCobrar.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnCobrar.IconChar = FontAwesome.Sharp.IconChar.MoneyCheck;
btnCobrar.IconColor = System.Drawing.Color.Black;
btnCobrar.IconFont = FontAwesome.Sharp.IconFont.Auto;
btnCobrar.IconSize = 30;
btnCobrar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
btnCobrar.Location = new System.Drawing.Point(820, 19);
btnCobrar.Name = "btnCobrar";
btnCobrar.Rotation = 0D;
btnCobrar.Size = new System.Drawing.Size(219, 60);
btnCobrar.TabIndex = 16;
btnCobrar.Text = "F12 - Cobrar";
btnCobrar.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnCobrar.UseVisualStyleBackColor = false;
btnCobrar.Click += btnCobrar_Click;
//
// lblPagoCon
//
lblPagoCon.AutoSize = true;
lblPagoCon.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
lblPagoCon.ForeColor = System.Drawing.Color.Blue;
lblPagoCon.Location = new System.Drawing.Point(122, 65);
lblPagoCon.Name = "lblPagoCon";
lblPagoCon.Size = new System.Drawing.Size(66, 25);
lblPagoCon.TabIndex = 4;
lblPagoCon.Text = "$0.00";
//
// lblProductosAgregados
//
lblProductosAgregados.AutoSize = true;
lblProductosAgregados.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
lblProductosAgregados.Location = new System.Drawing.Point(13, 0);
lblProductosAgregados.Name = "lblProductosAgregados";
lblProductosAgregados.Size = new System.Drawing.Size(30, 31);
lblProductosAgregados.TabIndex = 0;
lblProductosAgregados.Text = "0";
lblProductosAgregados.Visible = false;
//
// lblTotalAnt
//
lblTotalAnt.AutoSize = true;
lblTotalAnt.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
lblTotalAnt.ForeColor = System.Drawing.Color.Blue;
lblTotalAnt.Location = new System.Drawing.Point(13, 65);
lblTotalAnt.Name = "lblTotalAnt";
lblTotalAnt.Size = new System.Drawing.Size(66, 25);
lblTotalAnt.TabIndex = 3;
lblTotalAnt.Text = "$0.00";
//
// lblTotalInfo
//
lblTotalInfo.AutoSize = true;
lblTotalInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
lblTotalInfo.Location = new System.Drawing.Point(13, 39);
lblTotalInfo.Name = "lblTotalInfo";
lblTotalInfo.Size = new System.Drawing.Size(68, 25);
lblTotalInfo.TabIndex = 0;
lblTotalInfo.Text = "Total:";
//
// Label3
//
Label3.AutoSize = true;
Label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
Label3.Location = new System.Drawing.Point(261, 39);
Label3.Name = "Label3";
Label3.Size = new System.Drawing.Size(93, 25);
Label3.TabIndex = 2;
Label3.Text = "Cambio:";
//
// Label2
//
Label2.AutoSize = true;
Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
Label2.Location = new System.Drawing.Point(122, 39);
Label2.Name = "Label2";
Label2.Size = new System.Drawing.Size(110, 25);
Label2.TabIndex = 1;
Label2.Text = "Pagó con:";
//
// Panel3
//
Panel3.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
Panel3.Controls.Add(TabTickets);
Panel3.Location = new System.Drawing.Point(0, 47);
Panel3.Name = "Panel3";
Panel3.Size = new System.Drawing.Size(1290, 478);
Panel3.TabIndex = 18;
//
// FrmPuntoVenta
//
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
ClientSize = new System.Drawing.Size(1290, 643);
Controls.Add(Panel3);
Controls.Add(PanelTotales);
Controls.Add(PanelBusqueda);
Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
Name = "FrmPuntoVenta";
ShowInTaskbar = false;
Text = "FrmPuntoVenta";
Load += frmPuntoVenta_Load;
PanelBusqueda.ResumeLayout(false);
PanelBusqueda.PerformLayout();
TabTickets.ResumeLayout(false);
TabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dgPS).EndInit();
PanelTotales.ResumeLayout(false);
Panel1.ResumeLayout(false);
Panel1.PerformLayout();
Panel5.ResumeLayout(false);
Panel5.PerformLayout();
Panel3.ResumeLayout(false);
ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel PanelBusqueda;
private FontAwesome.Sharp.IconButton btnBuscarProductos;
private System.Windows.Forms.TextBox txtProductoServicio;
private System.Windows.Forms.Label Label1;
private System.Windows.Forms.TabControl TabTickets;
private System.Windows.Forms.TabPage TabPage1;
private System.Windows.Forms.DataGridView dgPS;
private System.Windows.Forms.Panel PanelTotales;
private System.Windows.Forms.Panel Panel1;
private System.Windows.Forms.Label lblTotal;
private System.Windows.Forms.Panel Panel5;
private FontAwesome.Sharp.IconButton btnCobrar;
private FontAwesome.Sharp.IconButton Button5;
private FontAwesome.Sharp.IconButton Button4;
private FontAwesome.Sharp.IconButton Button3;
private System.Windows.Forms.Label lblProductosAgregados;
private System.Windows.Forms.Panel Panel4;
private System.Windows.Forms.Label lblCambio;
private System.Windows.Forms.Label lblPagoCon;
private System.Windows.Forms.Label lblTotalAnt;
private System.Windows.Forms.Label Label3;
private System.Windows.Forms.Label Label2;
private System.Windows.Forms.Label lblTotalInfo;
private System.Windows.Forms.Panel Panel3;
private FontAwesome.Sharp.IconButton btnBuscarProducto;
private FontAwesome.Sharp.IconButton btnDescuento;
private System.Windows.Forms.DataGridViewTextBoxColumn CveVentaDetalleTerminal;
private System.Windows.Forms.DataGridViewTextBoxColumn Cantidad;
private System.Windows.Forms.DataGridViewTextBoxColumn Codigo;
private System.Windows.Forms.DataGridViewTextBoxColumn Descripcion;
private System.Windows.Forms.DataGridViewTextBoxColumn Precio;
private System.Windows.Forms.DataGridViewTextBoxColumn Oferta;
private System.Windows.Forms.DataGridViewTextBoxColumn Importe;
}
}

View File

@@ -0,0 +1,492 @@
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 FrmPuntoVenta : FormBase
{
public int tCveVentaTerminal;
public int tCveEstatusFactura;
public System.Collections.ObjectModel.ObservableCollection<ClsVentas.ClsVentaDetalles> Articulos = new System.Collections.ObjectModel.ObservableCollection<ClsVentas.ClsVentaDetalles>();
public double SubTotal = 0d;
public double IVA = 0d;
public double Total = 0d;
public bool Imprimiendo = false;
public string NombreCliente;
public FrmPuntoVenta()
{
InitializeComponent();
}
private void frmPuntoVenta_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult opc = ModExtensiones.Alert("¿Desea salir de esta aplicación?", "Salir", MessageBoxButtons.YesNo);
if (opc == System.Windows.Forms.DialogResult.Yes)
{
Environment.Exit(0);
}
else
{
e.Cancel = true;
}
}
private void frmPuntoVenta_Resize(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
}
private void frmPuntoVenta_Load(object sender, EventArgs e)
{
// buscar si hay una venta pendiente
btnDescuento.Visible = true;
/*FIXME OIC
var objVenta = new ClsVentas();
if (objVenta.GetVentas(-1, 6, -1, "-1", ModVarsPV.CorteActual.CveCorteTerminal, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, EstatusVentaTerminal.Todas))
{
if (objVenta.DtResultados.Tabla.Rows.Count > 0)
{
tCveVentaTerminal = objVenta.DtResultados.Tabla.Rows[0]["CveVentaTerminal"].ToString().ToEntero();
CargaProductos(tCveVentaTerminal);
}
}
objVenta.Dispose();
*/
txtProductoServicio.Focus();
dgPS.AutoGenerateColumns = false;
}
private void btnBuscarProducto_Click(object sender, EventArgs e)
{
BuscarProducto(txtProductoServicio.Text, "-1", -1);
}
private void CargaProductos(int CveVentaTerminal)
{
var Venta = new ClsVentas();
if (Venta.GetVentasDetalle(CveVentaTerminal))
{
// dgPS.DataSource = ""
dgPS.AutoGenerateColumns = false;
dgPS.DataSource = Venta.DtResultados.Tabla;
if (dgPS.Rows.Count > 0)
{
dgPS.ClearSelection();
dgPS.Rows[dgPS.Rows.Count - 1].Selected = true;
}
double SubTotal, IVA, Total, Descuento;
tCveEstatusFactura = Venta.DtResultados.Tabla.Rows[0]["CveEstatusFactura"].ToString().ToEntero();
Descuento = Venta.DtResultados.Tabla.SUM("Descuento") + Math.Abs(Venta.DtResultados.Tabla.SUM("Importe", "Importe < 0"));
SubTotal = Venta.DtResultados.Tabla.SUM("Importe", "Importe > 0");
IVA = Venta.DtResultados.Tabla.SUM("ImporteIVA");
Total = SubTotal + IVA - Descuento;
Venta.UpdateVenta(SubTotal, Descuento, IVA, Total, -1, -1, tCveVentaTerminal);
// Agregarlo a los totales
lblTotal.Text = Total.ToString("C");
txtProductoServicio.Text = "";
}
Venta.Dispose();
}
public void BuscarProducto(string Codigo, string PS, int CvePS)
{
if (!string.IsNullOrEmpty(Codigo.Trim()))
{
var objPS = new ClsProductosServicios();
int Cantidad = 1;
if (Codigo.Split("*").Length == 2)
{
if(!int.TryParse(Codigo.Split("*")[0], out Cantidad))
{
Cantidad = 1;
}
Codigo = Codigo.Split("*")[1];
}
if (objPS.GetPS(CvePS, -1, Codigo, PS))
{
if (objPS.DtResultados.Tabla.Rows.Count >= 1)
{
// Ingresar la Venta si es el primer producto que se ingresa
var objVenta = new ClsVentas();
bool Errores = false;
// objVenta.IniciaTransacSQL()
if (tCveVentaTerminal == 0)
{
if (objVenta.AddVenta("Rem", 0, ModVarsPV.CveClientePG, 0, 0, 0, 0, 1, 0, 0, DateTime .Now, "", "", 6, UsuarioActual.CveVendedor, ModVarsPV.CorteActual.CveCorteTerminal, -1, 0, "0", UsuarioActual.CveUsuario, UsuarioActual.CveSucursal, UsuarioActual.CveEmpresa))
{
tCveVentaTerminal = objVenta.CveVentaTerminal;
tCveEstatusFactura = 6;
}
else
{
Errores = true;
}
}
if (Errores == false)
{
objPS.IVA = objPS.IVA == -1 ? ModVarsPV.IVAClientePG : objPS.IVA;
decimal IVAVentaDetalle = (Cantidad * objPS.Precio * objPS.IVA);
double total = (Cantidad * objPS.Precio + IVAVentaDetalle).ToString().ToDouble();
// If objVenta.AddVentaDetalle(tCveVentaTerminal, objPS.CvePS, Cantidad, objPS.CveUnidadMedida, objPS.Precio, IVAVentaDetalle, (Cantidad * objPS.Precio) + IVAVentaDetalle, "", 0, 0, 0, objPS.IVA) Then
if (objVenta.AddVentaDetalle(tCveVentaTerminal, objPS.CvePS, Cantidad, objPS.CveUnidadMedida, objPS.Precio.ToString().ToDouble(), objPS.IVA.ToString().ToDouble(), total, "", 0, 0, 0, objPS.IVA.ToString().ToDouble()))
{
}
else
{
Errores = true;
}
}
if (Errores == false)
{
// objVenta.Commit()
CargaProductos(tCveVentaTerminal);
}
else
{
// objVenta.RollBack()
}
objVenta.Dispose();
}
else
{
MessageBox.Show("No se encontro el Producto o Servicio");
}
}
else
{
MessageBox.Show("Error al buscar el Producto o Servicio");
}
}
txtProductoServicio.Focus();
}
public void AddPS(int CvePS, int CveUnidadMedida, string Codigo, string PS, double PU, double Oferta, double IVA)
{
var Articulo = new ClsVentas.ClsVentaDetalles();
Articulo.CvePS = CvePS;
Articulo.CveUnidadMedida = CveUnidadMedida;
Articulo.Cantidad = 1;
Articulo.Codigo = Codigo;
Articulo.PS = PS;
Articulo.PU = PU;
Articulo.Oferta = Oferta;
if (Articulo.Oferta == 0)
{
Articulo.PrecioFinal = Articulo.PU;
}
else
{
Articulo.PrecioFinal = Articulo.Oferta;
}
Articulo.Descuento = (Articulo.PU - Articulo.PrecioFinal) * Articulo.Cantidad;
Articulo.IVA = IVA;
Articulo.Observaciones = "";
Articulo.CveSubProyecto = -1;
if (Articulo.IVA > 0)
{
Articulo.TotalIVA = Articulo.PrecioFinal * Articulo.Cantidad * Articulo.IVA;
}
// Ultimo Producto Agregado
// lblProductoServicio.Text = String.Format("{0}, {1}", .PS, .PrecioFinal.ToString("C"))
Articulo.Total = Articulo.PrecioFinal * Articulo.Cantidad + Articulo.TotalIVA;
bool ProductoYaAgregado = false;
// PENDIENTE - Verificar en la lista de los articulos ya agregados, si ya se habian agregado del mismo articulo
if (Articulos.Count > 0)
{
if (Articulos[Articulos.Count - 1].Codigo == txtProductoServicio.Text.Trim())
{
ProductoYaAgregado = true;
}
}
if (ProductoYaAgregado == false)
{
Articulos.Add(Articulo);
}
else
{
{
var withBlock = Articulos[Articulos.Count - 1];
withBlock.Cantidad = withBlock.Cantidad + Articulo.Cantidad;
if (withBlock.IVA > 0)
{
withBlock.TotalIVA = withBlock.PrecioFinal * withBlock.Cantidad * withBlock.IVA;
}
withBlock.Total = withBlock.PrecioFinal * withBlock.Cantidad + withBlock.TotalIVA;
withBlock.Descuento = (withBlock.PU - withBlock.PrecioFinal) * withBlock.Cantidad;
}
}
// Actualizar DataGrid
dgPS.DataSource = "";
dgPS.DataSource = Articulos;
dgPS.ClearSelection();
dgPS.Rows[dgPS.Rows.Count - 1].Selected = true;
// Agregarlo a los totales
SumarToTales();
txtProductoServicio.Text = "";
// dgArticulos.RowDetailsVisibilityMode = DataGridRowDetailsVisibilityMode.Visible
// dgArticulos.SelectedIndex = Articulos.Count - 1
// dgArticulos.GridLinesVisibility = DataGridGridLinesVisibility.None
// dgArticulos.VerticalContentAlignment = Windows.VerticalAlignment.Bottom
// 'dgArticulos.ScrollToEnd(ScrollMode.Vertical)
// dgArticulos.VerticalScrollBarVisibility = ScrollBarVisibility.Disabled
// dgArticulos.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled
}
protected void SumarToTales()
{
SubTotal = 0d;
IVA = 0d;
Total = 0d;
double Descuento = 0;
foreach (ClsVentas.ClsVentaDetalles Articulo in Articulos)
{
SubTotal = SubTotal + Articulo.Total - Articulo.TotalIVA;
IVA = IVA + Articulo.TotalIVA;
Total = Total + Articulo.Total;
Descuento = Descuento + Articulo.Descuento;
if (Articulo.PU != Articulo.Oferta)
{
}
}
lblTotal.Text = Total.ToString("C");
}
private void btnCobrar_Click(object sender, EventArgs e)
{
var NewMDIChild = new FrmMetodoPago(lblTotal.Text.ToDouble(), tCveVentaTerminal, tCveEstatusFactura, "PUBLICO EN GENERAL", false); // <----- aqui pudes cambiar la forma
// Establece la forma
if (NewMDIChild.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
lblTotalAnt.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", NewMDIChild.Total );
lblPagoCon.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", NewMDIChild.Pagado );
lblCambio.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", NewMDIChild.Cambio );
FinalizarVenta(NewMDIChild.MetodosPago);
}
else
{
txtProductoServicio.Focus();
}
}
private void FinalizarVenta(System.Collections.ObjectModel.ObservableCollection<ClsMetodosPago.ClsMetodosPagoModel> MetodoPago)
{
var objVentas = new ClsVentas();
bool ErrorDetalles = false;
bool ErrorPago = false;
double SubTotal, IVA, Descuento, Total;
// objVentas.IniciaTransacSQL()
DataTable dtDetalle = default;
if (objVentas.GetVentasDetalle(tCveVentaTerminal))
{
dtDetalle = objVentas.DtResultados.Tabla;
SubTotal = dtDetalle.SUM("Importe");
IVA = dtDetalle.SUM("ImporteIVA");
Descuento = dtDetalle.SUM("Descuento");
Total = SubTotal - Descuento + IVA;
}
// Se agregan los Pagos
foreach (ClsMetodosPago.ClsMetodosPagoModel Row in MetodoPago)
{
if (Row.Importe > 0)
{
if (!objVentas.AddVta_VentasPago(tCveVentaTerminal, Row.CveMetodoPago, Row.Importe, 0))
{
ErrorDetalles = true;
}
}
}
if (ErrorDetalles == false)
{
if (!objVentas.UpdateVenta(-1, -1, -1, -1, -1, 2, tCveVentaTerminal))
{
ErrorDetalles = true;
}
}
if (ErrorDetalles)
{
// objVentas.RollBack()
ModExtensiones.OnError("Error al registrar el pago de la cuenta", "Error", new Exception(), MessageBoxIcon.Error);
}
else
{
// objVentas.Commit()
}
objVentas.Dispose();
var objImpresion = new ClsImpresion(UsuarioActual);
objImpresion.Imprimir(tCveVentaTerminal, TipoImpresion.Venta, ModVarsPV.TamanoTicketConfigurado);
objImpresion.Dispose();
BorrarPantalla();
}
protected void BorrarPantalla()
{
Articulos.Clear();
dgPS.DataSource = "";
// lblProductoServicio.Text = ""
txtProductoServicio.Focus();
// txtSubTotal.Text = "0"
// txtIVA.Text = "0"
lblTotal.Text = String.Format(new System.Globalization.CultureInfo("es-MX"), "{0:C2}", 0);
// txtDescuento.Text = "0"
tCveVentaTerminal = 0;
tCveEstatusFactura = 0;
Imprimiendo = false;
}
private void txtProductoServicio_KeyUp(object sender, KeyEventArgs e)
{
int indiceDeseado;
switch (e.KeyCode)
{
case var @case when @case == Keys.Enter:
{
btnBuscarProducto_Click(sender, e);
break;
}
case var case1 when case1 == Keys.F7:
{
break;
}
case var case2 when case2 == Keys.F10:
{
AbrirBuscarProducto();
break;
}
case var case3 when case3 == Keys.F12:
{
btnCobrar_Click(sender, e);
break;
}
case var case4 when case4 == Keys.Down:
{
if (dgPS.SelectedRows[0].Index + 1 <= dgPS.Rows.Count - 1)
{
indiceDeseado = dgPS.SelectedRows[0].Index + 1;
dgPS.ClearSelection();
dgPS.Rows[indiceDeseado].Selected = true;
}
break;
}
case var case5 when case5 == Keys.Up:
{
if (dgPS.SelectedRows[0].Index - 1 >= 0)
{
indiceDeseado = dgPS.SelectedRows[0].Index - 1;
dgPS.ClearSelection();
dgPS.Rows[indiceDeseado].Selected = true;
}
break;
}
case var case6 when case6 == Keys.Delete:
{
if (dgPS.SelectedRows.Count > 0 && dgPS.SelectedRows[0].Index >= 0)
{
indiceDeseado = dgPS.SelectedRows[0].Index;
int CveVentaDetalleTerminalEliminar = dgPS.Rows[indiceDeseado].Cells["CveVentaDetalleTerminal"].Value.ToString().ToEntero();
dgPS.DataSource = null;
var objVentas = new ClsVentas();
if (objVentas.DeleteVentaDetalle(CveVentaDetalleTerminalEliminar, tCveVentaTerminal))
{
CargaProductos(tCveVentaTerminal);
}
dgPS.ClearSelection();
if (dgPS.Rows.Count > 0)
{
dgPS.Rows[indiceDeseado > dgPS.Rows.Count - 1 ? dgPS.Rows.Count - 1 : indiceDeseado].Selected = true;
}
// dgPS.DataSource = Articulos
}
break;
}
}
}
protected void AbrirBuscarProducto()
{
var NewMDIChild = new FrmBuscarProducto();
// Aqui muestra la Forma.
//NewMDIChild.Show();
switch (NewMDIChild.ShowDialog())
{
case System.Windows.Forms.DialogResult.OK:
{
BuscarProducto("-1", "-1", NewMDIChild.CvePSSeleccionado);
break;
}
case System.Windows.Forms.DialogResult.None:
{
break;
}
default:
{
break;
}
}
}
private void btnBuscarProductos_Click(object sender, EventArgs e)
{
AbrirBuscarProducto();
}
private void dgPS_CellClick(object sender, DataGridViewCellEventArgs e)
{
dgPS.ClearSelection();
dgPS.Rows[e.RowIndex].Selected = true;
txtProductoServicio.Focus();
}
private void btnDescuento_Click(object sender, EventArgs e)
{
dgPS.Columns[5].ReadOnly = false;
dgPS.Focus();
}
}
}

View File

@@ -0,0 +1,914 @@
<?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.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAXXsAAAEAIACouAAAFgAAACgAAABdAAAA9gAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/Pz8AP//
/wCrq6sTysrKCurq6gD6+voA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A9fX1AKysrU1dXV7DVlZWyHV1da6goKBsxMTEMeTk5AD29vYA////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD9/f0A4uHiAHZ3erlSUlTrKiot7RAQEPEjIyP1SkpK+XJycs+bm5uFv7+/Qd/f
3wT19fUA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD29vYAs7OzVVxcYO9WVlj5TU1O+icoKP0GBgb/BwcH/xAQ
EP8qKir/TU1N/25ubtmXl5eNwcHBPdzc3Ajy8vIA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP39/QDo6OkAgYKFtlhbXP5UVVf/VFRX/0tL
TP8pKSn/BgYG/wcHB/8ODg7/EhIS/xgYGP8uLi7/UlJS/3JyctGWlpaMuLi4S9fX1xHv7+8A/Pz8AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APn5+QDAwMM9ZGRn7FdZ
W/9VVVf/UlJV/1FRU/9OT1D/KCgp/wUFBf8JCQn/Dg4O/xISEv8ZGRn/HBwc/yIiIv8zMzP/UFBQ/3Fx
cdWTk5OTvb29Q/Hx8QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+AO3t
7QCQkZGYXl9i/1ZXWv9UVVf/UVJV/09PUP9RUlT/UlJS/yYmJv8FBQX/CgoK/xEREf8TExP/Ghoa/xwc
HP8jIyP/KSkp/y0tLf85OTn/W1tb+6+vr1/4+PgA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A+vr6AM3N0CZsbG/dXV5f/1ZXWv9UVVf/UlNV/05OT/9MTE3/VFRW/1ZXV/8fHx//BQUF/woK
Cv8RERH/FBQU/xoaGv8eHh7/IyMj/ygoKP8sLCz/NTU1/1paWvu6urpI+vr6AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A8vLyAJ2eoIFgYGP/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/SUlK/1pa
W/9aWlr/FBQU/wQEBP8NDQ3/ERER/xYWFv8aGhr/ICAg/yMjI/8pKSn/LCws/zY2Nv9hYWHww8PDOfz8
/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD8/PwA1tbXE3V2ec5fYGP/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/RkZJ/0ZJSf9lZWX/VlZW/wwMDP8GBgb/DQ0N/xEREf8WFhb/Gxsb/yEhIf8kJCT/Kioq/y0t
Lf84ODj/ampq4dDQ0B7///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDz8/MAqamra2Rma/9fX2L/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dJ/0RERv9KSkv/bXBw/0xMTP8GBgb/BwcH/w4ODv8SEhL/GBgY/xsb
G/8hISH/JCQk/yoqKv8tLS3/OTk5/3d3d8ra2toL////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP39/QDg4OAAfH5/vmNl
aP9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQEH/TU1N/2dnZ/8mJif/BQUF/wkJ
Cf8ODg7/ExMT/xkZGf8cHBz/IiIi/yYmJv8rKyv/Li4u/z4+Pv+AgIC34ODgAP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APf3
9wC4uLpMamps4WFkZ/9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/PT4//0lK
Sv8+Pz//BgYG/wUFBf8HBwf/Dg4O/xMTE/8aGhr/Hh4e/yMjI/8nJyf/LCws/zAwMP9AQED/jIyMoO3t
7QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f39AOHh4gCAgYS3Z2dq/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VF
Rf9BQkL/PT4+/zk8PP85OTn/Pj4+/zU1Nf8kJCT/GRkZ/xMTE/8SEhL/FhYW/xsbG/8hISH/JiYm/yws
LP8wMDD/QEBA/4+Pj5zp6ekA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A9/f3ALi4ukxsbnPdZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0VFRf9BQkL/PT4+/zk7O/9OT0//cHBw/3BwcP9paWn/Xl5e/1FRUf9ERET/NTU1/yoq
Kv8jIyP/IiIi/yQkJP8qKir/Li4u/05OTv+Xl5eN7+/vAP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD+/v4A6enqAImJjKdqa3H/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQkL/Pj4+/0ZGRv98fHz/e3t7/3l5ef93d3f/d3d3/3h4
eP91dXX/bm5u/2ZmZv9cXFz/Tk5O/0JCQv84ODj/NDQ0/zQ0NP9QUFD/oaGhevb29gD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD4+PoAw8TEOXFydtVnaG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/QEBB/3Z2d/+Ojo7/d3d3/3d3
d/9bW1v/NjY2/0RERP9dXV3/bW1t/3d3d/94eHj/eHh4/3Jycv9ra2v/ZGRk/1lZWf9SUlL/aWlp4bi4
uEz7+/sA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDu7+0Ak5OWlG5w
cv9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf8/QEH/VlZY/5+f
n/9/fn7/eHh4/2xsbP88PDz/IyMj/xEREf8TExP/JiYm/zk5Of9NTU3/YGBg/3BwcP95eXn/eXl5/3h4
eP90dHT/eHh4/6Ojo3b29vYA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8
/ADMzMwmd3d8ymxtcP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0RE
RP9FRUf/hoaI/5aWlv93d3f/d3d3/1VVVf8uLi7/LS0t/yQkJP8KCgr/BQUF/w0NDf8YGBj/IyMj/zEx
Mf9DQ0P/VFRU/2dnZ/90dHT/iIiI/8bGxjH8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APr6+gCsrK5ncHN2/2xscf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dJ/0RERv9bXFz/n5+f/35+fv92dnb/aWlp/zs7O/8tLS3/MTEx/zMzM/8uLi7/CQkJ/wUF
Bf8KCgr/Dg4O/xYWFv8cHBz/JCQk/zIyMv8/Pz//XV1d/5+fn37R0dEe7OzsAPv7+wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APz8/ADJyckueHl/xmxucP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/RkZI/0dJTP+FhYX/j4+P/3Z2dv91dXX/T09P/zExMf8wMDD/MDAw/zEx
Mf87Ozv/NTU1/wYGBv8GBgb/CwsL/xEREf8TExP/Ghoa/x8fH/8kJCT/MDAw/0VFRf9aWlr7c3Nz0aGh
oXrn5+cA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDv7+8AoqKodm5wcv9naG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9LS07/R0dH/15eX/+XmJr/e3t7/3d3d/9nZ2f/OTk5/zAw
MP8wMDD/MDAw/zAwMP8zMzP/SUlJ/zY2Nv8EBAT/BwcH/w0NDf8RERH/FxcX/xsbG/8gICD/JCQk/ykp
Kf8uLi7/Nzc3/1JSUv+VlZWR8PDwAP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+vv8AP38/AD8/PwA3t7eBIWF
if9qanL/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9LS0z/S0xN/4CBgv+JiYn/eHh4/3R0
dP9OTk7/MzMz/y8yMv8wMDD/MDAw/zAwMP8wMDD/ODg4/1NTU/8zMzP/BAQE/wcHB/8NDQ3/ERER/xcX
F/8bGxv/ICAg/yQkJP8qKir/Li4u/zU1Nf9SUlL/o6OjdvT09AD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD5+/8Ao8v7cr7I
10Hi394E7OzsAMDAv/9yc3f/Zmdp/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05PUP9MTE3/YGFi/4+P
j/96enr/eHh4/2VlZ/88PDz/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/z8/P/9iYmL/LS0t/wMD
A/8HBwf/EBAQ/xMTE/8ZGRn/Hh4e/yIiIv8nJyf/Kysr/zAwMP84ODj/WVlZ/62trWP5+fkA////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP7/
/wDZ6v8LO5j//2+i4v+1s6//u7m5/7y8vP+Fhor/ZGRo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9QUFL/fX1+/4SEhP93d3f/dHR0/01OTv81NTf/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP9LS0v/bW1t/xsbG/8EBAT/CgoK/xAQEP8UFBT/GRkZ/x4eHv8iIiL/Jycn/ysrK/8xMTH/ODg4/2Bg
YPS8vLxF/Pz8AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APn8/wCWx/+JBIf//ymL+f+To7v/qaWj/6utrf+ZmZv/bW5u/19gZv9fX2L/XF1g/1ZX
Wv9UVVf/UVJV/09QUP9fX2P/h4eH/3l6eP92dnb/YWFh/z09Pf83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8yMjL/W1tb/3BwcP8ODg7/BAQE/wwMDP8RERH/FhYW/xoaGv8fHx//IyMj/ygo
KP8tLS3/MjIy/zs7O/9oaGjkxMTENf7+/gD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A/v7/AOPw/wBEnv//AIX//wSC//9bmOX/qamq/6ajov+hoaH/iIiK/2Jj
Z/9eX1//XF1g/1ZXWv9VVVf/UVJU/1JTU/93d3f/f39//3h4eP9xcnL/S0tM/zg7O/83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/NjY2/3Jycv9qamr/BQUF/wYGBv8MDAz/ERER/xcX
F/8bGxv/ICAg/yQkJP8pKSn/LS0t/zIyMv8+Pj7/cnJy0dLS0hv///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+vz/AKrT/2cSiv//AYP//wCB//8oif3/jKjO/6mn
n/+jo6X/n52d/3l5fP9cXWD/XF1g/1ZXWv9VVVf/UVFW/19gYf9/f3//eXl5/3d3d/9hYWH/Pj4//zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/0BAQP+Dg4P/VlZW/wQE
BP8JCQn/DQ0N/xISEv8XFxf/Gxsb/yAgIP8kJCT/KSkp/y0tLf8yMjL/QUFB/39/f7rd3d0I////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A7fb/AFip//cAh///AYP//wKB
//8Gg///TZf1/6iwuf+loqH/paWl/5WVlf9oaWv/Wltc/1dZW/9UVVf/VFRW/3Fwcv98fHz/eHh4/29x
cf9MTEz/PT09/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4u
Lv9MTEz/f39//ykpKf8EBAT/CQkJ/w0NDf8SEhL/FxcX/xsbG/8gICD/JiYm/yoqKv8uLi7/MzMz/0ZG
Rv+Hh4er4+PjAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD7/f8At9j/TBqN
//8Ahf//AYP//wKB//8Agf//Gob//32q5v+vraj/o6Gh/6Kiov+Ghon/XV5f/1ZWWf9UVFn/X19i/3l5
ef95eXn/d3d3/15eX/9AQUP/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/UFBQ/1NTU/8NDQ3/BQUF/wsLC/8NDQ3/FBQU/xkZGf8eHh7/IiIi/ycn
J/8rKyv/MDAw/zU1Nf9LS0v/kpKSlOzs7AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wDx9/8AZrH/4QCI//8BhP//AYP//wKC//8DgP//A3///z2S//+ots7/qKWg/6Ojo/+dnJ7/dHR3/1VW
Vv9VVVr/ampq/3l5ef94eHj/bW1v/0xNTf9AQUH/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MjIy/0VFRf8rKyv/BAQE/wYGBv8LCwv/ERER/xYW
Fv8aGhr/Hh4e/yMjI/8nJyf/Kysr/zAwMP83Nzf/UFBQ/56enn709PQA////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APz9/wDH4/8uI5H//wCH//8BhP//AYP//wKC//8DgP//A3///xOC//9vp/T/tra1/6Gh
of+jo6P/lJOV/2RkaP9bW1v/c3Nz/3l5ef93dnb/XF1d/0NDRv9BQUH/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zMzM/8sLCz/BwcH/wMD
A/8FBQX/CQkJ/w0NDf8TExP/GRkZ/x4eHv8jIyP/KCgo/y0tLf8yMjL/OTk5/1dXV/+srKxn+Pj4AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APj7/wB5uv++Aov//wCF//8BhP//AYP//wKC//8DgP//A3///wZ/
//8ri///oLvl/7Gtp/+hoaH/o6Gh/4iIiP9sbG//e3t7/3t7e/9vbW//TExN/0RERv9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8xMTH/Ozs7/zk5Of8wMDD/KSkp/yIiIv8eHh7/HBwc/xsbG/8fHx//ISEh/yYmJv8qKir/MDAw/zk5
Of9fX1/0s7OzWPz8/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A/f7+ANjs/w8wlv//AIn//wCF//8BhP//AYP//wKC
//8DgP//A3///wN///8Jff//WJ7+/7i/yv+mo6H/o6Wl/5+fn/+Wlpb/mJiY/5SUlP9kZWf/RUVF/0VF
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/zMzM/9XV1f/enp6/3Fxcf9tbW3/aWlp/2VlZf9gYGD/Wlpa/1JSUv9MTEz/RkZG/0FB
Qf89PT3/Ozs7/zk5Of9AQED/Z2dn5MHBwT37+/sA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+Pv/AJTI/40Gjf//AIf//wCF
//8BhP//AYP//wKC//8DgP//Bn///wN///8Cff//G4P//3+t8v+wsLD/pKKh/6Ojo/+jo6P/o6Oj/4yM
jP9SUlX/RUVK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/LS0t/1RUVP+Tk5P/goKC/3l5ef96enr/enp6/3p6ev94eHj/eHh4/3V1
df90dHT/cnJy/3BwcP9ra2v/aWlp/2VlZf9jY2P/ZWVl/5SUlJHu7u4A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD+/v8A4O//AD+f
//8Aif//AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ///8Eff//B3z//yyI//+CodP/paWg/6Oj
o/+ioqL/n5+f/2xtb/9JSUr/R0dK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8tLS3/ODg4/5mZmf+cnJz/d3d3/3l5ef93d3f/cHBw/2tr
a/90dHT/eHh4/3x8fP98fHz/fHx8/3t7e/97e3v/eXl5/3h4eP93d3f/gICAt7CwsF/29vYA////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD5/P8Aoc//dgiO//8AiP//AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ///8Eff//BXz//wh7
//84hfL/m6Gx/6mopf+pqan/paWl/3d3d/9JSUr/RkdK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/aWlp/7S0tP+AgID/dnZ2/3h4
eP9sbGz/QUFB/yMjI/8pKSn/ODg4/0ZGRv9SUlL/Xl5e/2dnZ/9tbW3/dHR0/3l5ef99fX3/m5ubhePj
4wD+/v4A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDo9P8ATqX//wCM//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wZ/
//8Hff//BXz//wZ6//9FjPH/p6uz/7Gxr/+xsbH/tLS0/6Wlpf9fX2D/REVH/0VFRf9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9JSUn/s7Oz/5OT
k/91dXX/eXl5/3R0dP9SUlL/LS0t/xoaGv8GBgb/BgYG/wwMDP8WFhb/ICAg/ygoKP8zMzP/PT09/0ZG
Rv9XV1f/goKCs8HBwT3V1dUX6OjoAPLy8gD8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APr8/wCt1v9fF5H//wCJ//8Ah///AIf//wCF//8BhP//AYP//wKC
//8DgP//Bn///wZ///8Efv//Bnv//yuH//+RrNj/s7Gw/7O0tP+3t7f/urq6/7u7u/+SkpL/S0tM/0JC
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zU1
Nf+QkJD/s7Oz/3h4eP95eXn/d3d3/2FhYf83Nzf/Li4u/ywsLP8hISH/CQkJ/wQEBP8GBgb/DAwM/xIS
Ev8XFxf/HBwc/yMjI/8rKyv/PT09/09PT/9bW1v7a2tr3X9/f7qnp6du7u7uAP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APf7/wB+wP+zAI7//wCJ//8Ah///AIf//wCF
//8BhP//AYP//wKC//8DgP//Bn///wZ///8Efv//Dn7//3Sr9/+4urz/sbGx/7S0tP+5ubn/u7u7/76+
vv+4uLj/d3Z3/0BBQ/9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8uLi7/Li4u/19fX/+3t7f/hoaG/3Z2dv95eXn/bW1t/0RERP8tLS3/MDAw/zIyMv81NTX/LS0t/wsL
C/8EBAT/CQkJ/w0NDf8SEhL/FxcX/xsbG/8gICD/JiYm/yoqKv8tLS3/Nzc3/z8/P/9aWlr7oaGhevX1
9QD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APv9/wC22/9QGJP//wCK
//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wN///8Hff//PpH//7bE2v+1s7H/srOz/7a2
tv+5ubn/vLy8/8DAwP/Dw8P/rKyt/1tcXP8+Pj//PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8tLS3/QEBA/5ycnP+ZmZn/dnZ2/3l5ef91dXX/VVVV/zAwMP8wMDD/MDAw/zAw
MP81NTX/QkJC/zY2Nv8JCQn/BAQE/woKCv8ODg7/ExMT/xgYGP8eHh7/IiIi/yYmJv8qKir/MDAw/zQ0
NP88PDz/XFxc97GxsVv7+/sA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8
+wDr8f4AZ7L/3QCM//8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//Bn///wR+//8Ugv//iLX2/8C+
vP+xsbH/tLS0/7m5uf+7u7v/vb29/8HBwf/ExMT/xcXF/5eXl/9EREb/PT09/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8yMjL/cnJy/6Wlpf97e3v/eHh4/3d3d/9iYmL/OTk5/y4u
Lv8wMDD/MDAw/zAwMP8xMTH/ODg4/1FRUf88PDz/BgYG/wUFBf8LCwv/EBAQ/xQUFP8ZGRn/Hx8f/yIi
Iv8nJyf/LCws/zExMf80NDT/PT09/2RkZOy8vLxF/Pz8AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD9/v8A1+r8D56xxH6tqqhrfJm3vgyH+v8Ah///AIf//wCF//8BhP//AYP//wKC//8DgP//A3///wh/
//9Alf//uMTV/7WzsP+zs7P/t7e3/7q6uv+8vLz/wcHB/8PDw//FxcX/ycnJ/8DAwP90dHX/OTk5/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9OTk7/nZ2d/4aGhv92dnb/eXl5/21t
bf9FRUX/Li4u/zAwMP8wMDD/MDAw/zAwMP8wMDD/MTEx/0RERP9jY2P/PDw8/wQEBP8GBgb/DAwM/xER
Ef8WFhb/Ghoa/x8fH/8kJCT/KSkp/ywsLP8xMTH/NjY2/z8/P/9qamrhx8fHMf7+/gD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD2+/8AfcL/t0qO1P9+enf/eHt8/zuBy/8AiP//AIf//wCF//8BhP//AYP//wKC
//8DgP//A3///xOC//+DsfL/vbq5/7Gxsf+0tLT/ubm5/7y8vP+9vb3/wcHB/8TExP/IyMj/ycnJ/87O
zv+wsLL/UlNT/zY2Nv83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/zc3N/+AgID/lJSU/3d3
d/95eXn/eHh4/1ZWVv8yMjL/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zQ0NP9SUlL/cXFx/zEx
Mf8DAwP/BwcH/wwMDP8RERH/FxcX/xoaGv8gICD/JCQk/ygoKP8sLCz/MjIy/zY2Nv9CQkL/dHR0ztLS
0hv///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP3+/wDN6P8iJJz//xWR/v9ofpb/dHFp/2Z4iv8XhPT/AIf//wCF
//8BhP//AYP//wKC//8DgP//AH7//0aW//+1vsn/s7Gw/7S0tP+4uLj/ubm5/729vf/BwcH/w8PD/8XF
xf/IyMj/y8vL/83Nzf/Pz8/+oqKj9kBCQvo0NTf/NDQ0/zExMf8wMDD/MDAw/zAwMP8uLi7/MjIy/2Nj
Y/+VlZX/eXl5/3l5ef94eHj/aWlp/zY2Nv8uLi7/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8zMzP/X19f/4aGhv8sLCz/AgIC/wkJCf8NDQ3/ERER/xcXF/8bGxv/ICAg/yQkJP8pKSn/LS0t/zIy
Mv82Njb/QEBA/3Nzc9HW1tYT////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APj7/wCBxP+vAJX//wCR//9NkNL/d3Rv/3Jx
cv9Gf7z/AIf//wCF//8BhP//AYP//wKC//8DgP//FIT//4Sv6v+5trL/s7Gx/7a2tv+5ubn/u7u7/76+
vv/BwcH/xMTE/8jIyP/Hx8f/ysrK/83Nzf/Q0NDsz9DQlIiIiK81Njb0NDQ0/zExMf8wMDD/MDAw/zAw
MP8uLi7/RUVF/4qKiv+BgYH/d3d3/3l5ef9zc3P/SUlJ/ywsLP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8tLS3/Ozs7/3l5ef+MjIz/HBwc/wMDA/8JCQn/Dg4O/xISEv8XFxf/HBwc/yAg
IP8kJCT/Kioq/y4uLv80NDT/Nzc3/0VFRf99fX2+4ODgAP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v//ANzu/wgvoP//AJL//wCR
//8llfv/d4me/3Jxaf9qd4n/HYPt/wCG//8BhP//AYP//wKB//8Agf//Q5T8/6+4xf+zsbH/tLS0/7i4
uP+5ubn/vLy8/8HBwf/Dw8P/xsbG/8jIyP/Jycn/y8vL/87Ozv7Q0NBz09PTCczNzRZgYGDAMzMz/TEx
Mf8wMDD/MDAw/zAwMP80NDT/bW1t/4aGhv93d3f/eXl5/3h4eP9aWlr/MTEx/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/Li4u/0VFRf+Tk5P/ioqK/wwMDP8EBAT/CgoK/xAQ
EP8SEhL/GRkZ/xwcHP8hISH/JCQk/ysrK/8uLi7/NDQ0/zc3N/9KSkr/iIiIp+np6QD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+fz/AJXP
/4kAl///AJD//wCQ//8Aj///XZzd/397d/9ycXH/TX2z/wCG//8AhP//AYP//wOA//8Vhv//gavi/7i0
sP+zsbH/tra2/7m5uf+8vLz/v7+//8HBwf/FxcX/ycnJ/8rKyv/Kysr/zc3N/9DQ0NnS0tIH1dXVAf//
/wC8vLwmQUFB5jIzM/4wMDD/MDAw/y4uLv9NTU3/g4OD/3p6ev95eXn/eHh4/2lpaf85OTn/LS0t/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP9TU1P/q6ur/39/
f/8EBAT/BQUF/woKCv8QEBD/FBQU/xkZGf8eHh7/IyMj/ycnJ/8sLCz/MDAw/zU1Nf85OTn/Tk5O/5OT
k5T19fUA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD+/v8A5PT/AD6n//8AlP//AJD//wCQ//8Ajv//LZr//4aXq/9ycGr/bXaB/yaB5f8Ahf//AYP//wCB
//89kvn/qrO+/7OxsP+1tbX/uLi4/7q6uv+9vb3/wcHB/8PDw//Gxsb/ycnJ/8vLy//MzMz/zs7O+9HR
0TLc3NwB1tbWAv///wD///8Ah4eHZTMzM+IwMDD+Li4u/zg4OP9tbW3/fX19/3d3d/95eXn/c3Nz/0pK
Sv8tLS3/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4u
Lv8yMjL/ampq/7y8vP9eXl7/AgIC/wYGBv8MDAz/ERER/xQUFP8aGhr/Hh4e/yMjI/8pKSn/LCws/zIy
Mv82Njb/Ozs7/1NTU/+8vLxF+fn5AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD5/P8An9T/egOW//8Akv//AJD//wCQ//8Ajv//AI///22n5v+Cf3v/cnFv/1N8
qf8BhP//AIP//weC//94o9v/trOx/7Ozs/+2trb/ubm5/7y8vP++vr7/wcHB/8TExP/IyMj/yMjI/8vL
y//Ozs7+0NDQv9TU1ATV1dUA3NzcAP///wD///8A29vbAVtbW3gxMTHhMDAw/VBQUP98fHz/eHh4/3l5
ef93d3f/Xl5e/zIyMv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zExMf8uLi7/ODg4/35+fv+4uLj/QEBA/wICAv8HBwf/DAwM/xEREf8UFBT/Ghoa/yAg
IP8jIyP/KSkp/ywsLP8yMjL/NjY2/z09Pf9ra2vdxsbGMfz8/AD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wDq9P8ATK///wCW//8Akv//AJD//wCQ//8Ajv//AI3//zee
//+XoK3/cW1r/3B3fP8qgd//AIL//y6L+P+lr7v/tLOx/7S0tP+4uLj/urq6/729vf/BwcH/wsLC/8bG
xv/IyMj/ysrK/8zMzP/Ozs7v0tLSHP///wDZ2dkA////AP///wD///8A////ALGxsRU4ODh+PDw85Gpq
av96enr/eXl5/3h4eP9ra2v/PT09/y4uLv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/0BAQP+Wlpb/r6+v/yQkJP8DAwP/BwcH/w0N
Df8RERH/FxcX/xsbG/8gICD/JCQk/ykpKf8tLS3/MjIy/zY2Nv9BQUH/eHh4xtLS0hv+/v4A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv9/wCv3P9bC5j//wCT//8Akv//AJD//wCQ
//8Ajv//AI7//wCQ//9+s+r/iYOA/29xb/9ZeqP/CYP//22e2f+2s7D/tLSz/7i4uP+5ubn/vLy8/8HB
wf/BwcH/xMTE/8nJyf/Jycn/zMzM/87OzvnS0tJx2NjYAdXV1QDe3t4AycnJAP///wD///8A////AP//
/wCGhoYYVFRUkXl5efJ4eHj/enp6/3h4eP9OTk7/LS0t/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9LS0v/paWl/5ub
m/8ODg7/BAQE/wkJCf8NDQ3/EhIS/xkZGf8bGxv/ISEh/yQkJP8rKyv/Li4u/zQ0NP85OTn/QkJC/4KC
grPc3NwI////AP///wD///8A////AP///wD///8A////AP///wD///8A////APH5/wBatf/0AJj//wCT
//8Akv//AJD//wCQ//8Ajv//AI7//wCL//86nf//oKy4/3Nxa/9vdXz/UIbG/5uotf+wr6r/sbGx/7S0
tP+5ubn/u7u7/7+/v//CwsL/yMjI/8rKyv/MzMz/zMzMP9DQ0EbT09MH3d3dAdra2gDJyckAycnJAP//
/wD///8A////AP///wD///8Ax8fHDc7OziHOzs4nzMzMK42Njf81NTX/Li4u/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/V1dX/7Ozs/9/f3//BAQE/wUFBf8KCgr/Dg4O/xMTE/8ZGRn/HBwc/yIiIv8mJib/Kysr/y4u
Lv80NDT/Ozs7/0dHR/+Li4uk4eHhAP///wD///8A////AP///wD///8A////AP///wD///8A/P7/AMHi
/zkXnP//AJX//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCM//8Ajv//e7Hr/4eDff9xcXH/dnuC/4SF
h/+JiYn/i4uL/5GRkf+VlZX/mZmZ/5ycnP+hoaH/pKSk/6CgoP+hoaH/o6OjmJycnCOhoaEB////AN3d
3QDKysoAzc3NAP///wD///8A////AP///wD///8A////AP///wD///8A3d3dCVtbW/8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8uLi7/MzMz/2xsbP+7u7v/YWFh/wICAv8GBgb/CgoK/xAQEP8TExP/GRkZ/x4e
Hv8jIyP/Jycn/ywsLP8xMTH/NjY2/zw8PP9NTU3/mJiYienp6QD///8A////AP///wD///8A////AP//
/wD///8A9vv/AG6+/9EAmP//AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCN//8Ai///KJX//3WN
qv9xbWn/dHRy/3h3d/96enr/fn5+/4KCgv+Dg4P/iIiI/4qKiv+NjY3/iYmJ/4ODg/+Ghob/ioqK6IqK
ilD///8A////AKenpwCnp6cAqampALa2tgD///8A////AP///wD///8A////AP///wD///8Ah4eHwjU1
Nf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zg4OP9/f3//u7u7/0RERP8BAQH/AgIC/wQE
BP8HBwf/CwsL/xEREf8WFhb/HBwc/yEhIf8oKCj/Li4u/zMzM/87Ozv/UVFR/6GhoXru7u4A////AP//
/wD///8A////AP///wD///8Aw+T/NR6f//8Al///AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCN
//8Ai///AIz//zSG3P91d3r/enl5/319ff+BgYH/g4OD/4ODg/+IiIj/iYmJ/42Njf+MjIz/jIyM/4mJ
if+Kior/ioqK8I6Ojn2Pj48B////AMrKygDGxsYAxsbGAMTExAD///8A////AP///wD///8A////AP//
/wC8vLxEPT09/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf8+Pj7/jIyM/7y8
vP94eHj/cnJy/3Z2dv95eXn/enp6/3x8fP94eHj/bm5u/2dnZ/9eXl7/WVlZ/1JSUv9MTEz/SkpK/2Bg
YOCxsbFF////AP///wD///8A////AP///wD///8Ajcv/mACY//8Alf//AJT//wCT//8Akv//AJD//wCQ
//8Ajv//AI7//wCN//8Ai///AIr//0OU6/+ioqf/qKel/6qqqv+tra3/r6+v/7Gxsf+xsbH/tLS0/7i4
uP+4uLj/t7e3/7Gxsf+zs7P/tbW14ri4uCn///8A////AMfHxwDCwsIAwcHBAMDAwAD///8A////AP//
/wD///8A////AP///wC7u7tQOzs7/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0t
Lf81NTX/hISE/+Xl5f/Nzc3/zMzM/87Ozv/Q0ND/0dHR/9PT0//Q0ND/ycnJ/8LCwv+5ubn/tLS0/6+v
r/+rq6v/qKio9aurqxbMzMwM////AP///wD///8A////AP///wD///8Azej/IiSi//8Al///AJT//wCT
//8Akv//AJD//wCQ//8Ajv//AI7//wCN//8Aiv//KJf//5mz0f+0sa//tLS0/7e3t/+6urr/vb29/8HB
wf/Dw8P/yMjI/8nJyf/IyMj/xcXF/8HBwf/Dw8PnyMjIrsfHxwH///8A////ALa2tgDBwcEAlpaWAJSU
lAD///8A////AP///wD///8A////AP///wD///8AhISExzExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/zExMf9ra2v/y8vL/7CwsP+Kior/j4+P/5WVlf+ampr/np6e/6Kiov+pqan/ra2t/7Gx
sf+1tbX/urq6/7+/v//ExMT8y8vLDf///wD09PQA////AP///wD///8A////AP///wD///8A9fv/AHrD
/7oAmP//AJT//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCM//8AjP//ir31/7y5tP+xsbH/s7Oz/7Oz
sf+2trb/ubm5/7u7u/+/v7//wcHB/8TExP/Gxsb/v7+//729vf+6urrpsbGxWKmpqVylpaUC////AJ2d
nQCpqakAzc3NAI6OjgD///8A////AP///wD///8A////AP///wD///8A3NzcCWFhYf8xMTH/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/1lZWf/Dw8P/vb29/4aGhv+JiYn/jo6O/5OTk/+YmJj/nZ2d/6Ki
ov+oqKj/ra2t/7Ozs/+4uLj/vLy8/8PDw//KysoR////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/P3/AMfn/y4anv//AJX//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCK//9Co///wcrU/7Ox
r/+xs7j/bpfN/3eBiP+DgoH/h4eH/4mJif+MjIz/kJCQ/5OTk/+Xl5f/lpaW/5OTk/+MjIznjo6O6JOT
k9WUlJRpsbGxAZmZmQCcnJwAr6+vAP///wD///8A////AP///wD///8A////AP///wD///8A////AL+/
v0lDQ0P/MTEx/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8tLS3/SkpK/7Gxsf/Kysr/jIyM/4eHh/+Pj4//kpKS/5mZ
mf+dnZ3/oqKi/6ioqP+srKz/sbGx/7a2tv+7u7v/wcHB/8fHxxr///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APH4/wBiuf/kAJj//wCT//8Akv//AJD//wCQ//8Ajv//AI7//wCO
//+RwPT/vrqz/7Wxsf+Pqsv/F4b7/094q/91cWz/dHR0/3l5ef96enr/fn5+/4KCgv+EhIT/iYmJ/4aG
hv+EhIT/jY2N/5GRkf+UlJTolZWVG////wCZmZkAoaGhAMDAwAD///8A////AP///wCRkZGtPz8//09P
T/9dXV3/a2tr+3BwcPI8PDz/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf8+Pj7/mZmZ/9HR0f+Tk5P/hoaG/42N
jf+SkpL/l5eX/5ubm/+ioqL/p6en/6urq/+xsbH/tLS0/7q6uv+/v7//x8fHIP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv9/gC73/9FFJ7//wCV//8Akv//AJD//wCQ
//8Ajv//AIz//0Ci//+8ws//s7Gv/7Cztf9Klev/AIL//y2D5P9wdnr/c3Jw/3d3d/95eXn/fHx8/4GB
gf+EhIT/h4eH/4SEhP+EhIT/hoaG/4qKiv+MjIz/lJSUv6qqqgeZmZkAmpqaAKmpqQD///8A////AL6+
vkk/Pz//GRkZ/wMDA/8DAwP/BAQE/wQEBP8FBQX/IyMj/zIyMv8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/LS0t/zc3N/+Hh4f/0tLS/56e
nv+FhYX/jIyM/5KSkv+Xl5f/mpqa/6Ghof+lpaX/q6ur/7CwsP+zs7P/urq6/76+vv3GxsYh0tLSAf//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDq9f8AU7H/+wCX
//8Akv//AJD//wCQ//8Ajv//A5H//4a47P+7t7D/t7Oz/4upzf8Khv//AIP//wuE//9fga7/dnJs/3Z2
dv95eXn/e3t7/4CAgP+CgoL/hoaG/4WFhf+Ghob/iIiI/4uLi/+SkpL/l5eX/6CgoDnAwMAKmZmZAJ+f
nwD///8A////AGNjY/8xMTH/LS0t/xAQEP8AAAD/AAAA/wAAAP8AAAD/CQkJ/y0tLf8xMTH/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/MTEx/3Bw
cP/R0dH/rq6u/4aGhv+Li4v/kpKS/5WVlf+ampr/oKCg/6Ojo/+rq6v/r6+v/7Ozs/+4uLj/vLy8+cPD
wyH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD6/f4Aq9j/YwGV//8Akv//AJD//wCQ//8Ajf//QKD//7O9xv+0sbD/q7O3/0OU7/8Ag///AYT//wCC
//88iOP/eHyA/3Jxcf93eHj/eXl5/35+fv+BgYH/g4OD/4WFhf+Hh4f/i4uL/46Ojv+SkpL/mZmZ/5qa
muepqakZ29vbApmZmQD///8Aj4+PsTg4OP8wMDD/MjIy/zAwMP8KCgr/AAAA/wAAAP8AAAD/AgIC/xgY
GP8yMjL/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8uLi7/XV1d/8TExP+5ubn/hoaG/4qKiv+QkJD/lJSU/5qamv+enp7/oqKi/6mpqf+urq7/s7Oz/7e3
t/+7u7v6w8PDlP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A6vb/AEuu//8Alv//AJD//wCP//8Dkv//grHk/7izsf+2s7P/eqTU/wCH
//8Ahf//AYT//wGD//8Zhv//bIy0/3dzbf91dXX/eXl5/3t7e/9/f3//gYGB/4aGhv+JiYn/i4uL/5GR
kf+SkpL/lpaW/5mZmf+fn5/As7OzL////wDDw8M/RERE/zEyMv8wMDD/MTEx/zU1Nf80NDT/AwMD/wAA
AP8AAAD/AAAA/wQEBP8kJCT/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/y0tLf9KSkr/q6ur/8HBwf+Li4v/iIiI/4+Pj/+Tk5P/mpqa/52dnf+hoaH/paWl/6ys
rP+ysrL/tra2/7q6uv/BwcHRysrKAf///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+v3/AKHU/3YAlP//AJD//wCP//84nPr/rba9/7Wx
r/+qsbr/NJL1/wCF//8Ahf//AYT//wGD//8Eg///SJDq/3+Dhv9ycW//eHh4/3p6ev9+fn7/gYGB/4SE
hP+IiIj/ioqK/46Ojv+RkZH/lJSU/5iYmP+ZmZn8p6endbW2uFxucHD2NTU1/zExMf8wMDD/MDAw/zEx
Mf9DQ0P/Kysr/wAAAP8AAAD/AAAA/wAAAP8LCwv/LS0t/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/z4+Pv+QkJD/xMTE/5GRkf+Ghob/jo6O/5KSkv+YmJj/nJyc/6Gh
of+kpKT/qqqq/7CwsP+1tbX/urq6/8DAwPnIyMgK////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7/AOLz/gA6p///AJP//wCS
//94qdv/tbGw/7S0sv9yodn/AIb//wCG//8Ahf//AYT//wGD//8Fgf//HYf//3WVwv94dW//dXV1/3l5
ef97e3v/f39//4KCgv+Ghob/iYmJ/4uLi/+RkZH/kpKS/5aWlv+ZmZn/m5ub/25wcP88PT3/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP82Njb/UlJS/xoaGv8AAAD/AAAA/wAAAP8CAgL/GBgY/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/NjY2/3V1df+6urr/l5eX/4aGhv+NjY3/kpKS/5eX
l/+bm5v/oKCg/6Ojo/+oqKj/rq6u/7Ozs/+5ubn/vr6+/sbGxhH///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APf7
/wCRy/+RAJL//y+X9f+lsbf/trOx/6Svvv8pkPj/AIb//wCG//8Ahf//AYT//wGD//8Cgf//AoL//06V
8f+Gio3/cXFv/3d3d/95eXn/fX19/4GBgf+Dg4P/iIiI/4qKiv+Ojo7/kZGR/5SUlP+Xl5f/gICA/0JC
RP81Nzf/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/RkZG/1VVVf8FBQX/AAAA/wAAAP8AAAD/BAQE/ycn
J/8xMTH/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8xMTH/XV1d/6qqqv+cnJz/hoaG/4yM
jP+SkpL/lpaW/5qamv+fn5//o6Oj/6enp/+srKz/s7Oz/7e3t/+9vb3/xMTEGf///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP3+/gDX7f8PL6D//3Ko3f+6tbD/t7ey/2yh3P8Ah///AIf//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//yKH//+En8f/eHVv/3V1df95eXn/e3t7/4GBgf+CgoL/hoaG/4mJif+MjIz/kJCQ/5OT
k/+Ojo7/U1NV/zg5Of83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/NDQ0/15eXv9DQ0P/AAAA/wAA
AP8AAAD/AAAA/xEREf8uLi7/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv9LS0v/kpKS/6Cg
oP+Ghob/ioqK/5CQkP+UlJT/mpqa/5+fn/+jo6P/p6en/6qqqv+wsLD/tbW1/7y8vP/BwcEm////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD3+/8Aps/6bra/zVDIxsI5q7rQZyOP+P8Ah///AIf//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//weB//9bnPL/jI6Q/3Fwbv94eHj/eXl5/35+fv+BgYH/hISE/4eH
h/+Kior/jo6O/5CQkP9rbGz/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/Li4u/z4+
Pv91dXX/Jycn/wAAAP8AAAD/AAAA/wMDA/8eHh7/MjIy/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/z8/
P/9+fn7/np6e/4iIiP+Kior/j4+P/5OTk/+ampr/nZ2d/6Ghof+np6f/q6ur/7CwsP+0tLT/urq6/8HB
wTH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9vr+APf29gDy9fkAfrv+twCM
//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wF///8pif//kqnM/3p3cf90dHT/eXl5/3t7
e/9/f3//goKC/4aGhv+JiYn/jY2N/3x8fP9JSUn/PT09/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zExMf9ZWVn/d3d3/wUFBf8AAAD/AAAA/wAAAP8GBgb/KCgo/zExMf8wMDD/MDAw/zAw
MP8wMDD/NjY2/2ZmZv+UlJT/i4uL/4qKiv+Pj4//kpKS/5iYmP+bm5v/oKCg/6Wlpf+rq6v/sLCw/7S0
tP+5ubn+wMDAOMzMzAH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP3+
/wDO5v8iKpn//wCM//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wN///8IgP//ZKL3/5eZ
mf9xcG3/d3d4/3p6ev9+fn7/gYGB/4ODg/+IiIj/hISE/1pbXP89QED/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf82Njb/eXl5/1ZWVv8AAAD/AAAA/wAAAP8BAQH/EBAQ/y4u
Lv8wMDD/MDAw/zAwMP8yMjL/T09P/4aGhv+Li4v/h4eH/46Ojv+SkpL/l5eX/5ubm/+fn5//pKSk/6qq
qv+urq7/s7Oz/7e3t/W/v7+hy8vLAv///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////APf6/wB3vP/CAZD//wCK//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wN/
//8Gf///Jon//5Ov1/9+e3X/c3Nz/3l5ef97e3v/f39//4GBgf+EhIb/a2tr/0VFR/9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/S0tL/5WVlf8mJib/AAAA/wAA
AP8AAAD/AwMD/x4eHv8yMjL/MDAw/zAwMP9CQkL/cnJy/4qKiv+IiIj/jIyM/5KSkv+Xl5f/m5ub/56e
nv+kpKT/qqqq/66urv+0tLT/uLi4/7u7u3jLy8sB////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APf6/wB3vP/CAI///wCK//8AiP//AIf//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//wZ///8Efv//B33//1ea+/+Vlp3/cXFu/3l5ef95eXn/fn5+/4GBgf93d3f/Tk5P/0RE
Rv9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/MzMz/3Bw
cP+Ojo7/BAQE/wAAAP8AAAD/AAAA/wYGBv8pKSn/MTEx/zU1Nf9eXl7/hYWF/4iIiP+Li4v/kpKS/5qa
mv+fn5//pqam/6ampv+rq6v/rKysybKysse1tbXBvLy8pcTExA3///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APz9/wDB4P85GpL//wCM//8AiP//AIf//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//B33//x6D//9wl8//dnNw/3Fxcf94eHj/fHx8/319
ff9eXl//RUVH/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/Li4u/z4+Pv+dnZ3/YGBg/wAAAP8AAAD/AAAA/wICAv8TExP/MTEx/01NTf+AgID/jY2N/42N
jf+RkZH/kZGR/4qKiv+CgoL/eHh4/3BwcP+Ghob/s7Ozq7a2to+9vb1pxMTEAv///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDv9/8AX7H/7ACO
//8AiP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//BH3//wZ7//88iPP/k5mj/5ua
mv+ioqL/paWl/3x8ff9LS07/RUdK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/Li4u/zAwMP9ZWVn/qKio/xgYGP8AAAD/AAAA/wAAAP8DAwP/Jycn/1dX
V/9dXV3/UVFR/0JCQv8xMTH/IyMj/xkZGf8NDQ3/BgYG/wUFBf8UFBT/dnZ2zIKCggPNzc0A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD7/f4AvN3/RRSP//8Aif//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ///8Efv//BXz//xqB
//+Cquf/xcTE/8TDxf/Dw8X/vr7B/3l5fP9GRkb/R0dK/0VFRf9BQkL/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8yMjL/d3d3/3Jycv8CAgL/AAAA/wAA
AP8AAAD/AgIC/wQEBP8CAgL/AQEB/wEBAf8BAQH/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/Gxsb/5mZ
mT3///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A7vb/AFmv//QAjP//AIf//wCG//8Ahf//AYT//wGD//8Cgf//A4D//wZ/
//8Cfv//C37//3eu+v/IyMz/w8HD/8LCxP/Dw8X/w8PF/6Wlpv9SUlX/RUVI/0VFRf9BQkL/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/Ozs7/3Bw
cP8hISH/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wEB
Af8BAQH/Dg4OpFtbWwH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+/3/ALDW/1sJjP//AIj//wCG//8Ahf//AYT//wGD
//8Cgf//A4D//wN///8Eff//VZ///87U3//EwsH/wsLE/8PDxf/Dw8X/wMDC/7i4uP90dXb/RERH/0VF
Rf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/0NDQ/80NDT/AQEB/wAAAP8AAAD/AAAA/wAAAP8AAAD/AgIC/wYGBv8RERH/Ghoa/yEh
If8sLCz/OTk5/0xMTP9ZWVmtYGBgBf///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AOr0/wBIo///AIr//wCG
//8Ahf//AYT//wGD//8Cgf//A4D//wJ+//8niv//ssvt/8zIxP/BwcP/xMTG/7Cwsf9VVVf/ODg4/y0t
MP8qKyv/QUFD/0VFR/9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8nJyf/DAwM/xMTE/8iIiL/NjY2/0xMTP9gYGD/c3Nz/39/
f/9/f3//g4OD/5KSkv+hoaH/p6en/7GxsdK3t7cL////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APn8
/wChzf92Aov//wCG//8Ahf//AYT//wGD//8Cgf//AYD//weB//93sPv/z8/P/8HBwf/CwsT/vr7A/4CA
g/8wMDP/AQEB/wEBAf8CAgL/Jygo/0dHSf9BQkL/PT4+/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9AQED/aWlp/3x8fP+IiIj/jo6O/5aW
lv+dnZ3/n5+f/56env+ioqL/pqam/6qqqv+vr6//s7Oz6LW1tRT///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/wDg7/8AOp3//wCJ//8Ahf//AYT//wGD//8Cgf//AID//zuT//+9yt//xsTA/8HB
xP/CwsT/nZ2f/1pbXP9NTVD/FBQW/wAAAP8AAAD/BgYG/zw9Pf9DRET/PT4+/zo8PP83ODj/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8uLi7/Li4u/05OTv97e3v/h4eH/4uL
i/+Pj4//lJSU/5mZmf+dnZ3/nJyc/56env+jo6P/p6en/62trf+ysrL1tbW1Kf///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD3+v8Ak8f/kQCI//8Ahf//AYT//wGD//8BgP//E4b//4+2
7//KyMb/wsHD/8TExP+zs7X/bGxu/1VWWP9VVVj/QEFD/wQEBP8AAAD/AQEB/xscHP9EREb/PT4+/zo8
PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/SkpK/5iY
mP+Li4v/iYmJ/46Ojv+SkpL/mJiY/5ycnP+enp7/np6e/6Ghof+np6f/rKys/7Kysvyzs7M5////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD+//8A2e3/CzKW//8Ah///AYT//wKC
//8Ag///VZ36/8LI0f/DwsH/wsLE/76/wf+Hh4r/V1lb/1dZWv9VVlj/U1NW/ygoKf8AAAD/AAAA/wQE
Bf82Njb/P0BA/zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAwMP8wMDD/MDAw/y0t
Lf8/Pz//paWl/5qamv+Ghob/jY2N/5KSkv+Xl5f/nJyc/56env+enp7/oaGh/6Wlpf+qqqr/sbGx/7Oz
s0b///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9/v/AIfB
/6QAiP//AYT//wCC//8kjP//oLrg/8jFwf/CwsT/w8PF/6Gho/9hYWT/Wlte/1ZXWv9VVVf/U1NY/01N
Tv8HBwf/AAAA/wEBAf8XFxf/Pj8//zo8PP83ODj/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/zAw
MP8wMDD/LS0t/zY2Nv+UlJT/rq6u/4WFhf+MjIz/kpKS/5aWlv+bm5v/n5+f/6CgoP+hoaH/paWl/6qq
qv+xsbH/tra2QP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f7/ANPo/xcokf//AIb//wCC//9ppO//xsXF/8LCwv/Dw8X/tLS2/3Jzdv9dXWD/XF1g/1ZX
Wv9VVVf/UlJV/1VVV/85OTn/AAAA/wAAAP8DAwP/Li4w/z09Pf83ODj/NDQ0/zExMf8wMDD/MDAw/zAw
MP8wMDD/MDAw/zAwMP8uLi7/MTEx/3l5ef+zs7P/h4eH/4yMjP+QkJD/lZWV/5qamv+dnZ3/np6e/6Cg
oP+kpKT/qKio/6+vr/+2trZF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APb6/wBvtf/QAIb//yeL/f+vvdD/x8XD/8TExv/BwcP/jIyO/19f
Y/9fX1//XF1g/1ZXWv9UVVf/UlNV/1FRUf9XV1n/FBQU/wAAAP8BAQH/ERES/zw8Pf83ODr/NDQ0/zEx
Mf8wMDD/MDAw/zAwMP8wMDD/MDAw/y4uLv8uLi7/Wlpa/62trf+Kior/iYmJ/4+Pj/+Tk5P/mJiY/5qa
mv+ampr/n5+f/6Ojo/+oqKj/rq6u/7KysmnDw8MB////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APz9/wDF3/8hHI7/4n6v66nNycgrw8PFOcXF
xzWrq6z/Z2lu/19fZv9fX2D/XF1g/1ZXWv9UVVf/UVJV/1BQUP9WVln/RkZG/wEBAf8AAAD/AwMD/yUn
J/85PDz/NDQ0/zExMf8wMDD/MDAw/zAwMP8wMDD/MDAw/y0tLf9JSUn/nJyc/5GRkf+Hh4f/j4+P/5OT
k/+Wlpb/l5eX/5iYmP+enp7/oqKi/6ioqP+tra32sLCwcL29vQX///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD1+v8Ansb3HtDT
3wri4eEA7u7uAN7e3gSDhIj/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UVNV/05OT/9OTlH/ZWVn/yEh
If8AAAD/AAAA/wsLC/81NTX/NTU1/zExMf8wMDD/MDAw/zAwMP8wMDD/LS0t/zs7O/+IiIj/lpaW/4WF
hf+NjY3/kZGR/5eXl/+Wlpb/l5eX/52dnf+hoaH/p6en/6ysrPy0tLSYu7u7Av///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A+fr8APv8+wD+/v4A9fX3ALKzs1hqa27/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05P
T/9MTE3/V1dZ/1xcXP8CAgL/AAAA/wICAv8gICD/Njc2/zExMf8wMDD/MDAw/zAwMP8uLi7/NDQ0/25u
bv+VlZX/h4eH/4yMjP+RkZH/lpaW/5mZmf+Xl5f/m5ub/6CgoP+lpaX/rKys/re3t72+vr4C////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD7+/sA0dLSHnh5fcZoaW//ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9LS0z/S0tM/2lrav8tLS3/AAAA/wAAAP8GBgb/LjAw/zIzM/8wMDD/MDAw/y4u
Lv8xMTH/WVlZ/4+Pj/+IiIj/i4uL/5GRkf+UlJT/mZmZ/5ycnP+ZmZn/n5+f/6SkpP+pqan/uLi438XF
xQP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wDs7OwAkJGWmG5wcf9naG7/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/1dXWf9sbG7/AwMD/wAAAP8BAQH/Gxoa/zQ0
NP8wMDD/MDAw/y0tLf9FRUX/hISE/4mJif+Kior/kJCQ/5OTk/+ZmZn/n5+f/6Ojo/+jo6P/pqam/6en
p8WxsbGfwcHBDf///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8/AC3uLtQc3N40Wts
cf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0dHSf90dHT/OTk5/wAA
AP8AAAD/BAUF/ysrK/8xMTH/Li4u/zg4OP9xcXH/iIiI/4mJif+QkJD/lJSU/52dnf+ioqL/qKio/6Wl
pf+Wlpb/m5ub/62trXOTk5MR////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APv7
+wC/v8FBb3Fz1WttcP9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0RF
SP9VVVX/eHh4/wUFBf8AAAD/AQEB/xMTE/8yMjL/MTEx/1lZWf+IiIj/jY2N/5OTk/+Wlpb/lJSU/4OD
g/9nZ2f/QkJC/yEhIf8NDQ3/Hh4e/5GRkVP///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDm5uYAhoeNq25wcf9naG7/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0RERP9EREb/d3d4/0RERP8AAAD/AAAA/wMDA/8oKCj/U1NT/4ODg/+BgYH/cXFx/1VV
Vf85OTn/HBwc/wcHB/8BAQH/AQEB/wEBAf8GBgb/Hx8fsXh4eAL///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD39/cAs7O2WG1ucdlnaG7/ZWZo/2FjZv9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQEH/UFBS/3Fxcf8FBQX/AAAA/wEBAf8RERH/Pz8//zY2
Nv8XFxf/BQUF/wICAv8BAQH/AAAA/wQEBP8bGxv/PT09/2dnZ/+Pj4+vsbGxBP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD9/f0A4uLlAH5/grppanD/ZWZo/2Fj
Zv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/QEBB/1dZWf8mJib/AAAA/wAA
AP8AAAD/AgIC/wEBAf8AAAD/AAAA/woKCv8zMzP/XFxc/39/f/+YmJj/q6ur/7CwsKi2trYN////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9fX1AK+v
sF9qbHH/ZWZo/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQkL/Pj4+/z0+
P/8tLS3/AAAA/wAAAP8AAAD/BQUF/x4eHv9BQUH/Z2dn/4iIiP+ZmZn/o6Oj/6enp/+tra3/sLCw6rS0
tBj///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/f39ANvb3gt5eX/GZ2dq/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0VF
Rf9BQkL/PT4//zo8PP8sLC7/FxcX/zExMf9VVVX/dHR0/4uLi/+YmJj/oKCg/6Kiov+mpqb/p6en/62t
rf+zs7P1ubm5Fv///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////APLy8gCioqV2Z2hr/2FjZv9fX2D/XF1g/1ZXWv9UVVf/UlNV/05O
T/9MTE3/R0dK/0VFRf9BQkL/PT4+/zc4OP9SUlL/enp6/4mJif+QkJD/lJSU/5iYmP+dnZ3/oaGh/6en
p/+rq6v/sLCw/7S0tPzAwMAT////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////APv7+wDU1dYXbm5w2WJkaP9fX2D/XF1g/1ZX
Wv9UVVf/UlNV/05OT/9MTE3/R0dK/0VFRf9AQUH/Pj8//2hpaf+IiIr/iIiI/42Njf+RkZH/l5eX/5ub
m/+goKD/paWl/6qqqv+xsbH/s7Oz/7+/vxv///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDx8fEAl5ecjWRm
af9fX2L/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dK/0RERP9AQUH/bG1v/6enqP+JiYn/i4uL/5GR
kf+Wlpb/mpqa/6CgoP+lpaX/qqqq/6+vr/+zs7P/vLy8Jf///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD7+/sAzMzOJmlra+FfX2L/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/R0dJ/0JDRf9eX1//qamp/46O
jv+JiYn/kZGR/5SUlP+ZmZn/n5+f/6Kiov+qqqr/rq6u/7Ozs/+7u7su////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A8PDwAI6Ok5xhYmX/XF1g/1ZXWv9UVVf/UlNV/05OT/9MTE3/RkZI/1FQ
U/+YmJj/lJSU/4eHh/+Pj4//kpKS/5mZmf+enp7/oaGh/6mpqf+srKz/s7Oz/7q6ujXFxcUB////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A+fn5AMfHyTFmZmjoXF1g/1ZXWv9UVVf/UlNV/05O
T/9KSk3/TU1O/4WFhf+Wlpb/iIiI/4+Pj/+RkZH/mZmZ/5ycnP+hoaH/qKio/6ysrP+xsbH/t7e3QsPD
wwP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+AOvr6wCEhYivXl9f/1ZX
Wv9UVVf/UlNV/05PT/9MTE3/c3R0/5aWlv+IiIj/jY2N/5GRkf+YmJj/nJyc/6Ghof+np6f/q6ur/7Gx
sf+5ublMvr6+HOTk5AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APj4
+AC7vL9IXl9i9FZXWv9UVVf/UVJV/09QUP9hYmL/jo+P/4mJif+MjIz/kZGR/5aWlv+ampr/oaGh/6en
p/+vr6//s7OzWLW1tVTKysoq4eHhAP7+/gD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP7+/gDp6OoAfX5+vlpbXv9VVVf/UVJU/1paW/+Dg4P/iYmJ/4qKiv+RkZH/lpaW/5yc
nP+jo6P/qqqqa7GxsVvExMQ13NzcCO/v7wD8/PwA////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD39/cAtLW1VFdZXf9VVVf/U1NY/3R0dP+JiYn/i4uL/5OT
k/+YmJj/mpqahaurq2fDw8M53t7eBPDw8AD+/v4A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD9/f0A5ufnAHR0d85WV1n/ZmZp/4iI
iP+NjY2gkZGRmKioqG7Dw8M539/fBPT09AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A9vb2AK+v
sF9lZmjoioqMpKioqG7GxsYx5+fnAPj4+AD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A/v7+AOvr6wDLzMwq6urqAPv7+wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///////////////j/////////////
//j///////////////j///////////////j///////////////j///////////////j/////////////
//j///////////////j///////////////j///////////////j////8//////////j////4H///////
//j////4Af////////j////wAD////////j////wAAf///////j////gAAH///////j////gAAD/////
//j////AAAB///////j////AAAA///////j///+AAAAf//////j///+AAAAP//////j///+AAAAP////
//j///8AAAAH//////j///8AAAAD//////j///4AAAAB//////j///4AAAAA//////j///wAAAAAf///
//j///wAAAAAf/////j///gAAAAAf/////j///gAAAAAP/////j///gAAAAAD/////j///wAAAAAB///
//j///wAAAAAA/////j//+IAAAAAAf////j//8AAAAAAAP////j//8AAAAAAAH////j//8AAAAAAAD//
//j//4AAAAAAAB////j//4AAAAAAAB////j//wAAAAAAAA////j//wAAAAAAAAf///j//gAAAAAAAAP/
//j//gAAAAAAAAH///j//AAAAAAAAAD///j//AAAAAAAAAD///j//AAAAAAAAAD///j/+AAAAAAAAAH/
//j/+AAAAAAAAAB///j/8AAAAAAAAAAP//j/8AAAAAAAAAAH//j/8AAAAAAAAAAD//j/+AAAAAAAAAAB
//j/wAAAAAAAAAAA//j/wAAAAAAAAAAAf/j/gAAAAAAAAAAAP/j/gAAAAAAAAAAAP/j/AAAAAAAAAAAA
H/j/AAAAAgAAAAAAD/j/AAAAAwAAAAAAB/j+AAAADwAAAAAAA/j+AAAAH4AAAAAAAfj8AAAAH8AAAAAA
APj8AAAAH+AAAAAAAPj4AAAAP/wAAAAAAHj4AAAAf/wAAAAAADjwAAAAP/gAAAAAABjwAAAAf/gAAAAA
ABjwAAAAf/wAAAAAAHj4AAAAP/wAAAAAAPj4AAAAH/4AAAAAAfj8AAAAH8AAAAAAA/j8AAAAD4AAAAAA
A/j+AAAAB4AAAAAAD/j+AAAAAwAAAAAAH/j/AAAAAgAAAAAAH/j/AAAAAAAAAAAAP/j/gAAAAAAAAAAA
f/j/gAAAAAAAAAAA//j/gAAAAAAAAAAB//j/wAAAAAAAAAAD//j/+AAAAAAAAAAD//j/8AAAAAAAAAAH
//j/8AAAAAAAAAAP//j/8AAAAAAAAAAf//j/8AAAAAAAAAA///j/+AAAAAAAAAD///j/+AAAAAAAAAD/
//j//AAAAAAAAAD///j//AAAAAAAAAH///j//gAAAAAAAAP///j//gAAAAAAAAf///j//wAAAAAAAA//
//j//wAAAAAAAB////j//wAAAAAAAD////j//4AAAAAAAH////j//4AAAAAAAP////j//8AAAAAAAP//
//j//8AAAAAAAf////j//+YAAAAAA/////j///4AAAAAB/////j///wAAAAAD/////j///wAAAAAH///
//j///gAAAAAP/////j///gAAAAAf/////j///wAAAAAf/////j///wAAAAA//////j///4AAAAB////
//j///4AAAAD//////j///4AAAAH//////j///8AAAAP//////j///8AAAAf//////j///+AAAA/////
//j///+AAAB///////j////AAAB///////j////AAAD///////j////gAAH///////j////gAAP/////
//j////wAA////////j////wAH////////j////4A/////////j////4P/////////j////9////////
//j///////////////g=
</value>
</data>
</root>

View File

@@ -0,0 +1,182 @@
namespace ADSUtileriasWF.PV.Views
{
partial class FrmRetiroDinero
{
/// <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.panel = new System.Windows.Forms.Panel();
this.gbTipoEntradaSalida = new System.Windows.Forms.GroupBox();
this.LblImporteEnCaja = new System.Windows.Forms.Label();
this.btnAceptar = new System.Windows.Forms.Button();
this.txtCantidad = new System.Windows.Forms.MaskedTextBox();
this.LblDescripcion = new System.Windows.Forms.Label();
this.LblCantidad = new System.Windows.Forms.Label();
this.txtDescripcion = new System.Windows.Forms.TextBox();
this.TxtImporteEnCaja = new MaterialThemeCore.MaterialControls.MaterialSingleLineTextField();
this.panel.SuspendLayout();
this.gbTipoEntradaSalida.SuspendLayout();
this.SuspendLayout();
//
// panel
//
this.panel.Controls.Add(this.gbTipoEntradaSalida);
this.panel.Location = new System.Drawing.Point(233, 66);
this.panel.Name = "panel";
this.panel.Size = new System.Drawing.Size(340, 230);
this.panel.TabIndex = 0;
//
// gbTipoEntradaSalida
//
this.gbTipoEntradaSalida.Controls.Add(this.TxtImporteEnCaja);
this.gbTipoEntradaSalida.Controls.Add(this.LblImporteEnCaja);
this.gbTipoEntradaSalida.Controls.Add(this.btnAceptar);
this.gbTipoEntradaSalida.Controls.Add(this.txtCantidad);
this.gbTipoEntradaSalida.Controls.Add(this.LblDescripcion);
this.gbTipoEntradaSalida.Controls.Add(this.LblCantidad);
this.gbTipoEntradaSalida.Controls.Add(this.txtDescripcion);
this.gbTipoEntradaSalida.Location = new System.Drawing.Point(0, 10);
this.gbTipoEntradaSalida.Name = "gbTipoEntradaSalida";
this.gbTipoEntradaSalida.Size = new System.Drawing.Size(340, 215);
this.gbTipoEntradaSalida.TabIndex = 0;
this.gbTipoEntradaSalida.TabStop = false;
//
// LblImporteEnCaja
//
this.LblImporteEnCaja.AutoSize = true;
this.LblImporteEnCaja.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblImporteEnCaja.Location = new System.Drawing.Point(5, 30);
this.LblImporteEnCaja.Name = "LblImporteEnCaja";
this.LblImporteEnCaja.Size = new System.Drawing.Size(153, 26);
this.LblImporteEnCaja.TabIndex = 5;
this.LblImporteEnCaja.Text = "Importe en caja";
//
// btnAceptar
//
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(210, 165);
this.btnAceptar.Name = "btnAceptar";
this.btnAceptar.Size = new System.Drawing.Size(110, 40);
this.btnAceptar.TabIndex = 1;
this.btnAceptar.Text = "Aceptar";
this.btnAceptar.UseVisualStyleBackColor = true;
this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click);
//
// txtCantidad
//
this.txtCantidad.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtCantidad.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
this.txtCantidad.Location = new System.Drawing.Point(170, 80);
this.txtCantidad.Mask = "$###,###.00";
this.txtCantidad.Name = "txtCantidad";
this.txtCantidad.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.txtCantidad.Size = new System.Drawing.Size(150, 33);
this.txtCantidad.TabIndex = 4;
this.txtCantidad.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtCantidad.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txt_KeyUp);
//
// LblDescripcion
//
this.LblDescripcion.AutoSize = true;
this.LblDescripcion.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblDescripcion.Location = new System.Drawing.Point(5, 120);
this.LblDescripcion.Name = "LblDescripcion";
this.LblDescripcion.Size = new System.Drawing.Size(117, 26);
this.LblDescripcion.TabIndex = 3;
this.LblDescripcion.Text = "Descripción";
//
// LblCantidad
//
this.LblCantidad.AutoSize = true;
this.LblCantidad.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblCantidad.Location = new System.Drawing.Point(5, 80);
this.LblCantidad.Name = "LblCantidad";
this.LblCantidad.Size = new System.Drawing.Size(94, 26);
this.LblCantidad.TabIndex = 2;
this.LblCantidad.Text = "Cantidad";
//
// txtDescripcion
//
this.txtDescripcion.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtDescripcion.Location = new System.Drawing.Point(170, 120);
this.txtDescripcion.Name = "txtDescripcion";
this.txtDescripcion.Size = new System.Drawing.Size(150, 33);
this.txtDescripcion.TabIndex = 1;
this.txtDescripcion.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txt_KeyUp);
//
// TxtImporteEnCaja
//
this.TxtImporteEnCaja.Depth = 0;
this.TxtImporteEnCaja.Enabled = false;
this.TxtImporteEnCaja.Font = new System.Drawing.Font("Open Sans", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.TxtImporteEnCaja.Hint = "";
this.TxtImporteEnCaja.Location = new System.Drawing.Point(170, 30);
this.TxtImporteEnCaja.MaxLength = 32767;
this.TxtImporteEnCaja.MouseState = MaterialThemeCore.MouseState.HOVER;
this.TxtImporteEnCaja.Name = "TxtImporteEnCaja";
this.TxtImporteEnCaja.PasswordChar = '\0';
this.TxtImporteEnCaja.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.TxtImporteEnCaja.SelectedText = "";
this.TxtImporteEnCaja.SelectionLength = 0;
this.TxtImporteEnCaja.SelectionStart = 0;
this.TxtImporteEnCaja.Size = new System.Drawing.Size(150, 23);
this.TxtImporteEnCaja.TabIndex = 6;
this.TxtImporteEnCaja.TabStop = false;
this.TxtImporteEnCaja.Text = "$0.00";
this.TxtImporteEnCaja.UseSystemPasswordChar = false;
//
// FrmRetiroDinero
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(829, 435);
this.Controls.Add(this.panel);
this.Name = "FrmRetiroDinero";
this.Text = "FrmRetiroDinero";
this.Load += new System.EventHandler(this.FrmRetiroDinero_Load_1);
this.Resize += new System.EventHandler(this.frmRetiroDinero_Resize);
this.panel.ResumeLayout(false);
this.gbTipoEntradaSalida.ResumeLayout(false);
this.gbTipoEntradaSalida.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel;
private System.Windows.Forms.GroupBox gbTipoEntradaSalida;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label LblCantidad;
private System.Windows.Forms.TextBox txtDescripcion;
private System.Windows.Forms.MaskedTextBox txtCantidad;
private System.Windows.Forms.Label LblDescripcion;
private System.Windows.Forms.Button btnAceptar;
private MaterialThemeCore.MaterialControls.MaterialSingleLineTextField TxtImporteEnCaja;
private System.Windows.Forms.Label LblImporteEnCaja;
}
}

View File

@@ -0,0 +1,134 @@
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 FrmRetiroDinero : FormBase
{
public ClsVta_MovimientosCaja.ClsVta_MovimientosCajaModel MovimientoCaja = new ClsVta_MovimientosCaja.ClsVta_MovimientosCajaModel();
private double ImporteEnCaja;
public FrmRetiroDinero(int CveUsuario, int TipoMovimiento_)
{
InitializeComponent();
if (ModVarsPV.CorteActual != null)
{
MovimientoCaja.CveUsuario = CveUsuario;
MovimientoCaja.TipoMovimiento = TipoMovimiento_;
btnAceptar.Enabled = true;
loadCaja();
}
else
{
/* FIXME OIC
ModExtensiones.OnError("No existe un corte activo.", "Informacion", new Exception(), MessageBoxIcon.Error);
*/
btnAceptar.Enabled = false;
}
if (TipoMovimiento_ == (int)TipoMov.Retiro)
{
this.Text = "Registro de Salidas de Dinero";
gbTipoEntradaSalida.Text = "SALIDAS DE EFECTIVO";
}
else
{
this.Text = "Registro de Entradas de Dinero";
gbTipoEntradaSalida.Text = "ENTRADAS DE EFECTIVO";
}
}
public void loadCaja()
{
/* FIXME OIC
// Checar si no esta en Proceso de Venta o no tiene ningun corte pendiente
using (ClsVta_Cortes objCorteTurno = new ClsVta_Cortes())
{
if (objCorteTurno.GetVta_Cortes(-1, "-1", "-1", ModVarsPV.UsuarioActual.CveUsuario, 0))
{
ImporteEnCaja = objCorteTurno.ImporteInicial + objCorteTurno.VendidoEfectivo + objCorteTurno.Ingresado - objCorteTurno.Retirado;
TxtImporteEnCaja.Text = string.Format("${0:###,###.00}", ImporteEnCaja);
}
}
txtCantidad.Focus();*/
}
private void FrmRetiroDinero_Load_1(object sender, EventArgs e)
{
}
private void txt_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Enter:
{
if (txtCantidad.Text.Replace("_", "").Replace("$", "").Replace(",", "").ToDecimal() > 0)
{
IngresarMovimiento();
}
break;
}
}
}
private void btnAceptar_Click(object sender, EventArgs e)
{
IngresarMovimiento();
}
protected void IngresarMovimiento()
{
if (ModVarsPV.CorteActual != null)
{
MovimientoCaja.CveCorte = ModVarsPV.CorteActual.CveCorteTerminal;
var Cantidad = txtCantidad.Text.Replace("$", "").Replace(",", "").ToDouble();
if (Cantidad > 0d)
{
if (MovimientoCaja.TipoMovimiento == (int)TipoMov.Retiro & Cantidad > ImporteEnCaja)
{
MessageBox.Show("Supera el Monto Total en Caja que debe ser: " + ImporteEnCaja.ToString("C"));
}
else
{
using (ClsVta_MovimientosCaja objMovimientoCaja = new ClsVta_MovimientosCaja())
if (objMovimientoCaja.AddVta_MovimientosCaja(ModVarsPV.CorteActual.CveCorteTerminal, MovimientoCaja.CveUsuario, Cantidad, txtDescripcion.Text, MovimientoCaja.TipoMovimiento))
{
loadCaja();
txtCantidad.Text = "";
// Imprimir ticket
using (ClsImpresion objImprimir = new ClsImpresion(UsuarioActual))
{
objImprimir.Imprimir(objMovimientoCaja.CveMovimientoTerminal, TipoImpresion.MovimientoCaja, ModVarsPV.TamanoTicketConfigurado);
}
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
}
else if (Cantidad == 0d)
{
MessageBox.Show("Ingrese una Cantidad valida ");
}
}
}
private void frmRetiroDinero_Resize(object sender, EventArgs e)
{
panel.Location = new Point((this.Size.Width - panel.Width) / 2, panel.Location.Y);
}
}
}

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,285 @@

namespace ADSUtileriasWF.Views.RelojChecador.Gluyas
{
partial class Checadores
{
/// <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();
this.PnlGridchecadores = new System.Windows.Forms.Panel();
this.DGVchecadores = new System.Windows.Forms.DataGridView();
this.Movimiento = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Nombre = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.IPCHECADOR = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PUERTO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.GrpNewChecadores = new System.Windows.Forms.GroupBox();
this.TxtPuerto = new System.Windows.Forms.TextBox();
this.TxtIP = new System.Windows.Forms.TextBox();
this.LblNombre = new System.Windows.Forms.Label();
this.LblPuerto = new System.Windows.Forms.Label();
this.LblIP = new System.Windows.Forms.Label();
this.TxtNombre = new System.Windows.Forms.TextBox();
this.BtnActualizar = new FontAwesome.Sharp.IconButton();
this.BtnAgragar = new FontAwesome.Sharp.IconButton();
this.PnlGridchecadores.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DGVchecadores)).BeginInit();
this.GrpNewChecadores.SuspendLayout();
this.SuspendLayout();
//
// PnlGridchecadores
//
this.PnlGridchecadores.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.PnlGridchecadores.Controls.Add(this.DGVchecadores);
this.PnlGridchecadores.Location = new System.Drawing.Point(12, 142);
this.PnlGridchecadores.Name = "PnlGridchecadores";
this.PnlGridchecadores.Size = new System.Drawing.Size(639, 239);
this.PnlGridchecadores.TabIndex = 7;
//
// DGVchecadores
//
this.DGVchecadores.AllowUserToAddRows = false;
this.DGVchecadores.AllowUserToDeleteRows = false;
this.DGVchecadores.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGVchecadores.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.DGVchecadores.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGVchecadores.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Movimiento,
this.Nombre,
this.IPCHECADOR,
this.PUERTO});
this.DGVchecadores.Dock = System.Windows.Forms.DockStyle.Fill;
this.DGVchecadores.Location = new System.Drawing.Point(0, 0);
this.DGVchecadores.Name = "DGVchecadores";
this.DGVchecadores.ReadOnly = true;
this.DGVchecadores.RowHeadersVisible = false;
this.DGVchecadores.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGVchecadores.Size = new System.Drawing.Size(639, 239);
this.DGVchecadores.TabIndex = 1;
//
// Movimiento
//
this.Movimiento.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.Movimiento.DataPropertyName = "IDCHECADOR";
this.Movimiento.FillWeight = 177.6649F;
this.Movimiento.HeaderText = "#";
this.Movimiento.Name = "Movimiento";
this.Movimiento.ReadOnly = true;
this.Movimiento.Visible = false;
this.Movimiento.Width = 40;
//
// Nombre
//
this.Nombre.DataPropertyName = "NOMBRE";
this.Nombre.FillWeight = 90.35698F;
this.Nombre.HeaderText = "Nombre";
this.Nombre.Name = "Nombre";
this.Nombre.ReadOnly = true;
//
// IPCHECADOR
//
this.IPCHECADOR.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.IPCHECADOR.DataPropertyName = "IPCHECADOR";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle1.Format = "C";
this.IPCHECADOR.DefaultCellStyle = dataGridViewCellStyle1;
this.IPCHECADOR.FillWeight = 90.35698F;
this.IPCHECADOR.HeaderText = "IP";
this.IPCHECADOR.Name = "IPCHECADOR";
this.IPCHECADOR.ReadOnly = true;
this.IPCHECADOR.Width = 150;
//
// PUERTO
//
this.PUERTO.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.PUERTO.DataPropertyName = "PUERTO";
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 = "C";
this.PUERTO.DefaultCellStyle = dataGridViewCellStyle2;
this.PUERTO.FillWeight = 90.35698F;
this.PUERTO.HeaderText = "Puerto";
this.PUERTO.Name = "PUERTO";
this.PUERTO.ReadOnly = true;
this.PUERTO.Width = 90;
//
// GrpNewChecadores
//
this.GrpNewChecadores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.GrpNewChecadores.Controls.Add(this.TxtPuerto);
this.GrpNewChecadores.Controls.Add(this.TxtIP);
this.GrpNewChecadores.Controls.Add(this.LblNombre);
this.GrpNewChecadores.Controls.Add(this.LblPuerto);
this.GrpNewChecadores.Controls.Add(this.LblIP);
this.GrpNewChecadores.Controls.Add(this.TxtNombre);
this.GrpNewChecadores.Controls.Add(this.BtnActualizar);
this.GrpNewChecadores.Controls.Add(this.BtnAgragar);
this.GrpNewChecadores.Location = new System.Drawing.Point(12, 12);
this.GrpNewChecadores.Name = "GrpNewChecadores";
this.GrpNewChecadores.Size = new System.Drawing.Size(639, 124);
this.GrpNewChecadores.TabIndex = 6;
this.GrpNewChecadores.TabStop = false;
this.GrpNewChecadores.Text = "Nuevo";
//
// TxtPuerto
//
this.TxtPuerto.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TxtPuerto.Location = new System.Drawing.Point(509, 40);
this.TxtPuerto.Name = "TxtPuerto";
this.TxtPuerto.Size = new System.Drawing.Size(100, 23);
this.TxtPuerto.TabIndex = 12;
this.TxtPuerto.Text = "4370";
//
// TxtIP
//
this.TxtIP.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TxtIP.Location = new System.Drawing.Point(289, 40);
this.TxtIP.Name = "TxtIP";
this.TxtIP.Size = new System.Drawing.Size(202, 23);
this.TxtIP.TabIndex = 11;
this.TxtIP.Text = "192.168.100.62";
//
// LblNombre
//
this.LblNombre.AutoSize = true;
this.LblNombre.Location = new System.Drawing.Point(6, 19);
this.LblNombre.Name = "LblNombre";
this.LblNombre.Size = new System.Drawing.Size(51, 15);
this.LblNombre.TabIndex = 10;
this.LblNombre.Text = "Nombre";
//
// LblPuerto
//
this.LblPuerto.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblPuerto.AutoSize = true;
this.LblPuerto.Location = new System.Drawing.Point(509, 19);
this.LblPuerto.Name = "LblPuerto";
this.LblPuerto.Size = new System.Drawing.Size(42, 15);
this.LblPuerto.TabIndex = 9;
this.LblPuerto.Text = "Puerto";
//
// LblIP
//
this.LblIP.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblIP.AutoSize = true;
this.LblIP.Location = new System.Drawing.Point(289, 19);
this.LblIP.Name = "LblIP";
this.LblIP.Size = new System.Drawing.Size(17, 15);
this.LblIP.TabIndex = 8;
this.LblIP.Text = "IP";
//
// TxtNombre
//
this.TxtNombre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtNombre.Location = new System.Drawing.Point(6, 40);
this.TxtNombre.Name = "TxtNombre";
this.TxtNombre.Size = new System.Drawing.Size(263, 23);
this.TxtNombre.TabIndex = 7;
//
// BtnActualizar
//
this.BtnActualizar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnActualizar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.BtnActualizar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnActualizar.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnActualizar.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.BtnActualizar.IconChar = FontAwesome.Sharp.IconChar.Retweet;
this.BtnActualizar.IconColor = System.Drawing.Color.White;
this.BtnActualizar.IconSize = 32;
this.BtnActualizar.Location = new System.Drawing.Point(492, 69);
this.BtnActualizar.Name = "BtnActualizar";
this.BtnActualizar.Rotation = 0D;
this.BtnActualizar.Size = new System.Drawing.Size(118, 50);
this.BtnActualizar.TabIndex = 6;
this.BtnActualizar.Text = "Actualizar";
this.BtnActualizar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnActualizar.UseVisualStyleBackColor = false;
this.BtnActualizar.Click += new System.EventHandler(this.BtnActualizar_Click);
//
// BtnAgragar
//
this.BtnAgragar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnAgragar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.BtnAgragar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnAgragar.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnAgragar.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.BtnAgragar.IconChar = FontAwesome.Sharp.IconChar.Plus;
this.BtnAgragar.IconColor = System.Drawing.Color.White;
this.BtnAgragar.IconSize = 32;
this.BtnAgragar.Location = new System.Drawing.Point(358, 69);
this.BtnAgragar.Name = "BtnAgragar";
this.BtnAgragar.Rotation = 0D;
this.BtnAgragar.Size = new System.Drawing.Size(118, 50);
this.BtnAgragar.TabIndex = 5;
this.BtnAgragar.Text = "Agregar";
this.BtnAgragar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnAgragar.UseVisualStyleBackColor = false;
this.BtnAgragar.Click += new System.EventHandler(this.BtnAgragar_Click);
//
// Checadores
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(657, 389);
this.Controls.Add(this.PnlGridchecadores);
this.Controls.Add(this.GrpNewChecadores);
this.Name = "Checadores";
this.Text = "Checadores";
this.Load += new System.EventHandler(this.Checadores_Load);
this.PnlGridchecadores.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.DGVchecadores)).EndInit();
this.GrpNewChecadores.ResumeLayout(false);
this.GrpNewChecadores.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private FontAwesome.Sharp.IconButton BtnAgragar;
private System.Windows.Forms.GroupBox GrpNewChecadores;
private FontAwesome.Sharp.IconButton BtnActualizar;
private System.Windows.Forms.TextBox TxtPuerto;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label LblNombre;
private System.Windows.Forms.Label LblPuerto;
private System.Windows.Forms.Label LblIP;
private System.Windows.Forms.TextBox TxtNombre;
private System.Windows.Forms.TextBox TxtIP;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Panel PnlGridchecadores;
private System.Windows.Forms.DataGridView DGVchecadores;
private System.Windows.Forms.DataGridViewTextBoxColumn Movimiento;
private System.Windows.Forms.DataGridViewTextBoxColumn Nombre;
private System.Windows.Forms.DataGridViewTextBoxColumn IPCHECADOR;
private System.Windows.Forms.DataGridViewTextBoxColumn PUERTO;
}
}

View File

@@ -0,0 +1,126 @@
using ADSUtileriasWF.Helpers;
using System.Data.SQLite;
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.RelojChecador.Gluyas
{
public partial class Checadores : Form
{
private void Checadores_Load(object sender, EventArgs e)
{
loadchecadores();
}
public Checadores()
{
InitializeComponent();
}
public void loadchecadores()
{
DataTable dtChecadores = new DataTable();
ClsBD chk = new ClsBD();
string sqlEjecuta = "SELECT * FROM CHECADORES;";
dtChecadores = chk.EjecutaSqlDT(sqlEjecuta);
DGVchecadores.DataSource = dtChecadores;
DGVchecadores.Refresh();
}
private void BtnAgragar_Click(object sender, EventArgs e)
{
try
{
DataTable dt = new DataTable();
ClsBD chk = new ClsBD();
string sChechador = TxtNombre.Text;
string sIP = TxtIP.Text;
string sPuerto = TxtPuerto.Text;
string sqlEjecuta = "INSERT INTO CHECADORES (NOMBRE,IPCHECADOR,PUERTO) VALUES('" + sChechador + "','" + sIP + "','" + sPuerto + "');";
chk.EjecutaSQL(sqlEjecuta);
TxtNombre.Text = "";
TxtIP.Text = "";
TxtPuerto.Text = "";
chk.Desconectar();
loadchecadores();
}
catch (Exception ex)
{
ModExtensiones.Alert("Error al guardar el checador: " + ex.Message.ToString(), "Información", MessageBoxButtons.OK);
}
}
private void BtnActualizar_Click(object sender, EventArgs e)
{
loadchecadores();
}
}
public class ClsBD
{
private SQLiteConnection sqlconn = new SQLiteConnection();
private SQLiteCommand sqlite_cmd;
public ClsBD()
{
string dirBD = $"Data Source={System.IO.Directory.GetCurrentDirectory()}\\BD\\bdChekadores.db;;Version=3;";
sqlconn.ConnectionString = dirBD;
sqlconn.Open();
// execute queries, etc
//try
//{
// sqlconn.Open();
//}
//catch (Exception ex)
//{
//}
}
public void EjecutaSQL(string sqlQuery)
{
sqlite_cmd = sqlconn.CreateCommand();
sqlite_cmd.CommandText = sqlQuery;
sqlite_cmd.ExecuteNonQuery();
sqlconn.Close();
}
public void Desconectar()
{
sqlconn.Close();
}
public DataTable EjecutaSqlDT(string sqlQuery)
{
DataTable dt = new DataTable();
sqlite_cmd = sqlconn.CreateCommand();
sqlite_cmd.CommandText = sqlQuery;
var sqlite_datareader = sqlite_cmd.ExecuteReader();
try
{
dt.Load(sqlite_datareader);
}
catch (Exception ex)
{
}
return dt;
}
private class SQLiteDataReader
{
}
}
}

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,556 @@
namespace ADSUtileriasWF.Views.RelojChecador.Gluyas
{
partial class FrmInicio
{
/// <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.PnlMenu = new System.Windows.Forms.Panel();
this.byadsistemas = new System.Windows.Forms.Label();
this.BtnConfiguracion = new FontAwesome.Sharp.IconButton();
this.BtnReporte = new FontAwesome.Sharp.IconButton();
this.ChecadoresGluyas = new FontAwesome.Sharp.IconButton();
this.BtnNomina = new FontAwesome.Sharp.IconButton();
this.BtnAsistencia = new FontAwesome.Sharp.IconButton();
this.BtnPersonal = new FontAwesome.Sharp.IconButton();
this.BtnChecador = new FontAwesome.Sharp.IconButton();
this.PnlLogo = new System.Windows.Forms.Panel();
this.PnlTitle = new System.Windows.Forms.Panel();
this.PnlmenuXD = new System.Windows.Forms.Panel();
this.btnmenuXD = new FontAwesome.Sharp.IconButton();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.PnlTitulo = new System.Windows.Forms.Panel();
this.BtnMinimize = new FontAwesome.Sharp.IconButton();
this.LblEmpresa = new System.Windows.Forms.Label();
this.BtnMaximizeRestore = new FontAwesome.Sharp.IconButton();
this.BtnClose = new FontAwesome.Sharp.IconButton();
this.PnlBody = new System.Windows.Forms.Panel();
this.PnlBodyForms = new System.Windows.Forms.Panel();
this.PnlTopMenu = new System.Windows.Forms.Panel();
this.LblUsuario = new System.Windows.Forms.Label();
this.IboxUsuario = new FontAwesome.Sharp.IconPictureBox();
this.iconButton2 = new FontAwesome.Sharp.IconButton();
this.LblSubProyecto = new System.Windows.Forms.Label();
this.PnlMenu.SuspendLayout();
this.PnlLogo.SuspendLayout();
this.PnlTitle.SuspendLayout();
this.PnlmenuXD.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.PnlTitulo.SuspendLayout();
this.PnlBody.SuspendLayout();
this.PnlTopMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.IboxUsuario)).BeginInit();
this.SuspendLayout();
//
// PnlMenu
//
this.PnlMenu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.PnlMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(65)))), ((int)(((byte)(80)))));
this.PnlMenu.Controls.Add(this.byadsistemas);
this.PnlMenu.Controls.Add(this.BtnConfiguracion);
this.PnlMenu.Controls.Add(this.BtnReporte);
this.PnlMenu.Controls.Add(this.ChecadoresGluyas);
this.PnlMenu.Controls.Add(this.BtnNomina);
this.PnlMenu.Controls.Add(this.BtnAsistencia);
this.PnlMenu.Controls.Add(this.BtnPersonal);
this.PnlMenu.Controls.Add(this.BtnChecador);
this.PnlMenu.Controls.Add(this.PnlLogo);
this.PnlMenu.Location = new System.Drawing.Point(0, 0);
this.PnlMenu.Name = "PnlMenu";
this.PnlMenu.Size = new System.Drawing.Size(220, 584);
this.PnlMenu.TabIndex = 0;
//
// byadsistemas
//
this.byadsistemas.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.byadsistemas.AutoSize = true;
this.byadsistemas.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.byadsistemas.Location = new System.Drawing.Point(65, 560);
this.byadsistemas.Name = "byadsistemas";
this.byadsistemas.Size = new System.Drawing.Size(91, 15);
this.byadsistemas.TabIndex = 1;
this.byadsistemas.Text = "by ADSISTEMAS";
//
// BtnConfiguracion
//
this.BtnConfiguracion.Dock = System.Windows.Forms.DockStyle.Top;
this.BtnConfiguracion.FlatAppearance.BorderSize = 0;
this.BtnConfiguracion.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnConfiguracion.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnConfiguracion.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnConfiguracion.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnConfiguracion.IconChar = FontAwesome.Sharp.IconChar.Tools;
this.BtnConfiguracion.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnConfiguracion.IconSize = 28;
this.BtnConfiguracion.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnConfiguracion.Location = new System.Drawing.Point(0, 269);
this.BtnConfiguracion.Name = "BtnConfiguracion";
this.BtnConfiguracion.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.BtnConfiguracion.Rotation = 0D;
this.BtnConfiguracion.Size = new System.Drawing.Size(220, 40);
this.BtnConfiguracion.TabIndex = 0;
this.BtnConfiguracion.Text = "Configuración";
this.BtnConfiguracion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnConfiguracion.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnConfiguracion.UseVisualStyleBackColor = true;
this.BtnConfiguracion.Click += new System.EventHandler(this.ActivateButton);
//
// BtnReporte
//
this.BtnReporte.Dock = System.Windows.Forms.DockStyle.Top;
this.BtnReporte.FlatAppearance.BorderSize = 0;
this.BtnReporte.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnReporte.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnReporte.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnReporte.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnReporte.IconChar = FontAwesome.Sharp.IconChar.FilePdf;
this.BtnReporte.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnReporte.IconSize = 28;
this.BtnReporte.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnReporte.Location = new System.Drawing.Point(0, 229);
this.BtnReporte.Name = "BtnReporte";
this.BtnReporte.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.BtnReporte.Rotation = 0D;
this.BtnReporte.Size = new System.Drawing.Size(220, 40);
this.BtnReporte.TabIndex = 3;
this.BtnReporte.Text = "Reportes";
this.BtnReporte.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnReporte.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnReporte.UseVisualStyleBackColor = true;
this.BtnReporte.Click += new System.EventHandler(this.ActivateButton);
//
// ChecadoresGluyas
//
this.ChecadoresGluyas.Dock = System.Windows.Forms.DockStyle.Top;
this.ChecadoresGluyas.FlatAppearance.BorderSize = 0;
this.ChecadoresGluyas.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ChecadoresGluyas.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.ChecadoresGluyas.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ChecadoresGluyas.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.ChecadoresGluyas.IconChar = FontAwesome.Sharp.IconChar.Algolia;
this.ChecadoresGluyas.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.ChecadoresGluyas.IconSize = 28;
this.ChecadoresGluyas.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.ChecadoresGluyas.Location = new System.Drawing.Point(0, 189);
this.ChecadoresGluyas.Name = "ChecadoresGluyas";
this.ChecadoresGluyas.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.ChecadoresGluyas.Rotation = 0D;
this.ChecadoresGluyas.Size = new System.Drawing.Size(220, 40);
this.ChecadoresGluyas.TabIndex = 2;
this.ChecadoresGluyas.Text = "Checadores";
this.ChecadoresGluyas.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.ChecadoresGluyas.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.ChecadoresGluyas.UseVisualStyleBackColor = true;
this.ChecadoresGluyas.Click += new System.EventHandler(this.ActivateButton);
//
// BtnNomina
//
this.BtnNomina.Dock = System.Windows.Forms.DockStyle.Top;
this.BtnNomina.FlatAppearance.BorderSize = 0;
this.BtnNomina.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnNomina.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnNomina.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnNomina.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnNomina.IconChar = FontAwesome.Sharp.IconChar.Bell;
this.BtnNomina.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnNomina.IconSize = 28;
this.BtnNomina.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnNomina.Location = new System.Drawing.Point(0, 149);
this.BtnNomina.Name = "BtnNomina";
this.BtnNomina.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.BtnNomina.Rotation = 0D;
this.BtnNomina.Size = new System.Drawing.Size(220, 40);
this.BtnNomina.TabIndex = 0;
this.BtnNomina.Text = "Nomina";
this.BtnNomina.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnNomina.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnNomina.UseVisualStyleBackColor = true;
this.BtnNomina.Visible = false;
this.BtnNomina.Click += new System.EventHandler(this.ActivateButton);
//
// BtnAsistencia
//
this.BtnAsistencia.Dock = System.Windows.Forms.DockStyle.Top;
this.BtnAsistencia.FlatAppearance.BorderSize = 0;
this.BtnAsistencia.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnAsistencia.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnAsistencia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnAsistencia.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnAsistencia.IconChar = FontAwesome.Sharp.IconChar.Check;
this.BtnAsistencia.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnAsistencia.IconSize = 28;
this.BtnAsistencia.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnAsistencia.Location = new System.Drawing.Point(0, 109);
this.BtnAsistencia.Name = "BtnAsistencia";
this.BtnAsistencia.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.BtnAsistencia.Rotation = 0D;
this.BtnAsistencia.Size = new System.Drawing.Size(220, 40);
this.BtnAsistencia.TabIndex = 0;
this.BtnAsistencia.Text = "Asistencia";
this.BtnAsistencia.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnAsistencia.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnAsistencia.UseVisualStyleBackColor = true;
this.BtnAsistencia.Visible = false;
this.BtnAsistencia.Click += new System.EventHandler(this.ActivateButton);
//
// BtnPersonal
//
this.BtnPersonal.Dock = System.Windows.Forms.DockStyle.Top;
this.BtnPersonal.FlatAppearance.BorderSize = 0;
this.BtnPersonal.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnPersonal.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnPersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnPersonal.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnPersonal.IconChar = FontAwesome.Sharp.IconChar.IdCard;
this.BtnPersonal.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnPersonal.IconSize = 28;
this.BtnPersonal.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnPersonal.Location = new System.Drawing.Point(0, 69);
this.BtnPersonal.Name = "BtnPersonal";
this.BtnPersonal.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.BtnPersonal.Rotation = 0D;
this.BtnPersonal.Size = new System.Drawing.Size(220, 40);
this.BtnPersonal.TabIndex = 0;
this.BtnPersonal.Text = "Personal";
this.BtnPersonal.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnPersonal.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnPersonal.UseVisualStyleBackColor = true;
this.BtnPersonal.Visible = false;
this.BtnPersonal.Click += new System.EventHandler(this.ActivateButton);
//
// BtnChecador
//
this.BtnChecador.Dock = System.Windows.Forms.DockStyle.Top;
this.BtnChecador.FlatAppearance.BorderSize = 0;
this.BtnChecador.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnChecador.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnChecador.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnChecador.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnChecador.IconChar = FontAwesome.Sharp.IconChar.Algolia;
this.BtnChecador.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.BtnChecador.IconSize = 28;
this.BtnChecador.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnChecador.Location = new System.Drawing.Point(0, 29);
this.BtnChecador.Name = "BtnChecador";
this.BtnChecador.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
this.BtnChecador.Rotation = 0D;
this.BtnChecador.Size = new System.Drawing.Size(220, 40);
this.BtnChecador.TabIndex = 0;
this.BtnChecador.Text = "Checadores";
this.BtnChecador.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.BtnChecador.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnChecador.UseVisualStyleBackColor = true;
this.BtnChecador.Visible = false;
this.BtnChecador.Click += new System.EventHandler(this.ActivateButton);
//
// PnlLogo
//
this.PnlLogo.Controls.Add(this.PnlTitle);
this.PnlLogo.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlLogo.Location = new System.Drawing.Point(0, 0);
this.PnlLogo.Name = "PnlLogo";
this.PnlLogo.Size = new System.Drawing.Size(220, 29);
this.PnlLogo.TabIndex = 0;
//
// PnlTitle
//
this.PnlTitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlTitle.Controls.Add(this.PnlmenuXD);
this.PnlTitle.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlTitle.Location = new System.Drawing.Point(0, 0);
this.PnlTitle.Name = "PnlTitle";
this.PnlTitle.Size = new System.Drawing.Size(220, 30);
this.PnlTitle.TabIndex = 0;
this.PnlTitle.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// PnlmenuXD
//
this.PnlmenuXD.Controls.Add(this.btnmenuXD);
this.PnlmenuXD.Dock = System.Windows.Forms.DockStyle.Right;
this.PnlmenuXD.Location = new System.Drawing.Point(180, 0);
this.PnlmenuXD.Name = "PnlmenuXD";
this.PnlmenuXD.Size = new System.Drawing.Size(40, 30);
this.PnlmenuXD.TabIndex = 0;
//
// btnmenuXD
//
this.btnmenuXD.FlatAppearance.BorderSize = 0;
this.btnmenuXD.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnmenuXD.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.btnmenuXD.Font = new System.Drawing.Font("Segoe UI", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnmenuXD.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.btnmenuXD.IconChar = FontAwesome.Sharp.IconChar.Bars;
this.btnmenuXD.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.btnmenuXD.IconSize = 24;
this.btnmenuXD.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
this.btnmenuXD.Location = new System.Drawing.Point(0, 1);
this.btnmenuXD.Name = "btnmenuXD";
this.btnmenuXD.Rotation = 0D;
this.btnmenuXD.Size = new System.Drawing.Size(40, 30);
this.btnmenuXD.TabIndex = 0;
this.btnmenuXD.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage;
this.btnmenuXD.UseVisualStyleBackColor = true;
this.btnmenuXD.Click += new System.EventHandler(this.BtnMenuShowHide_Click);
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(9, 7);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(51, 46);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 2;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.LblEmpresa_Click);
//
// PnlTitulo
//
this.PnlTitulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.PnlTitulo.Controls.Add(this.LblSubProyecto);
this.PnlTitulo.Controls.Add(this.BtnMinimize);
this.PnlTitulo.Controls.Add(this.LblEmpresa);
this.PnlTitulo.Controls.Add(this.BtnMaximizeRestore);
this.PnlTitulo.Controls.Add(this.BtnClose);
this.PnlTitulo.Dock = System.Windows.Forms.DockStyle.Fill;
this.PnlTitulo.Location = new System.Drawing.Point(0, 0);
this.PnlTitulo.Name = "PnlTitulo";
this.PnlTitulo.Size = new System.Drawing.Size(1238, 584);
this.PnlTitulo.TabIndex = 1;
this.PnlTitulo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrastrarForm_MouseDown);
//
// 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(1147, 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);
//
// LblEmpresa
//
this.LblEmpresa.AutoSize = true;
this.LblEmpresa.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblEmpresa.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.LblEmpresa.Location = new System.Drawing.Point(226, 7);
this.LblEmpresa.Name = "LblEmpresa";
this.LblEmpresa.Size = new System.Drawing.Size(82, 17);
this.LblEmpresa.TabIndex = 2;
this.LblEmpresa.Text = "ADSISTEMAS";
this.LblEmpresa.Click += new System.EventHandler(this.LblEmpresa_Click);
//
// 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(1177, 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);
//
// 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(1207, 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);
//
// PnlBody
//
this.PnlBody.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.PnlBody.AutoScroll = true;
this.PnlBody.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.PnlBody.Controls.Add(this.PnlBodyForms);
this.PnlBody.Location = new System.Drawing.Point(220, 100);
this.PnlBody.Name = "PnlBody";
this.PnlBody.Size = new System.Drawing.Size(1014, 480);
this.PnlBody.TabIndex = 2;
this.PnlBody.SizeChanged += new System.EventHandler(this.PnlBody_SizeChanged);
this.PnlBody.Paint += new System.Windows.Forms.PaintEventHandler(this.PnlBody_Paint);
//
// PnlBodyForms
//
this.PnlBodyForms.Location = new System.Drawing.Point(0, 0);
this.PnlBodyForms.Name = "PnlBodyForms";
this.PnlBodyForms.Size = new System.Drawing.Size(219, 215);
this.PnlBodyForms.TabIndex = 0;
//
// PnlTopMenu
//
this.PnlTopMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(65)))), ((int)(((byte)(80)))));
this.PnlTopMenu.Controls.Add(this.pictureBox1);
this.PnlTopMenu.Controls.Add(this.LblUsuario);
this.PnlTopMenu.Controls.Add(this.IboxUsuario);
this.PnlTopMenu.Location = new System.Drawing.Point(220, 30);
this.PnlTopMenu.Name = "PnlTopMenu";
this.PnlTopMenu.Size = new System.Drawing.Size(1024, 70);
this.PnlTopMenu.TabIndex = 3;
//
// LblUsuario
//
this.LblUsuario.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblUsuario.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblUsuario.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.LblUsuario.Location = new System.Drawing.Point(870, 30);
this.LblUsuario.Name = "LblUsuario";
this.LblUsuario.Size = new System.Drawing.Size(140, 40);
this.LblUsuario.TabIndex = 1;
this.LblUsuario.Text = "Usuario este es un texto muy largo que se brincara la lines para no";
this.LblUsuario.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// IboxUsuario
//
this.IboxUsuario.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.IboxUsuario.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(65)))), ((int)(((byte)(80)))));
this.IboxUsuario.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.IboxUsuario.IconChar = FontAwesome.Sharp.IconChar.Portrait;
this.IboxUsuario.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.IboxUsuario.IconSize = 26;
this.IboxUsuario.Location = new System.Drawing.Point(930, 5);
this.IboxUsuario.Name = "IboxUsuario";
this.IboxUsuario.Size = new System.Drawing.Size(32, 26);
this.IboxUsuario.TabIndex = 0;
this.IboxUsuario.TabStop = false;
//
// iconButton2
//
this.iconButton2.Dock = System.Windows.Forms.DockStyle.Top;
this.iconButton2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.iconButton2.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.iconButton2.Font = new System.Drawing.Font("Segoe UI", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.iconButton2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.iconButton2.IconChar = FontAwesome.Sharp.IconChar.Bars;
this.iconButton2.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.iconButton2.IconSize = 24;
this.iconButton2.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
this.iconButton2.Location = new System.Drawing.Point(0, 0);
this.iconButton2.Name = "iconButton2";
this.iconButton2.Rotation = 0D;
this.iconButton2.Size = new System.Drawing.Size(40, 30);
this.iconButton2.TabIndex = 0;
this.iconButton2.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage;
this.iconButton2.UseVisualStyleBackColor = true;
//
// LblSubProyecto
//
this.LblSubProyecto.AutoSize = true;
this.LblSubProyecto.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.LblSubProyecto.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(188)))), ((int)(((byte)(200)))));
this.LblSubProyecto.Location = new System.Drawing.Point(546, 7);
this.LblSubProyecto.Name = "LblSubProyecto";
this.LblSubProyecto.Size = new System.Drawing.Size(0, 17);
this.LblSubProyecto.TabIndex = 3;
//
// FrmInicio
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(1238, 584);
this.ControlBox = false;
this.Controls.Add(this.PnlTopMenu);
this.Controls.Add(this.PnlBody);
this.Controls.Add(this.PnlMenu);
this.Controls.Add(this.PnlTitulo);
this.MinimumSize = new System.Drawing.Size(650, 400);
this.Name = "FrmInicio";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.PnlMenu.ResumeLayout(false);
this.PnlMenu.PerformLayout();
this.PnlLogo.ResumeLayout(false);
this.PnlTitle.ResumeLayout(false);
this.PnlmenuXD.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.PnlTitulo.ResumeLayout(false);
this.PnlTitulo.PerformLayout();
this.PnlBody.ResumeLayout(false);
this.PnlTopMenu.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.IboxUsuario)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel PnlMenu;
private System.Windows.Forms.Panel PnlLogo;
private FontAwesome.Sharp.IconButton BtnChecador;
private FontAwesome.Sharp.IconButton BtnConfiguracion;
private FontAwesome.Sharp.IconButton ChecadoresGluyas;
private FontAwesome.Sharp.IconButton BtnAsistencia;
private FontAwesome.Sharp.IconButton BtnPersonal;
private System.Windows.Forms.Panel PnlTitle;
private System.Windows.Forms.Panel PnlmenuXD;
private FontAwesome.Sharp.IconButton btnmenuXD;
private System.Windows.Forms.Panel PnlTitulo;
private FontAwesome.Sharp.IconButton BtnClose;
private FontAwesome.Sharp.IconButton BtnMaximizeRestore;
private FontAwesome.Sharp.IconButton BtnMinimize;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label byadsistemas;
private System.Windows.Forms.Panel PnlBody;
private System.Windows.Forms.Panel PnlTopMenu;
private System.Windows.Forms.Panel PnlBodyForms;
private FontAwesome.Sharp.IconPictureBox IboxUsuario;
private System.Windows.Forms.Label LblUsuario;
private System.Windows.Forms.Label LblEmpresa;
private FontAwesome.Sharp.IconButton BtnNomina;
private FontAwesome.Sharp.IconButton iconButton2;
private FontAwesome.Sharp.IconButton BtnReporte;
public System.Windows.Forms.Label LblSubProyecto;
}
}

View File

@@ -0,0 +1,292 @@
using ADSUtileriasWF.Helpers;
using ADSUtileriasWF.Views.RelojChecador.Views;
using ADSUtileriasWF.Views.Timbrado.Views;
using FontAwesome.Sharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Views.RelojChecador.Gluyas
{
public partial class FrmInicio : FormBase
{
const int PnlMenuWidthOpen = 220;
const int PnlMenuWidthClose = 68;
private IconButton currentBtn;
private Form currentForm;
private Panel leftBorderBtn;
private FrmConfiguracion frmConfiguracion;
private FrmAsistencia frmAsistencia;
//private FrmPersonal frmPersonal;
private FrmTimbradoNomina frmTimbradoNomina;
private FrmNewPersonalChecador frmnewPersonal ;
private FrmChecadores frmChecadores;
List<string[]> btnestexto;
public FrmInicio()
{
InitializeComponent();
this.SetStyle(ControlStyles.ResizeRedraw, true);
leftBorderBtn = new Panel();
PnlMenu.Controls.Add(leftBorderBtn);
LblUsuario.Text = "";//"brenda.martinez@agrojam.com.mx";//UsuarioActual.Nombre;
LblEmpresa.Text = "";//"Agroquimicos JAM";//UsuarioActual.Empresa.empresa1Field;
btnestexto = new List<string[]>();
//PnlMenu.Controls.OfType<Control>().SelectMany(x => x is Button))
foreach (Control item in PnlMenu.Controls)
{
if(item is Button){ btnestexto.Add(new string[] { item.Name, item.Text }); }
}
if (ModVarsPV.CveTipoTerminal > 1)
{
activeMenu("BtnComedor");
BtnMenuShowHide_Click(null, null);
this.PnlBody.Width = PnlBody.Width + this.PnlMenu.Width;
this.PnlTopMenu.Width = PnlTopMenu.Width + this.PnlMenu.Width;
this.PnlMenu.Width = 0;
PnlMenu.Visible = false;
PnlTopMenu.Location = new System.Drawing.Point(0, PnlTopMenu.Location.Y);
PnlBody.Location = new System.Drawing.Point(0, PnlBody.Location.Y);
}
}
#region viewchanges
private void BtnMenuShowHide_Click(object sender, EventArgs e)
{
int restante = PnlMenuWidthOpen - PnlMenuWidthClose;
if (PnlMenu.Size.Width == PnlMenuWidthOpen)
{
this.PnlMenu.Width = PnlMenuWidthClose;
//LblEmpresa.Location = new System.Drawing.Point(10, LblEmpresa.Location.Y);
PnlTopMenu.Width = PnlTopMenu.Width + restante;
PnlTopMenu.Location = new System.Drawing.Point(PnlMenuWidthClose, PnlTopMenu.Location.Y);
LblEmpresa.Location=new System.Drawing.Point(LblEmpresa.Location.X - restante, LblEmpresa.Location.Y);
this.PnlBody.Width = PnlBody.Width + restante;
PnlBody.Location = new System.Drawing.Point(PnlMenuWidthClose, PnlBody.Location.Y);
foreach (Control item in PnlMenu.Controls)
{
if (item is Button) { item.Text = ""; }
}
/*
BtnConfiguracion.Text = "";
BtnAsistencia.Text = "";
BtnPersonal.Text = "";
BtnChecador.Text = "";
BtnNomina.Text = "";*/
PnlmenuXD.Dock = System.Windows.Forms.DockStyle.Left;
PnlmenuXD.Size = new System.Drawing.Size(PnlMenuWidthClose, 30);
btnmenuXD.Size = new System.Drawing.Size(PnlMenuWidthClose, 30);
btnmenuXD.Padding = new System.Windows.Forms.Padding(0, 0, 20, 0);
btnmenuXD.Text = " ";
}
else
{
PnlMenu.Width = PnlMenuWidthOpen;
//LblEmpresa.Location = new System.Drawing.Point(160, LblEmpresa.Location.Y);
LblEmpresa.Location=new System.Drawing.Point(LblEmpresa.Location.X + restante, LblEmpresa.Location.Y);
PnlTopMenu.Width = PnlTopMenu.Width - restante;
PnlTopMenu.Location = new System.Drawing.Point(PnlMenuWidthOpen, PnlTopMenu.Location.Y);
PnlBody.Location = new System.Drawing.Point(PnlMenuWidthOpen, PnlBody.Location.Y);
this.PnlBody.Width = PnlBody.Width - restante;
foreach (Control item in PnlMenu.Controls)
{
if (item is Button) {
string texto = btnestexto.FirstOrDefault(x => x[0] == item.Name)[1];
item.Text = texto == null ? "" : texto;
}
}/*
BtnConfiguracion.Text = "Configuración";
BtnAsistencia.Text = "Asistencia";
BtnPersonal.Text = "Personal";
BtnChecador.Text = "Checadores";
BtnNomina.Text = "Nómina";*/
PnlmenuXD.Dock = System.Windows.Forms.DockStyle.Right;
PnlmenuXD.Size = new System.Drawing.Size(40, 30);
btnmenuXD.Size = new System.Drawing.Size(40, 30);
btnmenuXD.Padding = new System.Windows.Forms.Padding(0, 0, 0, 0);
btnmenuXD.Text = "";
}
}
private void setActivateButton(object sender, EventArgs e)
{
if (currentBtn != sender)
{
if (currentBtn != null)
{
currentBtn.BackColor = System.Drawing.Color.FromArgb(54, 65, 80);
currentBtn.ForeColor = btnmenuXD.ForeColor;
currentBtn.TextAlign = ContentAlignment.MiddleLeft;
currentBtn.IconColor = Color.Gainsboro;
currentBtn.TextImageRelation = TextImageRelation.ImageBeforeText;
currentBtn.ImageAlign = ContentAlignment.MiddleLeft;
}
if (sender != null)
{
Color color = Color.FromArgb(53, 152, 220);
//Button
currentBtn = (IconButton)sender;
currentBtn.BackColor = Color.FromArgb(43, 54, 67);
//currentBtn.ForeColor = color;
currentBtn.TextAlign = ContentAlignment.MiddleCenter;
currentBtn.IconColor = color;
currentBtn.TextImageRelation = TextImageRelation.TextBeforeImage;
currentBtn.ImageAlign = ContentAlignment.MiddleRight;
//Left border button
leftBorderBtn.BackColor = color;
leftBorderBtn.Size = new Size(7, currentBtn.Size.Height);
leftBorderBtn.Location = new Point(0, currentBtn.Location.Y);
leftBorderBtn.Visible = true;
leftBorderBtn.BringToFront();
activeMenu(currentBtn.Name.ToString());
}
}
PnlBody_SizeChanged(PnlBody, null);
}
private void ActivateButton(object sender, EventArgs e)
{
setActivateButton(sender, e);
}
private void PnlBody_SizeChanged(object sender, EventArgs e)
{
int width = PnlBody.Width - 5;
int height = PnlBody.Height - 5;
if (currentForm != null)
{
if (width < currentForm.MinimumSize.Width)
{
width = currentForm.MinimumSize.Width;
}
if (height < currentForm.MinimumSize.Height)
{
height = currentForm.MinimumSize.Height;
}
currentForm.Size = new System.Drawing.Size(width, height);
}
PnlBodyForms.Size = new System.Drawing.Size(width, height);
}
#endregion
private void activeMenu(string buttonname)
{
bool isnewform = false;
if (currentForm != null)
{
currentForm.Hide();
currentForm = null;
}
switch (buttonname)
{
/*
private ;
private ;
.Text = "";
.Text = "";*/
case "BtnConfiguracion":
if (frmConfiguracion == null)
{
frmConfiguracion = new FrmConfiguracion();
isnewform = true;
}
currentForm = frmConfiguracion;
break;
case "BtnPersonal":
//if (frmPersonal == null)
//{
// frmPersonal = new FrmPersonal();
// isnewform = true;
//}
//currentForm = frmPersonal;
if (frmnewPersonal == null)
{
frmnewPersonal = new FrmNewPersonalChecador();
isnewform = true;
}
currentForm = frmnewPersonal;
break;
case "BtnAsistencia":
if (frmAsistencia == null)
{
frmAsistencia = new FrmAsistencia();
isnewform = true;
}
currentForm = frmAsistencia;
break;
case "BtnChecador":
if (frmChecadores == null)
{
frmChecadores = new FrmChecadores();
isnewform = true;
}
currentForm = frmChecadores;
break;
case "BtnNomina":
if (frmTimbradoNomina == null)
{
frmTimbradoNomina = new FrmTimbradoNomina();
isnewform = true;
}
currentForm = frmTimbradoNomina;
break;
case "ChecadoresGluyas":
isnewform = true;
currentForm = new ADSUtileriasWF.Views.RelojChecador.Gluyas.Checadores();
break;
case "BtnReporte":
isnewform = true;
currentForm = new ADSUtileriasWF.Views.RelojChecador.Gluyas.ReporteChecadores();
break;
default:
break;
}
if (currentForm != null)
{
if (isnewform)
{
currentForm.TopLevel = false;
currentForm.AutoScroll = true;
this.PnlBodyForms.Controls.Add(currentForm);
currentForm.FormBorderStyle = FormBorderStyle.None;
currentForm.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)));
}
PnlBodyForms.MinimumSize = currentForm.MinimumSize;
currentForm.BringToFront();
currentForm.Show();
}
else
{
PnlBodyForms.MinimumSize = new System.Drawing.Size(0, 0);
}
}
private void LblEmpresa_Click(object sender, EventArgs e)
{
activeMenu("");
}
private void PnlBody_Paint(object sender, PaintEventArgs 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,320 @@

namespace ADSUtileriasWF.Views.RelojChecador.Gluyas
{
partial class ReporteChecadores
{
/// <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();
this.PnlReporte = new System.Windows.Forms.Panel();
this.DTGVReporte = new System.Windows.Forms.DataGridView();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.BtnDescargar = new FontAwesome.Sharp.IconButton();
this.BtnGenerar = new FontAwesome.Sharp.IconButton();
this.TxtSelecPuerto = new System.Windows.Forms.TextBox();
this.TxtSelectIP = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.LblReporte = new System.Windows.Forms.Label();
this.DdlReporte = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.DdlChecadores = new System.Windows.Forms.ComboBox();
this.txtFechaFin = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.txtFechaInicio = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.PnlReporte.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DTGVReporte)).BeginInit();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// PnlReporte
//
this.PnlReporte.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.PnlReporte.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.PnlReporte.Controls.Add(this.DTGVReporte);
this.PnlReporte.Location = new System.Drawing.Point(3, 183);
this.PnlReporte.Name = "PnlReporte";
this.PnlReporte.Size = new System.Drawing.Size(585, 191);
this.PnlReporte.TabIndex = 3;
//
// DTGVReporte
//
this.DTGVReporte.AllowUserToAddRows = false;
this.DTGVReporte.AllowUserToDeleteRows = false;
this.DTGVReporte.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DTGVReporte.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.DTGVReporte.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.DTGVReporte.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.DTGVReporte.DefaultCellStyle = dataGridViewCellStyle2;
this.DTGVReporte.Dock = System.Windows.Forms.DockStyle.Fill;
this.DTGVReporte.Location = new System.Drawing.Point(0, 0);
this.DTGVReporte.Name = "DTGVReporte";
this.DTGVReporte.RowTemplate.Height = 25;
this.DTGVReporte.Size = new System.Drawing.Size(585, 191);
this.DTGVReporte.TabIndex = 0;
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.BtnDescargar);
this.groupBox1.Controls.Add(this.BtnGenerar);
this.groupBox1.Controls.Add(this.TxtSelecPuerto);
this.groupBox1.Controls.Add(this.TxtSelectIP);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.LblReporte);
this.groupBox1.Controls.Add(this.DdlReporte);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.DdlChecadores);
this.groupBox1.Controls.Add(this.txtFechaFin);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.txtFechaInicio);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(585, 173);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Filtro";
//
// BtnDescargar
//
this.BtnDescargar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnDescargar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.BtnDescargar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnDescargar.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnDescargar.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.BtnDescargar.IconChar = FontAwesome.Sharp.IconChar.FileExcel;
this.BtnDescargar.IconColor = System.Drawing.Color.White;
this.BtnDescargar.IconSize = 32;
this.BtnDescargar.Location = new System.Drawing.Point(455, 113);
this.BtnDescargar.Name = "BtnDescargar";
this.BtnDescargar.Rotation = 0D;
this.BtnDescargar.Size = new System.Drawing.Size(118, 50);
this.BtnDescargar.TabIndex = 13;
this.BtnDescargar.Text = "Descargar";
this.BtnDescargar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnDescargar.UseVisualStyleBackColor = false;
this.BtnDescargar.Click += new System.EventHandler(this.BtnDescargar_Click);
//
// BtnGenerar
//
this.BtnGenerar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnGenerar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(54)))), ((int)(((byte)(67)))));
this.BtnGenerar.Flip = FontAwesome.Sharp.FlipOrientation.Normal;
this.BtnGenerar.Font = new System.Drawing.Font("Open Sans", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.BtnGenerar.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.BtnGenerar.IconChar = FontAwesome.Sharp.IconChar.FileExport;
this.BtnGenerar.IconColor = System.Drawing.Color.White;
this.BtnGenerar.IconSize = 32;
this.BtnGenerar.Location = new System.Drawing.Point(331, 113);
this.BtnGenerar.Name = "BtnGenerar";
this.BtnGenerar.Rotation = 0D;
this.BtnGenerar.Size = new System.Drawing.Size(118, 50);
this.BtnGenerar.TabIndex = 12;
this.BtnGenerar.Text = "Generar";
this.BtnGenerar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.BtnGenerar.UseVisualStyleBackColor = false;
this.BtnGenerar.Click += new System.EventHandler(this.BtnGenerar_Click);
//
// TxtSelecPuerto
//
this.TxtSelecPuerto.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TxtSelecPuerto.Enabled = false;
this.TxtSelecPuerto.Location = new System.Drawing.Point(217, 84);
this.TxtSelecPuerto.Name = "TxtSelecPuerto";
this.TxtSelecPuerto.Size = new System.Drawing.Size(59, 23);
this.TxtSelecPuerto.TabIndex = 11;
//
// TxtSelectIP
//
this.TxtSelectIP.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtSelectIP.Enabled = false;
this.TxtSelectIP.Location = new System.Drawing.Point(21, 83);
this.TxtSelectIP.Name = "TxtSelectIP";
this.TxtSelectIP.Size = new System.Drawing.Size(174, 23);
this.TxtSelectIP.TabIndex = 10;
//
// label5
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(217, 64);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(42, 15);
this.label5.TabIndex = 9;
this.label5.Text = "Puerto";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(21, 66);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(17, 15);
this.label4.TabIndex = 8;
this.label4.Text = "IP";
//
// LblReporte
//
this.LblReporte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblReporte.AutoSize = true;
this.LblReporte.Location = new System.Drawing.Point(300, 17);
this.LblReporte.Name = "LblReporte";
this.LblReporte.Size = new System.Drawing.Size(48, 15);
this.LblReporte.TabIndex = 7;
this.LblReporte.Text = "Reporte";
//
// DdlReporte
//
this.DdlReporte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.DdlReporte.FormattingEnabled = true;
this.DdlReporte.Location = new System.Drawing.Point(300, 38);
this.DdlReporte.Name = "DdlReporte";
this.DdlReporte.Size = new System.Drawing.Size(273, 23);
this.DdlReporte.TabIndex = 6;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(21, 17);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(58, 15);
this.label3.TabIndex = 5;
this.label3.Text = "Checador";
//
// DdlChecadores
//
this.DdlChecadores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DdlChecadores.FormattingEnabled = true;
this.DdlChecadores.Location = new System.Drawing.Point(21, 38);
this.DdlChecadores.Name = "DdlChecadores";
this.DdlChecadores.Size = new System.Drawing.Size(255, 23);
this.DdlChecadores.TabIndex = 4;
this.DdlChecadores.SelectedIndexChanged += new System.EventHandler(this.DdlChecadores_SelectedIndexChanged);
//
// txtFechaFin
//
this.txtFechaFin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtFechaFin.CustomFormat = "dd/MM/yyyy HH:mm";
this.txtFechaFin.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.txtFechaFin.Location = new System.Drawing.Point(445, 84);
this.txtFechaFin.Name = "txtFechaFin";
this.txtFechaFin.Size = new System.Drawing.Size(128, 23);
this.txtFechaFin.TabIndex = 3;
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(445, 66);
this.label2.Name = "label2";
this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label2.Size = new System.Drawing.Size(55, 15);
this.label2.TabIndex = 2;
this.label2.Text = "Fecha fin";
//
// txtFechaInicio
//
this.txtFechaInicio.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtFechaInicio.CustomFormat = "dd/MM/yyyy HH:mm";
this.txtFechaInicio.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.txtFechaInicio.Location = new System.Drawing.Point(300, 84);
this.txtFechaInicio.Name = "txtFechaInicio";
this.txtFechaInicio.Size = new System.Drawing.Size(128, 23);
this.txtFechaInicio.TabIndex = 1;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(300, 66);
this.label1.Name = "label1";
this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label1.Size = new System.Drawing.Size(70, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Fecha inicio";
//
// ReporteChecadores
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(595, 381);
this.Controls.Add(this.PnlReporte);
this.Controls.Add(this.groupBox1);
this.Name = "ReporteChecadores";
this.Text = "ReporteChecadores";
this.Load += new System.EventHandler(this.ReporteChecadores_Load);
this.PnlReporte.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.DTGVReporte)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel PnlReporte;
private System.Windows.Forms.DataGridView DTGVReporte;
private System.Windows.Forms.GroupBox groupBox1;
private FontAwesome.Sharp.IconButton BtnDescargar;
private FontAwesome.Sharp.IconButton BtnGenerar;
private System.Windows.Forms.TextBox TxtSelecPuerto;
private System.Windows.Forms.TextBox TxtSelectIP;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label LblReporte;
private System.Windows.Forms.ComboBox DdlReporte;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox DdlChecadores;
private System.Windows.Forms.DateTimePicker txtFechaFin;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker txtFechaInicio;
private System.Windows.Forms.Label label1;
}
}

View File

@@ -0,0 +1,317 @@
using ADSUtileriasWF.Helpers;
using DocumentFormat.OpenXml.Wordprocessing;
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.RelojChecador.Gluyas
{
public partial class ReporteChecadores : Form
{
DataTable DtAsistencia;
private void ReporteChecadores_Load(object sender, EventArgs e)
{
loadchecadores(); LoadReportes();
}
public void loadchecadores()
{
DataTable dtChecadores = new DataTable();
ClsBD chk = new ClsBD();
string sqlEjecuta = "SELECT * FROM CHECADORES;";
dtChecadores = chk.EjecutaSqlDT(sqlEjecuta);
DataTable dt = new DataTable();
sqlEjecuta = "SELECT IDCHECADOR,NOMBRE FROM CHECADORES UNION SELECT 0 AS IDCHECADOR, 'Seleccione checador...' AS NOMBRE ORDER BY IDCHECADOR,NOMBRE;";
dt = chk.EjecutaSqlDT(sqlEjecuta);
DdlChecadores.DataSource = dt;
DdlChecadores.DisplayMember = "nombre";
DdlChecadores.ValueMember = "IDCHECADOR";
DdlChecadores.Refresh();
chk.Desconectar();
}
public void LoadReportes()
{
DataTable dt = new DataTable();
ClsBD chk = new ClsBD();
string sqlEjecuta = "SELECT 0 AS IdReporte, 'Asistencia' AS Nombre ORDER BY IdReporte;";
dt = chk.EjecutaSqlDT(sqlEjecuta);
DdlReporte.DataSource = dt;
DdlReporte.DisplayMember = "Nombre";
DdlReporte.ValueMember = "IdReporte";
DdlReporte.Refresh();
chk.Desconectar();
}
public ReporteChecadores()
{
InitializeComponent();
}
private void BtnGenerar_Click(object sender, EventArgs e)
{
DataTable dt_periodLog = new DataTable("dt_periodLog");
DtAsistencia = new DataTable("Asistencia");
const string formatfecha = "yyyy/MM/dd HH:mm:ss";
DateTime dfechai = txtFechaInicio.Text.ToDateTime();
DateTime dfechaf = txtFechaFin.Text.ToDateTime();
if (dfechai <= dfechaf)
{
DateTime datei = dfechai.ToString("yyyy/MM/dd").ToDateTime();
DateTime datef = dfechaf.ToString("yyyy/MM/dd").ToDateTime();
DateTime date = datei.AddDays(-1);
string fechai = dfechai.ToString(formatfecha);
string fechaf = dfechaf.ToString(formatfecha);
List<string> listafecha = new List<string>();
List<string[]> ListEmpleados = new List<string[]>();
while ((date = date.AddDays(1)) <= datef)
{
string fecha = $"{date.ToString("dddd", new System.Globalization.CultureInfo("es-MX"))}\r\n{date:dd-MM-yyyy}";
listafecha.Add(fecha);
}
this.DTGVReporte.AutoSizeColumnsMode = listafecha.Count <= 7 ? System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill : System.Windows.Forms.DataGridViewAutoSizeColumnsMode.None;
DTGVReporte.AutoGenerateColumns = true;
DTGVReporte.Columns.Clear();
dt_periodLog.Columns.Add("NOEMPLEADO", System.Type.GetType("System.String"));
dt_periodLog.Columns.Add("FECHA", System.Type.GetType("System.String"));
dt_periodLog.Columns.Add("HORA", System.Type.GetType("System.String"));
//clsFuncionesChk clsFunciones = new clsFuncionesChk();
//clsGlobales extras = new clsGlobales();
//extras.ShowStatusBar("Generando informe...espere por favor", true, lblBarra);
//lblBarra.Refresh();
string sdwEnrollNumber = "";
int idwMachin = 1;
int idwVerifyMode = 0;
int idwInOutMode = 0;
int idwYear = 0;
int idwMonth = 0;
int idwDay = 0;
int idwHour = 0;
int idwMinute = 0;
int idwSecond = 0;
int idwWorkcode = 0;
zkemkeeper.CZKEM conectarse = new zkemkeeper.CZKEM();
bool conectado = false;
try
{
conectado = conectarse.Connect_Net(TxtSelectIP.Text, TxtSelecPuerto.Text.ToEntero());
bool isenabledevice = conectarse.EnableDevice(idwMachin, false);
DataTable dtEmpleados = GetEmpleados(conectarse, idwMachin);
bool lectura = conectarse.ReadTimeGLogData(idwMachin, fechai, fechaf);
while (conectarse.SSR_GetGeneralLogData(idwMachin, out sdwEnrollNumber, out idwVerifyMode, out idwInOutMode, out idwYear, out idwMonth, out idwDay, out idwHour, out idwMinute, out idwSecond, idwWorkcode))
{
DataRow dr = dt_periodLog.NewRow();
dr["NOEMPLEADO"] = sdwEnrollNumber;
DateTime dfecha = $"{idwYear}-{(idwMonth < 10 ? "0" : "")}{idwMonth}-{(idwDay < 10 ? "0" : "")}{ idwDay} {(idwHour < 10 ? "0" : "")}{idwHour}:{(idwMinute < 10 ? "0" : "")}{idwMinute}".ToDateTime();
if (dfecha >= dfechai && dfecha <= dfechaf)
{
if (ListEmpleados.FindAll(x => x[0] == sdwEnrollNumber).Count == 0)
{
string nombre = "";
foreach (DataRow item in dtEmpleados.Select($"NOEMPLEADO = {sdwEnrollNumber}"))
{
nombre = item["NOMBRE"].ToString();
}
ListEmpleados.Add(new string[] { sdwEnrollNumber, nombre });
}
string fecha = $"{dfecha.ToString("dddd", new System.Globalization.CultureInfo("es-MX"))}\r\n{dfecha:dd-MM-yyyy}";
//if (listafecha.FindAll(x => x == fecha).Count == 0) { listafecha.Add(fecha); }
dr["FECHA"] = fecha;// + " " + idwHour.ToString() + ":" + idwMinute.ToString() + ":" + idwSecond.ToString();
dr["HORA"] = $"{(idwHour < 10 ? "0" : "")}{idwHour}:{(idwMinute < 10 ? "0" : "")}{idwMinute}";// + ":" + idwSecond.ToString();
dt_periodLog.Rows.Add(dr);
}
}
DtAsistencia.Columns.Add("Código", System.Type.GetType("System.String"));
DtAsistencia.Columns.Add("Nombre", System.Type.GetType("System.String"));
foreach (var item in listafecha)
{
DtAsistencia.Columns.Add(item, System.Type.GetType("System.String"));
}
dt_periodLog = dt_periodLog.DefaultView.ToTable(true, "NOEMPLEADO", "FECHA", "HORA");
foreach (var user in ListEmpleados)
{
DataRow dr = DtAsistencia.NewRow();
dr["Código"] = user[0];
dr["Nombre"] = user[1];
double numero = 0;
string colname, oldcolname;
oldcolname = "";
foreach (DataRow item in dt_periodLog.Select($"NOEMPLEADO = {user[0]}"))
{
colname = item["FECHA"].ToString();
if (colname != oldcolname) { numero = 0; }
dr[colname] = $"{dr[colname]}{(numero == 0 ? "" : ((numero % 2) == 0) ? "\r\n" : " - ")}{item["HORA"]}";
numero = numero + 1;
oldcolname = colname;
}
DtAsistencia.Rows.Add(dr);
}
}
catch (Exception ex)
{
MessageBox.Show("Error al conectarse al checador " + ex.Message.ToString());
}
finally
{
if (conectado) { conectarse.EnableDevice(idwMachin, true); conectarse.Disconnect(); }
}
}
else
{
MessageBox.Show("la fecha inicio no puede ser mayor a la fecha fin ");
}
DTGVReporte.DataSource = DtAsistencia;
DTGVReporte.Refresh();
}
private DataTable GetEmpleados(zkemkeeper.CZKEM conectarse, int iMachineNumber = 1)
{
DataTable dtEmpleados = new DataTable();
int idwErrorCode = 0;
try
{
dtEmpleados.Columns.Add("NOEMPLEADO");
dtEmpleados.Columns.Add("NOMBRE");
dtEmpleados.Columns.Add("ACTIVO");
string sEnrollNumber = "";
string sName = "";
string sPassword = "";
string sCardnumber = "";
int iPrivilege = 0;
bool bEnabled = false;
int num = 0;
int index = 0;
bool readallinfo = conectarse.ReadAllUserID(iMachineNumber); // ;//read all the user information To the memory
if (readallinfo)
{
while (conectarse.SSR_GetAllUserInfo(iMachineNumber, out sEnrollNumber, out sName, out sPassword, out iPrivilege, out bEnabled))
{
conectarse.GetStrCardNumber(out sCardnumber);
// If conectarse.GetUserFaceStr(1, sEnrollNumber, iFaceIndex, sTmpData, iLength) Then
//personal.CvePersonal = sCardnumber;
DataRow Renglon = dtEmpleados.NewRow();
Renglon["NOEMPLEADO"] = sEnrollNumber;
Renglon["NOMBRE"] = sName;
Renglon["ACTIVO"] = (bEnabled ? 1 : 0);
dtEmpleados.Rows.Add(Renglon);
// While conectarse.GetUserTmp(iMachineNumber, sEnrollNumber, dwFingerIndex, TmpData, TmpLength)
// entre = True
// End While
// lvUserInfo.Items(index).SubItems.Add(sName)
// lvUserInfo.Items(index).SubItems.Add(sPassword)
// lvUserInfo.Items(index).SubItems.Add(iPrivilege.ToString())
// lvUserInfo.Items(index).SubItems.Add(iLength.ToString())
// lvUserInfo.Items(index).SubItems.Add(sTmpData)
index += 1;
num += 1;
}
}
else { conectarse.GetLastError(idwErrorCode); }
}
catch (Exception ex)
{
MessageBox.Show("Error al conectarse al checador " + ex.Message.ToString());
}
return dtEmpleados;
}
private void DdlChecadores_SelectedIndexChanged(object sender, EventArgs e)
{
int IDCHECADOR = DdlChecadores.SelectedValue.ToString().ToEntero();
DataTable dt = new DataTable();
ClsBD chk = new ClsBD();
string sqlEjecuta = $"SELECT IPCHECADOR,PUERTO FROM CHECADORES WHERE IDCHECADOR={IDCHECADOR};";
dt = chk.EjecutaSqlDT(sqlEjecuta);
chk.Desconectar();
TxtSelectIP.Text = "";
TxtSelecPuerto.Text = "";
if (dt.Rows.Count > 0)
{
TxtSelectIP.Text = dt.Rows[0]["IPCHECADOR"].ToString();
TxtSelecPuerto.Text = dt.Rows[0]["PUERTO"].ToString();
}
}
private void BtnDescargar_Click(object sender, EventArgs e)
{
var wb = new ClosedXML.Excel.XLWorkbook();
// Add a DataTable as a worksheet
var wsDep = wb.Worksheets.Add(DtAsistencia);
wsDep.Columns().AdjustToContents();
//System.IO.Stream myStream = null;
//wb.SaveAs(myStream);
//wb.SaveAs("AddingDataTableAsWorksheet.xlsx");
SaveFileDialog SaveFileDialog1 = new SaveFileDialog();
savefileAs(wb, "Asistencia.xlsx", SaveFileDialog1);
}
private void savefileAs(ClosedXML.Excel.XLWorkbook wb,string FileName, SaveFileDialog SaveFileDialog1)
{
// Set the properties on SaveFileDialog1 so the user is
// prompted to create the file if it doesn't exist
// or overwrite the file if it does exist.
SaveFileDialog1.CreatePrompt = true;
SaveFileDialog1.OverwritePrompt = true;
// Set the file name to myText.txt, set the type filter
// to text files, and set the initial directory to the
// MyDocuments folder.
SaveFileDialog1.FileName = FileName;
// DefaultExt is only used when "All files" is selected from
// the filter box and no extension is specified by the user.
SaveFileDialog1.DefaultExt = "xlsx";
SaveFileDialog1.Filter =
"Excel (*.xlsx)|*.txt|All files (*.*)|*.*";
SaveFileDialog1.InitialDirectory =
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
// Call ShowDialog and check for a return value of DialogResult.OK,
// which indicates that the file was saved.
DialogResult result = SaveFileDialog1.ShowDialog();
System.IO.Stream fileStream;
if (result == DialogResult.OK)
{
// Open the file, copy the contents of memoryStream to fileStream,
// and close fileStream. Set the memoryStream.Position value to 0
// to copy the entire stream.
fileStream = SaveFileDialog1.OpenFile();
wb.SaveAs(fileStream);
/*myStream.Position = 0;
myStream.WriteTo(fileStream);*/
fileStream.Close();
}
}
}
}

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,239 @@
namespace ADSUtileriasWF.Views.RelojChecador.Views
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.bnInit = new System.Windows.Forms.Button();
this.bnOpen = new System.Windows.Forms.Button();
this.bnEnroll = new System.Windows.Forms.Button();
this.bnFree = new System.Windows.Forms.Button();
this.bnClose = new System.Windows.Forms.Button();
this.bnIdentify = new System.Windows.Forms.Button();
this.textRes = new System.Windows.Forms.TextBox();
this.picFPImg = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.cmbIdx = new System.Windows.Forms.ComboBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.BtnCancel = new System.Windows.Forms.Button();
this.BtnAceptar = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.picFPImg)).BeginInit();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// bnInit
//
this.bnInit.Location = new System.Drawing.Point(24, 37);
this.bnInit.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.bnInit.Name = "bnInit";
this.bnInit.Size = new System.Drawing.Size(88, 29);
this.bnInit.TabIndex = 0;
this.bnInit.Text = "Initialize";
this.bnInit.UseVisualStyleBackColor = true;
this.bnInit.Click += new System.EventHandler(this.bnInit_Click);
//
// bnOpen
//
this.bnOpen.Enabled = false;
this.bnOpen.Location = new System.Drawing.Point(24, 93);
this.bnOpen.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.bnOpen.Name = "bnOpen";
this.bnOpen.Size = new System.Drawing.Size(88, 29);
this.bnOpen.TabIndex = 1;
this.bnOpen.Text = "Open";
this.bnOpen.UseVisualStyleBackColor = true;
this.bnOpen.Click += new System.EventHandler(this.bnOpen_Click);
//
// bnEnroll
//
this.bnEnroll.Enabled = false;
this.bnEnroll.Location = new System.Drawing.Point(24, 144);
this.bnEnroll.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.bnEnroll.Name = "bnEnroll";
this.bnEnroll.Size = new System.Drawing.Size(88, 29);
this.bnEnroll.TabIndex = 2;
this.bnEnroll.Text = "Enroll";
this.bnEnroll.UseVisualStyleBackColor = true;
this.bnEnroll.Click += new System.EventHandler(this.bnEnroll_Click);
//
// bnFree
//
this.bnFree.Enabled = false;
this.bnFree.Location = new System.Drawing.Point(145, 37);
this.bnFree.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.bnFree.Name = "bnFree";
this.bnFree.Size = new System.Drawing.Size(88, 29);
this.bnFree.TabIndex = 4;
this.bnFree.Text = "Finalize";
this.bnFree.UseVisualStyleBackColor = true;
this.bnFree.Click += new System.EventHandler(this.bnFree_Click);
//
// bnClose
//
this.bnClose.Enabled = false;
this.bnClose.Location = new System.Drawing.Point(145, 93);
this.bnClose.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.bnClose.Name = "bnClose";
this.bnClose.Size = new System.Drawing.Size(88, 29);
this.bnClose.TabIndex = 5;
this.bnClose.Text = "Close";
this.bnClose.UseVisualStyleBackColor = true;
this.bnClose.Click += new System.EventHandler(this.bnClose_Click);
//
// bnIdentify
//
this.bnIdentify.Enabled = false;
this.bnIdentify.Location = new System.Drawing.Point(145, 144);
this.bnIdentify.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.bnIdentify.Name = "bnIdentify";
this.bnIdentify.Size = new System.Drawing.Size(88, 29);
this.bnIdentify.TabIndex = 6;
this.bnIdentify.Text = "Identiy";
this.bnIdentify.UseVisualStyleBackColor = true;
this.bnIdentify.Click += new System.EventHandler(this.bnIdentify_Click);
//
// textRes
//
this.textRes.Location = new System.Drawing.Point(31, 231);
this.textRes.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.textRes.Multiline = true;
this.textRes.Name = "textRes";
this.textRes.ReadOnly = true;
this.textRes.Size = new System.Drawing.Size(357, 62);
this.textRes.TabIndex = 7;
//
// picFPImg
//
this.picFPImg.Location = new System.Drawing.Point(133, 12);
this.picFPImg.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.picFPImg.Name = "picFPImg";
this.picFPImg.Size = new System.Drawing.Size(153, 201);
this.picFPImg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.picFPImg.TabIndex = 8;
this.picFPImg.TabStop = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(238, 44);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(39, 15);
this.label1.TabIndex = 9;
this.label1.Text = "Index:";
//
// cmbIdx
//
this.cmbIdx.FormattingEnabled = true;
this.cmbIdx.Location = new System.Drawing.Point(282, 40);
this.cmbIdx.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.cmbIdx.Name = "cmbIdx";
this.cmbIdx.Size = new System.Drawing.Size(46, 23);
this.cmbIdx.TabIndex = 10;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.bnInit);
this.groupBox1.Controls.Add(this.cmbIdx);
this.groupBox1.Controls.Add(this.bnOpen);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.bnEnroll);
this.groupBox1.Controls.Add(this.bnFree);
this.groupBox1.Controls.Add(this.bnClose);
this.groupBox1.Controls.Add(this.bnIdentify);
this.groupBox1.Location = new System.Drawing.Point(31, 410);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(339, 243);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "groupBox1";
//
// 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(292, 307);
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);
//
// BtnAceptar
//
this.BtnAceptar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnAceptar.Location = new System.Drawing.Point(192, 309);
this.BtnAceptar.Name = "BtnAceptar";
this.BtnAceptar.Size = new System.Drawing.Size(94, 35);
this.BtnAceptar.TabIndex = 6;
this.BtnAceptar.Text = "Aceptar";
this.BtnAceptar.UseVisualStyleBackColor = true;
this.BtnAceptar.Click += new System.EventHandler(this.BtnOK_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(409, 365);
this.ControlBox = false;
this.Controls.Add(this.BtnAceptar);
this.Controls.Add(this.BtnCancel);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.picFPImg);
this.Controls.Add(this.textRes);
this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Name = "Form1";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.picFPImg)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button bnInit;
private System.Windows.Forms.Button bnOpen;
private System.Windows.Forms.Button bnEnroll;
private System.Windows.Forms.Button bnFree;
private System.Windows.Forms.Button bnClose;
private System.Windows.Forms.Button bnIdentify;
private System.Windows.Forms.TextBox textRes;
private System.Windows.Forms.PictureBox picFPImg;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cmbIdx;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button BtnCancel;
private System.Windows.Forms.Button BtnAceptar;
}
}

View File

@@ -0,0 +1,604 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using libzkfpcsharp;
using System.Runtime.InteropServices;
using System.Threading;
using System.IO;
namespace ADSUtileriasWF.Views.RelojChecador.Views
{
public partial class Form1 : Form
{
IntPtr mDevHandle = IntPtr.Zero;
IntPtr mDBHandle = IntPtr.Zero;
IntPtr FormHandle = IntPtr.Zero;
bool bIsTimeToDie = false;
bool IsRegister = false;
bool bIdentify = true;
byte[] FPBuffer;
int RegisterCount = 0;
const int REGISTER_FINGER_COUNT = 3;
byte[][] RegTmps = new byte[3][];
byte[] RegTmp = new byte[2048];
byte[] CapTmp = new byte[2048];
int cbCapTmp = 2048;
int cbRegTmp = 0;
int iFid = 1;
private int mfpWidth = 0;
private int mfpHeight = 0;
const int MESSAGE_CAPTURED_OK = 0x0400 + 6;
[DllImport("user32.dll", EntryPoint = "SendMessageA")]
public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
public Form1()
{
InitializeComponent();
bnInit_Click(null, null);
bnOpen_Click(null, null);
//bnEnroll_Click(null, null);
}
private void bnInit_Click(object sender, EventArgs e)
{
cmbIdx.Items.Clear();
int ret = zkfperrdef.ZKFP_ERR_OK;
if ((ret = zkfp2.Init()) == zkfperrdef.ZKFP_ERR_OK)
{
int nCount = zkfp2.GetDeviceCount();
if (nCount > 0)
{
for (int i = 0; i < nCount; i++)
{
cmbIdx.Items.Add(i.ToString());
}
cmbIdx.SelectedIndex = 0;
bnInit.Enabled = false;
bnFree.Enabled = true;
bnOpen.Enabled = true;
}
else
{
zkfp2.Terminate();
MessageBox.Show("No device connected!");
}
}
else
{
MessageBox.Show("Initialize fail, ret=" + ret + " !");
}
}
private void bnFree_Click(object sender, EventArgs e)
{
zkfp2.Terminate();
cbRegTmp = 0;
bnInit.Enabled = true;
bnFree.Enabled = false;
bnOpen.Enabled = false;
bnClose.Enabled = false;
bnEnroll.Enabled = false;
//bnVerify.Enabled = false;
bnIdentify.Enabled = false;
}
private void bnOpen_Click(object sender, EventArgs e)
{
int ret = zkfp.ZKFP_ERR_OK;
if (IntPtr.Zero == (mDevHandle = zkfp2.OpenDevice(cmbIdx.SelectedIndex)))
{
MessageBox.Show("OpenDevice fail");
return;
}
if (IntPtr.Zero == (mDBHandle = zkfp2.DBInit()))
{
MessageBox.Show("Init DB fail");
zkfp2.CloseDevice(mDevHandle);
mDevHandle = IntPtr.Zero;
return;
}
bnInit.Enabled = false;
bnFree.Enabled = true;
bnOpen.Enabled = false;
bnClose.Enabled = true;
bnEnroll.Enabled = true;
//bnVerify.Enabled = true;
bnIdentify.Enabled = true;
RegisterCount = 0;
cbRegTmp = 0;
iFid = 1;
for (int i = 0; i < 3; i++)
{
RegTmps[i] = new byte[2048];
}
byte[] paramValue = new byte[4];
int size = 4;
zkfp2.GetParameters(mDevHandle, 1, paramValue, ref size);
zkfp2.ByteArray2Int(paramValue, ref mfpWidth);
size = 4;
zkfp2.GetParameters(mDevHandle, 2, paramValue, ref size);
zkfp2.ByteArray2Int(paramValue, ref mfpHeight);
FPBuffer = new byte[mfpWidth*mfpHeight];
Thread captureThread = new Thread(new ThreadStart(DoCapture));
captureThread.IsBackground = true;
captureThread.Start();
bIsTimeToDie = false;
textRes.Text = "Open succ";
}
private void DoCapture()
{
while (!bIsTimeToDie)
{
cbCapTmp = 2048;
int ret = zkfp2.AcquireFingerprint(mDevHandle, FPBuffer, CapTmp, ref cbCapTmp);
if (ret == zkfp.ZKFP_ERR_OK)
{
SendMessage(FormHandle, MESSAGE_CAPTURED_OK, IntPtr.Zero, IntPtr.Zero);
}
Thread.Sleep(200);
}
}
protected override void DefWndProc(ref Message m)
{
switch (m.Msg)
{
case MESSAGE_CAPTURED_OK:
{
MemoryStream ms = new MemoryStream();
BitmapFormat.GetBitmap(FPBuffer, mfpWidth, mfpHeight, ref ms);
Bitmap bmp = new Bitmap(ms);
this.picFPImg.Image = bmp;
if (IsRegister)
{
int ret = zkfp.ZKFP_ERR_OK;
int fid = 0, score = 0;
ret = zkfp2.DBIdentify(mDBHandle, CapTmp, ref fid, ref score);
if (zkfp.ZKFP_ERR_OK == ret)
{
textRes.Text = "Huella registrada (" + fid + ")!";
return;
}
if (RegisterCount > 0 && zkfp2.DBMatch(mDBHandle, CapTmp, RegTmps[RegisterCount - 1]) <= 0)
{
textRes.Text = "Favor de ingresar 3 veces la huella";
return;
}
Array.Copy(CapTmp, RegTmps[RegisterCount], cbCapTmp);
String strBase64 = zkfp2.BlobToBase64(CapTmp, cbCapTmp);
byte[] blob = zkfp2.Base64ToBlob(strBase64);
RegisterCount++;
if (RegisterCount >= REGISTER_FINGER_COUNT)
{
RegisterCount = 0;
if (zkfp.ZKFP_ERR_OK == (ret = zkfp2.DBMerge(mDBHandle, RegTmps[0], RegTmps[1], RegTmps[2], RegTmp, ref cbRegTmp)) &&
zkfp.ZKFP_ERR_OK == (ret = zkfp2.DBAdd(mDBHandle, iFid, RegTmp)))
{
iFid++;
textRes.Text = "Su huella ha sido capturada";
}
else
{
textRes.Text = "Ocurrio un error al ingresar la huella (Codigo " + ret + ").";
}
IsRegister = false;
return;
}
else
{
textRes.Text = "favor de ingresar su huella " + (REGISTER_FINGER_COUNT - RegisterCount) + " veces mas en el lector.";
}
}
else
{
if (cbRegTmp <= 0)
{
textRes.Text = "favor de registrar su huella primero!";
return;
}
if (bIdentify)
{
int ret = zkfp.ZKFP_ERR_OK;
int fid = 0, score = 0;
ret = zkfp2.DBIdentify(mDBHandle, CapTmp, ref fid, ref score);
if (zkfp.ZKFP_ERR_OK == ret)
{
textRes.Text = "Identify succ, fid= " + fid + ",score=" + score + "!";
return;
}
else
{
textRes.Text = "Identify fail, ret= " + ret;
return;
}
}
/* else
{
int ret = zkfp2.DBMatch(mDBHandle, CapTmp, RegTmp);
if (0 < ret)
{
textRes.Text = "Match finger succ, score=" + ret + "!";
return;
}
else
{
textRes.Text = "Match finger fail, ret= " + ret;
return;
}
}*/
}
}
break;
default:
base.DefWndProc(ref m);
break;
}
}
private void Form1_Load(object sender, EventArgs e)
{
FormHandle = this.Handle;
}
private void bnClose_Click(object sender, EventArgs e)
{
bIsTimeToDie = true;
RegisterCount = 0;
Thread.Sleep(1000);
zkfp2.CloseDevice(mDevHandle);
bnInit.Enabled = false;
bnFree.Enabled = true;
bnOpen.Enabled = true;
bnClose.Enabled = false;
bnEnroll.Enabled = false;
//bnVerify.Enabled = false;
bnIdentify.Enabled = false;
}
public void bnEnroll_Click(object sender, EventArgs e)
{
//if (!IsRegister)
//{
this.picFPImg.Image = null;
IsRegister = true;
RegisterCount = 0;
cbRegTmp = 0;
textRes.Text = "Favor de ingresar su huella 3 veces!";
//}
}
private void bnIdentify_Click(object sender, EventArgs e)
{
if (!bIdentify)
{
bIdentify = true;
textRes.Text = "Please press your finger!";
}
}
private void bnVerify_Click(object sender, EventArgs e)
{
if (bIdentify)
{
bIdentify = false;
textRes.Text = "Please press your finger!";
}
}
private void BtnOK_Click(object sender, EventArgs e)
{
this.Hide();
}
private void BtnCancel_Click(object sender, EventArgs e)
{
this.Hide();
}
}
public class BitmapFormat
{
public struct BITMAPFILEHEADER
{
public ushort bfType;
public int bfSize;
public ushort bfReserved1;
public ushort bfReserved2;
public int bfOffBits;
}
public struct MASK
{
public byte redmask;
public byte greenmask;
public byte bluemask;
public byte rgbReserved;
}
public struct BITMAPINFOHEADER
{
public int biSize;
public int biWidth;
public int biHeight;
public ushort biPlanes;
public ushort biBitCount;
public int biCompression;
public int biSizeImage;
public int biXPelsPerMeter;
public int biYPelsPerMeter;
public int biClrUsed;
public int biClrImportant;
}
/*******************************************
* º¯ÊýÃû³Æ£ºRotatePic
* º¯Êý¹¦ÄÜ£ºÐýתͼƬ£¬Ä¿µÄÊDZ£´æºÍÏÔʾµÄͼƬÓë°´µÄÖ¸ÎÆ·½Ïò²»Í¬
* º¯ÊýÈë²Î£ºBmpBuf---ÐýתǰµÄÖ¸ÎÆ×Ö·û´®
* º¯Êý³ö²Î£ºResBuf---ÐýתºóµÄÖ¸ÎÆ×Ö·û´®
* º¯Êý·µ»Ø£ºÎÞ
*********************************************/
public static void RotatePic(byte[] BmpBuf, int width, int height, ref byte[] ResBuf)
{
int RowLoop = 0;
int ColLoop = 0;
int BmpBuflen = width * height;
try
{
for (RowLoop = 0; RowLoop < BmpBuflen;)
{
for (ColLoop = 0; ColLoop < width; ColLoop++)
{
ResBuf[RowLoop + ColLoop] = BmpBuf[BmpBuflen - RowLoop - width + ColLoop];
}
RowLoop = RowLoop + width;
}
}
catch (Exception ex)
{
//ZKCE.SysException.ZKCELogger logger = new ZKCE.SysException.ZKCELogger(ex);
//logger.Append();
}
}
/*******************************************
* º¯ÊýÃû³Æ£ºStructToBytes
* º¯Êý¹¦ÄÜ£º½«½á¹¹Ìåת»¯³ÉÎÞ·ûºÅ×Ö·û´®Êý×é
* º¯ÊýÈë²Î£ºStructObj---±»×ª»¯µÄ½á¹¹Ìå
* Size---±»×ª»¯µÄ½á¹¹ÌåµÄ´óС
* º¯Êý³ö²Î£ºÎÞ
* º¯Êý·µ»Ø£º½á¹¹Ìåת»¯ºóµÄÊý×é
*********************************************/
public static byte[] StructToBytes(object StructObj, int Size)
{
int StructSize = Marshal.SizeOf(StructObj);
byte[] GetBytes = new byte[StructSize];
try
{
IntPtr StructPtr = Marshal.AllocHGlobal(StructSize);
Marshal.StructureToPtr(StructObj, StructPtr, false);
Marshal.Copy(StructPtr, GetBytes, 0, StructSize);
Marshal.FreeHGlobal(StructPtr);
if (Size == 14)
{
byte[] NewBytes = new byte[Size];
int Count = 0;
int Loop = 0;
for (Loop = 0; Loop < StructSize; Loop++)
{
if (Loop != 2 && Loop != 3)
{
NewBytes[Count] = GetBytes[Loop];
Count++;
}
}
return NewBytes;
}
else
{
return GetBytes;
}
}
catch (Exception ex)
{
//ZKCE.SysException.ZKCELogger logger = new ZKCE.SysException.ZKCELogger(ex);
//logger.Append();
return GetBytes;
}
}
/*******************************************
* º¯ÊýÃû³Æ£ºGetBitmap
* º¯Êý¹¦ÄÜ£º½«´«½øÀ´µÄÊý¾Ý±£´æÎªÍ¼Æ¬
* º¯ÊýÈë²Î£ºbuffer---ͼƬÊý¾Ý
* nWidth---ͼƬµÄ¿í¶È
* nHeight---ͼƬµÄ¸ß¶È
* º¯Êý³ö²Î£ºÎÞ
* º¯Êý·µ»Ø£ºÎÞ
*********************************************/
public static void GetBitmap(byte[] buffer, int nWidth, int nHeight, ref MemoryStream ms)
{
int ColorIndex = 0;
ushort m_nBitCount = 8;
int m_nColorTableEntries = 256;
byte[] ResBuf = new byte[nWidth * nHeight * 2];
try
{
BITMAPFILEHEADER BmpHeader = new BITMAPFILEHEADER();
BITMAPINFOHEADER BmpInfoHeader = new BITMAPINFOHEADER();
MASK[] ColorMask = new MASK[m_nColorTableEntries];
int w = (((nWidth + 3) / 4) * 4);
//ͼƬͷÐÅÏ¢
BmpInfoHeader.biSize = Marshal.SizeOf(BmpInfoHeader);
BmpInfoHeader.biWidth = nWidth;
BmpInfoHeader.biHeight = nHeight;
BmpInfoHeader.biPlanes = 1;
BmpInfoHeader.biBitCount = m_nBitCount;
BmpInfoHeader.biCompression = 0;
BmpInfoHeader.biSizeImage = 0;
BmpInfoHeader.biXPelsPerMeter = 0;
BmpInfoHeader.biYPelsPerMeter = 0;
BmpInfoHeader.biClrUsed = m_nColorTableEntries;
BmpInfoHeader.biClrImportant = m_nColorTableEntries;
//ÎļþÍ·ÐÅÏ¢
BmpHeader.bfType = 0x4D42;
BmpHeader.bfOffBits = 14 + Marshal.SizeOf(BmpInfoHeader) + BmpInfoHeader.biClrUsed * 4;
BmpHeader.bfSize = BmpHeader.bfOffBits + ((((w * BmpInfoHeader.biBitCount + 31) / 32) * 4) * BmpInfoHeader.biHeight);
BmpHeader.bfReserved1 = 0;
BmpHeader.bfReserved2 = 0;
ms.Write(StructToBytes(BmpHeader, 14), 0, 14);
ms.Write(StructToBytes(BmpInfoHeader, Marshal.SizeOf(BmpInfoHeader)), 0, Marshal.SizeOf(BmpInfoHeader));
//µ÷ÊÔ°åÐÅÏ¢
for (ColorIndex = 0; ColorIndex < m_nColorTableEntries; ColorIndex++)
{
ColorMask[ColorIndex].redmask = (byte)ColorIndex;
ColorMask[ColorIndex].greenmask = (byte)ColorIndex;
ColorMask[ColorIndex].bluemask = (byte)ColorIndex;
ColorMask[ColorIndex].rgbReserved = 0;
ms.Write(StructToBytes(ColorMask[ColorIndex], Marshal.SizeOf(ColorMask[ColorIndex])), 0, Marshal.SizeOf(ColorMask[ColorIndex]));
}
//ͼƬÐýת£¬½â¾öÖ¸ÎÆÍ¼Æ¬µ¹Á¢µÄÎÊÌâ
RotatePic(buffer, nWidth, nHeight, ref ResBuf);
byte[] filter = null;
if (w - nWidth > 0)
{
filter = new byte[w - nWidth];
}
for (int i = 0; i < nHeight; i++)
{
ms.Write(ResBuf, i * nWidth, nWidth);
if (w - nWidth > 0)
{
ms.Write(ResBuf, 0, w - nWidth);
}
}
}
catch (Exception ex)
{
// ZKCE.SysException.ZKCELogger logger = new ZKCE.SysException.ZKCELogger(ex);
// logger.Append();
}
}
/*******************************************
* º¯ÊýÃû³Æ£ºWriteBitmap
* º¯Êý¹¦ÄÜ£º½«´«½øÀ´µÄÊý¾Ý±£´æÎªÍ¼Æ¬
* º¯ÊýÈë²Î£ºbuffer---ͼƬÊý¾Ý
* nWidth---ͼƬµÄ¿í¶È
* nHeight---ͼƬµÄ¸ß¶È
* º¯Êý³ö²Î£ºÎÞ
* º¯Êý·µ»Ø£ºÎÞ
*********************************************/
public static void WriteBitmap(byte[] buffer, int nWidth, int nHeight)
{
int ColorIndex = 0;
ushort m_nBitCount = 8;
int m_nColorTableEntries = 256;
byte[] ResBuf = new byte[nWidth * nHeight];
try
{
BITMAPFILEHEADER BmpHeader = new BITMAPFILEHEADER();
BITMAPINFOHEADER BmpInfoHeader = new BITMAPINFOHEADER();
MASK[] ColorMask = new MASK[m_nColorTableEntries];
int w = (((nWidth + 3) / 4) * 4);
//ͼƬͷÐÅÏ¢
BmpInfoHeader.biSize = Marshal.SizeOf(BmpInfoHeader);
BmpInfoHeader.biWidth = nWidth;
BmpInfoHeader.biHeight = nHeight;
BmpInfoHeader.biPlanes = 1;
BmpInfoHeader.biBitCount = m_nBitCount;
BmpInfoHeader.biCompression = 0;
BmpInfoHeader.biSizeImage = 0;
BmpInfoHeader.biXPelsPerMeter = 0;
BmpInfoHeader.biYPelsPerMeter = 0;
BmpInfoHeader.biClrUsed = m_nColorTableEntries;
BmpInfoHeader.biClrImportant = m_nColorTableEntries;
//ÎļþÍ·ÐÅÏ¢
BmpHeader.bfType = 0x4D42;
BmpHeader.bfOffBits = 14 + Marshal.SizeOf(BmpInfoHeader) + BmpInfoHeader.biClrUsed * 4;
BmpHeader.bfSize = BmpHeader.bfOffBits + ((((w * BmpInfoHeader.biBitCount + 31) / 32) * 4) * BmpInfoHeader.biHeight);
BmpHeader.bfReserved1 = 0;
BmpHeader.bfReserved2 = 0;
Stream FileStream = File.Open("finger.bmp", FileMode.Create, FileAccess.Write);
BinaryWriter TmpBinaryWriter = new BinaryWriter(FileStream);
TmpBinaryWriter.Write(StructToBytes(BmpHeader, 14));
TmpBinaryWriter.Write(StructToBytes(BmpInfoHeader, Marshal.SizeOf(BmpInfoHeader)));
//µ÷ÊÔ°åÐÅÏ¢
for (ColorIndex = 0; ColorIndex < m_nColorTableEntries; ColorIndex++)
{
ColorMask[ColorIndex].redmask = (byte)ColorIndex;
ColorMask[ColorIndex].greenmask = (byte)ColorIndex;
ColorMask[ColorIndex].bluemask = (byte)ColorIndex;
ColorMask[ColorIndex].rgbReserved = 0;
TmpBinaryWriter.Write(StructToBytes(ColorMask[ColorIndex], Marshal.SizeOf(ColorMask[ColorIndex])));
}
//ͼƬÐýת£¬½â¾öÖ¸ÎÆÍ¼Æ¬µ¹Á¢µÄÎÊÌâ
RotatePic(buffer, nWidth, nHeight, ref ResBuf);
//дͼƬ
//TmpBinaryWriter.Write(ResBuf);
byte[] filter = null;
if (w - nWidth > 0)
{
filter = new byte[w - nWidth];
}
for (int i = 0; i < nHeight; i++)
{
TmpBinaryWriter.Write(ResBuf, i * nWidth, nWidth);
if (w - nWidth > 0)
{
TmpBinaryWriter.Write(ResBuf, 0, w - nWidth);
}
}
FileStream.Close();
TmpBinaryWriter.Close();
}
catch (Exception ex)
{
//ZKCE.SysException.ZKCELogger logger = new ZKCE.SysException.ZKCELogger(ex);
//logger.Append();
}
}
}
}

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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,147 @@
namespace ADSUtileriasWF.Views.RelojChecador.Views
{
partial class FrmAddToCheckador
{
/// <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.Huella1 = new System.Windows.Forms.PictureBox();
this.DdlEmpleados = new System.Windows.Forms.ComboBox();
this.Huella2 = new System.Windows.Forms.PictureBox();
this.Huella3 = new System.Windows.Forms.PictureBox();
this.LblEmpleados = new System.Windows.Forms.Label();
this.Btncapturar = new System.Windows.Forms.Button();
this.textRes = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.Huella1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Huella2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Huella3)).BeginInit();
this.SuspendLayout();
//
// Huella1
//
this.Huella1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Huella1.Location = new System.Drawing.Point(454, 174);
this.Huella1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Huella1.Name = "Huella1";
this.Huella1.Size = new System.Drawing.Size(153, 201);
this.Huella1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.Huella1.TabIndex = 8;
this.Huella1.TabStop = false;
//
// DdlEmpleados
//
this.DdlEmpleados.DisplayMember = "CodigoNombreCompleto";
this.DdlEmpleados.FormattingEnabled = true;
this.DdlEmpleados.Location = new System.Drawing.Point(302, 58);
this.DdlEmpleados.Name = "DdlEmpleados";
this.DdlEmpleados.Size = new System.Drawing.Size(446, 23);
this.DdlEmpleados.TabIndex = 9;
this.DdlEmpleados.ValueMember = "CvePersonal";
//
// Huella2
//
this.Huella2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Huella2.Location = new System.Drawing.Point(615, 174);
this.Huella2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Huella2.Name = "Huella2";
this.Huella2.Size = new System.Drawing.Size(153, 201);
this.Huella2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.Huella2.TabIndex = 8;
this.Huella2.TabStop = false;
//
// Huella3
//
this.Huella3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Huella3.Location = new System.Drawing.Point(776, 174);
this.Huella3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Huella3.Name = "Huella3";
this.Huella3.Size = new System.Drawing.Size(153, 201);
this.Huella3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.Huella3.TabIndex = 8;
this.Huella3.TabStop = false;
//
// LblEmpleados
//
this.LblEmpleados.AutoSize = true;
this.LblEmpleados.Location = new System.Drawing.Point(22, 58);
this.LblEmpleados.Name = "LblEmpleados";
this.LblEmpleados.Size = new System.Drawing.Size(142, 15);
this.LblEmpleados.TabIndex = 10;
this.LblEmpleados.Text = "Seleeccione un empleado";
//
// Btncapturar
//
this.Btncapturar.Location = new System.Drawing.Point(475, 475);
this.Btncapturar.Name = "Btncapturar";
this.Btncapturar.Size = new System.Drawing.Size(75, 23);
this.Btncapturar.TabIndex = 11;
this.Btncapturar.Text = "Aceptar";
this.Btncapturar.UseVisualStyleBackColor = true;
this.Btncapturar.Click += new System.EventHandler(this.Btncapturar_Click);
//
// textRes
//
this.textRes.Location = new System.Drawing.Point(454, 382);
this.textRes.Name = "textRes";
this.textRes.Size = new System.Drawing.Size(475, 74);
this.textRes.TabIndex = 12;
this.textRes.Text = "label1";
//
// FrmAddToCheckador
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(962, 618);
this.Controls.Add(this.textRes);
this.Controls.Add(this.Btncapturar);
this.Controls.Add(this.LblEmpleados);
this.Controls.Add(this.Huella3);
this.Controls.Add(this.Huella2);
this.Controls.Add(this.DdlEmpleados);
this.Controls.Add(this.Huella1);
this.Name = "FrmAddToCheckador";
this.Text = "FrmAddToCheckador";
this.Load += new System.EventHandler(this.FrmAddToCheckador_Load);
((System.ComponentModel.ISupportInitialize)(this.Huella1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Huella2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Huella3)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.ComboBox DdlEmpleados;
private System.Windows.Forms.PictureBox Huella2;
private System.Windows.Forms.PictureBox Huella3;
private System.Windows.Forms.Label LblEmpleados;
private System.Windows.Forms.Button Btncapturar;
private System.Windows.Forms.PictureBox Huella1;
private System.Windows.Forms.Label textRes;
}
}

View File

@@ -0,0 +1,298 @@
using libzkfpcsharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace ADSUtileriasWF.Views.RelojChecador.Views
{
public partial class FrmAddToCheckador : Form
{
public FrmAddToCheckador()
{
InitializeComponent();
}
private void FrmAddToCheckador_Load(object sender, EventArgs e)
{
FormHandle = this.Handle;
//CargaChecadores();
//CargaPersonal();
initconexion();
OpenConexion();
}
private void CargaChecadores()
{
var proxi = new WCF_Checador.ChecadorServiceClient();
var checklist = proxi.GetChecadores(-1);
proxi.CloseAsync();
if (checklist != null)
{
//DGVChecadores.AutoGenerateColumns = false;
//DGVChecadores.DataSource = checklist;
}
}
private void CargaPersonal()
{
var proxi = new WCF_Checador.ChecadorServiceClient();
var checklist = proxi.GETPersonal(-1);
proxi.CloseAsync();
if (checklist != null)
{
DdlEmpleados.DataSource = checklist;
}
}
#region ADSFinger
IntPtr mDevHandle = IntPtr.Zero;
IntPtr mDBHandle = IntPtr.Zero;
IntPtr FormHandle = IntPtr.Zero;
bool bIsTimeToDie = false;
bool IsRegister = false;
bool bIdentify = true;
byte[] FPBuffer;
int RegisterCount = 0;
const int REGISTER_FINGER_COUNT = 3;
byte[][] RegTmps = new byte[3][];
byte[] RegTmp = new byte[2048];
byte[] CapTmp = new byte[2048];
int cbCapTmp = 2048;
int cbRegTmp = 0;
int iFid = 1;
private int mfpWidth = 0;
private int mfpHeight = 0;
const int MESSAGE_CAPTURED_OK = 0x0400 + 6;
[DllImport("user32.dll", EntryPoint = "SendMessageA")]
public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
private void initconexion()
{
//cmbIdx.Items.Clear();
int ret = zkfperrdef.ZKFP_ERR_OK;
if ((ret = zkfp2.Init()) == zkfperrdef.ZKFP_ERR_OK)
{
int nCount = zkfp2.GetDeviceCount();
if (nCount > 0)
{
//for (int i = 0; i < nCount; i++)
//{
// cmbIdx.Items.Add(i.ToString());
//}
//cmbIdx.SelectedIndex = 0;
//bnInit.Enabled = false;
//bnFree.Enabled = true;
//bnOpen.Enabled = true;
}
else
{
zkfp2.Terminate();
MessageBox.Show("No device connected!");
}
}
else
{
MessageBox.Show("Initialize fail, ret=" + ret + " !");
}
}
DataGridView DGVChecadores;
private void OpenConexion()
{
int ret = zkfp.ZKFP_ERR_OK;
if (IntPtr.Zero == (mDevHandle = zkfp2.OpenDevice(0)))
{
MessageBox.Show("OpenDevice fail");
return;
}
if (IntPtr.Zero == (mDBHandle = zkfp2.DBInit()))
{
MessageBox.Show("Init DB fail");
zkfp2.CloseDevice(mDevHandle);
mDevHandle = IntPtr.Zero;
return;
}
RegisterCount = 0;
cbRegTmp = 0;
iFid = 1;
for (int i = 0; i < 3; i++)
{
RegTmps[i] = new byte[2048];
}
byte[] paramValue = new byte[4];
int size = 4;
zkfp2.GetParameters(mDevHandle, 1, paramValue, ref size);
zkfp2.ByteArray2Int(paramValue, ref mfpWidth);
size = 4;
zkfp2.GetParameters(mDevHandle, 2, paramValue, ref size);
zkfp2.ByteArray2Int(paramValue, ref mfpHeight);
FPBuffer = new byte[mfpWidth * mfpHeight];
Thread captureThread = new Thread(new ThreadStart(DoCapture));
captureThread.IsBackground = true;
captureThread.Start();
bIsTimeToDie = false;
textRes.Text = "Open succ";
}
private void DoCapture()
{
while (!bIsTimeToDie)
{
cbCapTmp = 2048;
int ret = zkfp2.AcquireFingerprint(mDevHandle, FPBuffer, CapTmp, ref cbCapTmp);
if (ret == zkfp.ZKFP_ERR_OK)
{
SendMessage(FormHandle, MESSAGE_CAPTURED_OK, IntPtr.Zero, IntPtr.Zero);
}
Thread.Sleep(200);
}
}
protected override void DefWndProc(ref Message m)
{
switch (m.Msg)
{
case MESSAGE_CAPTURED_OK:
{
MemoryStream ms = new MemoryStream();
BitmapFormat.GetBitmap(FPBuffer, mfpWidth, mfpHeight, ref ms);
Bitmap bmp = new Bitmap(ms);
//this.picFPImg.Image = bmp;
if (IsRegister)
{
int ret = zkfp.ZKFP_ERR_OK;
int fid = 0, score = 0;
ret = zkfp2.DBIdentify(mDBHandle, CapTmp, ref fid, ref score);
if (zkfp.ZKFP_ERR_OK == ret)
{
textRes.Text = "Huella registrada (" + fid + ")!";
return;
}
if (RegisterCount > 0 && zkfp2.DBMatch(mDBHandle, CapTmp, RegTmps[RegisterCount - 1]) <= 0)
{
textRes.Text = "Favor de ingresar 3 veces la huella";
return;
}
switch (RegisterCount)
{
case 0:
this.Huella1.Image = bmp;
break;
case 1:
this.Huella2.Image = bmp;
break;
case 2:
this.Huella3.Image = bmp;
break;
}
Array.Copy(CapTmp, RegTmps[RegisterCount], cbCapTmp);
String strBase64 = zkfp2.BlobToBase64(CapTmp, cbCapTmp);
byte[] blob = zkfp2.Base64ToBlob(strBase64);
RegisterCount++;
if (RegisterCount >= REGISTER_FINGER_COUNT)
{
RegisterCount = 0;
if (zkfp.ZKFP_ERR_OK == (ret = zkfp2.DBMerge(mDBHandle, RegTmps[0], RegTmps[1], RegTmps[2], RegTmp, ref cbRegTmp)) &&
zkfp.ZKFP_ERR_OK == (ret = zkfp2.DBAdd(mDBHandle, iFid, RegTmp)))
{
iFid++;
textRes.Text = "Su huella ha sido capturada";
}
else
{
textRes.Text = "Ocurrio un error al ingresar la huella (Codigo " + ret + ").";
}
IsRegister = false;
return;
}
else
{
textRes.Text = "favor de ingresar su huella " + (REGISTER_FINGER_COUNT - RegisterCount) + " veces mas en el lector.";
}
}
else
{
//if (cbRegTmp <= 0)
//{
// textRes.Text = "favor de registrar su huella primero!";
// return;
//}
//if (bIdentify)
//{
// int ret = zkfp.ZKFP_ERR_OK;
// int fid = 0, score = 0;
// ret = zkfp2.DBIdentify(mDBHandle, CapTmp, ref fid, ref score);
// if (zkfp.ZKFP_ERR_OK == ret)
// {
// textRes.Text = "Identify succ, fid= " + fid + ",score=" + score + "!";
// return;
// }
// else
// {
// textRes.Text = "Identify fail, ret= " + ret;
// return;
// }
//}
/* else
{
int ret = zkfp2.DBMatch(mDBHandle, CapTmp, RegTmp);
if (0 < ret)
{
textRes.Text = "Match finger succ, score=" + ret + "!";
return;
}
else
{
textRes.Text = "Match finger fail, ret= " + ret;
return;
}
}*/
}
}
break;
default:
base.DefWndProc(ref m);
break;
}
}
#endregion
private void Btncapturar_Click(object sender, EventArgs e)
{
this.Huella1.Image = null;
this.Huella2.Image = null;
this.Huella3.Image = null;
IsRegister = true;
RegisterCount = 0;
cbRegTmp = 0;
textRes.Text = "Favor de ingresar su huella 3 veces!";
}
private void FrmNewPersonalChecador_FormClosing(object sender, FormClosingEventArgs e)
{
}
}
}

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