diff --git a/Disco.Data/Disco.Data.csproj b/Disco.Data/Disco.Data.csproj index 75b5b87a..7a1b34a0 100644 --- a/Disco.Data/Disco.Data.csproj +++ b/Disco.Data/Disco.Data.csproj @@ -179,6 +179,10 @@ 202401130531317_DBv23.cs + + + 202403030134280_DBv24.cs + @@ -263,6 +267,9 @@ 202401130531317_DBv23.cs + + 202403030134280_DBv24.cs + ResXFileCodeGenerator Resources.Designer.cs diff --git a/Disco.Data/Migrations/202403030134280_DBv24.Designer.cs b/Disco.Data/Migrations/202403030134280_DBv24.Designer.cs new file mode 100644 index 00000000..d5c69c80 --- /dev/null +++ b/Disco.Data/Migrations/202403030134280_DBv24.Designer.cs @@ -0,0 +1,27 @@ +// +namespace Disco.Data.Migrations +{ + using System.Data.Entity.Migrations; + using System.Data.Entity.Migrations.Infrastructure; + using System.Resources; + + public sealed partial class DBv24 : IMigrationMetadata + { + private readonly ResourceManager Resources = new ResourceManager(typeof(DBv24)); + + string IMigrationMetadata.Id + { + get { return "202403030134280_DBv24"; } + } + + string IMigrationMetadata.Source + { + get { return null; } + } + + string IMigrationMetadata.Target + { + get { return Resources.GetString("Target"); } + } + } +} diff --git a/Disco.Data/Migrations/202403030134280_DBv24.cs b/Disco.Data/Migrations/202403030134280_DBv24.cs new file mode 100644 index 00000000..594fc1d3 --- /dev/null +++ b/Disco.Data/Migrations/202403030134280_DBv24.cs @@ -0,0 +1,20 @@ +namespace Disco.Data.Migrations +{ + using System; + using System.Data.Entity.Migrations; + + public partial class DBv24 : DbMigration + { + public override void Up() + { + AddColumn("dbo.JobMetaInsurances", "Insurer", c => c.String(maxLength: 200)); + AddColumn("dbo.JobMetaInsurances", "InsurerReference", c => c.String(maxLength: 200)); + } + + public override void Down() + { + DropColumn("dbo.JobMetaInsurances", "InsurerReference"); + DropColumn("dbo.JobMetaInsurances", "Insurer"); + } + } +} diff --git a/Disco.Data/Migrations/202403030134280_DBv24.resx b/Disco.Data/Migrations/202403030134280_DBv24.resx new file mode 100644 index 00000000..509f4b78 --- /dev/null +++ b/Disco.Data/Migrations/202403030134280_DBv24.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + H4sIAAAAAAAEAO1923Ict5Lg+0bsPyj4tDsRI0qyLMsn5JmgKcmmRhJ1SNl+ZJS6QbLmVFf1qaqWxfNr+7CftL+wQF1xycStUJdu94vELiQSmYlEInHL/H//5/+++s9vm+TRV5IXcZb+dPL08ZOTRyRdZes4vfvpZFfe/vvLk//8j//5P169WW++Pfq9hfuOwdGaafHTyX1Zbv92elqs7skmKh5v4lWeFdlt+XiVbU6jdXb67MmTH0+fPj0lFMUJxfXo0aurXVrGG1L9oD/Ps3RFtuUuSj5ka5IUzXdacl1hffQx2pBiG63ITyev42KVPX4dldHjK7LNirjM8oeTR2dJHFFirklye/Jo+/xvvxXkusyz9O56G5VxlHx+2BJafhslBWlI/9v2uS31T54x6k+jNM1Kii5Lvbg/6fiinL2hEigfGFkVdz+dUCHcxne7vMJ/URIBnFb4L/IgfKCfPuXZluTlwxW5bZBcr+iXk0enZkiKToZ7dSq30dUT0TOq6Y8yp1py8uht/I2s35P0rrzvBPwh+tZ+eUlV5bc0pjpF65T5jpZ+3CVJ9CUhHfipttWK1Inb/D1Kdq6c0j81zda/+VZfnfZKoFWN19lqtyFp+ZlstklUEh/NuFi7dzer4ySB7wbL/TUpVnm8rceYU9vPvh/cuI96vxja6Ns4KUn+5ts2J0Xhzrar0qkEXKa/kJRQu0NmJeJis83y8qwso9U9U/YFEEMnkfxtEt1d7RJSTE4FbbksSfo2yzdt2z9nWUKi1GNUfY1XpHgfp/8g61/ybLednBsmy1kJuCh+j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6xU4ON6T+9ZpU76BaFK8ozpRUUU97pC3MRXqbteEzJYpakLa46Ui2Zb+OyuiMLSujVUmLV4S6fyldjf0eJTsK8mbzhawv0stdud2VlGWy+ZIIe/ss8Kau/VenCs2vLrfsVxGCBUpmTFkgl+nPuzhZd3S/jZJC6jQMBYvo+Quh3+u+LOn/5O6hw/SR2iA7RI34ukCkXUiRy/Q6+kpw2swyFCX26nUc3eXRpmhw9PXpT6p+6823//j/p2bN/O6fAwA= + + \ No newline at end of file diff --git a/Disco.Models/Repository/Job/JobMeta/JobMetaInsurance.cs b/Disco.Models/Repository/Job/JobMeta/JobMetaInsurance.cs index b7ad45f8..0793891b 100644 --- a/Disco.Models/Repository/Job/JobMeta/JobMetaInsurance.cs +++ b/Disco.Models/Repository/Job/JobMeta/JobMetaInsurance.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -58,6 +55,10 @@ namespace Disco.Models.Repository [DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd hh:mm tt}", HtmlEncode = false)] public DateTime? ClaimFormSentDate { get; set; } public string ClaimFormSentUserId { get; set; } + [StringLength(200)] + public string Insurer { get; set; } + [StringLength(200)] + public string InsurerReference { get; set; } [Required, ForeignKey("JobId")] public virtual Job Job { get; set; } diff --git a/Disco.Models/Services/Users/Contact/UserContact.cs b/Disco.Models/Services/Users/Contact/UserContact.cs index f773f2c8..a43d7fef 100644 --- a/Disco.Models/Services/Users/Contact/UserContact.cs +++ b/Disco.Models/Services/Users/Contact/UserContact.cs @@ -19,6 +19,10 @@ namespace Disco.Models.Services.Users.Contact User = user; ContactType = contactType; Source = source; + + if (name != null && name.IndexOf(',') >= 0) + name = name.Replace(',', ' '); + Name = name; } diff --git a/Disco.Services/Authorization/Claims.cs b/Disco.Services/Authorization/Claims.cs index ee8016ab..560302aa 100644 --- a/Disco.Services/Authorization/Claims.cs +++ b/Disco.Services/Authorization/Claims.cs @@ -109,6 +109,7 @@ namespace Disco.Services.Authorization { "Job.Actions.Delete", new Tuple, Action, string, string, bool>(c => c.Job.Actions.Delete, (c, v) => c.Job.Actions.Delete = v, "Delete Jobs", "Can delete jobs", false) }, { "Job.Actions.ForceClose", new Tuple, Action, string, string, bool>(c => c.Job.Actions.ForceClose, (c, v) => c.Job.Actions.ForceClose = v, "Force Close Jobs", "Can force close jobs", false) }, { "Job.Actions.GenerateDocuments", new Tuple, Action, string, string, bool>(c => c.Job.Actions.GenerateDocuments, (c, v) => c.Job.Actions.GenerateDocuments = v, "Generate Documents", "Can generate documents for jobs", false) }, + { "Job.Actions.LogInsurance", new Tuple, Action, string, string, bool>(c => c.Job.Actions.LogInsurance, (c, v) => c.Job.Actions.LogInsurance = v, "Log Insurance", "Can log insurance for non-warranty jobs", false) }, { "Job.Actions.LogRepair", new Tuple, Action, string, string, bool>(c => c.Job.Actions.LogRepair, (c, v) => c.Job.Actions.LogRepair = v, "Log Repair", "Can log repair for non-warranty jobs", false) }, { "Job.Actions.LogWarranty", new Tuple, Action, string, string, bool>(c => c.Job.Actions.LogWarranty, (c, v) => c.Job.Actions.LogWarranty = v, "Log Warranty", "Can log warranty for jobs", false) }, { "Job.Actions.RemoveAnyAttachments", new Tuple, Action, string, string, bool>(c => c.Job.Actions.RemoveAnyAttachments, (c, v) => c.Job.Actions.RemoveAnyAttachments = v, "Remove Any Attachments", "Can remove any attachments from jobs", false) }, @@ -133,7 +134,7 @@ namespace Disco.Services.Authorization { "Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, (c, v) => c.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent = v, "Insurance Claim Form Sent Property", "Can update property", false) }, { "Job.Properties.NonWarrantyProperties.InsuranceDetails", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.InsuranceDetails, (c, v) => c.Job.Properties.NonWarrantyProperties.InsuranceDetails = v, "Insurance Detail Properties", "Can update insurance detail properties", false) }, { "Job.Properties.NonWarrantyProperties.InvoiceReceived", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.InvoiceReceived, (c, v) => c.Job.Properties.NonWarrantyProperties.InvoiceReceived = v, "Invoice Received Property", "Can update property", false) }, - { "Job.Properties.NonWarrantyProperties.IsInsuranceClaim", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.IsInsuranceClaim, (c, v) => c.Job.Properties.NonWarrantyProperties.IsInsuranceClaim = v, "Is Insurance Claim Property", "Can update property", false) }, + { "Job.Properties.NonWarrantyProperties.IsInsuranceClaim", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.IsInsuranceClaim, (c, v) => c.Job.Properties.NonWarrantyProperties.IsInsuranceClaim = v, "Is Insurance Claim Property", "Can update property", false) }, { "Job.Properties.NonWarrantyProperties.PurchaseOrderRaised", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.PurchaseOrderRaised, (c, v) => c.Job.Properties.NonWarrantyProperties.PurchaseOrderRaised = v, "Purchase Order Raised Property", "Can update property", false) }, { "Job.Properties.NonWarrantyProperties.PurchaseOrderReference", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.PurchaseOrderReference, (c, v) => c.Job.Properties.NonWarrantyProperties.PurchaseOrderReference = v, "Purchase Order Reference Property", "Can update property", false) }, { "Job.Properties.NonWarrantyProperties.PurchaseOrderSent", new Tuple, Action, string, string, bool>(c => c.Job.Properties.NonWarrantyProperties.PurchaseOrderSent, (c, v) => c.Job.Properties.NonWarrantyProperties.PurchaseOrderSent = v, "Purchase Order Sent Property", "Can update property", false) }, @@ -337,6 +338,7 @@ namespace Disco.Services.Authorization new ClaimNavigatorItem("Job.Actions.Delete", false), new ClaimNavigatorItem("Job.Actions.ForceClose", false), new ClaimNavigatorItem("Job.Actions.GenerateDocuments", false), + new ClaimNavigatorItem("Job.Actions.LogInsurance", false), new ClaimNavigatorItem("Job.Actions.LogRepair", false), new ClaimNavigatorItem("Job.Actions.LogWarranty", false), new ClaimNavigatorItem("Job.Actions.RemoveAnyAttachments", false), @@ -647,6 +649,7 @@ namespace Disco.Services.Authorization c.Job.Actions.Delete = true; c.Job.Actions.ForceClose = true; c.Job.Actions.GenerateDocuments = true; + c.Job.Actions.LogInsurance = true; c.Job.Actions.LogRepair = true; c.Job.Actions.LogWarranty = true; c.Job.Actions.RemoveAnyAttachments = true; @@ -1341,6 +1344,11 @@ namespace Disco.Services.Authorization /// public const string GenerateDocuments = "Job.Actions.GenerateDocuments"; + /// Log Insurance + /// Can log insurance for non-warranty jobs + /// + public const string LogInsurance = "Job.Actions.LogInsurance"; + /// Log Repair /// Can log repair for non-warranty jobs /// @@ -1481,7 +1489,7 @@ namespace Disco.Services.Authorization /// public const string InvoiceReceived = "Job.Properties.NonWarrantyProperties.InvoiceReceived"; - /// Is Insurance Claim Property + /// Is Insurance Claim Property /// Can update property /// public const string IsInsuranceClaim = "Job.Properties.NonWarrantyProperties.IsInsuranceClaim"; diff --git a/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobActionsClaims.cs b/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobActionsClaims.cs index 5c595663..63cabea2 100644 --- a/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobActionsClaims.cs +++ b/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobActionsClaims.cs @@ -23,10 +23,12 @@ [ClaimDetails("Remove from Any Queues", "Can remove from any job queues")] public bool RemoveAnyQueues { get; set; } - [ClaimDetails("Log Warranty", "Can log warranty for jobs")] + [ClaimDetails("Lodge Warranty", "Can lodge warranty for jobs")] public bool LogWarranty { get; set; } - [ClaimDetails("Log Repair", "Can log repair for non-warranty jobs")] + [ClaimDetails("Lodge Repair", "Can lodge repair for non-warranty jobs")] public bool LogRepair { get; set; } + [ClaimDetails("Lodge Insurance", "Can lodge insurance for non-warranty jobs")] + public bool LogInsurance { get; set; } [ClaimDetails("Convert HWar Jobs To HNWar", "Can convert warranty jobs to non-warranty jobs")] public bool ConvertHWarToHNWar { get; set; } diff --git a/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobNonWarrantyPropertiesClaims.cs b/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobNonWarrantyPropertiesClaims.cs index 7750a3a7..af079a73 100644 --- a/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobNonWarrantyPropertiesClaims.cs +++ b/Disco.Services/Authorization/Roles/ClaimGroups/Job/JobNonWarrantyPropertiesClaims.cs @@ -8,7 +8,7 @@ [ClaimDetails("Edit Components", "Can edit and remove job components")] public bool EditComponents { get; set; } - [ClaimDetails("Is Insurance Claim Property", "Can update property")] + [ClaimDetails("Is Insurance Claim Property", "Can update property")] public bool IsInsuranceClaim { get; set; } [ClaimDetails("Insurance Claim Form Sent Property", "Can update property")] diff --git a/Disco.Services/Disco.Services.csproj b/Disco.Services/Disco.Services.csproj index ef339de0..78372818 100644 --- a/Disco.Services/Disco.Services.csproj +++ b/Disco.Services/Disco.Services.csproj @@ -324,6 +324,7 @@ + @@ -412,6 +413,10 @@ + + + + @@ -540,6 +545,7 @@ Resources.Designer.cs + diff --git a/Disco.Services/Jobs/JobActionExtensions.cs b/Disco.Services/Jobs/JobActionExtensions.cs index c8724984..5089ad07 100644 --- a/Disco.Services/Jobs/JobActionExtensions.cs +++ b/Disco.Services/Jobs/JobActionExtensions.cs @@ -4,6 +4,7 @@ using Disco.Models.Repository; using Disco.Services.Authorization; using Disco.Services.Logging; using Disco.Services.Plugins; +using Disco.Services.Plugins.Features.InsuranceProvider; using Disco.Services.Plugins.Features.RepairProvider; using Disco.Services.Plugins.Features.WarrantyProvider; using Disco.Services.Users; @@ -63,7 +64,6 @@ namespace Disco.Services return (!j.ClosedDate.HasValue) && j.DeviceHeld.HasValue && !j.DeviceReadyForReturn.HasValue && !j.DeviceReturnedDate.HasValue; } - public static void OnDeviceReadyForReturn(this Job j, User Technician) public static void OnDeviceReadyForReturn(this Job j, DiscoDataContext Database, User Technician) { if (!j.CanDeviceReadyForReturn()) @@ -182,19 +182,21 @@ namespace Disco.Services public static void OnLogWarranty(this Job j, DiscoDataContext Database, string FaultDescription, List SendAttachments, PluginFeatureManifest WarrantyProviderDefinition, OrganisationAddress Address, User TechUser, Dictionary WarrantyProviderProperties) { if (!j.CanLogWarranty()) - throw new InvalidOperationException("Log Warranty was Denied"); + throw new InvalidOperationException("Lodge Warranty was Denied"); PublishJobResult publishJobResult = null; - using (WarrantyProviderFeature WarrantyProvider = WarrantyProviderDefinition.CreateInstance()) + using (WarrantyProviderFeature warrantyProvider = WarrantyProviderDefinition.CreateInstance()) { - if (SendAttachments != null && SendAttachments.Count > 0) + var warrantyProvider2 = warrantyProvider as WarrantyProvider2Feature; + + if (warrantyProvider2 == null && SendAttachments != null && SendAttachments.Count > 0) { publishJobResult = DiscoServicesJobs.Publish( Database, j, TechUser, - WarrantyProvider.WarrantyProviderId, + warrantyProvider.WarrantyProviderId, null, FaultDescription, SendAttachments, @@ -216,10 +218,14 @@ namespace Disco.Services else submitDescription = string.Concat(FaultDescription, Environment.NewLine, Environment.NewLine, j.GenerateFaultDescriptionFooter(Database, WarrantyProviderDefinition)); - string providerRef = WarrantyProvider.SubmitJob(Database, j, Address, TechUser, submitDescription, WarrantyProviderProperties); + string providerRef; + if (warrantyProvider2 != null) + providerRef = warrantyProvider2.SubmitJob(Database, j, Address, TechUser, FaultDescription, SendAttachments, WarrantyProviderProperties); + else + providerRef = warrantyProvider.SubmitJob(Database, j, Address, TechUser, submitDescription, WarrantyProviderProperties); j.JobMetaWarranty.ExternalLoggedDate = DateTime.Now; - j.JobMetaWarranty.ExternalName = WarrantyProvider.WarrantyProviderId; + j.JobMetaWarranty.ExternalName = warrantyProvider.WarrantyProviderId; if (providerRef != null && providerRef.Length > 100) j.JobMetaWarranty.ExternalReference = providerRef.Substring(0, 100); @@ -232,7 +238,7 @@ namespace Disco.Services JobId = j.Id, TechUserId = TechUser.UserId, Timestamp = DateTime.Now, - Comments = string.Format("# Warranty Claim Submitted\r\nProvider: **{0}**\r\nAddress: **{1}**\r\nReference: **{2}**\r\n___\r\n```{3}```", WarrantyProvider.Manifest.Name, Address.Name, providerRef, FaultDescription) + Comments = string.Format("# Warranty Claim Submitted\r\nProvider: **{0}**\r\nAddress: **{1}**\r\nReference: **{2}**\r\n___\r\n```{3}```", warrantyProvider.Manifest.Name, Address.Name, providerRef, FaultDescription) }; Database.JobLogs.Add(jobLog); @@ -249,7 +255,7 @@ namespace Disco.Services public static void OnLogWarranty(this Job j, DiscoDataContext Database, string FaultDescription, string ManualProviderName, string ManualProviderReference, OrganisationAddress Address, User TechUser) { if (!j.CanLogWarranty()) - throw new InvalidOperationException("Log Warranty was Denied"); + throw new InvalidOperationException("Lodge Warranty was Denied"); j.JobMetaWarranty.ExternalLoggedDate = DateTime.Now; j.JobMetaWarranty.ExternalName = ManualProviderName; @@ -369,6 +375,7 @@ namespace Disco.Services #endregion #region Insurance Claim Form Sent + [Obsolete("Use Log Insurance instead")] public static bool CanInsuranceClaimFormSent(this Job j) { if (!UserService.CurrentAuthorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent)) @@ -378,6 +385,7 @@ namespace Disco.Services j.JobMetaNonWarranty.IsInsuranceClaim && !j.JobMetaInsurance.ClaimFormSentDate.HasValue; } + [Obsolete("Use Log Insurance instead")] public static void OnInsuranceClaimFormSent(this Job j) { if (!j.CanInsuranceClaimFormSent()) @@ -404,19 +412,21 @@ namespace Disco.Services public static void OnLogRepair(this Job j, DiscoDataContext Database, string RepairDescription, List SendAttachments, PluginFeatureManifest RepairProviderDefinition, OrganisationAddress Address, User TechUser, Dictionary RepairProviderProperties) { if (!j.CanLogRepair()) - throw new InvalidOperationException("Log Repair was Denied"); + throw new InvalidOperationException("Lodge Repair was Denied"); PublishJobResult publishJobResult = null; - using (RepairProviderFeature RepairProvider = RepairProviderDefinition.CreateInstance()) + using (RepairProviderFeature repairProvider = RepairProviderDefinition.CreateInstance()) { - if (SendAttachments != null && SendAttachments.Count > 0) + var repairProvider2 = repairProvider as RepairProvider2Feature; + + if (repairProvider2 == null && SendAttachments != null && SendAttachments.Count > 0) { publishJobResult = DiscoServicesJobs.Publish( Database, j, TechUser, - RepairProvider.ProviderId, + repairProvider.ProviderId, null, RepairDescription, SendAttachments, @@ -438,10 +448,14 @@ namespace Disco.Services else submitDescription = string.Concat(RepairDescription, Environment.NewLine, Environment.NewLine, j.GenerateFaultDescriptionFooter(Database, RepairProviderDefinition)); - string providerRef = RepairProvider.SubmitJob(Database, j, Address, TechUser, submitDescription, RepairProviderProperties); + string providerRef; + if (repairProvider2 != null) + providerRef = repairProvider2.SubmitJob(Database, j, Address, TechUser, submitDescription, SendAttachments, RepairProviderProperties); + else + providerRef = repairProvider.SubmitJob(Database, j, Address, TechUser, submitDescription, RepairProviderProperties); j.JobMetaNonWarranty.RepairerLoggedDate = DateTime.Now; - j.JobMetaNonWarranty.RepairerName = RepairProvider.ProviderId; + j.JobMetaNonWarranty.RepairerName = repairProvider.ProviderId; if (providerRef != null && providerRef.Length > 100) j.JobMetaNonWarranty.RepairerReference = providerRef.Substring(0, 100); @@ -454,7 +468,7 @@ namespace Disco.Services JobId = j.Id, TechUserId = TechUser.UserId, Timestamp = DateTime.Now, - Comments = string.Format("# Repair Request Submitted\r\nProvider: **{0}**\r\nAddress: **{1}**\r\nReference: **{2}**\r\n___\r\n```{3}```", RepairProvider.Manifest.Name, Address.Name, providerRef, RepairDescription) + Comments = string.Format("# Repair Request Submitted\r\nProvider: **{0}**\r\nAddress: **{1}**\r\nReference: **{2}**\r\n___\r\n```{3}```", repairProvider.Manifest.Name, Address.Name, providerRef, RepairDescription) }; Database.JobLogs.Add(jobLog); @@ -471,7 +485,7 @@ namespace Disco.Services public static void OnLogRepair(this Job j, DiscoDataContext Database, string FaultDescription, string ManualProviderName, string ManualProviderReference, OrganisationAddress Address, User TechUser) { if (!j.CanLogRepair()) - throw new InvalidOperationException("Log Repair was Denied"); + throw new InvalidOperationException("Lodge Repair was Denied"); j.JobMetaNonWarranty.RepairerLoggedDate = DateTime.Now; j.JobMetaNonWarranty.RepairerName = ManualProviderName; @@ -512,6 +526,72 @@ namespace Disco.Services } #endregion + #region Log Insurance + public static bool CanLogInsurance(this Job j) + { + if (!UserService.CurrentAuthorization.HasAny(Claims.Job.Actions.LogInsurance, Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent)) + return false; + + return j.JobTypeId == JobType.JobTypeIds.HNWar && + j.DeviceSerialNumber != null && + j.JobMetaNonWarranty.IsInsuranceClaim && + !j.JobMetaInsurance.ClaimFormSentDate.HasValue; + } + public static void OnLogInsurance(this Job j, DiscoDataContext database, List attachments, PluginFeatureManifest providerDefinition, OrganisationAddress address, User techUser, Dictionary providerProperties) + { + if (!j.CanLogInsurance()) + throw new InvalidOperationException("Lodge Insurance was Denied"); + + using (var provider = providerDefinition.CreateInstance()) + { + var providerRef = provider.SubmitJob(database, j, address, techUser, attachments, providerProperties); + + j.JobMetaInsurance.Insurer = provider.ProviderId; + j.JobMetaInsurance.ClaimFormSentDate = DateTime.Now; + j.JobMetaInsurance.ClaimFormSentUserId = techUser.UserId; + + if (providerRef != null && providerRef.Length > 200) + j.JobMetaInsurance.InsurerReference = providerRef.Substring(0, 200); + else + j.JobMetaInsurance.InsurerReference = providerRef; + + // Write Log + var jobLog = new JobLog() + { + JobId = j.Id, + TechUserId = techUser.UserId, + Timestamp = DateTime.Now, + Comments = $"# Insurance Claim Submitted\r\nProvider: **{provider.Manifest.Name}**\r\nAddress: **{address.Name}**\r\nReference: **{providerRef}**", + }; + database.JobLogs.Add(jobLog); + } + } + public static void OnLogInsurance(this Job j, DiscoDataContext database, string manualProviderName, string manualProviderReference, OrganisationAddress address, User techUser) + { + if (!j.CanLogInsurance()) + throw new InvalidOperationException("Lodge Insurance was Denied"); + + j.JobMetaInsurance.Insurer = manualProviderName; + j.JobMetaInsurance.ClaimFormSentDate = DateTime.Now; + j.JobMetaInsurance.ClaimFormSentUserId = techUser.UserId; + + if (manualProviderReference != null && manualProviderReference.Length > 200) + j.JobMetaInsurance.InsurerReference = manualProviderReference.Substring(0, 200); + else + j.JobMetaInsurance.InsurerReference = manualProviderReference; + + // Write Log + JobLog jobLog = new JobLog() + { + JobId = j.Id, + TechUserId = techUser.UserId, + Timestamp = DateTime.Now, + Comments = $"# Manual Insurance Request Submitted\r\nProvider: **{manualProviderName}**\r\nAddress: **{address.Name}**\r\nReference: **{manualProviderReference ?? ""}**", + }; + database.JobLogs.Add(jobLog); + } + #endregion + #region Close public static void OnCloseNormally(this Job j, DiscoDataContext Database, User Technician) { diff --git a/Disco.Services/Plugins/Features/InsuranceProvider/InsuranceProviderFeature.cs b/Disco.Services/Plugins/Features/InsuranceProvider/InsuranceProviderFeature.cs new file mode 100644 index 00000000..4c0a50d1 --- /dev/null +++ b/Disco.Services/Plugins/Features/InsuranceProvider/InsuranceProviderFeature.cs @@ -0,0 +1,92 @@ +using Disco.Data.Repository; +using Disco.Models.BI.Config; +using Disco.Models.Repository; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web.Mvc; + +namespace Disco.Services.Plugins.Features.InsuranceProvider +{ + [PluginFeatureCategory(DisplayName = "Insurance Providers")] + public abstract class InsuranceProviderFeature : PluginFeature + { + /// + /// The insurer identifier. Used to link this provider to any . This identifier is used to automatically set the Insurer when a job is submitted using this plugin. + /// + public abstract string ProviderId { get; } + + #region Job Submission + + /// + /// Called when a user selects this plugin to submit the insurance claim and allows a plugin to inject a View to collect additional information. + /// + /// A Tuple consisting of the Razor View type and a View Model + public virtual Tuple SubmitJobBegin(DiscoDataContext database, Controller controller, Job job, OrganisationAddress address, User techUser) + { + return null; + } + + /// + /// Called after the RepairDescription is completed and allows the plugin to parse any data collected from SubmitJobBegin. + /// + /// A Dictionary of key/value items which are persisted throughout the submission and passed into the final SubmitJob method. + public virtual Dictionary SubmitJobParseProperties(DiscoDataContext database, FormCollection form, Controller controller, Job job, OrganisationAddress address, User techUser) + { + return null; + } + + /// + /// Plugins are required to disclose any information that will be transmitted to any external party. This method is expected to return a clear list all data which will be transmitted. + /// + /// A Dictionary of key/value items which contain all information which will be disclosed to the plugin provider. + public abstract Dictionary SubmitJobDiscloseInfo(DiscoDataContext database, Job job, OrganisationAddress address, User techUser, Dictionary providerProperties); + + /// + /// Called when the plugin should submit the job to the external party. + /// + /// A reference number/identifier from the external party which is stored in + public abstract string SubmitJob(DiscoDataContext database, Job job, OrganisationAddress address, User techUser, List attachments, Dictionary providerProperties); + + #endregion + + #region Job Details + + /// + /// when additional Job Details are supported by the external party. When , JobDetailsViewModel must be implemented. + /// + public abstract bool JobDetailsSupported { get; } + + /// + /// Called when a job's insurance information is shown. Allows a plugin to inject a View to display additional information. + /// + /// A Tuple consisting of the Razor View type and a View Model + public virtual Tuple JobDetails(DiscoDataContext database, Controller controller, Job job) + { + return null; + } + + #endregion + + public static PluginFeatureManifest FindPluginFeature(string pluginIdOrInsuranceProviderId) + { + var defs = Plugins.GetPluginFeatures(typeof(InsuranceProviderFeature)); + var def = defs.FirstOrDefault(d => d.PluginManifest.Id.Equals(pluginIdOrInsuranceProviderId, StringComparison.OrdinalIgnoreCase)); + if (def != null) + return def; + else + foreach (var d in defs) + { + using (var providerInstance = d.CreateInstance()) + { + if (providerInstance.ProviderId != null && providerInstance.ProviderId.Equals(pluginIdOrInsuranceProviderId, StringComparison.OrdinalIgnoreCase)) + { + return d; + } + } + } + + return null; + } + } +} diff --git a/Disco.Services/Plugins/Features/InsuranceProvider/InsuranceProviderSubmitJobException.cs b/Disco.Services/Plugins/Features/InsuranceProvider/InsuranceProviderSubmitJobException.cs new file mode 100644 index 00000000..3553c7ef --- /dev/null +++ b/Disco.Services/Plugins/Features/InsuranceProvider/InsuranceProviderSubmitJobException.cs @@ -0,0 +1,12 @@ +using System; + +namespace Disco.Services.Plugins.Features.InsuranceProvider +{ + public class InsuranceProviderSubmitJobException : Exception + { + public InsuranceProviderSubmitJobException(string message) + : base(message) + { + } + } +} diff --git a/Disco.Services/Plugins/Features/RepairProvider/RepairProvider2Feature.cs b/Disco.Services/Plugins/Features/RepairProvider/RepairProvider2Feature.cs new file mode 100644 index 00000000..f0c99507 --- /dev/null +++ b/Disco.Services/Plugins/Features/RepairProvider/RepairProvider2Feature.cs @@ -0,0 +1,20 @@ +using Disco.Data.Repository; +using Disco.Models.BI.Config; +using Disco.Models.Repository; +using System; +using System.Collections.Generic; + +namespace Disco.Services.Plugins.Features.RepairProvider +{ + [PluginFeatureCategory(DisplayName = "Repair Providers")] + public abstract class RepairProvider2Feature : RepairProviderFeature + { + public override sealed string SubmitJob(DiscoDataContext Database, Job Job, OrganisationAddress Address, User TechUser, string RepairDescription, Dictionary ProviderProperties) + { + throw new NotSupportedException(); + } + + public abstract string SubmitJob(DiscoDataContext database, Job job, OrganisationAddress address, User techUser, string description, List attachments, Dictionary providerProperties); + + } +} diff --git a/Disco.Services/Plugins/Features/WarrantyProvider/WarrantyProvider2Feature.cs b/Disco.Services/Plugins/Features/WarrantyProvider/WarrantyProvider2Feature.cs new file mode 100644 index 00000000..e996a414 --- /dev/null +++ b/Disco.Services/Plugins/Features/WarrantyProvider/WarrantyProvider2Feature.cs @@ -0,0 +1,19 @@ +using Disco.Data.Repository; +using Disco.Models.BI.Config; +using Disco.Models.Repository; +using System; +using System.Collections.Generic; + +namespace Disco.Services.Plugins.Features.WarrantyProvider +{ + [PluginFeatureCategory(DisplayName = "Warranty Providers")] + public abstract class WarrantyProvider2Feature : WarrantyProviderFeature + { + public override sealed string SubmitJob(DiscoDataContext Database, Job Job, OrganisationAddress Address, User TechUser, string FaultDescription, Dictionary WarrantyProviderProperties) + { + throw new NotSupportedException(); + } + + public abstract string SubmitJob(DiscoDataContext database, Job job, OrganisationAddress address, User techUser, string description, List attachments, Dictionary providerProperties); + } +} diff --git a/Disco.Services/Plugins/PluginManifest.cs b/Disco.Services/Plugins/PluginManifest.cs index 0f82df08..7755bba3 100644 --- a/Disco.Services/Plugins/PluginManifest.cs +++ b/Disco.Services/Plugins/PluginManifest.cs @@ -530,6 +530,7 @@ namespace Disco.Services.Plugins public void LogWarning(string Message) { LogWarning(Message, null); + PluginsLog.LogPluginWarning(this, Message); } public void LogWarning(string MessageFormat, params object[] Args) { @@ -537,7 +538,7 @@ namespace Disco.Services.Plugins } public void LogMessage(string Message) { - LogMessage(Message, null); + PluginsLog.LogPluginMessage(this, Message); } public void LogMessage(string MessageFormat, params object[] Args) { diff --git a/Disco.Services/Plugins/PluginWebHandler.cs b/Disco.Services/Plugins/PluginWebHandler.cs index 127477b7..6e136cbc 100644 --- a/Disco.Services/Plugins/PluginWebHandler.cs +++ b/Disco.Services/Plugins/PluginWebHandler.cs @@ -179,6 +179,15 @@ namespace Disco.Services.Plugins return new HttpStatusCodeResult(System.Net.HttpStatusCode.OK, description); } + public ActionResult BadRequest() + { + return new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest); + } + public ActionResult BadRequest(string description) + { + return new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest, description); + } + #endregion #region Content @@ -262,11 +271,17 @@ namespace Disco.Services.Plugins } public ActionResult RedirectToPluginAction(string PluginAction) { - if (string.IsNullOrEmpty(PluginAction)) - throw new ArgumentNullException("PluginAction"); + return RedirectToPluginAction(PluginAction, null); + } + public ActionResult RedirectToPluginAction(string pluginAction, object routeValues) + { + if (string.IsNullOrEmpty(pluginAction)) + throw new ArgumentNullException(nameof(pluginAction)); - var routeValues = new RouteValueDictionary(new { PluginId = Manifest.Id, PluginAction = PluginAction }); - string pluginActionUrl = UrlHelper.GenerateUrl("Plugin", null, null, routeValues, RouteTable.Routes, HostController.Request.RequestContext, false); + var routeValueDictionary = new RouteValueDictionary(routeValues); + routeValueDictionary.Add("PluginId", Manifest.Id); + routeValueDictionary.Add("PluginAction", pluginAction); + string pluginActionUrl = UrlHelper.GenerateUrl("Plugin", null, null, routeValueDictionary, RouteTable.Routes, HostController.Request.RequestContext, false); return new RedirectResult(pluginActionUrl, false); } diff --git a/Disco.Services/Plugins/PluginWebHandlerController.cs b/Disco.Services/Plugins/PluginWebHandlerController.cs index c973489e..bd4f7d80 100644 --- a/Disco.Services/Plugins/PluginWebHandlerController.cs +++ b/Disco.Services/Plugins/PluginWebHandlerController.cs @@ -134,6 +134,7 @@ namespace Disco.Services.Plugins private readonly PluginControllerDescription controllerDescription; private readonly MethodInfo methodInfo; private readonly IAuthorizationFilter[] authorizationFilters; + private readonly ActionMethodSelectorAttribute methodSelector; private readonly PluginParameterDescriptor[] parameterDescriptors; public override string UniqueId { get; } public override string ActionName { get; } @@ -146,6 +147,7 @@ namespace Disco.Services.Plugins UniqueId = $"{ControllerDescriptor.UniqueId}_{methodName}"; ActionName = methodName; authorizationFilters = DiscoverAuthorizationFilters(); + methodSelector = DiscoverMethodSelector(); parameterDescriptors = DiscoverParameters(); } @@ -159,6 +161,11 @@ namespace Disco.Services.Plugins return filters.ToArray(); } + private ActionMethodSelectorAttribute DiscoverMethodSelector() + { + return methodInfo.GetCustomAttributes(true).FirstOrDefault(); + } + private PluginParameterDescriptor[] DiscoverParameters() { var methodParams = methodInfo.GetParameters(); @@ -187,6 +194,9 @@ namespace Disco.Services.Plugins public ActionResult Execute(PluginWebHandlerController pluginController, ControllerContext controllerContext) { + if (methodSelector != null && !methodSelector.IsValidForRequest(controllerContext, methodInfo)) + return new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest); + var methodParameters = BuildMethodParameters(methodInfo, controllerContext.Controller); return (ActionResult)methodInfo.Invoke(pluginController, methodParameters); diff --git a/Disco.Services/Plugins/Plugins.cs b/Disco.Services/Plugins/Plugins.cs index 45a702a0..7dab55e2 100644 --- a/Disco.Services/Plugins/Plugins.cs +++ b/Disco.Services/Plugins/Plugins.cs @@ -237,7 +237,7 @@ namespace Disco.Services.Plugins if (_PluginManifests == null) throw new InvalidOperationException("Plugins have not been initialized"); - return _PluginManifests.Values.SelectMany(pm => pm.Features).Where(fm => fm.CategoryType.IsAssignableFrom(FeatureCategoryType)).OrderBy(fm => fm.PluginManifest.Name).ToList(); + return _PluginManifests.Values.SelectMany(pm => pm.Features).Where(fm => FeatureCategoryType.IsAssignableFrom(fm.CategoryType)).OrderBy(fm => fm.PluginManifest.Name).ToList(); } public static List GetPluginFeatures() { diff --git a/Disco.Web/Areas/Config/Models/Plugins/IndexViewModel.cs b/Disco.Web/Areas/Config/Models/Plugins/IndexViewModel.cs index b083fb3a..22af0711 100644 --- a/Disco.Web/Areas/Config/Models/Plugins/IndexViewModel.cs +++ b/Disco.Web/Areas/Config/Models/Plugins/IndexViewModel.cs @@ -44,15 +44,14 @@ namespace Disco.Web.Areas.Config.Models.Plugins } } - public List>> PluginManifestsByCategory + public Dictionary> PluginManifestsByCategory { get { if (PluginManifests.Count == 0) return null; - - List> pluginsByCategory = new List>(); + var pluginsByCategory = new Dictionary>(StringComparer.Ordinal); foreach (var pluginManifest in PluginManifests) { @@ -68,12 +67,17 @@ namespace Disco.Web.Areas.Config.Models.Plugins else categoryType = primaryFeature.CategoryType; - pluginsByCategory.Add(new Tuple(categoryType, pluginManifest)); + var categoryName = Disco.Services.Plugins.Plugins.PluginFeatureCategoryDisplayName(categoryType); + + if (!pluginsByCategory.TryGetValue(categoryName, out var categoryPlugins)) + { + categoryPlugins = new List(); + pluginsByCategory.Add(categoryName, categoryPlugins); + } + categoryPlugins.Add(pluginManifest); } - return pluginsByCategory.GroupBy(p => p.Item1) - .OrderBy(g => g.Key.Name) - .Select(g => new Tuple>(g.Key, g.Select(pg => pg.Item2).OrderBy(p => p.Name).ToList())).ToList(); + return pluginsByCategory; } } } diff --git a/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml b/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml index 0c42c536..42f86660 100644 --- a/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml +++ b/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml @@ -1,5 +1,4 @@ @model Disco.Web.Areas.Config.Models.Plugins.IndexViewModel -@using Disco.Services.Plugins; @{ Authorization.Require(Claims.Config.Plugin.Show); @@ -19,7 +18,7 @@ } else { - var pluginGroups = Model.PluginManifestsByCategory; + var pluginGroups = Model.PluginManifestsByCategory.OrderBy(c => c.Key).ToList(); int itemsPerColumn = pluginGroups.Count / 3; @@ -37,8 +36,8 @@ var pluginGroup = pluginGroups[itemNextId]; itemNextId++; \r\n"); - #line 19 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 18 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } else { - var pluginGroups = Model.PluginManifestsByCategory; + var pluginGroups = Model.PluginManifestsByCategory.OrderBy(c => c.Key).ToList(); int itemsPerColumn = pluginGroups.Count / 3; @@ -114,13 +108,13 @@ WriteLiteral(" id=\"pageMenu\""); WriteLiteral(">\r\n \r\n"); - #line 30 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 29 "..\..\Areas\Config\Views\Plugins\Index.cshtml" #line default #line hidden - #line 30 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 29 "..\..\Areas\Config\Views\Plugins\Index.cshtml" for (int i = 0; i < 3; i++) { @@ -130,13 +124,13 @@ WriteLiteral(">\r\n \r\n"); WriteLiteral(" \r\n"); - #line 33 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 32 "..\..\Areas\Config\Views\Plugins\Index.cshtml" #line default #line hidden - #line 33 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 32 "..\..\Areas\Config\Views\Plugins\Index.cshtml" int itemsForThisColumn = itemsPerColumn + (pluginGroups.Count % 3 > i ? 1 : 0); for (int i2 = 0; i2 < itemsForThisColumn && itemNextId < pluginGroups.Count; i2++) @@ -154,8 +148,8 @@ WriteLiteral(" class=\"pageMenuArea\""); WriteLiteral(">\r\n

