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); }
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); }
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); } }
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; } }
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); } }