private bool validarSiteId(MigracionPorLote.encabezadoTrace e) { if (e.Site_Id != "") { return(true); } int num = (int)MessageBox.Show("Debe seleccionar un site", "Migración por Lotes", MessageBoxButtons.OK, MessageBoxIcon.Hand); return(false); }
private void nuevo() { this.txtArchivo.Text = ""; this.cbSite.Text = ""; this.cbUDF_Pedimento.Text = ""; this.encabezado = (MigracionPorLote.encabezadoTrace)null; this.registros = (List <MigracionPorLote.registroTrace>)null; this.dgvResultado.Rows.Clear(); this.indice_property_fecha = -1; this.indice_property_pedimento = -1; }
private void validar() { this.encabezado = new MigracionPorLote.encabezadoTrace(); this.encabezado.Site_Id = this.cbSite.Text; this.encabezado.Fecha = this.dtFecha.Value.Date; this.dgvResultado.Rows.Clear(); if (!this.validarSiteId(this.encabezado) || !this.validarUDF() || !this.validarExcel()) { return; } this.bSubir.Enabled = true; this.subirArchivoToolStripMenuItem.Enabled = true; }