Esempio n. 1
0
 private void UIGRIDVIEW_DoubleClick(object sender, EventArgs e)
 {
     if (UIGRIDVIEW.FocusedRowHandle >= 0)
     {
         V_FAC_PEDIDO tupla = (V_FAC_PEDIDO )UIGRIDVIEW.GetFocusedRow();
         pedidoSelected = (from u in _datasistema.ContextoVentas.FAC_PEDIDO where u.ID == tupla.ID select u).First();
         this.Close();
     }
 }
Esempio n. 2
0
 private void UIGRIDVIEW_DoubleClick(object sender, EventArgs e)
 {
     if (UIGRIDVIEW.FocusedRowHandle >= 0)
     {
         //int tupla = (int)UIGRIDVIEW.GetFocusedRowCellValue("ID");
         V_COMP_COMPRA    tupla       = (V_COMP_COMPRA)UIGRIDVIEW.GetFocusedRow();
         COMP_DETA_QUEDAN tupla_nueva = new COMP_DETA_QUEDAN {
             ID = 0, ID_COMPRA = tupla.ID, ID_QUEDAN = enca.ID
         };
         frmpapa.insertardetalle(tupla_nueva);
         Consultar();
     }
 }
Esempio n. 3
0
 private void UIGRIDVIEW_DoubleClick(object sender, EventArgs e)
 {
     if (UIGRIDVIEW.FocusedRowHandle >= 0)
     {
         //int tupla = (int)UIGRIDVIEW.GetFocusedRowCellValue("ID");
         V_INV_DETA_ORDEN tupla       = (V_INV_DETA_ORDEN )UIGRIDVIEW.GetFocusedRow();
         INV_DETA_INGR    tupla_nueva = new INV_DETA_INGR  {
             ID_ARTICULO = (int)tupla.ID_ARTICULO, ID_INGR = enca.ID, FLG_INGR = 'N', ID_DETA_ORDEN = tupla.ID, NM_CANTIDAD = tupla.NM_CANT_FALTANTE, NM_PRECIO = tupla.NM_PRECIO
         };
         frmpapa.insertardetalle(tupla_nueva);
         Consultar();
     }
 }
Esempio n. 4
0
 private void UIGRIDVIEW_DoubleClick_1(object sender, EventArgs e)
 {
     if (UIGRIDVIEW.FocusedRowHandle >= 0)
     {
         V_INV_ENCA_INGR tupla = (V_INV_ENCA_INGR)UIGRIDVIEW.GetFocusedRow();
         int?            comp  = 0;
         int?            error = 0;
         string          msj   = String.Empty;
         _datasistema.ContextoCompras.PR_COMP_IMPO_INGR_COMPR(tupla.ID, tupla.ID_EMPRESA, ref comp, ref error, ref msj);
         if (error != 0)
         {
             MetodosForm.mensajeErrorDefault(msj, _datasistema);
         }
         else
         {
             frmpapa.consultar();
             MetodosForm.seleccionarFila(frmpapa.uigridview, "ID", comp);
             this.Close();
         }
     }
 }