Пример #1
0
        private void ToolSalir_Click(object sender, EventArgs e)
        {
            objRegistros = null;
            dtRegistros  = null;

            objFormVis = null;

            this.Close();
        }
Пример #2
0
        private void ToolEnviar_Click(object sender, EventArgs e)
        {
            int    n_idreg             = Convert.ToInt32(DgLista.Columns["n_id"].CellValue(DgLista.Row).ToString());
            int    n_numarch           = Convert.ToInt32(DgLista.Columns["n_numarc"].CellValue(DgLista.Row).ToString());
            string c_fchven            = DgLista.Columns["d_fchven"].CellValue(DgLista.Row).ToString();
            string c_RutaArchPla       = entEmpresa.c_vtafearcdat;
            CN_vta_boletaresumen o_bol = new CN_vta_boletaresumen();

            o_bol.STU_SISTEMA = STU_SISTEMA;
            o_bol.mysConec    = mysConec;
            if (o_bol.GenerarBoletaResumen(n_idreg, c_fchven, n_numarch, c_RutaArchPla) == true)
            {
                MessageBox.Show("¡ Las boletas se exportaron con exito ! " + objRegistros.StrErrorMensaje, "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
            }
            else
            {
                MessageBox.Show("¡ No se pudo enviar las boletas de venta por el siguiente motivo ! " + objRegistros.StrErrorMensaje, "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
            }
        }