Example #1
0
        public SIT_ADM_AREAGESTION dmlSelectID(SIT_ADM_AREAGESTION oDatos)
        {
            String sSQL = " SELECT * FROM SIT_ADM_AREAGESTION WHERE  agnclave = :P0 ";

            return(CrearListaMDL <SIT_ADM_AREAGESTION>(ConsultaDML(sSQL, oDatos.agnclave) as DataTable)[0]);
        }
Example #2
0
        public int dmlEditar(SIT_ADM_AREAGESTION oDatos)
        {
            String sSQL = " UPDATE SIT_ADM_AREAGESTION SET  agndescripcion = :P0, agnfecfin = :P1, agnfecini = :P2 WHERE  agnclave = :P3 ";

            return((int)EjecutaDML(sSQL, oDatos.agndescripcion, oDatos.agnfecfin, oDatos.agnfecini, oDatos.agnclave));
        }
Example #3
0
        public int dmlBorrar(SIT_ADM_AREAGESTION oDatos)
        {
            String sSQL = " DELETE FROM SIT_ADM_AREAGESTION WHERE  agnclave = :P0 ";

            return((int)EjecutaDML(sSQL, oDatos.agnclave));
        }
Example #4
0
        public Object dmlAgregar(SIT_ADM_AREAGESTION oDatos)
        {
            String sSQL = " INSERT INTO SIT_ADM_AREAGESTION( agndescripcion, agnfecfin, agnfecini, agnclave) VALUES (  :P0, :P1, :P2, :P3) ";

            return(EjecutaDML(sSQL, oDatos.agndescripcion, oDatos.agnfecfin, oDatos.agnfecini, oDatos.agnclave));
        }