Posts by Rafael Oliveira • 155 points
8 posts
-
0
votes3
answers4347
viewsA: Check if the item exists in a List<>
made using the idea of Predicate<> and it worked and even in Code Metrics the method became cleaner. It was like this: Calling for: int index = listLoteRecla.FindIndex(LogicaDeBuscaEditar);…
-
0
votes3
answers4347
viewsA: Check if the item exists in a List<>
I did it that way and it worked. if (!listLoteRecla.Exists(x => x.est_lote.Equals(dtDados.Rows[i]["est_lote"].ToString())) && !listLoteRecla.Exists(x =>…
-
0
votes3
answers4347
viewsQ: Check if the item exists in a List<>
I have a list typed in C# and I need to search for an item through several filters. I demonstrate in codes: List<LoteRecla> listLoteRecla = new List<LoteRecla>(); I tried using the…
-
1
votes1
answer727
viewsA: Problem receiving very large JSON in Restful Webservice
Putting this code down on my web.config, I could see that it was a field that was with different type than received. I changed it and it worked. <serviceDebug…
-
2
votes1
answer1443
viewsQ: ORA-01460 error on Oracle
I have the trial below: PROCEDURE GRAVA_(P_IMEI_DISPOSITIVO IN NVARCHAR2, P LONG, P_DET LONG, RETORNO_OPERACAO OUT VARCHAR2) In the P and P_DET parameters I receive strings with XML data, and inside…
-
0
votes1
answer727
viewsQ: Problem receiving very large JSON in Restful Webservice
We work here with Android + Webservice (.Net Restful) for data communication. We are receiving the data in JSON format in a method, below: //Método public Retorno MetodoA(string sConexao, string…
-
6
votes2
answers5742
viewsQ: Use global variable in more than one js file
I have the file Geragriddados.js and in this file I created a global variable and a function. nomeTela = ""; function redirecionaTela() { //redireciona para tela que chamou a tela de Dados.…
-
5
votes1
answer4267
viewsQ: Convert JSON to Array in Javascript
Good afternoon, it’s my first question here. I’m getting the json below through an ajax request. [ {"SEMANA":1.0,"PRODUCAO":0.0,"PRODUCAO2":0.0},…