示例#1
0
 private void btnSubirProductos_Click(object sender, EventArgs e)
 {
     FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
     FEControl.RutaBDLocal  = txtRutaBDLocal.Text;
     FEControl.RutaServidor = txtRutaServidor.Text;
     //FEControl.uploadProductsSysfac();
 }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
     FEControl.RutaBDLocal  = txtRutaBDLocal.Text;
     FEControl.RutaServidor = txtRutaServidor.Text;
     FEControl.crearTabla("PARAMETRO", " (ID VARCHAR(30),VALOR VARCHAR(80))");
     //FEControl.actualizarColumna("PARAMETRO", "VALOR", txtNumAfiliado.Text, " WHERE ID = 'LIC_AFILIADO'");
 }
示例#3
0
 private void button1_Click_2(object sender, EventArgs e)
 {
     FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
     FEControl.RutaBDLocal  = txtRutaBDLocal.Text;
     FEControl.RutaServidor = txtRutaServidor.Text;
     //FEControl.uploadFacturasSysfac();
     //FEControl.actualizarColumna("PARAMETRO", "VALOR", "1", " WHERE ID = 'ENVIAR_FACTURAS_AUTO'");
     MessageBox.Show("Facturas cargadas");
 }
示例#4
0
        private void btnSubirSucursal_Click(object sender, EventArgs e)
        {
            agregarWireCrypt();

            FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
            setRutaBDLocal(txtRutaBDLocal.Text);
            setRutaServidor(txtRutaServidor.Text);
            FEControl.RutaBDLocal           = txtRutaBDLocal.Text;
            FEControl.RutaServidor          = txtRutaServidor.Text;
            FEControl.Cedula                = txtCedula.Text;
            FEControl.Contrasena            = txtContrasenaHacienda.Text;
            FEControl.Direccion             = txtDireccion.Text;
            FEControl.Email                 = txtEmail.Text;
            FEControl.Fax                   = txtFax.Text;
            FEControl.LlaveCriptografica    = txtLlaveCriptografica.Text;
            FEControl.Nombre                = txtNombre.Text;
            FEControl.NumAfiliado           = txtNumAfiliado.Text;
            FEControl.PinLlaveCriptografica = txtPinLlaveCriptografica.Text;
            FEControl.Telefono              = txtTelefono.Text;
            FEControl.UsuarioHacienda       = txtUsuarioHacienda.Text;
            FEControl.Barrio                = cmbBarrio.Text;
            FEControl.Distrito              = cmbDistrito.Text;
            FEControl.Provincia             = cmbProvincia.Text;
            FEControl.Canton                = cmbCanton.Text;
            //Los 2 nombres siguientes parecen no coincidir, pero lo que está malo es el nombre
            FEControl.Sucursal        = cmbEsCasaMatriz.Text;
            FEControl.Caja            = cmbNumSucursal.Text;
            FEControl.CodigoSeguridad = txtCodigoSeguridad.Text;
            FEControl.NumAfiliado     = txtNumAfiliado.Text;
            FEControl.RutaBDLocal     = txtRutaBDLocal.Text;
            //
            try
            {
                FEControl.crearTabla("PARAMETRO", " (ID VARCHAR(30),VALOR VARCHAR(80))");
            }
            catch (Exception E)
            {
                MessageBox.Show(E.Message);
            }
            string suc = FEControl.uploadSubsidiarySysfac(txtNumAfiliado.Text);

            try
            {
                Int32.Parse(suc);
                MessageBox.Show("Datos cargados con éxito en " + txtRutaServidor.Text);
            }
            catch
            {
                MessageBox.Show(suc);
            }

            //inicializar();
        }
示例#5
0
 private void subirProdsYFact_Tick(object sender, EventArgs e)
 {
     FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
     FEControl.RutaBDLocal  = txtRutaBDLocal.Text;
     FEControl.RutaServidor = txtRutaServidor.Text;
     try
     {
         //if (FEControl.demeParametro("ACTUALIZAR_FACTURAS_AUTO") == "1")
         {
             //FEControl.uploadFacturasSysfac();
         }
     }
     finally
     {
     }
 }
示例#6
0
 private void inicializar()
 {
     cmbProvincia.SelectedValue    = 1;
     cmbCanton.SelectedValue       = 1;
     cmbDistrito.SelectedValue     = 1;
     cmbBarrio.SelectedValue       = 1;
     cmbEsCasaMatriz.SelectedValue = 1;
     cmbNumSucursal.SelectedValue  = 1;
     txtCedula.Text             = "";
     txtContrasenaHacienda.Text = "";
     txtDireccion.Text          = "";
     txtEmail.Text = "";
     txtFax.Text   = "";
     txtLlaveCriptografica.Text    = "";
     txtNombre.Text                = "";
     txtNumAfiliado.Text           = "";
     txtPinLlaveCriptografica.Text = "";
     txtTelefono.Text              = "";
     txtUsuarioHacienda.Text       = "";
     FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
     //txtRutaBDLocal.Text = getRutaBDLocal();
     txtRutaServidor.Text = getRutaServidor();
 }
示例#7
0
 private void button1_Click(object sender, EventArgs e)
 {
     FEControlador.FEControladorLibrary FEControl = new FEControlador.FEControladorLibrary();
     //FEControl.uploadData();
 }