示例#1
0
 public CargaArchivosForm()
 {
     InitializeComponent();
     archivosFact          = ArchivosFacturacion.Instance;
     txtRutaFactBruta.Text = archivosFact.rutaFactBruta;
     txtRutaNotas.Text     = archivosFact.rutaNotas;
     txtRutaExport.Text    = archivosFact.RutaExportDBF;
     btnCargarFactBruta.Focus();
     MessageBoxEx.EnableGlass = false;
 }
示例#2
0
        public Analisis()
        {
            InitializeComponent();
            archFact = ArchivosFacturacion.Instance;
            config   = Configuracion.Instance;

            MessageBoxEx.EnableGlass = false;

            conexion = new ConexionPSQL();

            if (archFact.GenerarFacturacinBruta)
            {
                btnMergeFact.Enabled = false;
            }
            else
            {
                conexion.LimpiarTablasBaseYNotas();
            }
        }
示例#3
0
        private void btnAnalisis_Click(object sender, EventArgs e)
        {
            ArchivosFacturacion archFact = ArchivosFacturacion.Instance;

            MessageBoxEx.EnableGlass = false;

            if (string.IsNullOrEmpty(archFact.rutaFactBruta) || string.IsNullOrEmpty(archFact.rutaNotas))
            {
                MessageBoxEx.Show(this, "NO SE HAN ESCOGIDO LOS ARCHIVOS DE FACTURACION Y DE NOTAS. POR FAVOR SELECCIONELOS.", "MENSAJE DEL SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }



            if (string.IsNullOrEmpty(config.Server) || string.IsNullOrEmpty(config.Port) || string.IsNullOrEmpty(config.Username) || string.IsNullOrEmpty(config.Password))
            {
                MessageBoxEx.Show(this, "NO SE HAN COMPLETADO LOS DATOS DE CONFIGURACION.", "MENSAJE DEL SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            FormCollection fc        = Application.OpenForms;
            bool           FormFound = false;

            foreach (Form frm in fc)
            {
                if (frm.Name == "Analisis")
                {
                    frm.Focus();
                    FormFound = true;
                }
            }
            if (FormFound == false)
            {
                Analisis myForm = new Analisis();
                myForm.MdiParent = this;
                myForm.Show();
            }
        }