Posts by Marco Vinicius Soares Dalalba • 1,232 points
59 posts
-
2
votes2
answers100
viewsA: SQL query for Linq mvc4 c#
I made it up here It must be something like this: (from pf in processoFinanceiro join pp in processosProduto on pf.CODIGO equals pp.CODIGO join oc in OrdemDeCompras on pp.PRODUTO equals oc.PARALELO…
-
2
votes2
answers1027
viewsA: How to activate 24 hours in Datapicker Bootstrap?
<script type="text/javascript"> $(function () { $('#datetimepicker1').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss', locale: 'fr, use24hours: true }); }); </script> Use Uppercase HH…
-
2
votes4
answers560
viewsA: How to return correctly the values of calculations with decimals in javascript?
Use "." instead of "," var resultado =(parseFloat(126.79) + parseFloat(237.00))
javascriptanswered Marco Vinicius Soares Dalalba 1,232 -
0
votes2
answers635
viewsA: Doubt - insert html mask
<input type="number" pattern="(\d{3})([\.])(\d{2})"> should solve your problem, but it is not well a mask will be necessary to put the stitches and commas. mask only with js jQuery-Mask…
-
4
votes1
answer1159
viewsA: There is no Viewdata item of type 'Ienumerable' that has the key
You are not loading your view bag into @Html.Dropdownlist It should be so to load viewbag items. @Html.DropDownList("CargoID", (SelectList)ViewBag.CargoId) Or better yet…
-
4
votes2
answers383
viewsA: About method chaining. Why are you giving nullPointerException?
public Pedido paraOCliente(String nome){ Cliente cliente = new Cliente(nome); return this; } should be public Pedido paraOCliente(String nome){ this.cliente = new Cliente(nome); return this; }…
-
0
votes1
answer244
viewsA: How to show a confirmation message after checking in Servlet?
You would have to save the current status of the object at the beginning of the Ex transaction: When starting the change flow, you put the obj to be changed in json format in the view in a Hidden…
-
0
votes2
answers686
viewsA: Can you create in C# a String array type property with 2 positions?
You can create a custom validate sort of like this: public class MaxLengthArrayImgs : ValidationAttribute { private readonly int _minElements; public MaxLengthArrayImgs (int minElements) {…
c#answered Marco Vinicius Soares Dalalba 1,232 -
2
votes2
answers2406
viewsA: Generation of Logs with Nlog?
In the file Nlog.Config I set the file name this way fileName="/erros/${date:format=yyyy\MM}//${date:format=dd} - ${event-properties:item=name}.json"> and to log in do as follows: Logger log =…