Posts by Igor Macedo • 764 points
21 posts
-
1
votes0
answers42
viewsQ: Sum items from a category Kendo Chart
I have an array with the percentage of each graph item, similar to the date. I’m trying to build the template, according to the code template: "#= series.abbr #: #= value # (#= series.percent #).…
-
3
votes1
answer275
viewsQ: Import . csv file to server
I am performing a task to import data from a . csv file to the server. I can already import the file all right on the server side, but each file contains about 25 thousand records and the user is…
-
4
votes2
answers93
viewsQ: Check two null fields with Data Annotation
I own two properties: public int? Inicio {get; set;} public int? Final {get; set;} Both accept null and are not required. I wanted to check if both are null using Data Annotation. The operation…
-
5
votes2
answers506
viewsQ: Receive null int in Razor (@Html.Textboxfor)
I have an object Carro and I have a whole-type, annulable property called AnoInspecao. When creating, I can create a car object with the year of null inspection (without typing anything) and persist…
-
3
votes1
answer1485
viewsQ: Create tabs dynamically in excel
I am doing an MVC project and I would like to know if there is any way to create dynamic tabs in Excel according to filters and export it later. Example: If the filter only comes with "School"…
-
7
votes2
answers607
viewsQ: Resource on an Enum
I have a enum and would like to change the Description with Resource: public enum SystemArea { [Description("Gestor")] Gestor = 3, [Description("Administrador")] Administrador = 2,…
-
1
votes1
answer6757
viewsQ: new Date() without time zone
I have to send a date javascript for my controller through the FullCalendar. In my action, I’m getting one DateTime and need to send through the javascript file with the new Date(minha_variavel).…
-
3
votes2
answers71
viewsA: Get null fields from the database with LINQ
I chose to do the same thing with Extension Methods. Worked perfectly with the following code: var listaRelatorioEmail = db.Gestor.Select(a => new { UniaoNome = a.Nome, UniaoId =…
-
4
votes2
answers71
viewsQ: Get null fields from the database with LINQ
I have a table of Gestor in the database where you store information of a user with Manager profile. In this table, I have two FK's: uniaoId and schoolboy. Well, that manager MUST belong to a union…
-
3
votes1
answer231
viewsQ: Transforming Query into Linq
I need to turn this query into Linq: select B.Nome from Gestor A inner join Entidade B on A.UniaoEntidadeId = b.EntidadeId group by B.Nome HAVING COUNT(A.EscolaId) > 0…
-
0
votes1
answer1359
viewsQ: How to generate PDF with Crystal Reports and send it by email?
I’m making an application where I have to generate a report with Crystal Reports and email it. Would anyone have any way to do that? Sending and generating reports are already working, but I’m not…
-
2
votes1
answer446
viewsQ: Two submits on the same page
I have a page with a list of checkbox and with two buttons: One is to View and the other to Send the report by e-mail. That is, the user will select the fields he needs to see in the report and he…
-
3
votes1
answer82
viewsQ: Bring selected manually filled combo
I’m having difficulty creating a combo of "Enabled" and "Disabled" passing the value of the bank to bring it filled. In my controller, I created the following code: In my View, following code: The…
-
5
votes1
answer601
viewsQ: Can foreign key be null in Entity?
I’m having a hard time in a project. I created two tables (Union and Schoolhouse), whereas the PK table Union is FK on the table Schoolhouse. But this FK may be void, i.e., the Schoolhouse may…
-
1
votes1
answer336
viewsQ: How to perform a HQL query in C#?
I need to create an HQL query within a method in C#. The structure goes like this: I have the method: IList<int>GetListYear(Guid educationalInstitutionId, Guid academicLevelId, Guid?…
-
6
votes3
answers4902
viewsQ: How to load a dropdown with a selected value
I have a method to make changes in some data. Among these data, I have a dropdownlist which contains course periods. When I select to change, I need the dropdown comes with the option checked, as it…
-
3
votes1
answer73
viewsQ: HQL query in C#
Guys, I’m having trouble with HQL and C#. I have the following method: public IList<int> GetListYear(Guid educationalInstitutionId, Guid academicLevelId, Guid? locationId, Guid?…
-
2
votes5
answers17941
viewsA: How to use the loop for(for) in Portugol?
for(int x = 0; x <= 10; x++) { //code to be incremented } whereas int x = 0 => is creating an integer variable x that gets 0, which is the starting point of your repeat loop. That is, it will…
-
0
votes2
answers5590
viewsQ: I cannot run Mysql Workbench 5.2 server
I am trying to connect to the Mysql Workbench 5.2 CE server to open a Ruby project. However, I cannot connect to the server (local). The following error appears: Can’t connect to MYSQL on…
-
4
votes1
answer79
viewsQ: Add item to a Telerik Chart pie template
I’m developing a chart using Telerik. In the graphic I need to show, in the template, some relevant information, such as formation, percentage and total. But I can only show two (training and…
-
1
votes1
answer191
viewsQ: foreach filtering by the parameter that was passed
I’m trying to solve a problem here. I believe it’s easy, but I don’t have as much intimacy with javascript yet. Next: I have a Javascript array that has some information I need, such as name and…