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

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

            Par1 = this.dtgListado.CurrentRow.Cells["idproveedor"].Value.ToString();
            Par2 = this.dtgListado.CurrentRow.Cells["razon_social"].Value.ToString();
            Form.SetProveedor(Par1, Par2);
            this.Hide();
        }
Exemple #4
0
        private void dtgListado_DoubleClick(object sender, EventArgs e)
        {
            FNIngreso Form = FNIngreso.GetInstancia();

            string Par1, Par2;

            Par1 = dtgListado.CurrentRow.Cells["idarticulo"].Value.ToString();
            Par2 = dtgListado.CurrentRow.Cells["nombre"].Value.ToString();
            Form.SetArticulo(Par1, Par2);
            this.Hide();
        }
Exemple #5
0
 private void FNIngreso_FormClosing(object sender, FormClosingEventArgs e)
 {
     _Instancia = null;
 }