"); - #line 40 "..\..\Areas\Config\Views\Plugins\Index.cshtml" - Write(Plugins.PluginFeatureCategoryDisplayName(pluginGroup.Item1)); + #line 39 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + Write(pluginGroup.Key); #line default @@ -163,14 +157,14 @@ WriteLiteral(">\r\n

"); WriteLiteral("

\r\n"); - #line 41 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 40 "..\..\Areas\Config\Views\Plugins\Index.cshtml" #line default #line hidden - #line 41 "..\..\Areas\Config\Views\Plugins\Index.cshtml" - foreach (var pluginDefinition in pluginGroup.Item2) + #line 40 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + foreach (var pluginDefinition in pluginGroup.Value.OrderBy(p => p.Name)) { if (canConfig) { @@ -180,14 +174,14 @@ WriteLiteral("\r\n"); #line hidden WriteLiteral(" (Url.Action(MVC.Config.Plugins.Configure(pluginDefinition.Id)) + #line 44 "..\..\Areas\Config\Views\Plugins\Index.cshtml" +, Tuple.Create(Tuple.Create("", 1788), Tuple.Create(Url.Action(MVC.Config.Plugins.Configure(pluginDefinition.Id)) #line default #line hidden -, 1814), false) +, 1788), false) ); WriteLiteral(">\r\n \r\n

"); - #line 47 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 46 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(pluginDefinition.Name); @@ -206,7 +200,7 @@ WriteLiteral(">\r\n

"); WriteLiteral("

\r\n \r\n"); - #line 49 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 48 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } else { @@ -217,7 +211,7 @@ WriteLiteral("\r\n \r\n"); WriteLiteral("

"); - #line 52 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 51 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(pluginDefinition.Name); @@ -226,7 +220,7 @@ WriteLiteral("

"); WriteLiteral("

\r\n"); - #line 53 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 52 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } @@ -243,7 +237,7 @@ WriteLiteral(" class=\"pluginVersion\""); WriteLiteral(">v"); - #line 55 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 54 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(pluginDefinition.VersionFormatted); @@ -252,7 +246,7 @@ WriteLiteral(">v"); WriteLiteral(" | "); - #line 55 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 54 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(pluginDefinition.Author); @@ -260,14 +254,14 @@ WriteLiteral(" | "); #line hidden WriteLiteral(" | (pluginDefinition.Url + #line 54 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + , Tuple.Create(Tuple.Create("", 2481), Tuple.Create(pluginDefinition.Url #line default #line hidden -, 2507), false) +, 2481), false) ); WriteLiteral(" title=\"More Information\""); @@ -281,7 +275,7 @@ WriteLiteral(" class=\"fa fa-external-link\""); WriteLiteral(">\r\n \r\n"); - #line 57 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 56 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } @@ -290,7 +284,7 @@ WriteLiteral(">\r\n \r\n"); WriteLiteral(" \r\n"); - #line 59 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 58 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } @@ -299,7 +293,7 @@ WriteLiteral(" \r\n"); WriteLiteral("\r\n \r\n"); - #line 62 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 61 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } @@ -308,7 +302,7 @@ WriteLiteral("\r\n \r\n"); WriteLiteral(" \r\n \r\n"); - #line 65 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 64 "..\..\Areas\Config\Views\Plugins\Index.cshtml" if (canUninstall) { @@ -326,7 +320,7 @@ WriteLiteral(">\r\n
\r\n"); WriteLiteral(" "); - #line 69 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 68 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(Html.DropDownList("uninstallPlugin", Model.PluginManifests.ToSelectListItems(null, true, "Select a Plugin to Uninstall"))); @@ -407,7 +401,7 @@ WriteLiteral(" \r\n"); - #line 176 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } if (Model.PluginUpdates.Count > 0) { @@ -479,7 +473,7 @@ WriteLiteral(" class=\"fa fa-cloud-download\""); WriteLiteral(">\r\n
"); - #line 181 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 180 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(Model.PluginUpdates.Count); @@ -488,7 +482,7 @@ WriteLiteral(">\r\n
"); WriteLiteral(" plugin update"); - #line 181 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 180 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(Model.PluginUpdates.Count == 1 ? " is" : "s are"); @@ -497,13 +491,13 @@ WriteLiteral(" plugin update"); WriteLiteral(" available
\r\n"); - #line 182 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 181 "..\..\Areas\Config\Views\Plugins\Index.cshtml" #line default #line hidden - #line 182 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 181 "..\..\Areas\Config\Views\Plugins\Index.cshtml" if (canInstall) { @@ -511,14 +505,14 @@ WriteLiteral(" available
\r\n"); #line default #line hidden - #line 184 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 183 "..\..\Areas\Config\Views\Plugins\Index.cshtml" Write(Html.ActionLinkSmallButton("Update Now", MVC.API.Plugin.UpdateAll(), null, "alert")); #line default #line hidden - #line 184 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 183 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } else @@ -534,7 +528,7 @@ WriteLiteral(" class=\"smallMessage\""); WriteLiteral(">You do not have sufficient permission to install these updates.
\r\n"); - #line 189 "..\..\Areas\Config\Views\Plugins\Index.cshtml" + #line 188 "..\..\Areas\Config\Views\Plugins\Index.cshtml" } @@ -554,7 +548,7 @@ WriteLiteral(@" + + } + else + { + if (Model.JobDetailsSupported) + { + @Html.PartialCompiled(Model.ViewType, Model.ViewModel) + } + else + { + @Model.JobDetailsNotSupportedMessage + } + } +} diff --git a/Disco.Web/Views/Job/InsuranceProviderJobDetails.generated.cs b/Disco.Web/Views/Job/InsuranceProviderJobDetails.generated.cs new file mode 100644 index 00000000..74bf9cd3 --- /dev/null +++ b/Disco.Web/Views/Job/InsuranceProviderJobDetails.generated.cs @@ -0,0 +1,236 @@ +#pragma warning disable 1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Disco.Web.Views.Job +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Text; + using System.Web; + using System.Web.Helpers; + using System.Web.Mvc; + using System.Web.Mvc.Ajax; + using System.Web.Mvc.Html; + using System.Web.Routing; + using System.Web.Security; + using System.Web.UI; + using System.Web.WebPages; + using Disco; + using Disco.Models.Repository; + using Disco.Services; + using Disco.Services.Authorization; + using Disco.Services.Web; + using Disco.Web; + using Disco.Web.Extensions; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] + [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/InsuranceProviderJobDetails.cshtml")] + public partial class InsuranceProviderJobDetails : Disco.Services.Web.WebViewPage + { + public InsuranceProviderJobDetails() + { + } + public override void Execute() + { + + #line 2 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Layout = null; + + Authorization.Require(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails); + + if (Model.JobDetailsException != null) + { + + + #line default + #line hidden +WriteLiteral("

