Posts by Leonardo • 41 points
5 posts
-
2
votes3
answers65
viewsQ: How to decrease the amount of if/Else for the same validation of different object properties?
I have some validations of mandatory fields in my application and today I do this way: verificarObrigatorios(): boolean{ if(!this.pessoa.nome) { this.toastr.showMessage("Nome Obrigatório") return…
-
0
votes1
answer30
viewsQ: Abbreviate the names of the days of the week
Versions Angular: "@angular/core": "11.2.1" Syncfusion: "@syncfusion/ej2-angular-schedule": "^19.1.65" I’m using the Syncfusion Schedule and in doing globalization I realized that when opening the…
-
0
votes1
answer134
viewsA: Configure Node.js Application in cPanel
for my case, the problem was on this line var usuario = require("./routes/usuario.js") opening my usuario.js, I did the same process of removing the require that I had and the item was the bcrypt, I…
-
-1
votes1
answer134
viewsQ: Configure Node.js Application in cPanel
The first time I created this, I had no problem, I did an update on my server.js recently (which is the line app.use("/api", orcamento)) and went to update her... By clicking on Executar a…
-
1
votes0
answers289
viewsQ: Scan Excel table data and save to SQL Server (Asp.Net MVC 5 C#)
I have an input file that the user will upload the spreadsheet, I need to check if it is .xlsx or .xls and scan the data from this spreadsheet. After that, I need to save to Sql server those items.…