Posts by Harry • 3,805 points
339 posts
-
0
votes1
answer3861
viewsQ: Catch the time of formatted sql server database
My database has a difference of 4 hours, support so far has not given a solution, so I would like to know how I can format the time out: select CAST(HORA_FECHAMENTO AS datetime) as HORA_FECHAMENTO,…
-
0
votes1
answer38
viewsQ: Doubt with component change in eclipse migration to android studio
I have an app that was migrated from the eclipse, it uses a component: http://actionbarsherlock.com/, but it generates error in opening the application, so I needed to comment on the code below so…
-
1
votes0
answers29
viewsQ: Project migration done in Eclipse to Android Studio - FATAL EXCEPTION
I made the import and I had no mistake, more when I try to compile the project I have this problem: 07-13 15:29:13.786 1380-1380/br.com.sistemaguardiao E/AndroidRuntime: FATAL EXCEPTION: main…
-
1
votes1
answer53
viewsQ: Error launching app and "Run As" menu with no options
I have an application, the code has no error, but I do not see the option to select the emulator, see the image, I’m having this message: The Selection cannot be launched, and there are no recent…
-
0
votes1
answer70
viewsQ: Syntax error on token "123", invalid Variabledeclaratorid
I’ve got an R-class error.…
-
5
votes4
answers602
viewsQ: How can I replace "String.isEmpty()" in Java?
I got the following: data = new Json().execute(URL).get(); System.out.println(data); if (!data.isEmpty()) { //erro neste data.isEmpty I have a mistake: has an error: Call requires API level 9…
-
1
votes1
answer152
viewsQ: Doubt with Dependencyservice Xamarin c#
I created a project just android using Xamarin Problem : problem at this point does not recognize Dependencyservice An interface : namespace Projeto.Xamarin.Android { public interface IConfig {…
-
0
votes3
answers394
viewsQ: Is it possible to add string Connection within a class?
I have a project of my own class library where I have my Context, in it I take the SQL connection that is in my web.config. How could I add the SQL connection so it stays inside the DLL? I want to…
-
0
votes0
answers42
viewsQ: How do you update the dates of a project done in C# Asp.net MVC layers?
When creating a Blanck Solution type project and creating Class Library type projects with in my case, creating 3 projects in addition to the type application (Application, Domain and Repository) i…
-
0
votes1
answer167
viewsA: Doubt with Viewbag, loading information for editing
The problem was occurring because in my class in had an integration with the category table: [Display(Name = "Categoría:")] [Required(ErrorMessage = "Campo Obrigatório")] public TB_CATEGORIA…
-
0
votes1
answer167
viewsQ: Doubt with Viewbag, loading information for editing
I’m with a mistake, when I go to make a record, I upload the information this way: //lista var tbuscarCategoria = new CadastroCategoriaAplicacao(); var listarCategoria =…
-
0
votes1
answer52
viewsA: Show Datareader return date in View?
To solve this problem, change the @Html.TextBoxFor for @Html.EditorFor and add the mask DisplayFormat. <div class="col-md-2 form-group"> @Html.LabelFor(x => x.CLIENTEDESDE)…
-
0
votes1
answer52
viewsQ: Show Datareader return date in View?
I have a form where I have at View: <div class="col-md-2 form-group"> @Html.LabelFor(x => x.CLIENTEDESDE) @Html.TextBoxFor(x => x.CLIENTEDESDE, new { @class = "form-control", type =…
-
2
votes2
answers77
viewsQ: Doubt with registry edition Asp.net mvc
I have the structure: Page where I select the record for editing: @if (Model.Count() > 0) { foreach (var item in Model) { <tr> <td>@item.NOME</td>…
asp.net-mvcasked Harry 3,805 -
3
votes1
answer391
viewsQ: Doubt with Thread
I have a form where I have a Thread to update some images, calling her using a timer interval 19000, but it’s generating me the following ERROR only when called by timer. Project Sistemaa.exe Raised…
-
0
votes1
answer30
viewsA: Problem updating Delphi XE6 results
All that remained was to add this method: Application.ProcessMessages;
-
2
votes1
answer30
viewsQ: Problem updating Delphi XE6 results
Hello, I made a screen where I have 4 buttons is muted the positioning of them according to a Random, works more images on the screen does not update. procedure…
-
4
votes1
answer190
viewsQ: Adjust height is width of Qr Coder using Messagingtoolkit.Qrcode C#
Is there any way to adjust the height is width? thanks public void GerarQrCode(string NomeImagem,string Data) { QRCodeEncoder encoder = new QRCodeEncoder(); Bitmap img =…
-
4
votes2
answers569
viewsQ: Return Datareader to bool field
I need to return a field that is of the type bool: public List<TB_USUARIO> ListarTodos() { var strQuery = "select * from tb_usuario"; using (contexto = new Contexto()) { var retornoDataReader…
-
0
votes3
answers15705
viewsA: SQL CASE with more than one condition
Can do it this way! select a.*, case when (a.operacao = 'C' and a.DESCRICAO_PREMIO = '1P') then (b.multiplicador * a.VALOR_JOGO) when (a.operacao = 'C' and a.DESCRICAO_PREMIO = '1/5P ') then (…
-
1
votes3
answers15705
viewsQ: SQL CASE with more than one condition
I would like to know if it is possible to use the CASE more than 1 condition. In this query I have calculations that need to be done when a.operacao == 'C' but which depend on the value of…
-
2
votes1
answer375
viewsQ: Doubt with Array in C# returning data in Json
I have a structure that returns me the results of the header and detail, only that the records duplicates according to the details, as I could bring only 1 time the header, I appreciate the help.…
-
1
votes2
answers4528
viewsQ: Increment a number in an SQL query
I have the appointment that returns the results. I would like to add an incremental number to show the records from 1 to the end, as if it were a new column. select *, sum(valor) as ValorSoma,…
-
0
votes1
answer807
viewsQ: Convert the result value of the sql query
I have the query that return me two results where I would like to format it to came in the proper format. How could I do this? select *, sum(valor) as ValorSoma, count(pedido) as QtdPedido from…
-
0
votes1
answer208
viewsQ: Doubt with DATEDIFF days interval between dates
I have a query that I need to return the interval of days, the problem is that the date fields are defined as varchar(30). --a data teria que ficar assim SELECT…
sql-serverasked Harry 3,805 -
2
votes1
answer303
viewsA: How to format a string with 3 houses?
Just add : PrazoParcelasNF := PrazoParcelasNF + Format('%3.3d', [StrToInt(TEdit(Components[i]).Text)]) + '/';
-
0
votes1
answer303
viewsQ: How to format a string with 3 houses?
I have a code that concatenates the results typed in edits, I am assigning a 0 for each reading for the values stay like this: Result: 030/060/090/ More when I have a value that already has 3…
-
1
votes1
answer48
viewsA: Doubt with Location path Asp.net mvc
The simplest solution was to create a subdomain is to add the content of the site, it worked perfectly.
asp.net-mvcanswered Harry 3,805 -
-1
votes1
answer48
viewsQ: Doubt with Location path Asp.net mvc
I have an application in the server root folder running normally, on the web.config I have right after the Configuration tag: <configuration> <location path="."…
asp.net-mvcasked Harry 3,805 -
-2
votes2
answers90
viewsQ: Doubt with cast sql server 2008
I have a sql query is want to bring the PRECO_LIQUIDO information formatted as decimal using a cast decimal (12, 2) How could it be done, thank you select --calculo do desconto individual…
sql-serverasked Harry 3,805 -
-1
votes1
answer49
viewsQ: Query with sum of values in sql server 2008
I have the query below that return me the values of DESCONTO_PRECO and DESCONTO_PRECO_ESTADO, I wonder if I can add these results to come in the same field. Thanks select --calculo do desconto…
sql-serverasked Harry 3,805 -
0
votes1
answer61
viewsQ: Doubt with for no sql server 2008 command
I have the following situation, 5 discount fields that receive the discount name 01 until 05. this sql query works below (1), makes the correct calculation only when it has only 1 of the filled out…
sql-serverasked Harry 3,805 -
-1
votes2
answers2121
viewsQ: Doubt using Firedac with Tclientedatset
I am using these components but am having the following error while trying to open Clientdataset. Generates the error: Access Violation at address 50FCDC6F in module 'dsnap230.bpl'. Read of address…
-
2
votes2
answers115
viewsQ: Change in json File Format
My file is coming in this format, but I would like it not to appear this #id information before sale: { "$id": "1", //como não mostra isso? "venda": [ { "$id": "2", "poule": 73, "idusuario": 4,…
-
0
votes1
answer50
viewsQ: Is it possible to change the json file format?
I have a code that generates me a Json file in this format: [ { "$id": "1", "poule": 73, "idusuario": 4, "vendedor": "ITAMAR SOUZA", "total": 50.00, "datajogo": "2016-01-19T00:00:00", "terminal":…
-
3
votes4
answers3830
viewsQ: Compare number within a numerical range
I want to create a function that receives a number and check if it is within a range from 1 to 25. What is the best way to do this? private int VerificaIntervalo(int numero) { if (numero > 25) {…
-
2
votes0
answers784
viewsQ: Visual Studio 2015 - debug stopped working Asp.net mvc
When I hover over a variable when debugging a C# application in Visual, it hangs and keeps showing some messages. I’m running Visual Studio 2015 Community on Windows 8.1 64-bit. Does anyone know…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer272
viewsQ: Clear auto-refill of Asp.net mvc forms
I have a sign-up screen where I noticed that when the user lets the browser save the cache, when it will fill always comes a list of information that has already been typed, I would like to clear…
-
1
votes1
answer1642
viewsA: Error Filling Dropdownlistfor There is no Viewdata item of type 'Ienumerable
The following adjustment is required in the controller: public ActionResult Index() { //lista empresa var tbuscarEmpresa = new EmpresaAplicacao(); var listarEmpresa = tbuscarEmpresa.ListarTodos();…
asp.net-mvcanswered Harry 3,805 -
0
votes1
answer1642
viewsQ: Error Filling Dropdownlistfor There is no Viewdata item of type 'Ienumerable
I have an error in passing the contents of the controller to the view, I am doing so, Viewbag is being filled with the data. In my application I select the items: public List<TB_EMPRESA>…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer608
viewsA: Content loses formatting when viewing the Asp.net mvc print
To adjust the contents of the div is to keep the same layout configuration can be done this way. <script> function printDiv() { //pega o Html da DIV var divElements =…
-
0
votes1
answer608
viewsQ: Content loses formatting when viewing the Asp.net mvc print
I have a page for printing, it was made with bootstrap, I would like to keep the layout with the same formatting, I am doing this way: thanks <script> function cont(){ var conteudo =…
-
1
votes1
answer415
viewsQ: Doubt with return time formatted Asp.net mvc
In the application I have a query that compares the current server time with a pre-set time - saved in a table: select CAST(HORA_FECHAMENTO AS datetime) as HORA_FECHAMENTO,…
-
1
votes1
answer53
viewsQ: Doubt with Date Formatting in sql server 2008
In my application I am recording the dates in this format: DateTime.Now.ToString("yyyy/MM/dd"); In the database I have: 2016-01-09 00:00:00.000 Now I need to make a query where I will bring only the…
-
3
votes1
answer1506
viewsQ: How to make an hour comparison in sql
I have a sql query : select HORA_FECHAMENTO, --campo char no recebendo a hora no formato 18:00 CONVERT(VARCHAR(11),GETDATE(),114) as HORA_ATUAL from TB_ESTRACAO where IDEXTRACAO = 4 I want to…
sql-serverasked Harry 3,805 -
0
votes1
answer224
viewsA: How to receive a decimal value per Querystring in Asp.net?
When you send the data from views to the controller by method GET as it is in the question, at the time of receiving the result, I must receive exactly as it comes and not make a value conversion:…
asp.net-mvcanswered Harry 3,805 -
1
votes2
answers286
viewsA: Is it possible to send Ienumerable typed view data to the Controller?
When you send the views data to the controller via GET method as it is in the question, at the time of receiving the result, I should receive exactly how it comes is not to make a value conversion:…
asp.net-mvcanswered Harry 3,805 -
2
votes2
answers286
viewsQ: Is it possible to send Ienumerable typed view data to the Controller?
I am sending data using a get and receive in the controller using a Querystring, the problem is that the value goes in a format without the decimals, so when I have a value like 10.20, this sending…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer224
viewsQ: How to receive a decimal value per Querystring in Asp.net?
I have a form that sends some data, I want to receive this data but one of them is a value, is coming without the correct formatting. @using (Html.BeginForm("GravarDados", "Aposta", FormMethod.Get))…
asp.net-mvcasked Harry 3,805 -
4
votes1
answer924
viewsQ: How to query a web api by passing parameters using Angularjs?
I have the current script: (function () { 'use strict'; var numeros = angular.module("myModule", []) .controller("myController", function ($scope, $http, $log) { var sucessoCalBack = function…