\r\n Error:

\r\n"); + +WriteLiteral("
\r\n "); + + + #line 11 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsException.Message); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" (show more)\r\n"); + +WriteLiteral(" \r\n
\r\n Error Type: "); + + + #line 16 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsException.GetType().Name); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n Stack Trace:\r\n \r\n"); + +WriteLiteral(" "); + + + #line 20 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsException.StackTrace.ToMultilineString()); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n"); + + + #line 22 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + + + #line default + #line hidden + + #line 22 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + if (Model.JobDetailsException.InnerException != null) + { + + + #line default + #line hidden +WriteLiteral("
\r\n"); + +WriteLiteral("
\r\n Inner Exception: "); + + + #line 26 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsException.InnerException.Message); + + + #line default + #line hidden +WriteLiteral("
\r\n Error Type: "); + + + #line 27 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsException.GetType().Name); + + + #line default + #line hidden +WriteLiteral("
\r\n Stack Trace:\r\n \r\n"); + +WriteLiteral(" "); + + + #line 30 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsException.InnerException.StackTrace); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n \r\n"); + + + #line 33 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + } + + + #line default + #line hidden +WriteLiteral(" \r\n $(function () {\r\n $(\'#errorShow\').click(function ()" + +" {\r\n $(this).hide();\r\n $(\'#errorMore\').sli" + +"deDown();\r\n });\r\n });\r\n \r\n \r\n" + +""); + + + #line 43 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + } + else + { + if (Model.JobDetailsSupported) + { + + + #line default + #line hidden + + #line 48 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" +Write(Html.PartialCompiled(Model.ViewType, Model.ViewModel)); + + + #line default + #line hidden + + #line 48 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + + } + else + { + + + #line default + #line hidden +WriteLiteral(" "); + + + #line 52 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + Write(Model.JobDetailsNotSupportedMessage); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 53 "..\..\Views\Job\InsuranceProviderJobDetails.cshtml" + } + } + + + #line default + #line hidden +WriteLiteral("\r\n"); + + } + } +} +#pragma warning restore 1591 diff --git a/Disco.Web/Views/Job/JobParts/Insurance.cshtml b/Disco.Web/Views/Job/JobParts/Insurance.cshtml index 240d8b48..1cadd9b9 100644 --- a/Disco.Web/Views/Job/JobParts/Insurance.cshtml +++ b/Disco.Web/Views/Job/JobParts/Insurance.cshtml @@ -8,13 +8,14 @@ if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails)) { Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers"); - - Date of Loss or Damage - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate) - @AjaxHelpers.AjaxLoader() - - - - - Event Location - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() - + + + + + Event Location + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() + - - - - Description - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.Description) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() - + + + + + Description + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.Description) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() + - - - -   - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)@Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() -
-
-
Third Party Name
- @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() + + + + + +   + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused)@Html.LabelFor(m => m.Job.JobMetaInsurance.ThirdPartyCaused) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() +
+
+
Third Party Name
+ @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedName) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() +
+
+
Why Third Parties Fault
+ @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() +
-
-
Why Third Parties Fault
- @Html.EditorFor(m => m.Job.JobMetaInsurance.ThirdPartyCausedWhy) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() -
-
- - - - - Witnessed by (Name/Address) - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() - + + + + + Witnessed by (Name/Address) + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() + - - - - Burglary/Theft - Method of Entry - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() - + + + + + Burglary/Theft - Method of Entry + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() + - - - - Property Last Seen - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate) - @AjaxHelpers.AjaxLoader() - + + + + + Property Last Seen + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate) + @AjaxHelpers.AjaxLoader() + - - - -   - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)@Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() -
-
-
Station
- @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() + + + + + +   + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)@Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() +
+
+
Station
+ @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() +
+
+
Date
+ @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate) + @AjaxHelpers.AjaxLoader() +
+
+
Crime Report #
+ @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() +
-
-
Date
- @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate) - @AjaxHelpers.AjaxLoader() -
-
-
Crime Report #
- @Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() -
-
- - - - - Action to Recover/Reduce Loss - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() - + + + + + Action to Recover/Reduce Loss + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() + - - - - Other Interested Parties - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties) - @AjaxHelpers.AjaxSave() - @AjaxHelpers.AjaxLoader() - + + + + + Other Interested Parties + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties) + @AjaxHelpers.AjaxSave() + @AjaxHelpers.AjaxLoader() + - - - - Date of Purchase - - - @Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase) - @AjaxHelpers.AjaxLoader() - + + + + + Date of Purchase + + + @Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase) + @AjaxHelpers.AjaxLoader() + - - + + + } else { - - Date of Loss or Damage - - - @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null) - - - - Event Location - - - @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation)) - { - <Unknown/None> - } - else - { - @Model.Job.JobMetaInsurance.EventLocation - } - - - - Description - - - @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description)) - { - <None> - } - else - { - @Model.Job.JobMetaInsurance.Description - } - - - - Caused by Third Party - - - @if (Model.Job.JobMetaInsurance.ThirdPartyCaused) - { -
-
-
Third Party Name
- @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName)) - { - <Unknown> - } - else - { - @Model.Job.JobMetaInsurance.ThirdPartyCausedName - } + + + Date of Loss or Damage + + + @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null) + + + + + Event Location + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation)) + { + <Unknown/None> + } + else + { + @Model.Job.JobMetaInsurance.EventLocation + } + + + + + Description + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description)) + { + <None> + } + else + { + @Model.Job.JobMetaInsurance.Description + } + + + + + Caused by Third Party + + + @if (Model.Job.JobMetaInsurance.ThirdPartyCaused) + { +
+
+
Third Party Name
+ @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName)) + { + <Unknown> + } + else + { + @Model.Job.JobMetaInsurance.ThirdPartyCausedName + } +
+
+
Why Third Parties Fault
+ @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy)) + { + <Unknown> + } + else + { + @Model.Job.JobMetaInsurance.ThirdPartyCausedWhy + } +
-
-
Why Third Parties Fault
- @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy)) - { - <Unknown> - } - else - { - @Model.Job.JobMetaInsurance.ThirdPartyCausedWhy - } + } + else + { + <Not Caused by Third Party> + } + + + + + Witnessed by (Name/Address) + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses)) + { + <Unknown/None> + } + else + { + @Model.Job.JobMetaInsurance.WitnessesNamesAddresses + } + + + + + Burglary/Theft - Method of Entry + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)) + { + <Unknown/None> + } + else + { + @Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry + } + + + + + Property Last Seen + + + @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null) + + + + +   + Police Notified + + + @if (Model.Job.JobMetaInsurance.PoliceNotified) + { +
+
+
Station
+ @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation)) + { + <Unknown> + } + else + { + @Model.Job.JobMetaInsurance.PoliceNotifiedStation + } +
+
+
Date
+ @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null) +
+
+
Crime Report #
+ @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)) + { + <Unknown> + } + else + { + @Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo + } +
-
- } - else - { - <Not Caused by Third Party> - } - - - - Witnessed by (Name/Address) - - - @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses)) - { - <Unknown/None> - } - else - { - @Model.Job.JobMetaInsurance.WitnessesNamesAddresses - } - - - - Burglary/Theft - Method of Entry - - - @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)) - { - <Unknown/None> - } - else - { - @Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry - } - - - - Property Last Seen - - - @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null) - - - -   - Police Notified - - - @if (Model.Job.JobMetaInsurance.PoliceNotified) - { -
-
-
Station
- @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation)) - { - <Unknown> - } - else - { - @Model.Job.JobMetaInsurance.PoliceNotifiedStation - } -
-
-
Date
- @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null) -
-
-
Crime Report #
- @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)) - { - <Unknown> - } - else - { - @Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo - } -
-
- } - else - { - <Not Notified> - } - - - - Action to Recover/Reduce Loss - - - @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction)) - { - <Unknown/None> - } - else - { - @Model.Job.JobMetaInsurance.RecoverReduceAction - } - - - - Other Interested Parties - - - @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties)) - { - <Unknown/None> - } - else - { - @Model.Job.JobMetaInsurance.OtherInterestedParties - } - - - - Date of Purchase - - - @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null) - - + } + else + { + <Not Notified> + } + + + + + Action to Recover/Reduce Loss + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction)) + { + <Unknown/None> + } + else + { + @Model.Job.JobMetaInsurance.RecoverReduceAction + } + + + + + Other Interested Parties + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties)) + { + <Unknown/None> + } + else + { + @Model.Job.JobMetaInsurance.OtherInterestedParties + } + + + + + Date of Purchase + + + @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null) + + } if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent)) { - - Claim Form Sent Date - - - @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate") - @(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())) - - - + + + Claim Form Sent Date + + + @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate") + @(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())) + + + + + Insurer + + + @if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer) && !Model.Job.JobMetaInsurance.ClaimFormSentDate.HasValue) + { + if (Model.Job.CanLogInsurance()) + { + @Html.ActionLinkButton("Lodge Insurance Claim", MVC.Job.LogInsurance(Model.Job.Id, null, null)) + } + else + { + Not Logged + } + } + else + { + @Model.Job.JobMetaInsurance.Insurer + if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference)) + { + (reference: @Model.Job.JobMetaInsurance.InsurerReference) + } + } + + } else { - - Claim Form Sent Date - - - @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate") - @(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())) - - + + + Claim Form Sent Date + + + @CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate") + @(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())) + + + + + Insurer + + + @Model.Job.JobMetaInsurance.Insurer + @if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference)) + { + (reference: @Model.Job.JobMetaInsurance.InsurerReference) + } + + + } + if (!string.IsNullOrEmpty(Model.Job.JobMetaInsurance.Insurer)) + { + + + Provider Details + + +
+ Loading... +
+ + + + } } - @if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim)) + @if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim) && Model.Job.JobMetaInsurance == null || string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer)) { - Insurance Claim + + Insurance Claim
diff --git a/Disco.Web/Views/Job/JobParts/Insurance.generated.cs b/Disco.Web/Views/Job/JobParts/Insurance.generated.cs index 1afeca4f..a581185c 100644 --- a/Disco.Web/Views/Job/JobParts/Insurance.generated.cs +++ b/Disco.Web/Views/Job/JobParts/Insurance.generated.cs @@ -74,33 +74,34 @@ WriteLiteral(">\r\n"); #line default #line hidden -WriteLiteral(" \r\n \r\n Date of Loss or Damage\r\n \r\n \r\n"); +WriteLiteral(">\r\n Date of Loss or Damage\r\n \r\n " + +" \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 15 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate)); + #line 16 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.LossOrDamageDate)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 16 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 17 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n '"); - #line 23 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 24 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceLossOrDamageDate(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'LossOrDamageDate\',\r\n null\r\n " + -" );\r\n });\r\n \r\n " + -" \r\n \r\n"); +" );\r\n });\r\n " + +"\r\n \r\n \r\n"); -WriteLiteral(" \r\n Event Location\r\n \r\n " + -"\r\n"); +WriteLiteral(" \r\n \r\n Event Location\r\n " + +" \r\n \r\n"); -WriteLiteral(" "); - - - #line 35 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation)); - - - #line default - #line hidden -WriteLiteral("\r\n"); - -WriteLiteral(" "); - - - #line 36 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); - - - #line default - #line hidden -WriteLiteral("\r\n"); - -WriteLiteral(" "); +WriteLiteral(" "); #line 37 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.EventLocation)); #line default #line hidden -WriteLiteral("\r\n
\r\n " + +" '"); - #line 115 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 119 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceThirdPartyCaused(Model.Job.Id, null))); @@ -395,7 +398,7 @@ WriteLiteral(@"', '"); - #line 121 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 125 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceThirdPartyCausedName(Model.Job.Id, null))); @@ -410,51 +413,51 @@ WriteLiteral(@"', '"); - #line 127 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 131 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceThirdPartyCausedWhy(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'ThirdPartyCausedWhy\'\r\n );" + -"\r\n });\r\n \r\n \r\n " + -" \r\n"); +"\r\n });\r\n \r\n \r" + +"\n \r\n"); -WriteLiteral(" \r\n Witnessed by (Name/Address)\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Witnessed by (Name/Ad" + +"dress)\r\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 138 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses)); + #line 143 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.WitnessesNamesAddresses)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 139 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 144 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 140 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 145 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n '"); - #line 146 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 151 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceWitnessesNamesAddresses(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'WitnessesNamesAddresses\'\r\n " + -" );\r\n });\r\n \r\n \r\n " + -" \r\n"); +" );\r\n });\r\n \r\n \r\n \r\n"); -WriteLiteral(" \r\n Burglary/Theft - Method of Entry\r\n " + -"\r\n \r\n"); +WriteLiteral(" \r\n \r\n Burglary/Theft - Meth" + +"od of Entry\r\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 157 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)); + #line 163 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 158 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 164 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 159 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 165 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n '"); - #line 165 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 171 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceBurglaryTheftMethodOfEntry(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'BurglaryTheftMethodOfEntry\'\r\n " + -" );\r\n });\r\n \r\n \r\n" + -" \r\n"); +" );\r\n });\r\n \r\n " + +" \r\n \r\n"); -WriteLiteral(" \r\n \r\n Property Last Seen\r\n \r\n \r\n"); +WriteLiteral(">\r\n Property Last Seen\r\n \r\n " + +" \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 176 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate)); + #line 183 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PropertyLastSeenDate)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 177 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 184 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n '"); - #line 184 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 191 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsurancePropertyLastSeenDate(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'PropertyLastSeenDate\',\r\n null" + -"\r\n );\r\n });\r\n " + -"\r\n \r\n \r\n"); +"\r\n );\r\n });\r\n \r\n \r\n \r\n"); -WriteLiteral(" \r\n \r\n  \r\n \r\n \r\n"); +WriteLiteral(">\r\n  \r\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 196 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)); + #line 204 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotified)); #line default #line hidden - #line 196 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified)); + #line 204 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.LabelFor(m => m.Job.JobMetaInsurance.PoliceNotified)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 197 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 205 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 198 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 206 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n \r\n
\r\n
Station
\r\n"); +WriteLiteral(">\r\n
\r\n
Station
\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 202 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation)); + #line 210 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedStation)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 203 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 211 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 204 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 212 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n
\r\n
\r\n " + -"
Date
\r\n"); +WriteLiteral("\r\n
\r\n
\r\n " + +"
Date
\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 208 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate)); + #line 216 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedDate)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 209 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 217 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n
\r\n
\r\n " + -"
Crime Report #
\r\n"); +WriteLiteral("\r\n
\r\n
\r\n " + +"
Crime Report #
\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 213 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)); + #line 221 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 214 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 222 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 215 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 223 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n
\r\n
\r\n \r\n
\r\n " + +" '"); - #line 243 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 251 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotified(Model.Job.Id, null))); @@ -768,7 +773,7 @@ WriteLiteral(@"', '"); - #line 249 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 257 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotifiedStation(Model.Job.Id, null))); @@ -784,7 +789,7 @@ WriteLiteral(@"', '"); - #line 256 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 264 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotifiedDate(Model.Job.Id, null))); @@ -801,51 +806,51 @@ WriteLiteral(@"', '"); - #line 264 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 272 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsurancePoliceNotifiedCrimeReportNo(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'PoliceNotifiedCrimeReportNo\'\r\n " + -" );\r\n });\r\n \r\n \r" + -"\n \r\n"); +" );\r\n });\r\n \r\n " + +" \r\n \r\n"); -WriteLiteral(" \r\n Action to Recover/Reduce Loss\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Action to Recover/Red" + +"uce Loss\r\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 275 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction)); + #line 284 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.RecoverReduceAction)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 276 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 285 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 277 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 286 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n \r\n $(function () {\r\n " \'"); - #line 283 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 292 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceRecoverReduceAction(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'RecoverReduceAction\'\r\n );" + -"\r\n });\r\n \r\n \r\n " + -" \r\n"); +"\r\n });\r\n \r\n \r" + +"\n \r\n"); -WriteLiteral(" \r\n Other Interested Parties\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Other Interested Part" + +"ies\r\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 294 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties)); + #line 304 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.OtherInterestedParties)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 295 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxSave()); + #line 305 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxSave()); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 296 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 306 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n '"); - #line 302 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 312 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceOtherInterestedParties(Model.Job.Id, null))); #line default #line hidden WriteLiteral("\',\r\n \'OtherInterestedParties\'\r\n " + -" );\r\n });\r\n \r\n \r\n " + -" \r\n"); +" );\r\n });\r\n \r\n \r\n \r\n"); -WriteLiteral(" \r\n \r\n Date of Purchase\r\n \r\n \r\n"); +WriteLiteral(">\r\n Date of Purchase\r\n \r\n <" + +"td>\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 313 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase)); + #line 324 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Html.EditorFor(m => m.Job.JobMetaInsurance.DateOfPurchase)); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 314 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(AjaxHelpers.AjaxLoader()); + #line 325 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(AjaxHelpers.AjaxLoader()); #line default #line hidden -WriteLiteral("\r\n '"); - #line 321 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 332 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Url.Action(MVC.API.Job.UpdateInsuranceDateOfPurchase(Model.Job.Id, null))); @@ -968,10 +974,10 @@ WriteLiteral(@"> #line hidden WriteLiteral("\',\r\n \'DateOfPurchase\',\r\n null,\r\n " + " true\r\n );\r\n });\r\n" + -" \r\n \r\n \r\n"); +" \r\n \r\n \r\n"); - #line 330 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 341 "..\..\Views\Job\JobParts\Insurance.cshtml" } else { @@ -979,655 +985,662 @@ WriteLiteral("\',\r\n \'DateOfPurchase\',\r\n #line default #line hidden -WriteLiteral(" \r\n \r\n Date of Loss or Damage\r\n \r\n \r\n"); +WriteLiteral(">\r\n Date of Loss or Damage\r\n \r\n " + +" \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 337 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null)); + #line 349 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.LossOrDamageDate, "Unknown", null)); #line default #line hidden -WriteLiteral("\r\n \r\n \r\n"); +WriteLiteral("\r\n \r\n \r\n"); -WriteLiteral(" \r\n Event Location\r\n \r\n " + -"\r\n"); +WriteLiteral(" \r\n \r\n Event Location\r\n " + +" \r\n \r\n"); - #line 344 "..\..\Views\Job\JobParts\Insurance.cshtml" - + #line 357 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line default #line hidden - #line 344 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation)) - { + #line 357 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.EventLocation)) + { #line default #line hidden -WriteLiteral(" <Unknown/None>\r\n"); - #line 347 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + #line 360 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden + + #line 363 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.EventLocation); + + + #line default + #line hidden + + #line 363 "..\..\Views\Job\JobParts\Insurance.cshtml" + + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + +WriteLiteral(" \r\n \r\n Description\r\n " + +" \r\n \r\n"); + + + #line 372 "..\..\Views\Job\JobParts\Insurance.cshtml" #line default #line hidden - #line 350 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.EventLocation); + #line 372 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description)) + { #line default #line hidden - - #line 350 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral(" \r\n \r\n"); - -WriteLiteral(" \r\n Description\r\n \r\n \r\n"); - - - #line 358 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 358 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Description)) - { - - - #line default - #line hidden -WriteLiteral(" <None>\r\n"); - #line 361 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + #line 375 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden + + #line 378 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.Description); + + + #line default + #line hidden + + #line 378 "..\..\Views\Job\JobParts\Insurance.cshtml" + + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + +WriteLiteral(" \r\n \r\n Caused by Third Party\r\n \r\n " + +" \r\n"); + + + #line 387 "..\..\Views\Job\JobParts\Insurance.cshtml" #line default #line hidden - #line 364 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.Description); + #line 387 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (Model.Job.JobMetaInsurance.ThirdPartyCaused) + { #line default #line hidden - - #line 364 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral(" \r\n \r\n"); - -WriteLiteral(" \r\n Caused by Third Party\r\n \r\n \r\n"); - - - #line 372 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 372 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (Model.Job.JobMetaInsurance.ThirdPartyCaused) - { - - - #line default - #line hidden -WriteLiteral(" \r\n
\r\n
Third Party Nam" + -"e
\r\n"); +WriteLiteral(">\r\n
\r\n
Third P" + +"arty Name
\r\n"); - #line 377 "..\..\Views\Job\JobParts\Insurance.cshtml" - + #line 392 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line default #line hidden - #line 377 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName)) - { + #line 392 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedName)) + { #line default #line hidden -WriteLiteral(" <Unknown>\r\n"); - #line 380 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { - + #line 395 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + #line default #line hidden - #line 383 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.ThirdPartyCausedName); - - - #line default - #line hidden - - #line 383 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral("
\r\n
\r\n " + -"
Why Third Parties Fault
\r\n"); - - - #line 388 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 388 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy)) - { - - - #line default - #line hidden -WriteLiteral(" <Unknown>\r\n"); - - - #line 391 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { - - - #line default - #line hidden - - #line 394 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.ThirdPartyCausedWhy); - - - #line default - #line hidden - - #line 394 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral("
\r\n
\r\n"); - - #line 398 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + Write(Model.Job.JobMetaInsurance.ThirdPartyCausedName); #line default #line hidden -WriteLiteral("
\r\n"); + + + #line 413 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden +WriteLiteral(" <Not Caused by Third Party>\r\n"); - #line 402 "..\..\Views\Job\JobParts\Insurance.cshtml" - } + #line 417 "..\..\Views\Job\JobParts\Insurance.cshtml" + } #line default #line hidden -WriteLiteral(" \r\n \r\n"); +WriteLiteral(" \r\n \r\n"); -WriteLiteral(" \r\n Witnessed by (Name/Address)\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Witnessed by (Name/Ad" + +"dress)\r\n \r\n \r\n"); - #line 409 "..\..\Views\Job\JobParts\Insurance.cshtml" - + #line 425 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line default #line hidden - #line 409 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses)) - { + #line 425 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.WitnessesNamesAddresses)) + { #line default #line hidden -WriteLiteral(" <Unknown/None>\r\n"); - #line 412 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + #line 428 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden + + #line 431 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.WitnessesNamesAddresses); + + + #line default + #line hidden + + #line 431 "..\..\Views\Job\JobParts\Insurance.cshtml" + + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + +WriteLiteral(" \r\n \r\n Burglary/Theft - Meth" + +"od of Entry\r\n \r\n \r\n"); + + + #line 440 "..\..\Views\Job\JobParts\Insurance.cshtml" #line default #line hidden - #line 415 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.WitnessesNamesAddresses); + #line 440 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)) + { #line default #line hidden - - #line 415 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral(" \r\n \r\n"); - -WriteLiteral(" \r\n Burglary/Theft - Method of Entry\r\n " + -"\r\n \r\n"); - - - #line 423 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 423 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry)) - { - - - #line default - #line hidden -WriteLiteral(" <Unknown/None>\r\n"); - #line 426 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + #line 443 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden + + #line 446 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry); + + + #line default + #line hidden + + #line 446 "..\..\Views\Job\JobParts\Insurance.cshtml" + + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + +WriteLiteral(" \r\n \r\n Property Last Seen\r\n \r\n " + +" \r\n"); + +WriteLiteral(" "); + + + #line 455 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null)); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n \r\n"); + +WriteLiteral(" \r\n \r\n  \r\n Police Notified\r\n " + +" \r\n \r\n"); + + + #line 464 "..\..\Views\Job\JobParts\Insurance.cshtml" #line default #line hidden - #line 429 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.BurglaryTheftMethodOfEntry); + #line 464 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (Model.Job.JobMetaInsurance.PoliceNotified) + { #line default #line hidden - - #line 429 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral(" \r\n \r\n"); - -WriteLiteral(" \r\n Property Last Seen\r\n \r\n \r\n"); - -WriteLiteral(" "); - - - #line 437 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PropertyLastSeenDate, "Unknown", null)); - - - #line default - #line hidden -WriteLiteral("\r\n \r\n \r\n"); - -WriteLiteral(" \r\n  \r\n Police Notified\r\n \r\n \r\n"); - - - #line 445 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 445 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (Model.Job.JobMetaInsurance.PoliceNotified) - { - - - #line default - #line hidden -WriteLiteral(" \r\n
\r\n
Station
\r\n"); +WriteLiteral(">\r\n
\r\n
Station" + +"
\r\n"); - #line 450 "..\..\Views\Job\JobParts\Insurance.cshtml" - + #line 469 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line default #line hidden - #line 450 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation)) - { + #line 469 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedStation)) + { #line default #line hidden -WriteLiteral(" <Unknown>\r\n"); - #line 453 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { - + #line 472 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + #line default #line hidden - #line 456 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.PoliceNotifiedStation); - - - #line default - #line hidden - - #line 456 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral("
\r\n
\r\n " + -"
Date
\r\n"); - -WriteLiteral(" "); - - - #line 461 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.PoliceNotifiedDate, "Unknown", null)); - - - #line default - #line hidden -WriteLiteral("\r\n
\r\n
\r\n " + -"
Crime Report #
\r\n"); - - - #line 465 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 465 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo)) - { - - - #line default - #line hidden -WriteLiteral(" <Unknown>\r\n"); - - - #line 468 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { - - - #line default - #line hidden - - #line 471 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.PoliceNotifiedCrimeReportNo); - - - #line default - #line hidden - - #line 471 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral("
\r\n
\r\n"); - - #line 475 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + Write(Model.Job.JobMetaInsurance.PoliceNotifiedStation); #line default #line hidden -WriteLiteral("
\r\n"); + + + #line 494 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden +WriteLiteral(" <Not Notified>\r\n"); - #line 479 "..\..\Views\Job\JobParts\Insurance.cshtml" - } + #line 498 "..\..\Views\Job\JobParts\Insurance.cshtml" + } #line default #line hidden -WriteLiteral(" \r\n \r\n"); +WriteLiteral(" \r\n \r\n"); -WriteLiteral(" \r\n Action to Recover/Reduce Loss\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Action to Recover/Red" + +"uce Loss\r\n \r\n \r\n"); - #line 486 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 486 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction)) - { - - - #line default - #line hidden -WriteLiteral(" <Unknown/None>\r\n"); - - - #line 489 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { - - - #line default - #line hidden - - #line 492 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.RecoverReduceAction); - - - #line default - #line hidden - - #line 492 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } - - - #line default - #line hidden -WriteLiteral(" \r\n \r\n"); - -WriteLiteral(" \r\n Other Interested Parties\r\n \r\n " + -" \r\n"); - - - #line 500 "..\..\Views\Job\JobParts\Insurance.cshtml" - - - #line default - #line hidden - - #line 500 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties)) - { - - - #line default - #line hidden -WriteLiteral(" <Unknown/None>\r\n"); - - - #line 503 "..\..\Views\Job\JobParts\Insurance.cshtml" - } - else - { + #line 506 "..\..\Views\Job\JobParts\Insurance.cshtml" #line default #line hidden #line 506 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(Model.Job.JobMetaInsurance.OtherInterestedParties); + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.RecoverReduceAction)) + { + + + #line default + #line hidden +WriteLiteral(" <Unknown/None>\r\n"); + + + #line 509 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden + + #line 512 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.RecoverReduceAction); #line default #line hidden - #line 506 "..\..\Views\Job\JobParts\Insurance.cshtml" - - } + #line 512 "..\..\Views\Job\JobParts\Insurance.cshtml" + + } #line default #line hidden -WriteLiteral(" \r\n \r\n"); +WriteLiteral(" \r\n \r\n"); -WriteLiteral(" \r\n \r\n \r\n Other Interested Part" + +"ies\r\n \r\n \r\n"); + + + #line 521 "..\..\Views\Job\JobParts\Insurance.cshtml" + + + #line default + #line hidden + + #line 521 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.OtherInterestedParties)) + { + + + #line default + #line hidden +WriteLiteral(" <Unknown/None>\r\n"); + + + #line 524 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + else + { + + + #line default + #line hidden + + #line 527 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.OtherInterestedParties); + + + #line default + #line hidden + + #line 527 "..\..\Views\Job\JobParts\Insurance.cshtml" + + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + +WriteLiteral(" \r\n Date of Purchase\r\n \r\n \r\n"); +WriteLiteral(">\r\n Date of Purchase\r\n \r\n <" + +"td>\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 514 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null)); + #line 536 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.DateOfPurchase, "Unknown", null)); #line default #line hidden -WriteLiteral("\r\n \r\n \r\n"); +WriteLiteral("\r\n \r\n \r\n"); - #line 517 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 539 "..\..\Views\Job\JobParts\Insurance.cshtml" } if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent)) { @@ -1635,61 +1648,131 @@ WriteLiteral("\r\n \r\n \r\n"); #line default #line hidden -WriteLiteral(" \r\n Claim Form Sent Date\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Claim Form Sent Date\r" + +"\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 524 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")); + #line 547 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")); #line default #line hidden -WriteLiteral("\r\n "); - #line 525 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())); + #line 548 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())); #line default #line hidden -WriteLiteral("\r\n - - -"); +WriteLiteral(" Not Logged\r\n"); - #line 536 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 565 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + } + else + { + + + #line default + #line hidden +WriteLiteral(" "); + + + #line 569 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.Insurer); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 570 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference)) + { + + + #line default + #line hidden +WriteLiteral(" (reference: "); + + + #line 572 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.InsurerReference); + + + #line default + #line hidden +WriteLiteral(")\r\n"); + + + #line 573 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + + + #line 577 "..\..\Views\Job\JobParts\Insurance.cshtml" } else { @@ -1697,35 +1780,166 @@ WriteLiteral(@"'; #line default #line hidden -WriteLiteral(" \r\n Claim Form Sent Date\r\n \r\n " + -" \r\n"); +WriteLiteral(" \r\n \r\n Claim Form Sent Date\r" + +"\n \r\n \r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 543 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")); + #line 585 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(CommonHelpers.FriendlyDate(Model.Job.JobMetaInsurance.ClaimFormSentDate, "Not Sent", "Job_JobMetaInsurance_ClaimFormSentDate")); #line default #line hidden -WriteLiteral("\r\n "); - #line 544 "..\..\Views\Job\JobParts\Insurance.cshtml" - Write(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())); + #line 586 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(string.IsNullOrEmpty(Model.Job.JobMetaInsurance.ClaimFormSentUserId) ? string.Empty : string.Format("by {0}", Model.Job.JobMetaInsurance.ClaimFormSentUser.ToString())); #line default #line hidden -WriteLiteral("\r\n \r\n \r\n"); +WriteLiteral("\r\n \r\n \r\n"); + +WriteLiteral(" \r\n \r\n Insurer\r\n " + +" \r\n \r\n "); - #line 547 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 594 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.Insurer); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 595 "..\..\Views\Job\JobParts\Insurance.cshtml" + + + #line default + #line hidden + + #line 595 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (!string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.InsurerReference)) + { + + + #line default + #line hidden +WriteLiteral(" (reference: "); + + + #line 597 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Model.Job.JobMetaInsurance.InsurerReference); + + + #line default + #line hidden +WriteLiteral(")\r\n"); + + + #line 598 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n"); + + + #line 601 "..\..\Views\Job\JobParts\Insurance.cshtml" + } + if (!string.IsNullOrEmpty(Model.Job.JobMetaInsurance.Insurer)) + { + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n Provider Details\r\n \r\n <" + +"td>\r\n \r\n Loading...\r\n
\r\n \r\n \r\n \r\n \r\n"); + +WriteLiteral(" + $(function () { + let providerDetailLoaded = false; + + $('#jobDetailTabs').on('tabsactivate', function (e, ui) { + if ($(ui.newPanel).is('#jobDetailTab-NonWarrantyInsurance')) { + if (!providerDetailLoaded) { + $('#jobInsuranceProviderDetailContainer').show(); + $('#jobRepairProviderDetailLoading span').show(); + $('#jobInsuranceProviderDetailHost').load( + '"); + + + #line 626 "..\..\Views\Job\JobParts\Insurance.cshtml" + Write(Url.Action(MVC.Job.InsuranceProviderJobDetails(Model.Job.Id))); + + + #line default + #line hidden +WriteLiteral(@"', + function () { + $('#jobInsuranceProviderDetailLoading').hide(); + $(this).slideDown(); + } + ); + providerDetailLoaded = true; + } + } + }); + }); + +"); + + + #line 638 "..\..\Views\Job\JobParts\Insurance.cshtml" } } @@ -1735,28 +1949,28 @@ WriteLiteral("\r\n \r\n \r\n"); WriteLiteral(" "); - #line 549 "..\..\Views\Job\JobParts\Insurance.cshtml" - if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim)) + #line 640 "..\..\Views\Job\JobParts\Insurance.cshtml" + if (Authorization.Has(Claims.Job.Properties.NonWarrantyProperties.IsInsuranceClaim) && Model.Job.JobMetaInsurance == null || string.IsNullOrWhiteSpace(Model.Job.JobMetaInsurance.Insurer)) { #line default #line hidden -WriteLiteral(" \r\n Insurance Claim\r\n \r\n \r\n \r\n \r\n Insurance Claim\r\n \r\n \r\n \r\n"); - #line 556 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 648 "..\..\Views\Job\JobParts\Insurance.cshtml" #line default #line hidden - #line 556 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 648 "..\..\Views\Job\JobParts\Insurance.cshtml" if (Model.Job.JobMetaNonWarranty.IsInsuranceClaim) { @@ -1764,14 +1978,14 @@ WriteLiteral(">\r\n"); #line default #line hidden - #line 558 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 650 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Html.ActionLinkButton("Remove Insurance Claim", MVC.API.Job.UpdateNonWarrantyIsInsuranceClaim(Model.Job.Id, false, true))); #line default #line hidden - #line 558 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 650 "..\..\Views\Job\JobParts\Insurance.cshtml" } else @@ -1781,14 +1995,14 @@ WriteLiteral(">\r\n"); #line default #line hidden - #line 562 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 654 "..\..\Views\Job\JobParts\Insurance.cshtml" Write(Html.ActionLinkButton("Add Insurance Claim", MVC.API.Job.UpdateNonWarrantyIsInsuranceClaim(Model.Job.Id, true, true))); #line default #line hidden - #line 562 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 654 "..\..\Views\Job\JobParts\Insurance.cshtml" } @@ -1798,7 +2012,7 @@ WriteLiteral(">\r\n"); WriteLiteral(" \r\n \r\n \r\n"); - #line 567 "..\..\Views\Job\JobParts\Insurance.cshtml" + #line 659 "..\..\Views\Job\JobParts\Insurance.cshtml" } diff --git a/Disco.Web/Views/Job/JobParts/Repairs.cshtml b/Disco.Web/Views/Job/JobParts/Repairs.cshtml index e6fb3500..22aac953 100644 --- a/Disco.Web/Views/Job/JobParts/Repairs.cshtml +++ b/Disco.Web/Views/Job/JobParts/Repairs.cshtml @@ -128,7 +128,7 @@ @if (Model.Job.CanLogRepair()) { - @Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button") + @Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button") } else { diff --git a/Disco.Web/Views/Job/JobParts/Repairs.generated.cs b/Disco.Web/Views/Job/JobParts/Repairs.generated.cs index 45f61e11..95bc7f05 100644 --- a/Disco.Web/Views/Job/JobParts/Repairs.generated.cs +++ b/Disco.Web/Views/Job/JobParts/Repairs.generated.cs @@ -599,14 +599,14 @@ WriteLiteral(">Actions\r\n \r\n \r\n"); #line hidden #line 131 "..\..\Views\Job\JobParts\Repairs.cshtml" - Write(Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button")); + Write(Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Repair_Actions_LogRepair_Button")); #line default #line hidden #line 131 "..\..\Views\Job\JobParts\Repairs.cshtml" - + } else { diff --git a/Disco.Web/Views/Job/JobParts/Warranty.cshtml b/Disco.Web/Views/Job/JobParts/Warranty.cshtml index 86a57b47..b8f8b60e 100644 --- a/Disco.Web/Views/Job/JobParts/Warranty.cshtml +++ b/Disco.Web/Views/Job/JobParts/Warranty.cshtml @@ -127,7 +127,7 @@ @if (Model.Job.CanLogWarranty()) { - @Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button") + @Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button") } else { diff --git a/Disco.Web/Views/Job/JobParts/Warranty.generated.cs b/Disco.Web/Views/Job/JobParts/Warranty.generated.cs index 378bcbd8..fce1eef7 100644 --- a/Disco.Web/Views/Job/JobParts/Warranty.generated.cs +++ b/Disco.Web/Views/Job/JobParts/Warranty.generated.cs @@ -612,14 +612,14 @@ WriteLiteral(">Actions\r\n \r\n \r\n"); #line hidden #line 130 "..\..\Views\Job\JobParts\Warranty.cshtml" - Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button")); + Write(Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Warranty_Actions_LogWarranty_Button")); #line default #line hidden #line 130 "..\..\Views\Job\JobParts\Warranty.cshtml" - + } else { diff --git a/Disco.Web/Views/Job/JobParts/_Subject.cshtml b/Disco.Web/Views/Job/JobParts/_Subject.cshtml index c4f7b1c5..038e6205 100644 --- a/Disco.Web/Views/Job/JobParts/_Subject.cshtml +++ b/Disco.Web/Views/Job/JobParts/_Subject.cshtml @@ -882,19 +882,19 @@ } @if (Model.Job.CanLogWarranty()) { - @Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button") + @Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button") } @if (Model.Job.CanWarrantyCompleted()) { @Html.ActionLinkSmallButton("Warranty Complete", MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_WarrantyComplete_Button", "alert") } - @if (Model.Job.CanInsuranceClaimFormSent()) + @if (Model.Job.CanLogInsurance()) { - @Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert") + @Html.ActionLinkSmallButton("Lodge Insurance", MVC.Job.LogInsurance(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogInsurance_Button", "alert") } @if (Model.Job.CanLogRepair()) { - @Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button") + @Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button") } @if (Model.Job.CanRepairComplete()) { diff --git a/Disco.Web/Views/Job/JobParts/_Subject.generated.cs b/Disco.Web/Views/Job/JobParts/_Subject.generated.cs index 4c0d221e..d8e932c0 100644 --- a/Disco.Web/Views/Job/JobParts/_Subject.generated.cs +++ b/Disco.Web/Views/Job/JobParts/_Subject.generated.cs @@ -2980,14 +2980,14 @@ WriteLiteral(" "); #line hidden #line 885 "..\..\Views\Job\JobParts\_Subject.cshtml" - Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button")); + Write(Html.ActionLinkSmallButton("Lodge Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button")); #line default #line hidden #line 885 "..\..\Views\Job\JobParts\_Subject.cshtml" - + } @@ -3022,7 +3022,7 @@ WriteLiteral(" "); #line 891 "..\..\Views\Job\JobParts\_Subject.cshtml" - if (Model.Job.CanInsuranceClaimFormSent()) + if (Model.Job.CanLogInsurance()) { @@ -3030,14 +3030,14 @@ WriteLiteral(" "); #line hidden #line 893 "..\..\Views\Job\JobParts\_Subject.cshtml" - Write(Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert")); + Write(Html.ActionLinkSmallButton("Lodge Insurance", MVC.Job.LogInsurance(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogInsurance_Button", "alert")); #line default #line hidden #line 893 "..\..\Views\Job\JobParts\_Subject.cshtml" - + } @@ -3055,14 +3055,14 @@ WriteLiteral(" "); #line hidden #line 897 "..\..\Views\Job\JobParts\_Subject.cshtml" - Write(Html.ActionLinkSmallButton("Log Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button")); + Write(Html.ActionLinkSmallButton("Lodge Repair", MVC.Job.LogRepair(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogRepair_Button")); #line default #line hidden #line 897 "..\..\Views\Job\JobParts\_Subject.cshtml" - + } diff --git a/Disco.Web/Views/Job/LogInsurance.cshtml b/Disco.Web/Views/Job/LogInsurance.cshtml new file mode 100644 index 00000000..8b8f5e8d --- /dev/null +++ b/Disco.Web/Views/Job/LogInsurance.cshtml @@ -0,0 +1,185 @@ +@model Disco.Web.Models.Job.LogInsuranceModel +@{ + Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); + + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim"); +} +@using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post)) +{ + @Html.AntiForgeryToken() + @Html.ValidationSummary(true) + @Html.HiddenFor(m => m.JobId) + @Html.ValidationMessageFor(m => m.JobId) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + @if (Model.IsManualProvider) + { + + + + + + + + + } +
Internal Job Id: + + @Model.JobId +
Device Serial Number: + + @Model.Job.Device.SerialNumber +
Device Model: + + @Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model +
Technician: + + @Model.TechUser.DisplayName +
+ Email Address: @Model.TechUser.EmailAddress
+ Phone Number: @Model.TechUser.PhoneNumber +
+
Address: + + @Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))
+ @Html.ValidationMessageFor(m => m.OrganisationAddressId) +
+ @{ + var oa = Model.OrganisationAddress; + if (oa != null) + { + @oa.Address +
+ @oa.Suburb, @oa.Postcode +
+ @oa.State, @oa.Country + } + } +
+
Insurance Provider: + + @Html.DropDownListFor(model => model.ProviderId, Model.Providers.ToSelectListItems(Model.ProviderId, AdditionalItems: new Dictionary() { { "MANUAL", "" } }))
+ @Html.ValidationMessageFor(m => m.ProviderId) + @if (Model.Providers.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install)) + { +
+

+ View the Plugin Catalogue to discover and install provider plugins. +

+
+ } +
Insurer Name: + @Html.EditorFor(model => model.ManualProviderName)
+ @Html.ValidationMessageFor(m => m.ManualProviderName) +
Insurer Reference: + @Html.EditorFor(model => model.ManualProviderReference)
+ @Html.ValidationMessageFor(m => m.ManualProviderReference) +
+
+ if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0) + { + + } + if (Model.Provider != null && Model.ProviderSubmitJobBeginResult != null) + { +
+ @Html.PartialCompiled(Model.ProviderSubmitJobBeginResult.Item1, Model.ProviderSubmitJobBeginResult.Item2) +
+ } +
+ @if (Model.IsManualProvider) + { + + } + else + { + + } +
+} + diff --git a/Disco.Web/Views/Job/LogInsurance.generated.cs b/Disco.Web/Views/Job/LogInsurance.generated.cs new file mode 100644 index 00000000..cb45d009 --- /dev/null +++ b/Disco.Web/Views/Job/LogInsurance.generated.cs @@ -0,0 +1,855 @@ +#pragma warning disable 1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Disco.Web.Views.Job +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Text; + using System.Web; + using System.Web.Helpers; + using System.Web.Mvc; + using System.Web.Mvc.Ajax; + using System.Web.Mvc.Html; + using System.Web.Routing; + using System.Web.Security; + using System.Web.UI; + using System.Web.WebPages; + using Disco; + using Disco.Models.Repository; + using Disco.Services; + using Disco.Services.Authorization; + using Disco.Services.Web; + using Disco.Web; + using Disco.Web.Extensions; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] + [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/LogInsurance.cshtml")] + public partial class LogInsurance : Disco.Services.Web.WebViewPage + { + public LogInsurance() + { + } + public override void Execute() + { + + #line 2 "..\..\Views\Job\LogInsurance.cshtml" + + Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); + + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim"); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 7 "..\..\Views\Job\LogInsurance.cshtml" + using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post)) +{ + + + #line default + #line hidden + + #line 9 "..\..\Views\Job\LogInsurance.cshtml" +Write(Html.AntiForgeryToken()); + + + #line default + #line hidden + + #line 9 "..\..\Views\Job\LogInsurance.cshtml" + + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogInsurance.cshtml" +Write(Html.ValidationSummary(true)); + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogInsurance.cshtml" + + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogInsurance.cshtml" +Write(Html.HiddenFor(m => m.JobId)); + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogInsurance.cshtml" + + + + #line default + #line hidden + + #line 12 "..\..\Views\Job\LogInsurance.cshtml" +Write(Html.ValidationMessageFor(m => m.JobId)); + + + #line default + #line hidden + + #line 12 "..\..\Views\Job\LogInsurance.cshtml" + + + + #line default + #line hidden +WriteLiteral(" (Model.IsManualProvider ? "Manual" : "Disclose" + + #line default + #line hidden +, 618), false) +); + +WriteLiteral(" />\r\n"); + +WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n Device Serial Number:\r\n \r\n \r\n \r\n \r\n Device Model:\r\n \r\n \r\n \r\n \r\n Technician:\r\n \r\n \r\n \r\n " + +" \r\n Address:\r\n \r\n \r\n \r\n " + +" \r\n \r\n " + +" \r\n \r\n"); + + + #line 85 "..\..\Views\Job\LogInsurance.cshtml" + + + #line default + #line hidden + + #line 85 "..\..\Views\Job\LogInsurance.cshtml" + if (Model.IsManualProvider) + { + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n " + +" \r\n \r\n"); + +WriteLiteral(" \r\n \r\n " + +" \r\n \r\n"); + + + #line 101 "..\..\Views\Job\LogInsurance.cshtml" + } + + + #line default + #line hidden +WriteLiteral("
Internal Job Id:\r\n " + +" \r\n"); + +WriteLiteral(" "); + + + #line 20 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.JobId); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" "); + + + #line 27 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.Job.Device.SerialNumber); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" "); + + + #line 34 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.Job.Device.DeviceModel.Manufacturer); + + + #line default + #line hidden +WriteLiteral(" "); + + + #line 34 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.Job.Device.DeviceModel.Model); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" "); + + + #line 41 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.TechUser.DisplayName); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n Email Address: "); + + + #line 43 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.TechUser.EmailAddress); + + + #line default + #line hidden +WriteLiteral("
\r\n Phone Number: "); + + + #line 44 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.TechUser.PhoneNumber); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n
\r\n"); + +WriteLiteral(" "); + + + #line 52 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))); + + + #line default + #line hidden +WriteLiteral("
\r\n"); + +WriteLiteral(" "); + + + #line 53 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.ValidationMessageFor(m => m.OrganisationAddressId)); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n"); + + + #line 55 "..\..\Views\Job\LogInsurance.cshtml" + + + #line default + #line hidden + + #line 55 "..\..\Views\Job\LogInsurance.cshtml" + + var oa = Model.OrganisationAddress; + if (oa != null) + { + + + #line default + #line hidden +WriteLiteral(" "); + + + #line 59 "..\..\Views\Job\LogInsurance.cshtml" + Write(oa.Address); + + + #line default + #line hidden +WriteLiteral("\r\n"); + +WriteLiteral("
\r\n"); + +WriteLiteral(" "); + + + #line 61 "..\..\Views\Job\LogInsurance.cshtml" + Write(oa.Suburb); + + + #line default + #line hidden +WriteLiteral(", "); + + + #line 61 "..\..\Views\Job\LogInsurance.cshtml" + Write(oa.Postcode); + + + #line default + #line hidden +WriteLiteral("\r\n"); + +WriteLiteral("
\r\n"); + +WriteLiteral(" "); + + + #line 63 "..\..\Views\Job\LogInsurance.cshtml" + Write(oa.State); + + + #line default + #line hidden +WriteLiteral(", "); + + + #line 63 "..\..\Views\Job\LogInsurance.cshtml" + Write(oa.Country); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 64 "..\..\Views\Job\LogInsurance.cshtml" + } + + + #line default + #line hidden +WriteLiteral("\r\n \r\n
Insurance Provider:\r\n \r\n"); + +WriteLiteral(" "); + + + #line 73 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.DropDownListFor(model => model.ProviderId, Model.Providers.ToSelectListItems(Model.ProviderId, AdditionalItems: new Dictionary() { { "MANUAL", "" } }))); + + + #line default + #line hidden +WriteLiteral("
\r\n"); + +WriteLiteral(" "); + + + #line 74 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.ValidationMessageFor(m => m.ProviderId)); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 75 "..\..\Views\Job\LogInsurance.cshtml" + + + #line default + #line hidden + + #line 75 "..\..\Views\Job\LogInsurance.cshtml" + if (Model.Providers.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install)) + { + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n View the (Url.Action(MVC.Config.Plugins.Install()) + + #line default + #line hidden +, 3394), false) +); + +WriteLiteral(">Plugin Catalogue to discover and install provider plugins.\r\n " + +"

