Posts by Leonardo Macedo • 743 points
72 posts
-
6
votes1
answer12517
viewsQ: Validation Telephone Field
Guys, I need some help from you. I have a telephone mask, which validates the fields 00000 11111 2222 3333 in sequence. $('body').on('focus', '.celular', function () { var maskBehavior = function…
-
0
votes1
answer46
viewsA: Set login page by user profile
I’ve already solved. public async Task<ActionResult> Index() { if (!Cookies.Exists("hid")) return RedirectToAction("Index", "Login", new { area = "Entrar" }); var hospitalId =…
-
0
votes1
answer46
viewsQ: Set login page by user profile
Good afternoon guys, I need a little help from you. I have two access profiles to my system. "Master-IT" and "Developer" This is my system login controller [HttpPost] public ActionResult…
-
0
votes2
answers771
viewsQ: Check equal numbers java
Guys, can someone help me out here. I did a check of 3 notes inside a while. I need that if 2 notes are equal a message Aluno1 and Aluno2 (Show only if the two typed notes are equal) Approved. I…
javaasked Leonardo Macedo 743 -
0
votes2
answers123
viewsQ: Hide checkbox and display other
I did a little validation in my script only that I am not able to do the following validation. I have 2 checkbox, each execulta an action, as you can see in my if down below. @if (item.Cadeado == 1…
-
1
votes1
answer89
viewsQ: Error doing counter via c#
I’m trying to do a pendant counter to my system, only it’s giving error, at the time of calculating, someone could help me? Error in . Count as you can see in the picture below. My Controller public…
-
0
votes1
answer569
viewsQ: Error: Must declare the scalar variable
Can someone help me with this? Must declare the scalar variable "@hospitalId". Pendenciacontroller: public async Task<ActionResult> Index() { if (!Cookies.Exists("hid")) return…
-
0
votes1
answer44
viewsQ: Error in expression
Can anyone help me with the following mistake? Here below is my code. I am trying to fix this error, but I did not succeed. public IEnumerable<Dia1> GetPendenciasByUser(int centroId) { var…
-
0
votes3
answers51
viewsQ: Check if phone field is equal
Person I need a help from you. I need a validation which is as follows. In my form I have two telephone fields, TEL1 and TEL2. Validation is as follows if TEL2 == TEL1. Can someone help me? JS:…
jqueryasked Leonardo Macedo 743 -
0
votes1
answer27
viewsQ: Receive integer value in field view
Guys, I need some help from you. In my system I created a modal with data viewing pulling from the database. I need one of these data to display only the integer numbers, as an example in the photo.…
-
1
votes4
answers4237
viewsQ: Validation for Phone type field
Personal someone would have some validation for telephone field type? Where the user cannot place dummy numbers in the field as number sequences (99999 8888 123456) or something like?…
-
0
votes0
answers22
viewsQ: Display Null Variables in a Modal
Guys I’m having the following problem. I had to create an audit page of my system, where it displays the edits that were made in a certain form. When a form is first filled in, it shows all the form…
-
1
votes1
answer217
viewsQ: Comparison of Dates c#
My question is this:. I need to display 2 status on a page that would be Primeiro and Alterado, where the first sql line with the date of 2018-03-05 10:24:55.787 get the status Primeiro and the…
-
0
votes1
answer75
viewsQ: Hide td nulla in JAVASCRIPT print
On my system I made a button to print a screen. It’s working all correctly, the problem is the following. In the picture below you can see that the part of Current User is coming nulla, as it has no…
-
0
votes3
answers697
viewsA: Numeric Field in Web Forms
I managed to resolve it in the following personal way. function somenteNumeros(num) { var er = /[^0-9]/; er.lastIndex = 0; var campo = num; if (er.test(campo.value)) { campo.value = ""; } }…
-
0
votes3
answers697
viewsQ: Numeric Field in Web Forms
Personal as I define a field that is in text in webforms for numeric, as an example. <asp:TextBox ID="feb" runat="server" BorderColor="#999999" BorderStyle="Solid" MaxLength="4" TabIndex="93"…
-
0
votes1
answer30
viewsA: input is not pulling right bank value
I got it handled, guys. Thanks to those who helped. @if (Model.DataRandomizacao == null) { <span class="input-group-addon" style="background-color:#569CD0; color:#ffffff">Data da…
-
0
votes1
answer30
viewsQ: input is not pulling right bank value
I need some help. On my system, I have an input that brings back a date from the database. As you can see in the photo above the date informed is 06/09/2017 00:00, only that the actual date of this…
-
0
votes0
answers35
viewsQ: Error 'mData' javascript
I need some help from you. When I enter this screen. @model IEnumerable<Basics.Domain.Entities.Randomizacao> @{ ViewBag.Title = "Detalhes"; Layout = "~/Views/Shared/_Layout.cshtml"; var…
-
0
votes0
answers34
viewsQ: Error Request Mail
Could someone give me a hand here? I’m doing an environment check to send a certain email, only the following error is occurring. Could you tell me how to fix this? My code is below public void…
-
-1
votes1
answer37
viewsQ: Flag environment when sending email to user
Guys, I need your help. Each form that is registered in my system it sends in e-mail to some people warning that it has been registered, except that I have two environments, one of homologation and…
-
0
votes1
answer1235
viewsQ: Mascara Javascript
Good afternoon guys, I need a little help from you. I need a mask for a number field on my system, where the user can type from 0.0 to 130.00 if the value is greater than 130 will only accept…
javascriptasked Leonardo Macedo 743 -
1
votes1
answer189
viewsQ: Example Query Count
Would anyone have any example of how to make a COUNT in a query, separating the data by EstadoId (as an example). In my case I have several data in my database, registered by several states, I need…
-
0
votes1
answer30
viewsQ: Correction of graphic counter
I have a graph and my system I need it to report the exact value of the searched results. Due to a lot of data, the results come out like this 1.1K. In the place that this 1.1K wanted it to show the…
-
1
votes1
answer210
viewsQ: Send email to register form
Personal I need a help from you, I have a form on my system, I need when I register it send an email to a user. When I click save I enter this post to save the data. [HttpPost] public void…
-
0
votes3
answers66
viewsA: I calculate with Javascript
function formulaCreabas2() { var valueCreabas2 = parseFloat($('[name="creabas2"]').val()); var valueCrebas = parseFloat($('[name="creabas"]').val()) + 0.3; if (valueCreabas2 <…
-
1
votes3
answers66
viewsQ: I calculate with Javascript
I need some help from you. I have two numeric fields in my system as shown in the photo below. The field that has a red line around it, it will have to make a calculation about the top field, as you…
-
1
votes2
answers3639
viewsQ: Export of CSV data
Personal someone would have some example of how to create a web data export on . CSV? I already have one on my system on . XLS, but I need to modify it, someone can help? Controller private void…
-
3
votes4
answers1005
viewsQ: Convert Int to bool
Guys, I need some help from you if (usr.Excluido = 0) { ModelState.AddModelError("", "Usuário bloqueado."); return View(model); } The deleted variable is as bool on my system, I am doing a login…
-
0
votes1
answer45
viewsQ: Variable error in Identity
Good afternoon guys, I am supporting a project of my company, which is being used the config Identity. in this I added your deleted call variable in my database and gave an update-database and…
-
-3
votes1
answer291
viewsA: How to import external Javascript and put masks on inputs?
<script> $(document).ready(function () { $("#inputTelefone").mask("(99) 9999-9999"); }); </script> Try to use it this way
-
0
votes3
answers2423
viewsA: How to break line between CSS tags
<style> .texto1 {word-wrap:normal} .texto2 {word-wrap:break-word} p {width:60%;max-width:400px} </style> <p class="texto1" style="border:2px solid…
-
0
votes5
answers38033
viewsA: How to outline text via CSS
<style> .sombra {text-shadow:#000 -1px -1px} </style> or <style> .borda {color:#FFCCAC; text-shadow:#000 1px -1px, #000 -1px 1px, #000 1px 1px, #000 -1px -1px} </style>…
cssanswered Leonardo Macedo 743 -
0
votes3
answers1253
viewsA: JS variable returning Nan
To detect the occurrence of an Nan (Not a number) you must use the function Number.isNaN passing the value. var nan = 0 / 0; var eNaN = Number.isNaN(nan); // eNaN vai ser true, pois zero sobre zero…
-
2
votes2
answers569
viewsQ: Split a query
I need some help from you guys, i have a query on my system, which has 4 cases SELECT TOP 3 * FROM ( SELECT Title, SUM(Count) AS Count FROM ( SELECT CASE WHEN EstadoId = EstadoIdAutor AND EstadoId =…
-
1
votes1
answer532
viewsQ: Separate values from a multi select in columns
in my system, I have a multi select as they can come in the image below: And I export this variable in this select SELECT REPLACE(p.Argautor, ',', ';') AS Argautor FROM jud_Processos p LEFT JOIN…
-
1
votes1
answer74
viewsQ: Processing of graphical query via javascript
Good afternoon, I have a query in my system where it generates a chart. In the first chart caption is as Undefined, I was trying to redo my query only that it was not coming with the same values. I…
-
2
votes2
answers136
viewsQ: Null Result Coming in query
Good morning, I need a help from you, I have a query in my system is with a problem, it brings 4 results, only 1 of these 4 is coming with null value. I will post my query below SELECT Title,…
-
1
votes1
answer55
viewsQ: Remove underlined name and tag <b></b>
I need your help I have a game site, and on a page of my site, it shows the information of a character , when I pass the mouse over that sword, it brings me the attributes that it possesses. In the…
-
1
votes1
answer574
viewsA: put image in a PHP array
I’ve already solved!. foreach ($horarios as $value) { $horaEventos = new DateTime($value['hora']); if ($horaAtual<$horaEventos) { $diff = $horaAtual->diff($horaEventos); echo $value['img'].…
-
0
votes1
answer574
viewsQ: put image in a PHP array
I have an event counter on my game site, where I wanted a git to appear before the event name. I need a hand where I would follow that order. Next: gif image. zombie: php layout. <div…
-
1
votes2
answers88
viewsQ: Email Differentiating two environments in the system
Personal I need a help, in my system I have two Environments, one of production and the other of homologation. So in my system, I have a part that sends email, to the user. Could someone help me so…
-
0
votes1
answer673
viewsQ: SQL to count records that have a field
Good afternoon, I don’t know how the rules of the topic work, I asked for help on a previous topic and one of the members ended up helping me only that I wanted to ask another question about the…
-
2
votes1
answer3680
viewsQ: SQL to count records that have a field with repeated value
Staff I need a Query that does a value count I have in the bank On my system, I have a multiselect that can select more than one option. I wanted a help from you, I never touched with query, I need…
-
0
votes1
answer229
viewsQ: Field obligation
I have two text type fields, where one is zip code and the other is Address. /in the ZIP code field I use the ZIP code API, when I type in a ZIP code it completes the other fields with the results.…
-
2
votes2
answers104
viewsQ: Remove user without deleting from database
I need help from you, I created two classes within my Controller, where I can remove a user from one page and send to another. As if deleting but not erasing from the database. I created a variable…
-
1
votes1
answer1521
viewsQ: Hover over menu and display submenus
I’m having the following problem in my system. I put a css in the menus, where I pass the mouse over the menus and displays the submenus linked to them. CSS ul.nav li.dropdown:hover {…
cssasked Leonardo Macedo 743 -
1
votes1
answer1940
viewsQ: How to change the menu color by hovering over
I implemented a CSS on my system where I hover over the menu and display the submenus. This is the CSS to hover over the menus ul.nav li.dropdown:hover ul.dropdown-menu { display: block; } only that…
cssasked Leonardo Macedo 743 -
2
votes1
answer32
viewsA: modelBuilder add only one variable with different varchar
I managed to resolve my doubt, I’ll be posting the code down here public EventosAdversosConfig() { Property(x => x.diaea1) .HasColumnType("varchar") .HasMaxLength(1000) .IsOptional(); }…
-
0
votes1
answer32
viewsQ: modelBuilder add only one variable with different varchar
On my system, I have a small code that adds varchar to all variables added in the database modelBuilder.Properties<string>() .Configure(p => p.HasMaxLength(150)); only that I need only one…