示例#1
0
 public PartialViewResult Ver(int id)
 {
     using (var oVerFactura = new VerFactura())
     {
         var result = oVerFactura.Ejecutar(id);
         return(PartialView("_Ver", result));
     }
 }
示例#2
0
        private void gridControl1_KeyDown(object sender, KeyEventArgs e)
        {
            if (gridView1.ActiveEditor == null)
            {
                switch (e.KeyCode)
                {
                case Keys.Return:
                    VerFactura.PerformClick();
                    break;

                case Keys.Delete:
                    Eliminar.PerformClick();
                    break;

                case Keys.Subtract:
                    Eliminar.PerformClick();
                    break;

                case Keys.P:
                    Duplicar.PerformClick();
                    break;
                }
            }
        }