\r\n \r\n"); + + + #line 82 "..\..\Views\Job\LogInsurance.cshtml" + } + + + #line default + #line hidden +WriteLiteral("
Insurer Name:\r\n"); + +WriteLiteral(" "); + + + #line 90 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.EditorFor(model => model.ManualProviderName)); + + + #line default + #line hidden +WriteLiteral("
\r\n"); + +WriteLiteral(" "); + + + #line 91 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.ValidationMessageFor(m => m.ManualProviderName)); + + + #line default + #line hidden +WriteLiteral("\r\n
Insurer Reference:\r\n"); + +WriteLiteral(" "); + + + #line 97 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.EditorFor(model => model.ManualProviderReference)); + + + #line default + #line hidden +WriteLiteral("
\r\n"); + +WriteLiteral(" "); + + + #line 98 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.ValidationMessageFor(m => m.ManualProviderReference)); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n \r\n"); + + + #line 104 "..\..\Views\Job\LogInsurance.cshtml" + if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0) + { + + + #line default + #line hidden +WriteLiteral(" \r\n

Send Attachments

\r\n \r\n \r\n " + +" \r\n \r\n \r\n \r\n"); + + + #line 131 "..\..\Views\Job\LogInsurance.cshtml" + } + if (Model.Provider != null && Model.ProviderSubmitJobBeginResult != null) + { + + + #line default + #line hidden +WriteLiteral(" \r\n"); + +WriteLiteral(" "); + + + #line 135 "..\..\Views\Job\LogInsurance.cshtml" + Write(Html.PartialCompiled(Model.ProviderSubmitJobBeginResult.Item1, Model.ProviderSubmitJobBeginResult.Item2)); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n"); + + + #line 137 "..\..\Views\Job\LogInsurance.cshtml" + } + + + #line default + #line hidden +WriteLiteral(" \r\n"); + + + #line 139 "..\..\Views\Job\LogInsurance.cshtml" + + + #line default + #line hidden + + #line 139 "..\..\Views\Job\LogInsurance.cshtml" + if (Model.IsManualProvider) + { + + + #line default + #line hidden +WriteLiteral(" \r\n"); + + + #line 142 "..\..\Views\Job\LogInsurance.cshtml" + } + else + { + + + #line default + #line hidden +WriteLiteral(" \r\n"); + + + #line 146 "..\..\Views\Job\LogInsurance.cshtml" + } + + + #line default + #line hidden +WriteLiteral(" \r\n"); + + + #line 148 "..\..\Views\Job\LogInsurance.cshtml" +} + + + #line default + #line hidden +WriteLiteral("\r\n $(function () {\r\n var $providerId = $(\'#ProviderId\');\r\n var " + +"$addressId = $(\'#OrganisationAddressId\');\r\n\r\n function updateDetails() {\r" + +"\n $(\'
\').attr({\r\n action: $providerId.closest(\'fo" + +"rm\').attr(\'action\'),\r\n method: \'post\'\r\n }).append(\r\n " + +" $(\'\').attr({ type: \'hidden\', name: \'SubmissionAction\', valu" + +"e: \'Update\' })\r\n ).append(\r\n $(\'\').attr({ type:" + +" \'hidden\', name: \'JobId\', value: $(\'#JobId\').val() })\r\n ).append(\r\n " + +" $(\'\').attr({ type: \'hidden\', name: \'ProviderId\', value: $pr" + +"oviderId.val() })\r\n ).append(\r\n $(\'\').attr({ ty" + +"pe: \'hidden\', name: \'OrganisationAddressId\', value: $addressId.val() })\r\n " + +" ).append(\r\n $(\'\').attr({ type: \'hidden\', name: \'Manua" + +"lProviderName\', value: $(\'#ManualProviderName\').val() })\r\n ).append(\r" + +"\n $(\'\').attr({ type: \'hidden\', name: \'ManualProviderRefere" + +"nce\', value: $(\'#ManualProviderReference\').val() })\r\n ).append(\r\n " + +" $(\'\').attr({ type: \'hidden\', name: \'__RequestVerificationToke" + +"n\', value: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationTo" + +"ken\"]\').val() })\r\n ).appendTo(\'body\').submit();\r\n }\r\n\r\n " + +" $providerId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n" + +"\r\n var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProv" + +"ider.length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();" + +"\r\n } else {\r\n $(\'#ProviderId\').focus();\r\n }\r\n });\r\n<" + +"/script>\r\n"); + + } + } +} +#pragma warning restore 1591 diff --git a/Disco.Web/Views/Job/LogInsuranceDisclose.cshtml b/Disco.Web/Views/Job/LogInsuranceDisclose.cshtml new file mode 100644 index 00000000..33983495 --- /dev/null +++ b/Disco.Web/Views/Job/LogInsuranceDisclose.cshtml @@ -0,0 +1,145 @@ +@model Disco.Web.Models.Job.LogInsuranceModel +@{ + Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); + + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim"); +} +@using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post)) +{ + @Html.AntiForgeryToken() + @Html.ValidationSummary(true) + @Html.HiddenFor(m => m.JobId) + @Html.HiddenFor(m => m.OrganisationAddressId) + @Html.HiddenFor(m => m.ProviderId) + @Html.HiddenFor(m => m.ProviderPropertiesJson) + +
+
\r\n \r\n"); + + + #line 112 "..\..\Views\Job\LogInsurance.cshtml" + + + #line default + #line hidden + + #line 112 "..\..\Views\Job\LogInsurance.cshtml" + foreach (var ja in Model.Job.JobAttachments) + { + + + #line default + #line hidden +WriteLiteral(" (Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) + + #line default + #line hidden +, 4846), false) +); + +WriteLiteral(" data-attachmentid=\""); + + + #line 114 "..\..\Views\Job\LogInsurance.cshtml" + Write(ja.Id); + + + #line default + #line hidden +WriteLiteral("\""); + +WriteLiteral(" data-mimetype=\""); + + + #line 114 "..\..\Views\Job\LogInsurance.cshtml" + Write(ja.MimeType); + + + #line default + #line hidden +WriteLiteral("\""); + +WriteLiteral(">\r\n (ja.Id + + #line default + #line hidden +, 5054), false) +); + +WriteLiteral(" "); + + + #line 115 "..\..\Views\Job\LogInsurance.cshtml" + Write(Model.AttachmentIds.Contains(ja.Id) ? "checked" : null); + + + #line default + #line hidden +WriteLiteral(" />\r\n (ja.Filename + + #line default + #line hidden +, 5182), false) +); + +WriteLiteral(">\r\n (Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) + + #line default + #line hidden +, 5271), false) +); + +WriteLiteral(" />\r\n (ja.Comments + + #line default + #line hidden +, 5399), false) +); + +WriteLiteral(">\r\n"); + + + #line 119 "..\..\Views\Job\LogInsurance.cshtml" + + + #line default + #line hidden + + #line 119 "..\..\Views\Job\LogInsurance.cshtml" + if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) + { + + #line default + #line hidden + + #line 120 "..\..\Views\Job\LogInsurance.cshtml" + Write(ja.DocumentTemplate.Description); + + + #line default + #line hidden + + #line 120 "..\..\Views\Job\LogInsurance.cshtml" + } + else + { + + #line default + #line hidden + + #line 122 "..\..\Views\Job\LogInsurance.cshtml" + Write(ja.Comments); + + + #line default + #line hidden + + #line 122 "..\..\Views\Job\LogInsurance.cshtml" + } + + #line default + #line hidden +WriteLiteral("\r\n "); + + + #line 123 "..\..\Views\Job\LogInsurance.cshtml" + Write(ja.TechUser.ToStringFriendly()); + + + #line default + #line hidden +WriteLiteral("
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @if (Model.Attachments.Count > 0) + { + + + + + } +
Internal Job Id: + + @Model.JobId +
Device Serial Number: + + @Model.Job.Device.SerialNumber +
Device Model: + + @Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model +
Technician: + + @Model.TechUser.DisplayName +
+ Email Address: @Model.TechUser.EmailAddress
+ Phone Number: @Model.TechUser.PhoneNumber +
+
Address: + +
+ @Model.OrganisationAddress.Name +
+ @Model.OrganisationAddress.Address
+ @Model.OrganisationAddress.Suburb, @Model.OrganisationAddress.Postcode
+ @Model.OrganisationAddress.State, @Model.OrganisationAddress.Country +
+
+
Provider: + + @Model.Provider.Name (@Model.Provider.Id) @Model.Provider.PluginManifest.Version.ToString(3) +
Disclosed Information + +
+ + @foreach (var dp in Model.DiscloseProperties) + { + + + + + } +
@dp.Key: + @dp.Value +
+
+
Sending Attachments + +
+ +
+

