307 lines
17 KiB
C#
307 lines
17 KiB
C#
using System.ComponentModel;
|
|
|
|
namespace LectorVerdnatura
|
|
{
|
|
partial class frmPrincipal
|
|
{
|
|
/// <summary>
|
|
/// Variable del diseñador requerida.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Limpiar los recursos que se estén utilizando.
|
|
/// </summary>
|
|
/// <param name="disposing">true si los recursos administrados se deben eliminar; false en caso contrario, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Código generado por el Diseñador de Windows Forms
|
|
|
|
/// <summary>
|
|
/// Método necesario para admitir el Diseñador. No se puede modificar
|
|
/// el contenido del método con el editor de código.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPrincipal));
|
|
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();
|
|
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.RecogerFichajes = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.comprobarHoraLectorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.Salir = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.dataGrid1 = new System.Windows.Forms.DataGridView();
|
|
this.Texto = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.btnComprobarConexion = new System.Windows.Forms.Button();
|
|
this.btnActualizarLog = new System.Windows.Forms.Button();
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.lvFichadores = new System.Windows.Forms.ListView();
|
|
this.workcenter_id = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.name = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.fichador_ip = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.btnDescargarFichajes = new System.Windows.Forms.Button();
|
|
this.chkBorrarLogs = new System.Windows.Forms.CheckBox();
|
|
this.btnForzarBorrarLog = new System.Windows.Forms.Button();
|
|
this.txtMaxRegistros = new System.Windows.Forms.TextBox();
|
|
this.contextMenuStrip1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// notifyIcon1
|
|
//
|
|
this.notifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
|
|
this.notifyIcon1.BalloonTipText = "Lector Verdnatura";
|
|
this.notifyIcon1.BalloonTipTitle = "Lector Verdnatura";
|
|
this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
|
|
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
|
|
this.notifyIcon1.Text = "Lector Verdnatura";
|
|
this.notifyIcon1.Visible = true;
|
|
//
|
|
// contextMenuStrip1
|
|
//
|
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.RecogerFichajes,
|
|
this.comprobarHoraLectorToolStripMenuItem,
|
|
this.Salir});
|
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
|
this.contextMenuStrip1.Size = new System.Drawing.Size(196, 70);
|
|
//
|
|
// RecogerFichajes
|
|
//
|
|
this.RecogerFichajes.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
|
this.RecogerFichajes.Name = "RecogerFichajes";
|
|
this.RecogerFichajes.Size = new System.Drawing.Size(195, 22);
|
|
this.RecogerFichajes.Text = "Recoger Fichajes";
|
|
this.RecogerFichajes.Click += new System.EventHandler(this.timer1_Tick);
|
|
//
|
|
// comprobarHoraLectorToolStripMenuItem
|
|
//
|
|
this.comprobarHoraLectorToolStripMenuItem.Name = "comprobarHoraLectorToolStripMenuItem";
|
|
this.comprobarHoraLectorToolStripMenuItem.Size = new System.Drawing.Size(195, 22);
|
|
this.comprobarHoraLectorToolStripMenuItem.Text = "Comprobar hora lector";
|
|
this.comprobarHoraLectorToolStripMenuItem.Click += new System.EventHandler(this.comprobarHoraLectorToolStripMenuItem_Click);
|
|
//
|
|
// Salir
|
|
//
|
|
this.Salir.Name = "Salir";
|
|
this.Salir.Size = new System.Drawing.Size(195, 22);
|
|
this.Salir.Text = "Salir";
|
|
this.Salir.Click += new System.EventHandler(this.Salir_Click);
|
|
//
|
|
// dataGrid1
|
|
//
|
|
this.dataGrid1.AllowUserToAddRows = false;
|
|
this.dataGrid1.AllowUserToDeleteRows = false;
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
|
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
dataGridViewCellStyle1.NullValue = "Texto";
|
|
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.dataGrid1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
|
this.dataGrid1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dataGrid1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.Texto});
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
this.dataGrid1.DefaultCellStyle = dataGridViewCellStyle2;
|
|
this.dataGrid1.Location = new System.Drawing.Point(12, 142);
|
|
this.dataGrid1.Name = "dataGrid1";
|
|
this.dataGrid1.ReadOnly = true;
|
|
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
|
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.dataGrid1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
|
this.dataGrid1.Size = new System.Drawing.Size(841, 441);
|
|
this.dataGrid1.TabIndex = 0;
|
|
//
|
|
// Texto
|
|
//
|
|
this.Texto.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
this.Texto.HeaderText = "";
|
|
this.Texto.Name = "Texto";
|
|
this.Texto.ReadOnly = true;
|
|
this.Texto.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
//
|
|
// btnComprobarConexion
|
|
//
|
|
this.btnComprobarConexion.Location = new System.Drawing.Point(486, 12);
|
|
this.btnComprobarConexion.Name = "btnComprobarConexion";
|
|
this.btnComprobarConexion.Size = new System.Drawing.Size(138, 28);
|
|
this.btnComprobarConexion.TabIndex = 2;
|
|
this.btnComprobarConexion.Text = "Comprobar Conexión";
|
|
this.btnComprobarConexion.UseVisualStyleBackColor = true;
|
|
this.btnComprobarConexion.Click += new System.EventHandler(this.button1_Click);
|
|
//
|
|
// btnActualizarLog
|
|
//
|
|
this.btnActualizarLog.Location = new System.Drawing.Point(486, 72);
|
|
this.btnActualizarLog.Name = "btnActualizarLog";
|
|
this.btnActualizarLog.Size = new System.Drawing.Size(138, 27);
|
|
this.btnActualizarLog.TabIndex = 3;
|
|
this.btnActualizarLog.Text = "Actualizar log";
|
|
this.btnActualizarLog.UseVisualStyleBackColor = true;
|
|
this.btnActualizarLog.Click += new System.EventHandler(this.button2_Click);
|
|
//
|
|
// timer1
|
|
//
|
|
this.timer1.Enabled = true;
|
|
this.timer1.Interval = 5000;
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(12, 113);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(228, 13);
|
|
this.label1.TabIndex = 4;
|
|
this.label1.Text = "Ultimas 1000 lineas de c:\\temp\\logfichajes.txt :";
|
|
//
|
|
// lvFichadores
|
|
//
|
|
this.lvFichadores.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
this.workcenter_id,
|
|
this.name,
|
|
this.fichador_ip});
|
|
this.lvFichadores.FullRowSelect = true;
|
|
this.lvFichadores.GridLines = true;
|
|
this.lvFichadores.Location = new System.Drawing.Point(12, 12);
|
|
this.lvFichadores.Name = "lvFichadores";
|
|
this.lvFichadores.Size = new System.Drawing.Size(468, 87);
|
|
this.lvFichadores.TabIndex = 6;
|
|
this.lvFichadores.UseCompatibleStateImageBehavior = false;
|
|
this.lvFichadores.View = System.Windows.Forms.View.Details;
|
|
//
|
|
// workcenter_id
|
|
//
|
|
this.workcenter_id.Text = "warehouseFk";
|
|
this.workcenter_id.Width = 100;
|
|
//
|
|
// name
|
|
//
|
|
this.name.Text = "name";
|
|
this.name.Width = 150;
|
|
//
|
|
// fichador_ip
|
|
//
|
|
this.fichador_ip.Text = "fichador_ip";
|
|
this.fichador_ip.Width = 150;
|
|
//
|
|
// btnDescargarFichajes
|
|
//
|
|
this.btnDescargarFichajes.Location = new System.Drawing.Point(486, 42);
|
|
this.btnDescargarFichajes.Name = "btnDescargarFichajes";
|
|
this.btnDescargarFichajes.Size = new System.Drawing.Size(138, 28);
|
|
this.btnDescargarFichajes.TabIndex = 7;
|
|
this.btnDescargarFichajes.Text = "Descargar Fichajes ahora";
|
|
this.btnDescargarFichajes.UseVisualStyleBackColor = true;
|
|
this.btnDescargarFichajes.Click += new System.EventHandler(this.btnDescargarFichajes_Click);
|
|
//
|
|
// chkBorrarLogs
|
|
//
|
|
this.chkBorrarLogs.AutoSize = true;
|
|
this.chkBorrarLogs.Checked = true;
|
|
this.chkBorrarLogs.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.chkBorrarLogs.Location = new System.Drawing.Point(492, 112);
|
|
this.chkBorrarLogs.Name = "chkBorrarLogs";
|
|
this.chkBorrarLogs.Size = new System.Drawing.Size(247, 17);
|
|
this.chkBorrarLogs.TabIndex = 8;
|
|
this.chkBorrarLogs.Text = "Borrar Logs fichadores si > : registros";
|
|
this.chkBorrarLogs.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnForzarBorrarLog
|
|
//
|
|
this.btnForzarBorrarLog.Location = new System.Drawing.Point(631, 13);
|
|
this.btnForzarBorrarLog.Name = "btnForzarBorrarLog";
|
|
this.btnForzarBorrarLog.Size = new System.Drawing.Size(131, 27);
|
|
this.btnForzarBorrarLog.TabIndex = 9;
|
|
this.btnForzarBorrarLog.Text = "Borrar log fichador";
|
|
this.btnForzarBorrarLog.UseVisualStyleBackColor = true;
|
|
this.btnForzarBorrarLog.Click += new System.EventHandler(this.btnForzarBorrarLog_Click);
|
|
//
|
|
// txtMaxRegistros
|
|
//
|
|
this.txtMaxRegistros.Location = new System.Drawing.Point(644, 109);
|
|
this.txtMaxRegistros.Name = "txtMaxRegistros";
|
|
this.txtMaxRegistros.Size = new System.Drawing.Size(45, 20);
|
|
this.txtMaxRegistros.TabIndex = 10;
|
|
this.txtMaxRegistros.Text = "1000";
|
|
this.txtMaxRegistros.Leave += new System.EventHandler(this.txtMaxRegistros_Leave);
|
|
//
|
|
// frmPrincipal
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(865, 595);
|
|
this.Controls.Add(this.txtMaxRegistros);
|
|
this.Controls.Add(this.btnForzarBorrarLog);
|
|
this.Controls.Add(this.chkBorrarLogs);
|
|
this.Controls.Add(this.btnDescargarFichajes);
|
|
this.Controls.Add(this.lvFichadores);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.btnActualizarLog);
|
|
this.Controls.Add(this.btnComprobarConexion);
|
|
this.Controls.Add(this.dataGrid1);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.Name = "frmPrincipal";
|
|
this.Text = "Lector Verdnatura";
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmPrincipal_FormClosing);
|
|
this.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.frmPrincipal_MouseDoubleClick);
|
|
this.Resize += new System.EventHandler(this.frmPrincipal_Resize);
|
|
this.contextMenuStrip1.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
|
private System.Windows.Forms.DataGridView dataGrid1;
|
|
private System.Windows.Forms.Button btnComprobarConexion;
|
|
private System.Windows.Forms.Button btnActualizarLog;
|
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
|
private System.Windows.Forms.ToolStripMenuItem RecogerFichajes;
|
|
private System.Windows.Forms.ToolStripMenuItem Salir;
|
|
private System.Windows.Forms.Timer timer1;
|
|
private System.Windows.Forms.ToolStripMenuItem comprobarHoraLectorToolStripMenuItem;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.ListView lvFichadores;
|
|
private System.Windows.Forms.ColumnHeader workcenter_id;
|
|
private System.Windows.Forms.ColumnHeader name;
|
|
private System.Windows.Forms.ColumnHeader fichador_ip;
|
|
private System.Windows.Forms.Button btnDescargarFichajes;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Texto;
|
|
private System.Windows.Forms.CheckBox chkBorrarLogs;
|
|
private System.Windows.Forms.Button btnForzarBorrarLog;
|
|
private System.Windows.Forms.TextBox txtMaxRegistros;
|
|
|
|
public CancelEventHandler contextMenuStrip1_Opening { get; private set; }
|
|
}
|
|
}
|
|
|