/// <summary> /// Ingresa datos de costos indirectos para un mes específico /// </summary> /// <param name="idGasto">Representa el identificador unico de un tipo de gasto</param> /// <param name="dtFecha">Representa la fecha para una produccion específica</param> /// <param name="dNoFactura">Representa el numero de la factura emitida para registrar un gasto</param> /// <param name="dTotal">Representa el valor total a pagar de una factura</param> /// <param name="idMoneda">Indica la moneda en la que fue facturada</param> /// <param name="dTasaCambio">Indica la tasa de cambio para esta compra</param> /// <param name="sSerie">Identifica la factura que registra ese gasto</param> /// <param name="bActivo">Indica que este gasto se toma en cuenta esta dado de baja</param> public void SaveCostosIndirectosDetalle(int idGasto, DateTime dtFecha, decimal dNoFactura, decimal dTotal, int idMoneda, decimal dTasaCambio, string sSerie, bool bActivo) { ConnectionDBDataContext dcConn = new ConnectionDBDataContext(); frm_gastos_detalle tIndirectCost = new frm_gastos_detalle { id_gasto = idGasto, fecha_ingreso = dtFecha, no_factura = dNoFactura, Total = dTotal, id_moneda = idMoneda, tasa_cambio = idGasto, Serie = sSerie, Mont = dtFecha.Month, Year = dtFecha.Year, activo = bActivo }; dcConn.GetTable<frm_gastos_detalle>().InsertOnSubmit(tIndirectCost); dcConn.SubmitChanges(); }
private void detach_frm_gastos_detalles(frm_gastos_detalle entity) { this.SendPropertyChanging(); entity.frm_catalogo_gasto = null; }
private void detach_frm_gastos_detalles(frm_gastos_detalle entity) { this.SendPropertyChanging(); entity.mrp_moneda = null; }
partial void Deletefrm_gastos_detalle(frm_gastos_detalle instance);
partial void Updatefrm_gastos_detalle(frm_gastos_detalle instance);
partial void Insertfrm_gastos_detalle(frm_gastos_detalle instance);
private void attach_frm_gastos_detalle(frm_gastos_detalle entity) { this.SendPropertyChanging(); entity.frm_catalogo_gastos = this; }
private void attach_frm_gastos_detalle(frm_gastos_detalle entity) { this.SendPropertyChanging(); entity.mrp_monedas = this; }