Lodging Insurance Claim...

+
+ +
+ +
+} \ No newline at end of file diff --git a/Disco.Web/Views/Job/LogInsuranceDisclose.generated.cs b/Disco.Web/Views/Job/LogInsuranceDisclose.generated.cs new file mode 100644 index 00000000..fa396cb1 --- /dev/null +++ b/Disco.Web/Views/Job/LogInsuranceDisclose.generated.cs @@ -0,0 +1,704 @@ +#pragma warning disable 1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Disco.Web.Views.Job +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Text; + using System.Web; + using System.Web.Helpers; + using System.Web.Mvc; + using System.Web.Mvc.Ajax; + using System.Web.Mvc.Html; + using System.Web.Routing; + using System.Web.Security; + using System.Web.UI; + using System.Web.WebPages; + using Disco; + using Disco.Models.Repository; + using Disco.Services; + using Disco.Services.Authorization; + using Disco.Services.Web; + using Disco.Web; + using Disco.Web.Extensions; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] + [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/LogInsuranceDisclose.cshtml")] + public partial class LogInsuranceDisclose : Disco.Services.Web.WebViewPage + { + public LogInsuranceDisclose() + { + } + public override void Execute() + { + + #line 2 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); + + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim"); + + + #line default + #line hidden +WriteLiteral("\r\n"); + + + #line 7 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post)) +{ + + + #line default + #line hidden + + #line 9 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +Write(Html.AntiForgeryToken()); + + + #line default + #line hidden + + #line 9 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +Write(Html.ValidationSummary(true)); + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +Write(Html.HiddenFor(m => m.JobId)); + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + + #line default + #line hidden + + #line 12 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +Write(Html.HiddenFor(m => m.OrganisationAddressId)); + + + #line default + #line hidden + + #line 12 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + + #line default + #line hidden + + #line 13 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +Write(Html.HiddenFor(m => m.ProviderId)); + + + #line default + #line hidden + + #line 13 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + + #line default + #line hidden + + #line 14 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +Write(Html.HiddenFor(m => m.ProviderPropertiesJson)); + + + #line default + #line hidden + + #line 14 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + + #line default + #line hidden +WriteLiteral(" \r\n"); + +WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n Device Serial Number:\r\n \r\n \r\n \r\n \r\n Device Model:\r\n \r\n \r\n \r\n \r\n Technician:\r\n \r\n \r\n \r\n " + +" \r\n Address:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Disclosed Information\r\n \r\n \r\n"); + + + #line 90 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + #line default + #line hidden + + #line 90 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + if (Model.Attachments.Count > 0) + { + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n " + +" \r\n \r\n"); + + + #line 115 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + } + + + #line default + #line hidden +WriteLiteral("
Internal Job Id:\r\n " + +" \r\n"); + +WriteLiteral(" "); + + + #line 22 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.JobId); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" "); + + + #line 29 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.Job.Device.SerialNumber); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" "); + + + #line 36 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.Job.Device.DeviceModel.Manufacturer); + + + #line default + #line hidden +WriteLiteral(" "); + + + #line 36 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.Job.Device.DeviceModel.Model); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n"); + +WriteLiteral(" "); + + + #line 43 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.TechUser.DisplayName); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n Email Address: "); + + + #line 45 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.TechUser.EmailAddress); + + + #line default + #line hidden +WriteLiteral("
\r\n Phone Number: "); + + + #line 46 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.TechUser.PhoneNumber); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n
\r\n \r\n"); + +WriteLiteral(" "); + + + #line 55 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.OrganisationAddress.Name); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n "); + + + #line 57 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.OrganisationAddress.Address); + + + #line default + #line hidden +WriteLiteral("
\r\n "); + + + #line 58 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.OrganisationAddress.Suburb); + + + #line default + #line hidden +WriteLiteral(", "); + + + #line 58 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.OrganisationAddress.Postcode); + + + #line default + #line hidden +WriteLiteral("
\r\n "); + + + #line 59 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.OrganisationAddress.State); + + + #line default + #line hidden +WriteLiteral(", "); + + + #line 59 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.OrganisationAddress.Country); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n \r\n " + +"
Provider:\r\n " + +" \r\n"); + +WriteLiteral(" "); + + + #line 68 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.Provider.Name); + + + #line default + #line hidden +WriteLiteral(" ("); + + + #line 68 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.Provider.Id); + + + #line default + #line hidden +WriteLiteral(") "); + + + #line 68 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(Model.Provider.PluginManifest.Version.ToString(3)); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n " + +" \r\n \r\n"); + + + #line 77 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + #line default + #line hidden + + #line 77 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + foreach (var dp in Model.DiscloseProperties) + { + + + #line default + #line hidden +WriteLiteral(" \r\n \r\n " + +" \r\n \r\n"); + + + #line 85 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + } + + + #line default + #line hidden +WriteLiteral("
"); + + + #line 80 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(dp.Key); + + + #line default + #line hidden +WriteLiteral(":\r\n "); + + + #line 82 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(dp.Value); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n \r\n \r\n
Sending Attachments\r\n
\r\n \r\n"); + + + #line 97 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + #line default + #line hidden + + #line 97 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + foreach (var ja in Model.Attachments) + { + + + #line default + #line hidden +WriteLiteral(" (ja.Id + + #line default + #line hidden +, 3925), false) +); + +WriteLiteral(" />\r\n"); + +WriteLiteral(" (Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) + + #line default + #line hidden +, 3982), false) +); + +WriteLiteral(" data-attachmentid=\""); + + + #line 100 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(ja.Id); + + + #line default + #line hidden +WriteLiteral("\""); + +WriteLiteral(" data-mimetype=\""); + + + #line 100 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(ja.MimeType); + + + #line default + #line hidden +WriteLiteral("\""); + +WriteLiteral(">\r\n (ja.Filename + + #line default + #line hidden +, 4158), false) +); + +WriteLiteral(">\r\n (Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) + + #line default + #line hidden +, 4255), false) +); + +WriteLiteral(" />\r\n (ja.Comments + + #line default + #line hidden +, 4391), false) +); + +WriteLiteral(">\r\n"); + + + #line 104 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + + + #line default + #line hidden + + #line 104 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) + { + + #line default + #line hidden + + #line 105 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(ja.DocumentTemplate.Description); + + + #line default + #line hidden + + #line 105 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + } + else + { + + #line default + #line hidden + + #line 107 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(ja.Comments); + + + #line default + #line hidden + + #line 107 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + } + + #line default + #line hidden +WriteLiteral("\r\n "); + + + #line 108 "..\..\Views\Job\LogInsuranceDisclose.cshtml" + Write(ja.TechUser.ToStringFriendly()); + + + #line default + #line hidden +WriteLiteral("
\r\n \r\n " + +"
\r\n \r\n"); + +WriteLiteral(" \r\n

Lodging Insurance Claim...

\r\n \r\n"); + +WriteLiteral(@" +"); + +WriteLiteral(" \r\n Lodge Insurance Claim\r\n \r\n"); + + + #line 145 "..\..\Views\Job\LogInsuranceDisclose.cshtml" +} + + #line default + #line hidden + } + } +} +#pragma warning restore 1591 diff --git a/Disco.Web/Views/Job/LogInsuranceError.cshtml b/Disco.Web/Views/Job/LogInsuranceError.cshtml new file mode 100644 index 00000000..ad4661df --- /dev/null +++ b/Disco.Web/Views/Job/LogInsuranceError.cshtml @@ -0,0 +1,120 @@ +@model Disco.Web.Models.Job.LogInsuranceModel +@{ + Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); + + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim Error"); +} +
+

