public ActionResult EditingUpdate([ModelBinder(typeof(DevExpressEditorsBinder))] in_Ing_Egr_Inven_det_Info info_det) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); if (info_det != null) { if (info_det.IdProducto != 0) { in_Producto_Info info_producto = bus_producto.get_info(IdEmpresa, info_det.IdProducto); if (info_producto != null) { info_det.pr_descripcion = info_producto.pr_descripcion_combo; info_det.tp_ManejaInven = info_producto.tp_ManejaInven; info_det.se_distribuye = info_producto.se_distribuye; info_det.mv_costo_sinConversion = bus_prod_x_bod.get_ultimo_costo(IdEmpresa, Convert.ToInt32(SessionFixed.IdSucursalInv), Convert.ToInt32(SessionFixed.IdBodegaInv), info_det.IdProducto, DateTime.Now.Date); } } } if (info_det.dm_cantidad_sinConversion > 0) { List_in_Ing_Egr_Inven_det.UpdateRow(info_det, Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)); } var model = List_in_Ing_Egr_Inven_det.get_list(Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)); cargar_combos_detalle(); return(PartialView("_GridViewPartial_egr_inv_det", model)); }
public ActionResult EditingUpdate([ModelBinder(typeof(DevExpressEditorsBinder))] in_Ing_Egr_Inven_det_Info info_det) { int IdEmpresa = Convert.ToInt32(Session["IdEmpresa"]); if (info_det != null) { if (info_det.IdProducto != 0) { in_Producto_Info info_producto = bus_producto.get_info(IdEmpresa, info_det.IdProducto); if (info_producto != null) { info_det.pr_descripcion = info_producto.pr_descripcion_combo; info_det.IdUnidadMedida = info_producto.IdUnidadMedida; info_det.IdUnidadMedida_sinConversion = info_producto.IdUnidadMedida; } } } if (info_det.dm_cantidad_sinConversion > 0) { List_in_Ing_Egr_Inven_det.UpdateRow(info_det, Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)); } var model = List_in_Ing_Egr_Inven_det.get_list(Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)); cargar_combos_detalle(); return(PartialView("_GridViewPartial_inv_det", model)); }