Example #1
0
        private void FormGenerarPoliza_Load(object sender, EventArgs e)
        {
            DataSet ds;
            DatosPolizaLogistica dmu = new DatosPolizaLogistica();

            ds = dmu.DatosDetalle();
            Dgv_Poliza.DataSource = ds.Tables[0];
        }
Example #2
0
        private void Btn_Buscar_Click(object sender, EventArgs e)
        {
            //Mostrar datos en DataGrid
            DataSet ds;
            DatosPolizaLogistica dmu = new DatosPolizaLogistica();

            ds = dmu.ConsultarDatos(Dtp_FechaInicio.Value.ToString("yyyyMMdd"), Dtp_FechaFin.Value.ToString("yyyyMMdd"));
            Dgv_Poliza.DataSource = ds.Tables[0];
        }
Example #3
0
        public void ValidarDatosPoliza(string inicio, string fin)
        {
            DatosPolizaLogistica dmu = new DatosPolizaLogistica();

            if (inicio == "" || fin == "")
            {
                MessageBox.Show("Debe ingresar las dos fechas");
            }
            else
            {
                dmu.ConsultarDatos(inicio, fin);
            }
        }
Example #4
0
        public void ValidarInsertarDatosPoliza(string id, string fecha, string tipo)
        {
            DatosPolizaLogistica dmu = new DatosPolizaLogistica();

            if (id == "" || fecha == "" || tipo == "")
            {
                MessageBox.Show("Debe ingresar todos los campos");
            }
            else
            {
                dmu.InsertarDatosDePoliza(id, fecha, tipo);
            }
        }