Submission Error

+ + + + +
+
+ @Model.Error.Message +
+ (show more) + + +
+
+
+

Insurance Submission Details

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Internal Job Id: + + @Model.JobId +
Device Serial Number: + + @Model.Job.Device.SerialNumber +
Device Model: + + @Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model +
Technician: + + @Model.TechUser.DisplayName +
+ Email Address: @Model.TechUser.EmailAddress
+ Phone Number: @Model.TechUser.PhoneNumber +
+
Address: + +
+ @Model.OrganisationAddress.Name +
+ @Model.OrganisationAddress.Address
+ @Model.OrganisationAddress.Suburb, @Model.OrganisationAddress.Postcode
+ @Model.OrganisationAddress.State, @Model.OrganisationAddress.Country +
+
+
Provider: + + @if (Model.Provider != null) + { + + @Model.Provider.Name (@Model.Provider.Id) @Model.Provider.PluginManifest.Version.ToString(3) + + } + else + { + None Selected + } +
+
+
+ @Html.ActionLinkButton("Try Again", MVC.Job.LogInsurance(Model.JobId, null, null)) + @Html.ActionLinkButton("Return to Job", MVC.Job.Show(Model.JobId)) +
diff --git a/Disco.Web/Views/Job/LogInsuranceError.generated.cs b/Disco.Web/Views/Job/LogInsuranceError.generated.cs new file mode 100644 index 00000000..621f0005 --- /dev/null +++ b/Disco.Web/Views/Job/LogInsuranceError.generated.cs @@ -0,0 +1,448 @@ +#pragma warning disable 1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Disco.Web.Views.Job +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Text; + using System.Web; + using System.Web.Helpers; + using System.Web.Mvc; + using System.Web.Mvc.Ajax; + using System.Web.Mvc.Html; + using System.Web.Routing; + using System.Web.Security; + using System.Web.UI; + using System.Web.WebPages; + using Disco; + using Disco.Models.Repository; + using Disco.Services; + using Disco.Services.Authorization; + using Disco.Services.Web; + using Disco.Web; + using Disco.Web.Extensions; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] + [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Job/LogInsuranceError.cshtml")] + public partial class LogInsuranceError : Disco.Services.Web.WebViewPage + { + public LogInsuranceError() + { + } + public override void Execute() + { + + #line 2 "..\..\Views\Job\LogInsuranceError.cshtml" + + Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); + + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim Error"); + + + #line default + #line hidden +WriteLiteral("\r\n\r\n

Submission Error

\r\n \r\n \r\n + +
\r\n " + +"
\r\n "); + + + #line 13 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Error.Message); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n (show more)\r\n \r\n
\r\n Error Type: "); + + + #line 18 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Error.GetType().Name); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n Stack Trace:\r\n" + +" \r\n"); + +WriteLiteral(" "); + + + #line 22 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Error.StackTrace.ToMultilineString()); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n"); + + + #line 24 "..\..\Views\Job\LogInsuranceError.cshtml" + + + #line default + #line hidden + + #line 24 "..\..\Views\Job\LogInsuranceError.cshtml" + if (Model.Error.InnerException != null) + { + + + #line default + #line hidden +WriteLiteral("
\r\n"); + +WriteLiteral("
\r\n Inner Exceptio" + +"n: "); + + + #line 28 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Error.InnerException.Message); + + + #line default + #line hidden +WriteLiteral("
\r\n Error Type: "); + + + #line 29 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Error.GetType().Name); + + + #line default + #line hidden +WriteLiteral("
\r\n Stack Trace:\r\n " + +" \r\n"); + +WriteLiteral(" "); + + + #line 32 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Error.InnerException.StackTrace); + + + #line default + #line hidden +WriteLiteral("\r\n
\r\n \r\n"); + + + #line 35 "..\..\Views\Job\LogInsuranceError.cshtml" + } + + + #line default + #line hidden +WriteLiteral(" \r\n + $(function () { + $('#errorShow').click(function () { + $(this).hide(); + $('#errorMore').slideDown(); + return false; + }); + }); + +
+ +\r\n

Insurance Submission Details

\r\n \r\n \r\n " + +" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n " + +" Address:\r\n \r\n \r\n " + +" \r\n \r\n \r\n " + +" \r\n \r\n
Internal Job Id:\r\n \r\n"); + +WriteLiteral(" "); + + + #line 57 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.JobId); + + + #line default + #line hidden +WriteLiteral("\r\n
Device Serial N" + +"umber:\r\n \r\n"); + +WriteLiteral(" "); + + + #line 64 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Job.Device.SerialNumber); + + + #line default + #line hidden +WriteLiteral("\r\n
Device Model:\r\n" + +" \r\n"); + +WriteLiteral(" "); + + + #line 71 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Job.Device.DeviceModel.Manufacturer); + + + #line default + #line hidden +WriteLiteral(" "); + + + #line 71 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Job.Device.DeviceModel.Model); + + + #line default + #line hidden +WriteLiteral("\r\n
Technician:\r\n " + +" \r\n"); + +WriteLiteral(" "); + + + #line 78 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.TechUser.DisplayName); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n Email Address: "); + + + #line 80 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.TechUser.EmailAddress); + + + #line default + #line hidden +WriteLiteral("
\r\n Phone Number: "); + + + #line 81 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.TechUser.PhoneNumber); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n
\r\n \r\n"); + +WriteLiteral(" "); + + + #line 90 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.OrganisationAddress.Name); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n "); + + + #line 92 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.OrganisationAddress.Address); + + + #line default + #line hidden +WriteLiteral("
\r\n "); + + + #line 93 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.OrganisationAddress.Suburb); + + + #line default + #line hidden +WriteLiteral(", "); + + + #line 93 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.OrganisationAddress.Postcode); + + + #line default + #line hidden +WriteLiteral("
\r\n "); + + + #line 94 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.OrganisationAddress.State); + + + #line default + #line hidden +WriteLiteral(", "); + + + #line 94 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.OrganisationAddress.Country); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n \r\n
Provider:\r\n \r\n"); + + + #line 103 "..\..\Views\Job\LogInsuranceError.cshtml" + + + #line default + #line hidden + + #line 103 "..\..\Views\Job\LogInsuranceError.cshtml" + if (Model.Provider != null) + { + + + #line default + #line hidden +WriteLiteral(" \r\n"); + +WriteLiteral(" "); + + + #line 106 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Provider.Name); + + + #line default + #line hidden +WriteLiteral(" ("); + + + #line 106 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Provider.Id); + + + #line default + #line hidden +WriteLiteral(") "); + + + #line 106 "..\..\Views\Job\LogInsuranceError.cshtml" + Write(Model.Provider.PluginManifest.Version.ToString(3)); + + + #line default + #line hidden +WriteLiteral("\r\n \r\n"); + + + #line 108 "..\..\Views\Job\LogInsuranceError.cshtml" + } + else + { + + + #line default + #line hidden +WriteLiteral(" None Selected\r\n"); + + + #line 112 "..\..\Views\Job\LogInsuranceError.cshtml" + } + + + #line default + #line hidden +WriteLiteral("
\r\n\r\n\r\n"); + +WriteLiteral(" "); + + + #line 118 "..\..\Views\Job\LogInsuranceError.cshtml" +Write(Html.ActionLinkButton("Try Again", MVC.Job.LogInsurance(Model.JobId, null, null))); + + + #line default + #line hidden +WriteLiteral("\r\n"); + +WriteLiteral(" "); + + + #line 119 "..\..\Views\Job\LogInsuranceError.cshtml" +Write(Html.ActionLinkButton("Return to Job", MVC.Job.Show(Model.JobId))); + + + #line default + #line hidden +WriteLiteral("\r\n\r\n"); + + } + } +} +#pragma warning restore 1591 diff --git a/Disco.Web/Views/Job/LogRepair.cshtml b/Disco.Web/Views/Job/LogRepair.cshtml index 5618a8d2..605a9a32 100644 --- a/Disco.Web/Views/Job/LogRepair.cshtml +++ b/Disco.Web/Views/Job/LogRepair.cshtml @@ -2,10 +2,11 @@ @{ Authorization.Require(Claims.Job.Actions.LogRepair); - ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair"); + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair"); } @using (Html.BeginForm(MVC.Job.LogRepair(), FormMethod.Post)) { + @Html.AntiForgeryToken() @Html.ValidationSummary(true) @Html.HiddenFor(m => m.JobId) @Html.ValidationMessageFor(m => m.JobId) @@ -13,28 +14,32 @@
- - - - - -
Internal Job Id: + + Internal Job Id: @Model.JobId
Device Serial Number: + + Device Serial Number: @Model.Job.Device.SerialNumber
Device Model: + + Device Model: @Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
Technician: + + Technician: @Model.TechUser.DisplayName @@ -45,28 +50,30 @@
Repair Address: + + Repair Address: @Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))
@Html.ValidationMessageFor(m => m.OrganisationAddressId)
@{ - var oa = Model.OrganisationAddress; - if (oa != null) - { - @oa.Address -
- @oa.Suburb, @oa.Postcode -
- @oa.State, @oa.Country - } + var oa = Model.OrganisationAddress; + if (oa != null) + { + @oa.Address +
+ @oa.Suburb, @oa.Postcode +
+ @oa.State, @oa.Country + } }
Repair Provider: + + Repair Provider: @Html.DropDownListFor(model => model.RepairProviderId, Model.RepairProviders.ToSelectListItems(Model.RepairProviderId, AdditionalItems: new Dictionary() { { "MANUAL", "" } }))
@@ -179,6 +186,8 @@ $('').attr({ type: 'hidden', name: 'ManualProviderName', value: $('#ManualProviderName').val() }) ).append( $('').attr({ type: 'hidden', name: 'ManualProviderReference', value: $('#ManualProviderReference').val() }) + ).append( + $('').attr({ type: 'hidden', name: '__RequestVerificationToken', value: $providerId.closest('form').find('input[name="__RequestVerificationToken"]').val() }) ).appendTo('body').submit(); } diff --git a/Disco.Web/Views/Job/LogRepair.generated.cs b/Disco.Web/Views/Job/LogRepair.generated.cs index fc641856..1515720e 100644 --- a/Disco.Web/Views/Job/LogRepair.generated.cs +++ b/Disco.Web/Views/Job/LogRepair.generated.cs @@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job Authorization.Require(Claims.Job.Actions.LogRepair); - ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair"); + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair"); #line default @@ -65,41 +65,55 @@ WriteLiteral("\r\n"); #line hidden #line 9 "..\..\Views\Job\LogRepair.cshtml" -Write(Html.ValidationSummary(true)); +Write(Html.AntiForgeryToken()); #line default #line hidden #line 9 "..\..\Views\Job\LogRepair.cshtml" - + #line default #line hidden #line 10 "..\..\Views\Job\LogRepair.cshtml" +Write(Html.ValidationSummary(true)); + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogRepair.cshtml" + + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogRepair.cshtml" Write(Html.HiddenFor(m => m.JobId)); #line default #line hidden - #line 10 "..\..\Views\Job\LogRepair.cshtml" + #line 11 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 11 "..\..\Views\Job\LogRepair.cshtml" + #line 12 "..\..\Views\Job\LogRepair.cshtml" Write(Html.ValidationMessageFor(m => m.JobId)); #line default #line hidden - #line 11 "..\..\Views\Job\LogRepair.cshtml" + #line 12 "..\..\Views\Job\LogRepair.cshtml" @@ -111,14 +125,14 @@ WriteLiteral(" type=\"hidden\""); WriteLiteral(" name=\"SubmissionAction\""); -WriteAttribute("value", Tuple.Create(" value=\"", 489), Tuple.Create("\"", 546) +WriteAttribute("value", Tuple.Create(" value=\"", 521), Tuple.Create("\"", 578) - #line 12 "..\..\Views\Job\LogRepair.cshtml" -, Tuple.Create(Tuple.Create("", 497), Tuple.Create(Model.IsManualProvider ? "Manual" : "Disclose" + #line 13 "..\..\Views\Job\LogRepair.cshtml" +, Tuple.Create(Tuple.Create("", 529), Tuple.Create(Model.IsManualProvider ? "Manual" : "Disclose" #line default #line hidden -, 497), false) +, 529), false) ); WriteLiteral(" />\r\n"); @@ -131,37 +145,39 @@ WriteLiteral(" class=\"form\""); WriteLiteral(" style=\"width: 650px\""); -WriteLiteral(">\r\n \r\n \r\n \r\n \r\n "able>\r\n \r\n"); - #line 141 "..\..\Views\Job\LogRepair.cshtml" + #line 148 "..\..\Views\Job\LogRepair.cshtml" } if (Model.RepairProvider != null && Model.RepairProviderSubmitJobBeginResult != null) { @@ -761,7 +779,7 @@ WriteLiteral(">\r\n"); WriteLiteral(" "); - #line 145 "..\..\Views\Job\LogRepair.cshtml" + #line 152 "..\..\Views\Job\LogRepair.cshtml" Write(Html.PartialCompiled(Model.RepairProviderSubmitJobBeginResult.Item1, Model.RepairProviderSubmitJobBeginResult.Item2)); @@ -770,7 +788,7 @@ WriteLiteral(" "); WriteLiteral("\r\n \r\n"); - #line 147 "..\..\Views\Job\LogRepair.cshtml" + #line 154 "..\..\Views\Job\LogRepair.cshtml" } @@ -783,13 +801,13 @@ WriteLiteral(" class=\"actionBar\""); WriteLiteral(">\r\n"); - #line 149 "..\..\Views\Job\LogRepair.cshtml" + #line 156 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 149 "..\..\Views\Job\LogRepair.cshtml" + #line 156 "..\..\Views\Job\LogRepair.cshtml" if (Model.IsManualProvider) { @@ -807,7 +825,7 @@ WriteLiteral(" value=\"Save Repair Request\""); WriteLiteral(" />\r\n"); - #line 152 "..\..\Views\Job\LogRepair.cshtml" + #line 159 "..\..\Views\Job\LogRepair.cshtml" } else { @@ -826,7 +844,7 @@ WriteLiteral(" value=\"Preview Repair Request\""); WriteLiteral(" />\r\n"); - #line 156 "..\..\Views\Job\LogRepair.cshtml" + #line 163 "..\..\Views\Job\LogRepair.cshtml" } @@ -835,7 +853,7 @@ WriteLiteral(" />\r\n"); WriteLiteral(" \r\n"); - #line 158 "..\..\Views\Job\LogRepair.cshtml" + #line 165 "..\..\Views\Job\LogRepair.cshtml" } @@ -860,12 +878,15 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#RepairP ").append(\r\n $(\'\').attr({ type: \'hidden\', name: \'ManualProv" + "iderName\', value: $(\'#ManualProviderName\').val() })\r\n ).append(\r\n " + " $(\'\').attr({ type: \'hidden\', name: \'ManualProviderReference\'," + -" value: $(\'#ManualProviderReference\').val() })\r\n ).appendTo(\'body\').s" + -"ubmit();\r\n }\r\n\r\n $providerId.change(updateDetails);\r\n $addr" + -"essId.change(updateDetails);\r\n\r\n var manualProvider = $(\'#ManualProviderN" + -"ame\');\r\n if (manualProvider.length > 0 && !manualProvider.val()) {\r\n " + -" manualProvider.focus();\r\n } else {\r\n $(\'#RepairDescript" + -"ion\').focus();\r\n }\r\n });\r\n\r\n"); +" value: $(\'#ManualProviderReference\').val() })\r\n ).append(\r\n " + +" $(\'\').attr({ type: \'hidden\', name: \'__RequestVerificationToken\', v" + +"alue: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationToken\"]" + +"\').val() })\r\n ).appendTo(\'body\').submit();\r\n }\r\n\r\n $pro" + +"viderId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n\r\n " + +" var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProvider." + +"length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();\r\n " + +" } else {\r\n $(\'#RepairDescription\').focus();\r\n }\r\n });\r" + +"\n\r\n"); } } diff --git a/Disco.Web/Views/Job/LogRepairDisclose.cshtml b/Disco.Web/Views/Job/LogRepairDisclose.cshtml index 3e3b834a..31c6d58e 100644 --- a/Disco.Web/Views/Job/LogRepairDisclose.cshtml +++ b/Disco.Web/Views/Job/LogRepairDisclose.cshtml @@ -2,10 +2,11 @@ @{ Authorization.Require(Claims.Job.Actions.LogRepair); - ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair"); + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair"); } @using (Html.BeginForm(MVC.Job.LogRepair(), FormMethod.Post)) { + @Html.AntiForgeryToken() @Html.ValidationSummary(true) @Html.HiddenFor(m => m.JobId) @Html.HiddenFor(m => m.OrganisationAddressId) @@ -79,7 +80,7 @@ @@ -106,14 +118,15 @@ - Attachment Thumbnail + Attachment Thumbnail + @{if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) - { @ja.DocumentTemplate.Description} - else - { @ja.Comments }} + { @ja.DocumentTemplate.Description} + else + { @ja.Comments }} @ja.TechUser.ToStringFriendly()@ja.Timestamp.ToFullDateTime() - + } @@ -123,7 +136,7 @@
Internal Job Id:\r\n " + -" \r\n"); +WriteLiteral(">\r\n \r\n \r\n \r\n \r\n \r\n \r\n Device Serial Number:\r\n \r\n \r\n \r\n \r\n Device Model:\r\n \r\n \r\n \r\n \r\n Technician:\r\n \r\n \r\n WriteLiteral(" style=\"width: 150px\""); -WriteLiteral(">Repair Address:\r\n \r\n \r\n \r\n " + -" \r\n \r\n " + -" \r\n \r\n \r\n \r\n"); - #line 84 "..\..\Views\Job\LogRepair.cshtml" + #line 91 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 84 "..\..\Views\Job\LogRepair.cshtml" + #line 91 "..\..\Views\Job\LogRepair.cshtml" if (Model.IsManualProvider) { @@ -417,7 +435,7 @@ WriteLiteral(" \r\n model.ManualProviderName)); @@ -428,7 +446,7 @@ WriteLiteral("
\r\n"); WriteLiteral(" "); - #line 90 "..\..\Views\Job\LogRepair.cshtml" + #line 97 "..\..\Views\Job\LogRepair.cshtml" Write(Html.ValidationMessageFor(m => m.ManualProviderName)); @@ -442,7 +460,7 @@ WriteLiteral(" \r\n \r\n"); - #line 100 "..\..\Views\Job\LogRepair.cshtml" + #line 107 "..\..\Views\Job\LogRepair.cshtml" } @@ -484,7 +502,7 @@ WriteLiteral(">\r\n

