Skip to content

Commit

Permalink
Display permit number in permit application table
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwaldron committed Oct 29, 2024
1 parent a75ceea commit 026f5f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions GECO/GECO.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@
<Compile Include="_DAL\EIS\EisCaerContacts.vb" />
<Compile Include="_DAL\EIS\EisFacility.vb" />
<Compile Include="_DAL\Facility\FacilityCommunication.vb" />
<Compile Include="_DAL\NullableDates.vb" />
<Compile Include="_DAL\Testing\Testing.vb" />
<Compile Include="_Models\AnnualFees\AnnualFeeCalc.vb" />
<Compile Include="_Code\ControlMethods.vb" />
Expand Down
7 changes: 4 additions & 3 deletions GECO/Permits/Default.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
<asp:HyperLinkField DataTextField="Application #" HeaderText="Application #" ItemStyle-CssClass="table-cell-alignright"
DataNavigateUrlFields="Application #" DataNavigateUrlFormatString="~/Permits/Application.aspx?id={0}" />
<asp:BoundField HeaderText="Date Received" DataField="Date Received" DataFormatString="{0:dd-MMM-yyyy}" />
<asp:BoundField HeaderText="Application Type" DataField="Type" />
<asp:BoundField HeaderText="Action Type" DataField="Action Type" />
<asp:BoundField HeaderText="Date Closed Out" DataField="Status Date" DataFormatString="{0:dd-MMM-yyyy}" />
<asp:BoundField HeaderText="Application Type" DataField="Type" NullDisplayText="N/A" />
<asp:BoundField HeaderText="Action Type" DataField="Action Type" NullDisplayText="N/A" />
<asp:BoundField HeaderText="Permit Number" DataField="Permit Number" NullDisplayText="N/A" />
<asp:BoundField HeaderText="Date Closed Out" DataField="Status Date" DataFormatString="{0:dd-MMM-yyyy}" NullDisplayText="N/A" />
</Columns>
</asp:GridView>
</asp:Content>
12 changes: 12 additions & 0 deletions GECO/_DAL/NullableDates.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Imports GaEpd

Module NullableDates
Public Function GetNullableDateTime(obj As Object) As DateTime?
Dim newDate As Date? = DBUtilities.GetNullableDateTime(obj)
If newDate IsNot Nothing AndAlso newDate = New Date(1776, 7, 4) Then
Return Nothing
End If
Return newDate
End Function

End Module

0 comments on commit 026f5f5

Please sign in to comment.