Esempio n. 1
0
        public async Task <string> GetEstoque(string scdCodigo)
        {
            var retorno = await(await WSRequest.RequestGET("TFServMMAT/f_get_saldo_estoque/" + scdCodigo)).Content.ReadAsStringAsync();

            retorno = retorno.Replace(@"\", "").Replace("\"[", "[").Replace("]\"", "]");

            return(retorno);
        }
Esempio n. 2
0
        public async Task <bool> VerificaLogin(string sdsUsuario)
        {
            var response = await(await WSRequest.RequestGET("TFServMInf/f_retorna_id_usuario/" + sdsUsuario)).Content.ReadAsStringAsync();
            var json     = response.Replace(@"\", "").Replace("\"[", "[").Replace("]\"", "]");

            if (int.Parse(json) > 0)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 3
0
        public async Task <string> GetCarac(long nidMater)
        {
            try
            {
                var retorno = await(await WSRequest.RequestGET("TFServMMAT/f_get_carac/" + nidMater)).Content.ReadAsStringAsync();

                retorno = retorno.Replace(@"\", "").Replace("\"[", "[").Replace("]\"", "]");

                return(retorno);
            }
            catch
            {
                return(null);
            }
        }
Esempio n. 4
0
        public async Task <string> GetFicha(long nidMaterial)
        {
            try
            {
                var retorno = await(await WSRequest.RequestGET("TFServMMAT/f_get_ficha/" + nidMaterial)).Content.ReadAsStringAsync();

                retorno = retorno.Replace(@"\", "").Replace("\"[", "[").Replace("]\"", "]");

                return(retorno);
            }
            catch
            {
                throw;
            }
        }
Esempio n. 5
0
        public async Task <string> GetCardapio(string sdsFiltro)
        {
            try
            {
                var retorno = await(await WSRequest.RequestGET("TFServMMAT/f_get_cardapio/" + sdsFiltro)).Content.ReadAsStringAsync();

                retorno = retorno.Replace(@"\", "").Replace("\"[", "[").Replace("]\"", "]");

                return(retorno);
            }
            catch
            {
                return(null);
            }
        }