Posts by chewie • 461 points
15 posts
-
3
votes1
answer6005
viewsQ: Using Case When with Leftjoin
I am mounting a proc, but depending on the value of a parameter, I would like left Join to be different. I tried the kerys below: That works, but the else as null or even without the else, if the…
-
3
votes1
answer124
viewsQ: Display a button based on the action of another
I’m a beginner in Asp.net MVC I have a project. And within a certain view I have two buttons. However, one can only appear if the other is executed. 1 Button > Save (save car) 2 Button>…
-
0
votes1
answer1188
viewsQ: Sort Gridview ASC
I have this grid, and I would like to sort the columns in ascending order (ASC) how to do? <asp:GridView ID="gridView1" runat="server" AllowPaging="False" AllowSorting="True"…
-
2
votes1
answer267
viewsQ: Get data from a column in the database for a variable
In one part of my code I have the treatment of an exception that uses this message. //Grava log com sucesso da importação fundo.registerLog(Resources.MensagemSucessoImportacao); The message is…
-
1
votes1
answer1173
viewsQ: Javascript function to catch the next date of a calendar
I have several calendars registered in my database, each calendar has its particularity. I have a screen that makes the inclusion of a file and through a dropdown I choose the calendar that the…
-
2
votes0
answers109
viewsQ: "Error" loading date
I have a screen whose a certain "Reference Date" field receives the next available date of a file, following the dates that are in the database. On the field side I have a "Calendar" icon that when…
-
2
votes1
answer41
viewsQ: Sort DESC Asp
I have a grid on my app. The code of a grid column is: <Columns> <asp:BoundColumn DataField="DATA_CADASTRO" SortExpression="DATA_CADASTRO" HeaderText="Data Ativação"…
-
0
votes1
answer276
viewsA: How to use Format: Webgrid?
grid.Column("UrlChamadaAlerta", format: dataItem => string.Format("painel.ejis.com.br?id={0}&token={1}", dataItem.Id, dataItem.Guid), Here’s a tip for those who need it!…
-
5
votes1
answer276
viewsQ: How to use Format: Webgrid?
I am developing with MVC, and I have the List view [...] var columns = new WebGridColumn[] { grid.Column("Id"), grid.Column("Descricao"), grid.Column("UsuarioModificacao"),…
-
2
votes2
answers2457
viewsQ: Subtract dates and compare with value
I have two dates: DataAcesso and DataAtual of the kind DateTime. I have one more field called TempoAtualizacaoAutomatica typo byte. I need to subtract these dates and compare the result with…
-
1
votes1
answer520
viewsQ: Layout does not appear in "_layout.cshtml"
I’m editing the _layout.cshtml file so it can be replicated on the other pages. However, when I run my program it’s like I haven’t made any changes to the layout. What can it be? By the way I’m…
-
1
votes1
answer138
viewsQ: QUERY SELECT (oracle sqldeveloper)
Have the query below. SELECT 'A. ABERTOS' QUANTIDADE, (SELECT SUM(S) FROM (SELECT COUNT(*) S FROM VW_SOLICITACAO_DETALHE VW INNER JOIN SOLICITACAO SOL ON SOL.ID_SOLICITACAO = VW.ID_SOLICITACAO WHERE…
-
4
votes1
answer1175
viewsQ: Import library in VS 2010
How to import a lib at Visual Studio 2010, I’m doing a project that I need to use: using System.Data.Entity 4.0 using System.Data.DataSetExtensions 4.0 I have the file that contains the lib, but how…
-
7
votes1
answer11539
viewsQ: How to Create Dropdownlist in ASP.NET MVC 4
You could help me create a DropDownList on MVC4? I have the class ProjetoFuncionario which is an associative class of Projeto and Funcionario. I must create a class for Dropdown? I’m having a hard…
-
2
votes2
answers713
viewsQ: How to instantiate primary key in another MVC class?
I have the class Funcionario and Projeto. They both have their Ids. I want to create a class ProjetoFuncionario and would like to instantiate the primary key of the two in this class. How can I?…