Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
		private void detach_frm_gastos_detalles(frm_gastos_detalle entity)
		{
			this.SendPropertyChanging();
			entity.frm_catalogo_gasto = null;
		}
Exemplo n.º 3
0
		private void detach_frm_gastos_detalles(frm_gastos_detalle entity)
		{
			this.SendPropertyChanging();
			entity.mrp_moneda = null;
		}
Exemplo n.º 4
0
 partial void Deletefrm_gastos_detalle(frm_gastos_detalle instance);
Exemplo n.º 5
0
 partial void Updatefrm_gastos_detalle(frm_gastos_detalle instance);
Exemplo n.º 6
0
 partial void Insertfrm_gastos_detalle(frm_gastos_detalle instance);
Exemplo n.º 7
0
		private void attach_frm_gastos_detalle(frm_gastos_detalle entity)
		{
			this.SendPropertyChanging();
			entity.frm_catalogo_gastos = this;
		}
Exemplo n.º 8
0
		private void attach_frm_gastos_detalle(frm_gastos_detalle entity)
		{
			this.SendPropertyChanging();
			entity.mrp_monedas = this;
		}