/// <summary> /// Create a new reporte_total_inventario_de_cafe object. /// </summary> /// <param name="tRANSACCION_NUMERO">Initial value of the TRANSACCION_NUMERO property.</param> /// <param name="cLASIFICACIONES_CAFE_ID">Initial value of the CLASIFICACIONES_CAFE_ID property.</param> /// <param name="cLASIFICACIONES_CAFE_NOMBRE">Initial value of the CLASIFICACIONES_CAFE_NOMBRE property.</param> /// <param name="iNVENTARIO_ENTRADAS_CANTIDAD">Initial value of the INVENTARIO_ENTRADAS_CANTIDAD property.</param> /// <param name="iNVENTARIO_SALIDAS_SALDO">Initial value of the INVENTARIO_SALIDAS_SALDO property.</param> /// <param name="cREADO_POR">Initial value of the CREADO_POR property.</param> /// <param name="fECHA_CREACION">Initial value of the FECHA_CREACION property.</param> public static reporte_total_inventario_de_cafe Createreporte_total_inventario_de_cafe(global::System.Int32 tRANSACCION_NUMERO, global::System.Int32 cLASIFICACIONES_CAFE_ID, global::System.String cLASIFICACIONES_CAFE_NOMBRE, global::System.Decimal iNVENTARIO_ENTRADAS_CANTIDAD, global::System.Decimal iNVENTARIO_SALIDAS_SALDO, global::System.String cREADO_POR, global::System.DateTime fECHA_CREACION) { reporte_total_inventario_de_cafe reporte_total_inventario_de_cafe = new reporte_total_inventario_de_cafe(); reporte_total_inventario_de_cafe.TRANSACCION_NUMERO = tRANSACCION_NUMERO; reporte_total_inventario_de_cafe.CLASIFICACIONES_CAFE_ID = cLASIFICACIONES_CAFE_ID; reporte_total_inventario_de_cafe.CLASIFICACIONES_CAFE_NOMBRE = cLASIFICACIONES_CAFE_NOMBRE; reporte_total_inventario_de_cafe.INVENTARIO_ENTRADAS_CANTIDAD = iNVENTARIO_ENTRADAS_CANTIDAD; reporte_total_inventario_de_cafe.INVENTARIO_SALIDAS_SALDO = iNVENTARIO_SALIDAS_SALDO; reporte_total_inventario_de_cafe.CREADO_POR = cREADO_POR; reporte_total_inventario_de_cafe.FECHA_CREACION = fECHA_CREACION; return reporte_total_inventario_de_cafe; }
/// <summary> /// Deprecated Method for adding a new object to the reporte_total_inventario_de_cafe EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToreporte_total_inventario_de_cafe(reporte_total_inventario_de_cafe reporte_total_inventario_de_cafe) { base.AddObject("reporte_total_inventario_de_cafe", reporte_total_inventario_de_cafe); }
/// <summary> /// Obtiene totales de inventario de café de cooperativa. /// </summary> /// <param name="CLASIFICACIONES_CAFE_ID"></param> /// <returns>Totales de inventario de café de cooperativa.</returns> public reporte_total_inventario_de_cafe GetReporteTotalInventarioDeCafe(int CLASIFICACIONES_CAFE_ID) { try { using (var db = new colinasEntities()) { EntityKey k = new EntityKey("colinasEntities.reporte_total_inventario_de_cafe", "CLASIFICACIONES_CAFE_ID", CLASIFICACIONES_CAFE_ID); Object invCaf = null; reporte_total_inventario_de_cafe inventory = null; if (db.TryGetObjectByKey(k, out invCaf)) inventory = (reporte_total_inventario_de_cafe)invCaf; else inventory = new reporte_total_inventario_de_cafe(); return inventory; } } catch (Exception ex) { log.Fatal("Error fatal al obtener reporte total de inventario de cafe de cooperativa.", ex); throw; } }