Exemple #1
0
 public static FNVenta GetInstancia()
 {
     if (_Instancia == null)
     {
         _Instancia = new FNVenta();
     }
     return(_Instancia);
 }
Exemple #2
0
        private void ventasPorFechaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FNVenta Form = FNVenta.GetInstancia();

            Form.MdiParent   = this;
            Form.WindowState = FormWindowState.Maximized;
            Form.Show();
            Form.Idtrabajador = Convert.ToInt32(this.Idtrabajador);
        }
Exemple #3
0
        private void dtgListado_DoubleClick(object sender, EventArgs e)
        {
            FNVenta Form = FNVenta.GetInstancia();
            string  Par1, Par2;

            Par1 = this.dtgListado.CurrentRow.Cells["idcliente"].Value.ToString();
            Par2 = this.dtgListado.CurrentRow.Cells["apellido"].Value.ToString() + " " +
                   this.dtgListado.CurrentRow.Cells["nombre"].Value.ToString();
            Form.SetCliente(Par1, Par2);
            this.Hide();
        }
Exemple #4
0
        private void dtgListado_DoubleClick(object sender, EventArgs e)
        {
            FNVenta Form = FNVenta.GetInstancia();
            string Par1, Par2;
            decimal Par3, Par4;
            int Par5;
            DateTime Par6;

            Par1 = this.dtgListado.CurrentRow.Cells["iddetalle_ingreso"].Value.ToString();
            Par2 = this.dtgListado.CurrentRow.Cells["nombre"].Value.ToString();
            Par3 = Convert.ToDecimal(this.dtgListado.CurrentRow.Cells["precio_compra"].Value);
            Par4= Convert.ToDecimal(this.dtgListado.CurrentRow.Cells["precio_venta"].Value);
            Par5 = Convert.ToInt32(this.dtgListado.CurrentRow.Cells["stock_actual"].Value);
            Par6=Convert.ToDateTime(this.dtgListado.CurrentRow.Cells["fecha_vencimiento"].Value);
            Form.SetArticulo(Par1, Par2, Par3, Par4, Par5, Par6);
            this.Hide();

        }
Exemple #5
0
 private void FNVenta_FormClosing(object sender, FormClosingEventArgs e)
 {
     _Instancia = null;
 }