From 22ee25122734b2af76bff0b9cebcc8dc75fad24c Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 11 Jan 2025 23:46:11 +0545 Subject: [PATCH] SOS Group List Update --- Justice.csproj | 3 +++ Justice.csproj.user | 3 +++ Models/IncidentReport.cs | 23 +++++++++++++++++++++++ Views/IncidentReportPage.xaml | 12 ++++++++++++ Views/IncidentReportPage.xaml.cs | 9 +++++++++ 5 files changed, 50 insertions(+) create mode 100644 Models/IncidentReport.cs create mode 100644 Views/IncidentReportPage.xaml create mode 100644 Views/IncidentReportPage.xaml.cs diff --git a/Justice.csproj b/Justice.csproj index 865d3ae..19ceb4e 100644 --- a/Justice.csproj +++ b/Justice.csproj @@ -80,6 +80,9 @@ MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile diff --git a/Justice.csproj.user b/Justice.csproj.user index 67620d6..3743e56 100644 --- a/Justice.csproj.user +++ b/Justice.csproj.user @@ -20,6 +20,9 @@ Designer + + Designer + Designer diff --git a/Models/IncidentReport.cs b/Models/IncidentReport.cs new file mode 100644 index 0000000..a5b2569 --- /dev/null +++ b/Models/IncidentReport.cs @@ -0,0 +1,23 @@ +using SQLite; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Justice.Models +{ + public class IncidentReport + { + [PrimaryKey, AutoIncrement] + public int Id { get; set; } + public string ReportName { get; set; } + public string IncidentType { get; set; } + public string Description { get; set; } + public double Latitude { get; set; } + public double Longitude { get; set; } + public string Address { get; set; } + public DateTime DateTime { get; set; } + public string AttachmentPath { get; set; } + } +} diff --git a/Views/IncidentReportPage.xaml b/Views/IncidentReportPage.xaml new file mode 100644 index 0000000..3bf726e --- /dev/null +++ b/Views/IncidentReportPage.xaml @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/Views/IncidentReportPage.xaml.cs b/Views/IncidentReportPage.xaml.cs new file mode 100644 index 0000000..a916a2f --- /dev/null +++ b/Views/IncidentReportPage.xaml.cs @@ -0,0 +1,9 @@ +namespace Justice.Views; + +public partial class IncidentReportPage : ContentPage +{ + public IncidentReportPage() + { + InitializeComponent(); + } +} \ No newline at end of file