Beispiel #1
0
        public SIT_RESP_COSTO dmlSelectID(SIT_RESP_COSTO oDatos)
        {
            String sSQL = " SELECT * FROM SIT_RESP_COSTO WHERE  cosclave = :P0 ";

            return(CrearListaMDL <SIT_RESP_COSTO>(ConsultaDML(sSQL, oDatos.coscd) as DataTable)[0]);
        }
Beispiel #2
0
        public int dmlEditar(SIT_RESP_COSTO oDatos)
        {
            String sSQL = " UPDATE SIT_RESP_COSTO SET  coscd= :P0, coscarta= :P1, coscertificada= :P2 WHERE  cosclave = :P3 ";

            return((int)EjecutaDML(sSQL, oDatos.cosclave, oDatos.coscd));
        }
Beispiel #3
0
        public int dmlBorrar(SIT_RESP_COSTO oDatos)
        {
            String sSQL = " DELETE FROM SIT_RESP_COSTO WHERE  cosclave = :P0 ";

            return((int)EjecutaDML(sSQL, oDatos.coscd));
        }
Beispiel #4
0
        public Object dmlAgregar(SIT_RESP_COSTO oDatos)
        {
            String sSQL = " INSERT INTO SIT_RESP_COSTO( cosclave, coscd, coscarta, coscertificada) VALUES (  :P0, :P1, :P2, :P3) ";

            return(EjecutaDML(sSQL, oDatos.cosclave, oDatos.coscd, oDatos.coscarta, oDatos.coscertificada));
        }