コード例 #1
0
        public long Nuevo(M_Ing_Egr Ing_Egr)
        {
            Dictionary <string, object> Parametros = new Dictionary <string, object>
            {
                { "Tipo_comp", Ing_Egr.Tipo_comp },
                { "No_comp", Ing_Egr.No_comp },
                { "Item", Ing_Egr.Item },
                { "Descripcion", Ing_Egr.Descripcion },
                { "Valor", Ing_Egr.Valor },
                { "Itipo", Ing_Egr.Itipo },
                { "Cod_concepto", Ing_Egr.Cod_concepto },
                { "Cod_empresa", Ing_Egr.Cod_empresa },
                { "No_operacion", Ing_Egr.No_operacion },
                { "Tipo_id", Ing_Egr.Tipo_id },
                { "Id", Ing_Egr.Id },
                { "Dv", Ing_Egr.Dv }
            };

            return(Data.EjecutarSPEscalar("{CALL sp_Nuevo_Ing_Egr(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}", Parametros));
        }
コード例 #2
0
 public long Actualizar(M_Ing_Egr Ing_Egr)
 {
     return(Data.Accion("UPDATE Ing_Egr SET Tipo_comp='" + Ing_Egr.Tipo_comp + "'" + ",No_comp=" + Ing_Egr.No_comp + ",Item=" + Ing_Egr.Item + ",Descripcion='" + Ing_Egr.Descripcion + "'" + ",Valor=" + Ing_Egr.Valor + ",Itipo=" + Ing_Egr.Itipo + ",Cod_concepto=" + Ing_Egr.Cod_concepto + ",Cod_empresa=" + Ing_Egr.Cod_empresa + ",No_operacion=" + Ing_Egr.No_operacion + ",Tipo_id='" + Ing_Egr.Tipo_id + "'" + ",Id=" + Ing_Egr.Id + ",Dv='" + Ing_Egr.Dv + "'" + " WHERE Tipo_comp='" + Ing_Egr.Tipo_comp + "'" + " and No_comp=" + Ing_Egr.No_comp + " and Item=" + Ing_Egr.Item + ";"));
 }
コード例 #3
0
 public long Insertar(M_Ing_Egr Ing_Egr)
 {
     return(Data.Accion("INSERT INTO Ing_Egr (Tipo_comp,No_comp,Item,Descripcion,Valor,Itipo,Cod_concepto,Cod_empresa,No_operacion,Tipo_id,Id,Dv) VALUES (" + "'" + Ing_Egr.Tipo_comp + "'" + "," + Ing_Egr.No_comp + "," + Ing_Egr.Item + ", '" + Ing_Egr.Descripcion + "'" + "," + Ing_Egr.Valor + "," + Ing_Egr.Itipo + "," + Ing_Egr.Cod_concepto + "," + Ing_Egr.Cod_empresa + "," + Ing_Egr.No_operacion + ", '" + Ing_Egr.Tipo_id + "'" + "," + Ing_Egr.Id + ", '" + Ing_Egr.Dv + "'" + ");"));
 }