Posts by Alysson bormann • 165 points
18 posts
-
3
votes1
answer590
viewsQ: How to apply 2 mascara to the same textbox windows form c#
I’m with 2 checkbox natural person and legal person, and only one textbox. I want to select on checkbox individual, I want to apply the mask to CPF, or when selecting the legal person he applies the…
-
0
votes2
answers591
viewsQ: How to pick up the selected item
Hi, I’d like a hand, I’m using the DEVEXPRESS framework. I have a form with a Gridcontrol, In this Gridcontrol I have a Doubleclick event. When I click on the selected line I want to take only the…
-
1
votes0
answers62
viewsQ: Right way to make the autocomplete
I got the following script autocomplete: $(document).ready(function () { $("#id_cliente").autocomplete({ source: function (request, response) { $.ajax({ url: "/PreVenda/CarregaClientePorId", type:…
-
0
votes0
answers28
viewsQ: I can’t use onkeydown accurately
I have the following fields: When I inform the discount in %, it must automatically calculate the Discount in R$, and the result in the total liquid, and when I inform in the Discount R$, it gives…
-
0
votes0
answers32
viewsQ: Composite key navigation
Hello, I have a class with 2 keys composed public class Produto_Empresa { [Key,Column(Order = 0)] public int id_produto { get; set; } [Key, Column(Order = 1)] public int id_empresa { get; set; } } I…
-
1
votes2
answers4846
viewsQ: How to take 2 decimal places
How do I show only 2 decimal places after the comma. I have the following script: <script> function DescontoPorcentagem() { var bruto = $("#tot_bruto").val(); var porcentagem =…
-
-5
votes1
answer51
viewsQ: How and how best to calculate a net value
These days I’ve come across a problem I can’t solve and I don’t know much where it starts. I have these 4 fields on my system, where, if the user infoma the discount in percentage, the system…
-
0
votes1
answer56
viewsQ: Do not clear screen data when giving error
Hi, I’m a little layy with scripts still. I ask for help, if possible. I got the following script : $.ajax({ type: "POST", url: "/PreVenda/GuardarPreVenda", dataType: 'json', data:…
-
2
votes1
answer163
viewsQ: How do I add instead of concatenate
would like a help. I have the following code: var totalBruto = 0; var tot_desconto_vlr = 0; var total = 0; var totalLiquido = 0; $(document).ready(function () { $(".desc_vlr").on("input", function…
-
0
votes1
answer57
viewsQ: Error saving to bank
would like a help. When I try to save the records, the following message appears: 23502: null value in column "id" violates not-null Constraint The primary keys are not auto-increment, I’m using a…
-
0
votes1
answer80
viewsQ: Loads the id in Hidden using autocomplete
Hello, I have the following script, autocomplete: <script type="text/javascript"> $(document).ready(function () { $(".nomeCliente").autocomplete({ source: function (request, response) {…
javascriptasked Alysson bormann 165 -
2
votes1
answer341
viewsQ: How to call a database Function from the code
would like a help, i have the following Function that is in the bank postgres CREATE OR REPLACE FUNCTION public.get_id(campo character varying) RETURNS integer AS $BODY$ DECLARE _id integer; BEGIN…
-
2
votes1
answer24
viewsQ: How do I make an IF and disable a field using script
I’d like some help, wanted to do an IF to disable or enable a field that comes with the value 1 or 0. $(document).ready(function () { $("#btnProduto").click(function () { $.ajax({ type: "POST", url:…
-
0
votes0
answers157
viewsQ: How to connect to Postgresql database using Xamarim
I’m creating a mobile application using the Postgresql database, but I can’t open the connection: My code: public class PgSql { private string connString = "Server=192.168.1.5;Port=5432;User…
-
0
votes1
answer43
viewsQ: Bring only certain amounts of MVC bank information
I need to bring only 6 records from the database to show in the View, instead of bringing only 6 records, bringing all. The code is as follows:: public PartialViewResult Cursos() { ViewBag.Cursos =…
-
0
votes1
answer877
viewsQ: Show an image in mvc
Hi, I’d like a hand. I have the following controller to register an image and some fields, and the image property is string: [HttpPost] [ValidateInput(false)] [ValidateAntiForgeryToken] public…
-
1
votes1
answer1044
viewsQ: Convert Html to readable text using MVC C#
I have a text in the database like this: Example only: <ul> <li><strong> asdsdasdadsdadsa <em>asdsd asdsdasdasdad</em></strong> <table border="1"…
-
3
votes1
answer4100
viewsQ: The ADO.NET Provider with invariant name 'Mysql.Data.Mysqlclient' is either not Registered in the machine or application config file
I have an MVC project, and I wanted to connect to the Mysql database. I put this connectionStrings. <add name="Contexto" connectionString="server=127.0.0.1;User…