Repair Description

\r\n
\r\n I" + +"nternal Job Id:\r\n \r\n"); WriteLiteral(" "); - #line 19 "..\..\Views\Job\LogRepair.cshtml" + #line 21 "..\..\Views\Job\LogRepair.cshtml" Write(Model.JobId); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Device Serial Number:\r\n \r\n " + +" \r\n"); WriteLiteral(" "); - #line 26 "..\..\Views\Job\LogRepair.cshtml" + #line 29 "..\..\Views\Job\LogRepair.cshtml" Write(Model.Job.Device.SerialNumber); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Device Model:\r\n \r\n \r\n"); WriteLiteral(" "); - #line 33 "..\..\Views\Job\LogRepair.cshtml" + #line 37 "..\..\Views\Job\LogRepair.cshtml" Write(Model.Job.Device.DeviceModel.Manufacturer); @@ -170,19 +186,20 @@ WriteLiteral(" "); WriteLiteral(" "); - #line 33 "..\..\Views\Job\LogRepair.cshtml" + #line 37 "..\..\Views\Job\LogRepair.cshtml" Write(Model.Job.Device.DeviceModel.Model); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Technician:\r\n \r\n \r" + +"\n"); WriteLiteral(" "); - #line 40 "..\..\Views\Job\LogRepair.cshtml" + #line 45 "..\..\Views\Job\LogRepair.cshtml" Write(Model.TechUser.DisplayName); @@ -195,7 +212,7 @@ WriteLiteral(" class=\"smallMessage\""); WriteLiteral(">\r\n Email Address: "); - #line 42 "..\..\Views\Job\LogRepair.cshtml" + #line 47 "..\..\Views\Job\LogRepair.cshtml" Write(Model.TechUser.EmailAddress); @@ -204,7 +221,7 @@ WriteLiteral(">\r\n Email Address: "); WriteLiteral("
\r\n Phone Number: "); - #line 43 "..\..\Views\Job\LogRepair.cshtml" + #line 48 "..\..\Views\Job\LogRepair.cshtml" Write(Model.TechUser.PhoneNumber); @@ -215,12 +232,13 @@ WriteLiteral("\r\n \r\n
\r\n"); +WriteLiteral(">\r\n Repair Address:\r\n \r\n \r\n"); WriteLiteral(" "); - #line 51 "..\..\Views\Job\LogRepair.cshtml" + #line 57 "..\..\Views\Job\LogRepair.cshtml" Write(Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null)))); @@ -231,7 +249,7 @@ WriteLiteral("
\r\n"); WriteLiteral(" "); - #line 52 "..\..\Views\Job\LogRepair.cshtml" + #line 58 "..\..\Views\Job\LogRepair.cshtml" Write(Html.ValidationMessageFor(m => m.OrganisationAddressId)); @@ -244,39 +262,39 @@ WriteLiteral(" id=\"organisationAddressDetails\""); WriteLiteral(">\r\n"); - #line 54 "..\..\Views\Job\LogRepair.cshtml" + #line 60 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 54 "..\..\Views\Job\LogRepair.cshtml" + #line 60 "..\..\Views\Job\LogRepair.cshtml" - var oa = Model.OrganisationAddress; - if (oa != null) - { + var oa = Model.OrganisationAddress; + if (oa != null) + { #line default #line hidden -WriteLiteral(" "); +WriteLiteral(" "); - #line 58 "..\..\Views\Job\LogRepair.cshtml" - Write(oa.Address); + #line 64 "..\..\Views\Job\LogRepair.cshtml" + Write(oa.Address); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral("
\r\n"); +WriteLiteral("
\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 60 "..\..\Views\Job\LogRepair.cshtml" - Write(oa.Suburb); + #line 66 "..\..\Views\Job\LogRepair.cshtml" + Write(oa.Suburb); #line default @@ -284,21 +302,21 @@ WriteLiteral(" "); WriteLiteral(", "); - #line 60 "..\..\Views\Job\LogRepair.cshtml" - Write(oa.Postcode); + #line 66 "..\..\Views\Job\LogRepair.cshtml" + Write(oa.Postcode); #line default #line hidden WriteLiteral("\r\n"); -WriteLiteral("
\r\n"); +WriteLiteral("
\r\n"); -WriteLiteral(" "); +WriteLiteral(" "); - #line 62 "..\..\Views\Job\LogRepair.cshtml" - Write(oa.State); + #line 68 "..\..\Views\Job\LogRepair.cshtml" + Write(oa.State); #line default @@ -306,8 +324,8 @@ WriteLiteral(" "); WriteLiteral(", "); - #line 62 "..\..\Views\Job\LogRepair.cshtml" - Write(oa.Country); + #line 68 "..\..\Views\Job\LogRepair.cshtml" + Write(oa.Country); #line default @@ -315,20 +333,20 @@ WriteLiteral(", "); WriteLiteral("\r\n"); - #line 63 "..\..\Views\Job\LogRepair.cshtml" - } + #line 69 "..\..\Views\Job\LogRepair.cshtml" + } #line default #line hidden WriteLiteral("\r\n \r\n
Repair Provider:\r\n \r\n"); +"
\r\n Repair Provider:\r\n " + +" \r\n"); WriteLiteral(" "); - #line 72 "..\..\Views\Job\LogRepair.cshtml" + #line 79 "..\..\Views\Job\LogRepair.cshtml" Write(Html.DropDownListFor(model => model.RepairProviderId, Model.RepairProviders.ToSelectListItems(Model.RepairProviderId, AdditionalItems: new Dictionary() { { "MANUAL", "" } }))); @@ -339,7 +357,7 @@ WriteLiteral("
\r\n"); WriteLiteral(" "); - #line 73 "..\..\Views\Job\LogRepair.cshtml" + #line 80 "..\..\Views\Job\LogRepair.cshtml" Write(Html.ValidationMessageFor(m => m.RepairProviderId)); @@ -348,13 +366,13 @@ WriteLiteral(" "); WriteLiteral("\r\n"); - #line 74 "..\..\Views\Job\LogRepair.cshtml" + #line 81 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 74 "..\..\Views\Job\LogRepair.cshtml" + #line 81 "..\..\Views\Job\LogRepair.cshtml" if (Model.RepairProviders.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install)) { @@ -375,21 +393,21 @@ WriteLiteral(" class=\"fa fa-info-circle\""); WriteLiteral(">View the (Url.Action(MVC.Config.Plugins.Install()) + #line 85 "..\..\Views\Job\LogRepair.cshtml" + , Tuple.Create(Tuple.Create("", 3584), Tuple.Create(Url.Action(MVC.Config.Plugins.Install()) #line default #line hidden -, 3304), false) +, 3584), false) ); WriteLiteral(">Plugin Catalogue to discover and install repair provider plugins.\r\n " + "

\r\n \r\n"); - #line 81 "..\..\Views\Job\LogRepair.cshtml" + #line 88 "..\..\Views\Job\LogRepair.cshtml" } @@ -398,13 +416,13 @@ WriteLiteral(">Plugin Catalogue to discover and install repair provider plug WriteLiteral("
Provider Name:
Provider Job Refer WriteLiteral(" "); - #line 96 "..\..\Views\Job\LogRepair.cshtml" + #line 103 "..\..\Views\Job\LogRepair.cshtml" Write(Html.EditorFor(model => model.ManualProviderReference)); @@ -453,7 +471,7 @@ WriteLiteral("
\r\n"); WriteLiteral(" "); - #line 97 "..\..\Views\Job\LogRepair.cshtml" + #line 104 "..\..\Views\Job\LogRepair.cshtml" Write(Html.ValidationMessageFor(m => m.ManualProviderReference)); @@ -462,7 +480,7 @@ WriteLiteral(" "); WriteLiteral("\r\n \r\n
\r\n WriteLiteral(" "); - #line 108 "..\..\Views\Job\LogRepair.cshtml" + #line 115 "..\..\Views\Job\LogRepair.cshtml" Write(Html.EditorFor(model => model.RepairDescription)); @@ -495,7 +513,7 @@ WriteLiteral("
\r\n"); WriteLiteral(" "); - #line 109 "..\..\Views\Job\LogRepair.cshtml" + #line 116 "..\..\Views\Job\LogRepair.cshtml" Write(Html.ValidationMessageFor(m => m.RepairDescription)); @@ -504,7 +522,7 @@ WriteLiteral(" "); WriteLiteral("\r\n \r\n \r\n
\r\n \r\n"); - #line 114 "..\..\Views\Job\LogRepair.cshtml" + #line 121 "..\..\Views\Job\LogRepair.cshtml" if (!Model.IsManualProvider && Authorization.Has(Claims.Job.ShowAttachments) && Model.Job.JobAttachments.Count > 0) { @@ -525,13 +543,13 @@ WriteLiteral(" id=\"publishJobAttachments\""); WriteLiteral(">\r\n"); - #line 122 "..\..\Views\Job\LogRepair.cshtml" + #line 129 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 122 "..\..\Views\Job\LogRepair.cshtml" + #line 129 "..\..\Views\Job\LogRepair.cshtml" foreach (var ja in Model.Job.JobAttachments) { @@ -540,20 +558,20 @@ WriteLiteral(">\r\n"); #line hidden WriteLiteral(" (Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) + #line 131 "..\..\Views\Job\LogRepair.cshtml" +, Tuple.Create(Tuple.Create("", 5462), Tuple.Create(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) #line default #line hidden -, 5182), false) +, 5462), false) ); WriteLiteral(" data-attachmentid=\""); - #line 124 "..\..\Views\Job\LogRepair.cshtml" + #line 131 "..\..\Views\Job\LogRepair.cshtml" Write(ja.Id); @@ -564,7 +582,7 @@ WriteLiteral("\""); WriteLiteral(" data-mimetype=\""); - #line 124 "..\..\Views\Job\LogRepair.cshtml" + #line 131 "..\..\Views\Job\LogRepair.cshtml" Write(ja.MimeType); @@ -580,20 +598,20 @@ WriteLiteral(" class=\"select\""); WriteLiteral(" name=\"PublishAttachmentIds\""); -WriteAttribute("value", Tuple.Create(" value=\"", 5389), Tuple.Create("\"", 5403) +WriteAttribute("value", Tuple.Create(" value=\"", 5669), Tuple.Create("\"", 5683) - #line 125 "..\..\Views\Job\LogRepair.cshtml" - , Tuple.Create(Tuple.Create("", 5397), Tuple.Create(ja.Id + #line 132 "..\..\Views\Job\LogRepair.cshtml" + , Tuple.Create(Tuple.Create("", 5677), Tuple.Create(ja.Id #line default #line hidden -, 5397), false) +, 5677), false) ); WriteLiteral(" "); - #line 125 "..\..\Views\Job\LogRepair.cshtml" + #line 132 "..\..\Views\Job\LogRepair.cshtml" Write(Model.PublishAttachmentIds.Contains(ja.Id) ? "checked" : null); @@ -603,68 +621,68 @@ WriteLiteral(" />\r\n (ja.Filename + #line 133 "..\..\Views\Job\LogRepair.cshtml" +, Tuple.Create(Tuple.Create("", 5812), Tuple.Create(ja.Filename #line default #line hidden -, 5532), false) +, 5812), false) ); WriteLiteral(">\r\n (Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) + #line 134 "..\..\Views\Job\LogRepair.cshtml" +, Tuple.Create(Tuple.Create("", 5901), Tuple.Create(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) #line default #line hidden -, 5621), false) +, 5901), false) ); WriteLiteral(" />\r\n (ja.Comments + #line 135 "..\..\Views\Job\LogRepair.cshtml" +, Tuple.Create(Tuple.Create("", 6029), Tuple.Create(ja.Comments #line default #line hidden -, 5749), false) +, 6029), false) ); WriteLiteral(">\r\n"); - #line 129 "..\..\Views\Job\LogRepair.cshtml" + #line 136 "..\..\Views\Job\LogRepair.cshtml" #line default #line hidden - #line 129 "..\..\Views\Job\LogRepair.cshtml" + #line 136 "..\..\Views\Job\LogRepair.cshtml" if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) { #line default #line hidden - #line 130 "..\..\Views\Job\LogRepair.cshtml" + #line 137 "..\..\Views\Job\LogRepair.cshtml" Write(ja.DocumentTemplate.Description); #line default #line hidden - #line 130 "..\..\Views\Job\LogRepair.cshtml" + #line 137 "..\..\Views\Job\LogRepair.cshtml" } else { @@ -672,14 +690,14 @@ WriteLiteral(">\r\n"); #line default #line hidden - #line 132 "..\..\Views\Job\LogRepair.cshtml" + #line 139 "..\..\Views\Job\LogRepair.cshtml" Write(ja.Comments); #line default #line hidden - #line 132 "..\..\Views\Job\LogRepair.cshtml" + #line 139 "..\..\Views\Job\LogRepair.cshtml" } #line default @@ -691,7 +709,7 @@ WriteLiteral(" class=\"author\""); WriteLiteral(">"); - #line 133 "..\..\Views\Job\LogRepair.cshtml" + #line 140 "..\..\Views\Job\LogRepair.cshtml" Write(ja.TechUser.ToStringFriendly()); @@ -704,7 +722,7 @@ WriteLiteral(" class=\"timestamp\""); WriteLiteral(" data-livestamp=\""); - #line 133 "..\..\Views\Job\LogRepair.cshtml" + #line 140 "..\..\Views\Job\LogRepair.cshtml" Write(ja.Timestamp.ToUnixEpoc()); @@ -712,20 +730,20 @@ WriteLiteral(" data-livestamp=\""); #line hidden WriteLiteral("\""); -WriteAttribute("title", Tuple.Create(" title=\"", 6197), Tuple.Create("\"", 6235) +WriteAttribute("title", Tuple.Create(" title=\"", 6477), Tuple.Create("\"", 6515) - #line 133 "..\..\Views\Job\LogRepair.cshtml" - , Tuple.Create(Tuple.Create("", 6205), Tuple.Create(ja.Timestamp.ToFullDateTime() + #line 140 "..\..\Views\Job\LogRepair.cshtml" + , Tuple.Create(Tuple.Create("", 6485), Tuple.Create(ja.Timestamp.ToFullDateTime() #line default #line hidden -, 6205), false) +, 6485), false) ); WriteLiteral(">"); - #line 133 "..\..\Views\Job\LogRepair.cshtml" + #line 140 "..\..\Views\Job\LogRepair.cshtml" Write(ja.Timestamp.ToFullDateTime()); @@ -734,7 +752,7 @@ WriteLiteral(">"); WriteLiteral("\r\n \r\n"); - #line 135 "..\..\Views\Job\LogRepair.cshtml" + #line 142 "..\..\Views\Job\LogRepair.cshtml" } @@ -744,7 +762,7 @@ WriteLiteral(" \r\n
Disclosed Information -
+
@foreach (var dp in Model.DiscloseProperties) { @@ -123,7 +124,7 @@
-

Submitting Repair Request...

+

Lodging Repair Request...

- +
} \ No newline at end of file diff --git a/Disco.Web/Views/Job/LogRepairDisclose.generated.cs b/Disco.Web/Views/Job/LogRepairDisclose.generated.cs index 6789d69a..ba5156c8 100644 --- a/Disco.Web/Views/Job/LogRepairDisclose.generated.cs +++ b/Disco.Web/Views/Job/LogRepairDisclose.generated.cs @@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job Authorization.Require(Claims.Job.Actions.LogRepair); - ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Repair"); + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Repair"); #line default @@ -65,83 +65,97 @@ WriteLiteral("\r\n"); #line hidden #line 9 "..\..\Views\Job\LogRepairDisclose.cshtml" -Write(Html.ValidationSummary(true)); +Write(Html.AntiForgeryToken()); #line default #line hidden #line 9 "..\..\Views\Job\LogRepairDisclose.cshtml" - + #line default #line hidden #line 10 "..\..\Views\Job\LogRepairDisclose.cshtml" +Write(Html.ValidationSummary(true)); + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogRepairDisclose.cshtml" + + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Html.HiddenFor(m => m.JobId)); #line default #line hidden - #line 10 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 11 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 11 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 12 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Html.HiddenFor(m => m.OrganisationAddressId)); #line default #line hidden - #line 11 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 12 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 12 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 13 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Html.HiddenFor(m => m.RepairProviderId)); #line default #line hidden - #line 12 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 13 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 13 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 14 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Html.HiddenFor(m => m.RepairDescription)); #line default #line hidden - #line 13 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 14 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 14 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 15 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Html.HiddenFor(m => m.ProviderPropertiesJson)); #line default #line hidden - #line 14 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 15 "..\..\Views\Job\LogRepairDisclose.cshtml" @@ -171,7 +185,7 @@ WriteLiteral(">\r\n \r\n \r\n \r\n WriteLiteral(" "); - #line 29 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 30 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.Job.Device.SerialNumber); @@ -195,7 +209,7 @@ WriteLiteral("\r\n \r\n \r\n WriteLiteral(" "); - #line 36 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 37 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.Job.Device.DeviceModel.Manufacturer); @@ -204,7 +218,7 @@ WriteLiteral(" "); WriteLiteral(" "); - #line 36 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 37 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.Job.Device.DeviceModel.Model); @@ -216,7 +230,7 @@ WriteLiteral("\r\n \r\n \r\n WriteLiteral(" "); - #line 43 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 44 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.TechUser.DisplayName); @@ -229,7 +243,7 @@ WriteLiteral(" class=\"smallMessage\""); WriteLiteral(">\r\n Email Address: "); - #line 45 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 46 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.TechUser.EmailAddress); @@ -238,7 +252,7 @@ WriteLiteral(">\r\n Email Address: "); WriteLiteral("
\r\n Phone Number: "); - #line 46 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 47 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.TechUser.PhoneNumber); @@ -259,7 +273,7 @@ WriteLiteral(">\r\n"); WriteLiteral(" "); - #line 55 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 56 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.OrganisationAddress.Name); @@ -272,7 +286,7 @@ WriteLiteral(" class=\"smallMessage\""); WriteLiteral(">\r\n "); - #line 57 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 58 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.OrganisationAddress.Address); @@ -281,7 +295,7 @@ WriteLiteral(">\r\n "); WriteLiteral("
\r\n "); - #line 58 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 59 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.OrganisationAddress.Suburb); @@ -290,7 +304,7 @@ WriteLiteral("
\r\n "); WriteLiteral(", "); - #line 58 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 59 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.OrganisationAddress.Postcode); @@ -299,7 +313,7 @@ WriteLiteral(", "); WriteLiteral("
\r\n "); - #line 59 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 60 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.OrganisationAddress.State); @@ -308,7 +322,7 @@ WriteLiteral("
\r\n "); WriteLiteral(", "); - #line 59 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 60 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.OrganisationAddress.Country); @@ -321,7 +335,7 @@ WriteLiteral("\r\n \r\n < WriteLiteral(" "); - #line 68 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 69 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.RepairProvider.Name); @@ -330,7 +344,7 @@ WriteLiteral(" "); WriteLiteral(" ("); - #line 68 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 69 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.RepairProvider.Id); @@ -339,7 +353,7 @@ WriteLiteral(" ("); WriteLiteral(") "); - #line 68 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 69 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.RepairProvider.PluginManifest.Version.ToString(3)); @@ -351,7 +365,7 @@ WriteLiteral("\r\n \r\n
\r\n WriteLiteral(" "); - #line 75 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 76 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.RepairDescription.ToMultilineString()); @@ -361,18 +375,18 @@ WriteLiteral("\r\n \r\n \r\n ">Disclosed Information\r\n \r\n \r\n"); - #line 97 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 98 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 97 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 98 "..\..\Views\Job\LogRepairDisclose.cshtml" if (Model.PublishAttachments.Count > 0) { @@ -434,13 +448,13 @@ WriteLiteral(" id=\"publishJobAttachments\""); WriteLiteral(">\r\n"); - #line 104 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 105 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 104 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 105 "..\..\Views\Job\LogRepairDisclose.cshtml" foreach (var ja in Model.PublishAttachments) { @@ -453,34 +467,34 @@ WriteLiteral(" type=\"hidden\""); WriteLiteral(" name=\"PublishAttachmentIds\""); -WriteAttribute("value", Tuple.Create(" value=\"", 4117), Tuple.Create("\"", 4131) +WriteAttribute("value", Tuple.Create(" value=\"", 4143), Tuple.Create("\"", 4157) - #line 106 "..\..\Views\Job\LogRepairDisclose.cshtml" - , Tuple.Create(Tuple.Create("", 4125), Tuple.Create(ja.Id + #line 107 "..\..\Views\Job\LogRepairDisclose.cshtml" + , Tuple.Create(Tuple.Create("", 4151), Tuple.Create(ja.Id #line default #line hidden -, 4125), false) +, 4151), false) ); WriteLiteral(" />\r\n"); WriteLiteral(" (Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) + #line 108 "..\..\Views\Job\LogRepairDisclose.cshtml" +, Tuple.Create(Tuple.Create("", 4208), Tuple.Create(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) #line default #line hidden -, 4182), false) +, 4208), false) ); WriteLiteral(" data-attachmentid=\""); - #line 107 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 108 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.Id); @@ -491,7 +505,7 @@ WriteLiteral("\""); WriteLiteral(" data-mimetype=\""); - #line 107 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 108 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.MimeType); @@ -503,68 +517,68 @@ WriteLiteral(">\r\n (ja.Filename + #line 109 "..\..\Views\Job\LogRepairDisclose.cshtml" +, Tuple.Create(Tuple.Create("", 4384), Tuple.Create(ja.Filename #line default #line hidden -, 4358), false) +, 4384), false) ); WriteLiteral(">\r\n (Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) + #line 110 "..\..\Views\Job\LogRepairDisclose.cshtml" + , Tuple.Create(Tuple.Create("", 4481), Tuple.Create(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) #line default #line hidden -, 4455), false) +, 4481), false) ); WriteLiteral(" />\r\n (ja.Comments + #line 111 "..\..\Views\Job\LogRepairDisclose.cshtml" +, Tuple.Create(Tuple.Create("", 4617), Tuple.Create(ja.Comments #line default #line hidden -, 4591), false) +, 4617), false) ); WriteLiteral(">\r\n"); - #line 111 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 112 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 111 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 112 "..\..\Views\Job\LogRepairDisclose.cshtml" if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) { #line default #line hidden - #line 112 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 113 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.DocumentTemplate.Description); #line default #line hidden - #line 112 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 113 "..\..\Views\Job\LogRepairDisclose.cshtml" } else { @@ -572,14 +586,14 @@ WriteLiteral(">\r\n"); #line default #line hidden - #line 114 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 115 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.Comments); #line default #line hidden - #line 114 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 115 "..\..\Views\Job\LogRepairDisclose.cshtml" } #line default @@ -591,7 +605,7 @@ WriteLiteral(" class=\"author\""); WriteLiteral(">"); - #line 115 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 116 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.TechUser.ToStringFriendly()); @@ -604,7 +618,7 @@ WriteLiteral(" class=\"timestamp\""); WriteLiteral(" data-livestamp=\""); - #line 115 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 116 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.Timestamp.ToUnixEpoc()); @@ -612,20 +626,20 @@ WriteLiteral(" data-livestamp=\""); #line hidden WriteLiteral("\""); -WriteAttribute("title", Tuple.Create(" title=\"", 5079), Tuple.Create("\"", 5117) +WriteAttribute("title", Tuple.Create(" title=\"", 5105), Tuple.Create("\"", 5143) - #line 115 "..\..\Views\Job\LogRepairDisclose.cshtml" - , Tuple.Create(Tuple.Create("", 5087), Tuple.Create(ja.Timestamp.ToFullDateTime() + #line 116 "..\..\Views\Job\LogRepairDisclose.cshtml" + , Tuple.Create(Tuple.Create("", 5113), Tuple.Create(ja.Timestamp.ToFullDateTime() #line default #line hidden -, 5087), false) +, 5113), false) ); WriteLiteral(">"); - #line 115 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 116 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(ja.Timestamp.ToFullDateTime()); @@ -634,7 +648,7 @@ WriteLiteral(">"); WriteLiteral("\r\n \r\n"); - #line 117 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 118 "..\..\Views\Job\LogRepairDisclose.cshtml" } @@ -644,7 +658,7 @@ WriteLiteral(" \r\n \r\n \r\n"); - #line 122 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 123 "..\..\Views\Job\LogRepairDisclose.cshtml" } @@ -666,7 +680,7 @@ WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\""); WriteLiteral(" title=\"Please Wait\""); -WriteLiteral(">Submitting Repair Request...\r\n \r\n"); +WriteLiteral(">Lodging Repair Request...\r\n \r\n"); WriteLiteral(@" \r\n"); +"\', value: $(\'#ManualProviderReference\').val() })\r\n ).append(\r\n " + +" $(\'\').attr({ type: \'hidden\', name: \'__RequestVerificationToken\'," + +" value: $providerId.closest(\'form\').find(\'input[name=\"__RequestVerificationToken" + +"\"]\').val() })\r\n ).appendTo(\'body\').submit();\r\n }\r\n\r\n $p" + +"roviderId.change(updateDetails);\r\n $addressId.change(updateDetails);\r\n\r\n " + +" var manualProvider = $(\'#ManualProviderName\');\r\n if (manualProvide" + +"r.length > 0 && !manualProvider.val()) {\r\n manualProvider.focus();\r\n " + +" } else {\r\n $(\'#FaultDescription\').focus();\r\n }\r\n\r\n " + +" $(\'#publishJobAttachments\').on(\'click\', \'input\', function (e) {\r\n " + +"e.preventDefault();\r\n setTimeout(function () {\r\n var $" + +"i = $(e.currentTarget);\r\n $i.prop(\'checked\', !$i.prop(\'checked\'))" + +";\r\n }, 0);\r\n return false;\r\n });\r\n });\r\n\r\n"); } } diff --git a/Disco.Web/Views/Job/LogWarrantyDisclose.cshtml b/Disco.Web/Views/Job/LogWarrantyDisclose.cshtml index 3f283fed..74f8ba14 100644 --- a/Disco.Web/Views/Job/LogWarrantyDisclose.cshtml +++ b/Disco.Web/Views/Job/LogWarrantyDisclose.cshtml @@ -2,10 +2,11 @@ @{ Authorization.Require(Claims.Job.Actions.LogWarranty); - ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty"); + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty"); } @using (Html.BeginForm(MVC.Job.LogWarranty(), FormMethod.Post)) { + @Html.AntiForgeryToken() @Html.ValidationSummary(true) @Html.HiddenFor(m => m.JobId) @Html.HiddenFor(m => m.OrganisationAddressId) @@ -16,28 +17,32 @@
In WriteLiteral(" "); - #line 22 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 23 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(Model.JobId); @@ -183,7 +197,7 @@ WriteLiteral("\r\n \r\n
\r\n " + " \r\n \r\n"); - #line 84 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 85 "..\..\Views\Job\LogRepairDisclose.cshtml" #line default #line hidden - #line 84 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 85 "..\..\Views\Job\LogRepairDisclose.cshtml" foreach (var dp in Model.DiscloseProperties) { @@ -382,7 +396,7 @@ WriteLiteral(">\r\n
\r\n"); WriteLiteral(" \r\n \r\n " \r\n "> \r\n"); - #line 92 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 93 "..\..\Views\Job\LogRepairDisclose.cshtml" } @@ -412,13 +426,13 @@ WriteLiteral("
"); - #line 87 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 88 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(dp.Key); @@ -392,7 +406,7 @@ WriteLiteral(":\r\n "); - #line 89 "..\..\Views\Job\LogRepairDisclose.cshtml" + #line 90 "..\..\Views\Job\LogRepairDisclose.cshtml" Write(dp.Value); @@ -402,7 +416,7 @@ WriteLiteral("\r\n
\r\n \r\n "d>\r\n
- - - - - - - - - - - - } + + + + + }
Internal Job Id: + + Internal Job Id: @Model.JobId
Device Serial Number: + + Device Serial Number: @Model.Job.Device.SerialNumber
Device Model: + + Device Model: @Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model
Technician: + + Technician: @Model.TechUser.DisplayName @@ -48,7 +53,8 @@
Warranty Address: + + Warranty Address:
@@ -62,21 +68,24 @@
Warranty Provider: + + Warranty Provider: @Model.WarrantyProvider.Name (@Model.WarrantyProvider.Id) @Model.WarrantyProvider.PluginManifest.Version.ToString(3)
Fault Description: + + Fault Description: @Model.FaultDescription.ToMultilineString()
Disclosed Information + + Disclosed Information
@@ -84,12 +93,15 @@ @foreach (var dp in Model.DiscloseProperties) {
@dp.Key: - @dp.Value -
+ @dp.Key: + + @dp.Value +
-

Submitting Warranty Job...

+

Lodging Warranty Claim...

- +
} \ No newline at end of file diff --git a/Disco.Web/Views/Job/LogWarrantyDisclose.generated.cs b/Disco.Web/Views/Job/LogWarrantyDisclose.generated.cs index 772a6e35..e516d8b5 100644 --- a/Disco.Web/Views/Job/LogWarrantyDisclose.generated.cs +++ b/Disco.Web/Views/Job/LogWarrantyDisclose.generated.cs @@ -48,7 +48,7 @@ namespace Disco.Web.Views.Job Authorization.Require(Claims.Job.Actions.LogWarranty); - ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty"); + ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Warranty"); #line default @@ -65,83 +65,97 @@ WriteLiteral("\r\n"); #line hidden #line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml" -Write(Html.ValidationSummary(true)); +Write(Html.AntiForgeryToken()); #line default #line hidden #line 9 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - + #line default #line hidden #line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml" +Write(Html.ValidationSummary(true)); + + + #line default + #line hidden + + #line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + + + + #line default + #line hidden + + #line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Html.HiddenFor(m => m.JobId)); #line default #line hidden - #line 10 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Html.HiddenFor(m => m.OrganisationAddressId)); #line default #line hidden - #line 11 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Html.HiddenFor(m => m.WarrantyProviderId)); #line default #line hidden - #line 12 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Html.HiddenFor(m => m.FaultDescription)); #line default #line hidden - #line 13 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 15 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Html.HiddenFor(m => m.ProviderPropertiesJson)); #line default #line hidden - #line 14 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 15 "..\..\Views\Job\LogWarrantyDisclose.cshtml" @@ -165,37 +179,39 @@ WriteLiteral(" class=\"form\""); WriteLiteral(" style=\"width: 650px\""); -WriteLiteral(">\r\n \r\n \r\n \r\n
Internal Job Id:\r\n " + -" \r\n"); +WriteLiteral(">\r\n \r\n \r\n \r\n \r\n \r\n \r\n Device Serial Number:\r\n \r\n \r\n \r\n \r\n Device Model:\r\n \r\n \r\n \r\n \r\n Technician:\r\n \r\n \r\n WriteLiteral(" style=\"width: 150px\""); -WriteLiteral(">Warranty Address:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Fault Description:\r\n \r\n \r\n \r\n \r\n Disclosed Information\r\n \r\n \r\n"); - #line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 109 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 109 "..\..\Views\Job\LogWarrantyDisclose.cshtml" if (Model.PublishAttachments.Count > 0) { @@ -434,13 +455,13 @@ WriteLiteral(" id=\"publishJobAttachments\""); WriteLiteral(">\r\n"); - #line 104 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 116 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 104 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 116 "..\..\Views\Job\LogWarrantyDisclose.cshtml" foreach (var ja in Model.PublishAttachments) { @@ -453,34 +474,34 @@ WriteLiteral(" type=\"hidden\""); WriteLiteral(" name=\"PublishAttachmentIds\""); -WriteAttribute("value", Tuple.Create(" value=\"", 4138), Tuple.Create("\"", 4152) +WriteAttribute("value", Tuple.Create(" value=\"", 4393), Tuple.Create("\"", 4407) - #line 106 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - , Tuple.Create(Tuple.Create("", 4146), Tuple.Create(ja.Id + #line 118 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + , Tuple.Create(Tuple.Create("", 4401), Tuple.Create(ja.Id #line default #line hidden -, 4146), false) +, 4401), false) ); WriteLiteral(" />\r\n"); WriteLiteral(" (Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) + #line 119 "..\..\Views\Job\LogWarrantyDisclose.cshtml" +, Tuple.Create(Tuple.Create("", 4458), Tuple.Create(Url.Action(MVC.API.Job.AttachmentDownload(ja.Id)) #line default #line hidden -, 4203), false) +, 4458), false) ); WriteLiteral(" data-attachmentid=\""); - #line 107 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 119 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(ja.Id); @@ -491,7 +512,7 @@ WriteLiteral("\""); WriteLiteral(" data-mimetype=\""); - #line 107 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 119 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(ja.MimeType); @@ -503,84 +524,85 @@ WriteLiteral(">\r\n (ja.Filename + #line 120 "..\..\Views\Job\LogWarrantyDisclose.cshtml" +, Tuple.Create(Tuple.Create("", 4634), Tuple.Create(ja.Filename #line default #line hidden -, 4379), false) +, 4634), false) ); WriteLiteral(">\r\n (Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) + #line 121 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + , Tuple.Create(Tuple.Create("", 4731), Tuple.Create(Url.Action(MVC.API.Job.AttachmentThumbnail(ja.Id)) #line default #line hidden -, 4476), false) +, 4731), false) ); -WriteLiteral(" />\r\n \r\n \r\n " + +" (ja.Comments + #line 123 "..\..\Views\Job\LogWarrantyDisclose.cshtml" +, Tuple.Create(Tuple.Create("", 4909), Tuple.Create(ja.Comments #line default #line hidden -, 4612), false) +, 4909), false) ); WriteLiteral(">\r\n"); - #line 111 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 124 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 111 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 124 "..\..\Views\Job\LogWarrantyDisclose.cshtml" if (!string.IsNullOrEmpty(ja.DocumentTemplateId)) - { + { #line default #line hidden - #line 112 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - Write(ja.DocumentTemplate.Description); + #line 125 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + Write(ja.DocumentTemplate.Description); #line default #line hidden - #line 112 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - } - else - { + #line 125 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + } + else + { #line default #line hidden - #line 114 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - Write(ja.Comments); + #line 127 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + Write(ja.Comments); #line default #line hidden - #line 114 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - } + #line 127 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + } #line default #line hidden @@ -591,7 +613,7 @@ WriteLiteral(" class=\"author\""); WriteLiteral(">"); - #line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(ja.TechUser.ToStringFriendly()); @@ -604,7 +626,7 @@ WriteLiteral(" class=\"timestamp\""); WriteLiteral(" data-livestamp=\""); - #line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(ja.Timestamp.ToUnixEpoc()); @@ -612,29 +634,29 @@ WriteLiteral(" data-livestamp=\""); #line hidden WriteLiteral("\""); -WriteAttribute("title", Tuple.Create(" title=\"", 5100), Tuple.Create("\"", 5138) +WriteAttribute("title", Tuple.Create(" title=\"", 5395), Tuple.Create("\"", 5433) - #line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - , Tuple.Create(Tuple.Create("", 5108), Tuple.Create(ja.Timestamp.ToFullDateTime() + #line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + , Tuple.Create(Tuple.Create("", 5403), Tuple.Create(ja.Timestamp.ToFullDateTime() #line default #line hidden -, 5108), false) +, 5403), false) ); WriteLiteral(">"); - #line 115 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 128 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(ja.Timestamp.ToFullDateTime()); #line default #line hidden -WriteLiteral("\r\n \r\n"); +WriteLiteral("\r\n \r\n"); - #line 117 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 130 "..\..\Views\Job\LogWarrantyDisclose.cshtml" } @@ -644,7 +666,7 @@ WriteLiteral(" \r\n \r\n \r\n"); - #line 122 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 135 "..\..\Views\Job\LogWarrantyDisclose.cshtml" } @@ -666,7 +688,7 @@ WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\""); WriteLiteral(" title=\"Please Wait\""); -WriteLiteral(">Submitting Warranty Job...\r\n \r\n"); +WriteLiteral(">Lodging Warranty Claim...\r\n \r\n"); WriteLiteral(@"
\r\n I" + +"nternal Job Id:\r\n \r\n"); WriteLiteral(" "); - #line 22 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 24 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.JobId); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Device Serial Number:\r\n \r\n " + +" \r\n"); WriteLiteral(" "); - #line 29 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 32 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.Job.Device.SerialNumber); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Device Model:\r\n \r\n \r\n"); WriteLiteral(" "); - #line 36 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 40 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.Job.Device.DeviceModel.Manufacturer); @@ -204,19 +220,20 @@ WriteLiteral(" "); WriteLiteral(" "); - #line 36 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 40 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.Job.Device.DeviceModel.Model); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Technician:\r\n \r\n \r" + +"\n"); WriteLiteral(" "); - #line 43 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 48 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.TechUser.DisplayName); @@ -229,7 +246,7 @@ WriteLiteral(" class=\"smallMessage\""); WriteLiteral(">\r\n Email Address: "); - #line 45 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 50 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.TechUser.EmailAddress); @@ -238,7 +255,7 @@ WriteLiteral(">\r\n Email Address: "); WriteLiteral("
\r\n Phone Number: "); - #line 46 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 51 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.TechUser.PhoneNumber); @@ -249,8 +266,8 @@ WriteLiteral("\r\n \r\n
\r\n " + -" \r\n Warranty Address:\r\n \r\n " + +"\r\n \r\n"); WriteLiteral(" "); - #line 55 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 61 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.OrganisationAddress.Name); @@ -272,7 +289,7 @@ WriteLiteral(" class=\"smallMessage\""); WriteLiteral(">\r\n "); - #line 57 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 63 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.OrganisationAddress.Address); @@ -281,7 +298,7 @@ WriteLiteral(">\r\n "); WriteLiteral("
\r\n "); - #line 58 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 64 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.OrganisationAddress.Suburb); @@ -290,7 +307,7 @@ WriteLiteral("
\r\n "); WriteLiteral(", "); - #line 58 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 64 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.OrganisationAddress.Postcode); @@ -299,7 +316,7 @@ WriteLiteral(", "); WriteLiteral("
\r\n "); - #line 59 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 65 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.OrganisationAddress.State); @@ -308,20 +325,20 @@ WriteLiteral("
\r\n "); WriteLiteral(", "); - #line 59 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 65 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.OrganisationAddress.Country); #line default #line hidden WriteLiteral("\r\n \r\n \r\n " + -"
Warranty Pro" + -"vider:\r\n \r\n"); +"
\r\n " + +" Warranty Provider:\r\n \r\n"); WriteLiteral(" "); - #line 68 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.WarrantyProvider.Name); @@ -330,7 +347,7 @@ WriteLiteral(" "); WriteLiteral(" ("); - #line 68 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.WarrantyProvider.Id); @@ -339,71 +356,75 @@ WriteLiteral(" ("); WriteLiteral(") "); - #line 68 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.WarrantyProvider.PluginManifest.Version.ToString(3)); #line default #line hidden WriteLiteral("\r\n
\r\n"); +">\r\n Fault Description:\r\n \r\n " + +" \r\n"); WriteLiteral(" "); - #line 75 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 83 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(Model.FaultDescription.ToMultilineString()); #line default #line hidden WriteLiteral("\r\n
\r\n " + -" \r\n Disclosed Information\r\n \r\n " + +" \r\n \r\n \r\n"); - #line 84 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 93 "..\..\Views\Job\LogWarrantyDisclose.cshtml" #line default #line hidden - #line 84 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 93 "..\..\Views\Job\LogWarrantyDisclose.cshtml" foreach (var dp in Model.DiscloseProperties) { #line default #line hidden -WriteLiteral(" \r\n \r\n \r\n " + -" \r\n \r\n"); +WriteLiteral("\r\n \r\n \r\n"); - #line 92 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - } + #line 103 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + + } #line default @@ -412,13 +433,13 @@ WriteLiteral("
"); +WriteLiteral("
\r\n"); + +WriteLiteral(" "); - #line 87 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + #line 97 "..\..\Views\Job\LogWarrantyDisclose.cshtml" Write(dp.Key); #line default #line hidden -WriteLiteral(":\r\n "); +WriteLiteral(":\r\n \r\n \r\n"); + +WriteLiteral(" "); - #line 89 "..\..\Views\Job\LogWarrantyDisclose.cshtml" - Write(dp.Value); + #line 100 "..\..\Views\Job\LogWarrantyDisclose.cshtml" + Write(dp.Value); #line default #line hidden -WriteLiteral("\r\n
\r\n \r\n "d>\r\n