Esempio n. 1
0
        internal ADO_readerOutput Read(string gmpCode)
        {
            GeoMap_ADO gAdo     = new GeoMap_ADO(ado);
            var        readData = gAdo.Read(gmpCode);

            return(readData);
        }
        /// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            GeoMap_ADO gAdo     = new GeoMap_ADO(Ado);
            var        response = gAdo.ReadCollection(DTO.GmpCode);

            if (response.hasData)
            {
                Response.data = response.data;
            }
            return(true);
        }
Esempio n. 3
0
        /// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            GeoMap_ADO gAdo = new GeoMap_ADO(Ado);


            if (gAdo.Delete(DTO, SamAccountName) == 0)
            {
                Response.error = Label.Get("error.create");
                return(false);
            }
            MemCacheD.Remove_BSO <dynamic>("PxStat.Data", "GeoMap_BSO_Read", "Read", DTO.GmpCode);
            Response.data = JSONRPC.success;
            return(true);
        }
Esempio n. 4
0
        /// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            GeoMap_ADO gAdo    = new GeoMap_ADO(Ado);
            int        records = gAdo.Create(DTO, SamAccountName);

            if (records == 0)
            {
                Response.error = Label.Get("error.create");
                return(false);
            }

            Response.data = JSONRPC.success;
            return(true);
        }