/// <summary> /// Ingresa datos de costos de horas hombre de mano directa para una orden de producción /// </summary> /// <param name="idProduccion">Representa el identificador unico de una orden de producción</param> /// <param name="iCodProducto">Representa el codigo del producto a generar en la producción</param> /// <param name="sCodPuesto">codigo identificador de un puesto determinado</param> /// <param name="dCantidad">Cantidad de materia prima utilizada</param> /// <param name="dTotal">Total del costo representado por la materia prima utilizada</param> public void SaveHhDetalle(int idProduccion, int iCodProducto, string sCodPuesto, decimal dCantidad, decimal dTotal ) { ConnectionDBDataContext dcConn = new ConnectionDBDataContext(); mrp_detalle_consumo_hh tIndirectCost = new mrp_detalle_consumo_hh { id_produccion = idProduccion, cod_producto = iCodProducto, COD_PUESTO = sCodPuesto, cantidad = dCantidad, total = dTotal }; dcConn.GetTable<mrp_detalle_consumo_hh>().InsertOnSubmit(tIndirectCost); dcConn.SubmitChanges(); }
partial void Updatemrp_detalle_consumo_hh(mrp_detalle_consumo_hh instance);
partial void Deletemrp_detalle_consumo_hh(mrp_detalle_consumo_hh instance);
partial void Insertmrp_detalle_consumo_hh(mrp_detalle_consumo_hh instance);
private void detach_mrp_detalle_consumo_hhs(mrp_detalle_consumo_hh entity) { this.SendPropertyChanging(); entity.scm_producto = null; }
private void detach_mrp_detalle_consumo_hhs(mrp_detalle_consumo_hh entity) { this.SendPropertyChanging(); entity.mrp_ordenes_produccion = null; }
private void detach_mrp_detalle_consumo_hhs(mrp_detalle_consumo_hh entity) { this.SendPropertyChanging(); entity.HRM_PUESTO = null; }
private void detach_mrp_detalle_consumo_hhs(mrp_detalle_consumo_hh entity) { this.SendPropertyChanging(); entity.mrp_catalogo_recurso = null; }