Пример #1
0
 public ParentViewModel()
 {
     Customer = new CustomerViewModel();
     Accident = new AccidentViewModel();
     Witnessses = new List<WitnessViewModel>();
     OtherDrivers = new List<OtherDriverViewModel>();
 }
        public async Task<CustomerViewModel> PostCustomerAsync(CustomerViewModel customerViewModel)
        {
            using (var client = new AutoResolveWebserviceClient<CustomerViewModel>("api/customer"))
            {
                var response = await client.PostAsync(customerViewModel);

                if (response.IsSuccessStatusCode)
                {
                    var content = await response.Content.ReadAsStringAsync();
                    var model = JsonConvert.DeserializeObject<CustomerViewModel>(content);

                    await DisplayAlert("Thanks, we got that!", "Customer Created", "Ok");

                    return model;
                }

                throw new HttpRequestException();
            }                       
        }
        private void Init()
        {
            vm = App.parentViewModel.Customer;
            BindingContext = vm;
            BackgroundColor = Color.White;
            Title = App.CurrentTitle;
            CarPlan.GestureRecognizers.Add(new TapGestureRecognizer
            {
                NumberOfTapsRequired = 1,
                Command = new Command(x =>
                {
                    picker = DependencyService.Get<IPictureTaker>();
                    App.LatestPhotographer = _callingPageIdentification;
                    picker.SnapPic();
                })
            });
            

        }
        public async Task then_it_should_return_200_OK()
        {
            //act
            var customer = new CustomerViewModel
            {

                Title = "Mr",
                FirstName = "APITestCustomer",
                LastName = "APITest",            
                Email = "APItest",
                Telephone = "API09484 49493"

            };

            result = await client.PostAsJsonAsync("api/customers", customer);

            //assert
            result.IsSuccessStatusCode.ShouldBeTrue();

        }
        /*    [Route("api/v1/customers", Name = "PutCustomersCollectionRoot")]*/
        /*    [Route("api/v1/customers/{id}", Name = "PutCustomers")]*/
        public async Task<IHttpActionResult> Put(int id, CustomerViewModel customerViewModel)
        {
            //check it exists


            try
            {
                this.Validate(customerViewModel);
                if (ModelState.IsValid)
                {
                    ClaimsPrincipal principal = Request.GetRequestContext().Principal as ClaimsPrincipal;
                    var existingObjectInDb = _db.Customers.AsNoTracking().FirstOrDefault(x => x.Id == customerViewModel.Id);

                    if (existingObjectInDb == null)
                    {

                       
                GenerateBaseLog(ApiLogType.Warning,
                    LogMessageGenerator.Generate(ApiLogggingBaseMessages.NotFoundMessage, __loggingResourceName),
                    GetType(), GetCaller());
                        return NotFound();
                    }

                    if (await _dataAccessAuthoriser.AuthoriseAccessToClientData(principal, existingObjectInDb))
                    {


                        if (customerViewModel.Id != 0)
                        {
                            await _repo.Update(TheModelFactoryV1.Parse(customerViewModel));

                           
                    GenerateBaseLog(ApiLogType.Information,
                       LogMessageGenerator.Generate(ApiLogggingBaseMessages.Created, __loggingResourceName),
                        GetType(), GetCaller());
                            return StatusCode(HttpStatusCode.NoContent);
                        }



                       
                    GenerateBaseLog(ApiLogType.Error,
                        LogMessageGenerator.Generate(ApiLogggingBaseMessages.UnauthorisedAccess, __loggingResourceName),
                        GetType(), GetCaller());
                        return
                        ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.Unauthorized,
                            "You are not authorised to access this resource."));

                    }
                }
                return BadRequest(ModelState);
            }

            catch (Exception ex)
            {

               
   GenerateBaseLog(ApiLogType.Error,
        LogMessageGenerator.Generate(ApiLogggingBaseMessages.InternalServerErrorMessage, __loggingResourceName),
       GetType(), GetCaller(), ex);
                return
                    InternalServerError(
                        new Exception(
                            "An internal server error occurred when updating a Customer. Please contact api support."));
            }
        }
        /*  [Route("api/v1/customers", Name = "PostCustomers")]*/
        public async Task<IHttpActionResult> Post(CustomerViewModel customerViewModel)
        {
            this.Validate(customerViewModel);
            if (ModelState.IsValid)
            {
                try
                {
                    //email of customer needs to be set to the same as authiorised used
                    ClaimsPrincipal principal = Request.GetRequestContext().Principal as ClaimsPrincipal;
                    var name = principal.Identity.Name;

                    if (name != null)
                    {

                        var customerToCreate = TheModelFactoryV1.Parse(customerViewModel);

                        /*VERY IMPORTANT - KEEPS SYSTEM REFERENTIAL INTEGRITY*/
                        //the customer email is hardcoded to the logon
                        //todo:some work here
                        customerToCreate.Email = name;
                        customerToCreate.AspNetUserId = Guid.Parse(User.Identity.GetUserId());

                        var created = TheModelFactoryV1.Create(await _repo.Add(customerToCreate));

                       
        GenerateBaseLog(ApiLogType.Information,
            LogMessageGenerator.Generate(ApiLogggingBaseMessages.Created, __loggingResourceName),
            GetType(), GetCaller());
                        return CreatedAtRoute("Customers", new { id = created.Id }, new StandardPagedResultV1 { Meta = new MetaDescription(), Data = created });
                    }

                }
                catch (Exception ex)
                {
                   
     GenerateBaseLog(ApiLogType.Error,
         LogMessageGenerator.Generate(ApiLogggingBaseMessages.InternalServerErrorMessage, __loggingResourceName),
         GetType(), GetCaller(), ex);
                    return InternalServerError(new Exception("An internal server error occurred when creating a Customer. Please contact api support."));
                }
            }

           
            GenerateBaseLog(ApiLogType.Warning,
                LogMessageGenerator.Generate(ApiLogggingBaseMessages.BadRequestMessage, __loggingResourceName),
                GetType(), GetCaller());
            return BadRequest(ModelState);
        }
        private string GenerateAccidentHtml(CustomerViewModel customer, OtherDriverViewModel otherDriver, AccidentViewModel accident)
        {

            var fullNameIncTitle = customer.Title + " " + customer.FirstName + " " + customer.LastName;
            var fullDefendantName = otherDriver.FirstName + " " + otherDriver.LastName;

            var accidentHtml = "<!DOCTYPE html><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"generator\" content=\"SautinSoft.RtfToHtml.dll\"><title>Document title</title><style type=\"text/css\">.st1{font-family:Verdana;font-size:12pt;color:#000000;}.st2{font-family:Arial;font-size:10pt;color:#C60071;font-weight:bold}.st3{font-family:Arial;font-size:9pt;color:#808080;}.st4{font-family:Arial;font-size:9pt;color:#000000;}.st5{font-family:Arial;font-size:9pt;color:#44146A;}.st6{font-family:Arial;font-size:9pt;color:#44146A;font-weight:bold}.st7{font-family:Arial;font-size:9pt;color:#1B2F41;;text-decoration: underline}.st8{font-family:Arial;font-size:10pt;color:#44146A;}.st9{font-family:Arial;font-size:10pt;color:#000000;}.st10{font-family:'Times New Roman';font-size:10pt;color:#000000;}.st11{font-family:Arial;font-size:6pt;color:#C0C0C0;}.st12{font-family:Calibri;font-size:11pt;color:#000000;}</style></head><body><div style=\"width:595.3pt;margin-left:72pt;margin-right:72pt;margin-top:72pt;margin-bottom:0pt\"><table style=\"margin-left:-2.25pt;border-collapse:collapse;\"><tr><td style=\"vertical-align:top;width:454.3pt;border:none;padding:0.75pt 0.75pt 0.75pt 0.75pt;\"><table style=\"margin-left:1.9pt;border-collapse:collapse;\"><tr><td style=\"vertical-align:top;width:449pt;border:solid 1pt #C0C0C0;padding:3pt 0pt 1.5pt 1.5pt;\"><table style=\"margin-left:10pt;border-collapse:collapse;\"><tr><td style=\"vertical-align:bottom;width:429pt;border:none;padding:0pt 0pt 1.5pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;text-align:right;line-height:normal;\"><span class=\"st1\">&nbsp;</span></div></td></tr><tr><td style=\"vertical-align:middle;width:414pt;border:solid 1pt #A9A9A9;padding:7.5pt 7.5pt 7.5pt 7.5pt;\"><table style=\"margin-left:0.75pt;border-collapse:collapse;\"><tr><td style=\"vertical-align:top;width:1.55pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><span class=\"st1\">&nbsp;</span></div></td><td colspan=\"2\" style=\"vertical-align:top;width:412.5pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:auto 0pt auto 0pt;text-align:right;line-height:normal;\"><span class=\"st2\">" +
                fullNameIncTitle +
                "&#13;<br /></span><span class=\"st3\">Axiapp Ref: " + "TESTREF" +
                "&#13;<br />Accident Date:&nbsp; " + ((DateTime)accident.AccidentDateTime).ToShortDateString() +
                "&#13;<br /></span></div></td></tr><tr><td colspan=\"2\" style=\"vertical-align:middle;width:412.5pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><span class=\"st1\">&nbsp;</span></div></td></tr><tr><td colspan=\"2\" style=\"vertical-align:middle;width:412.5pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st4\">&nbsp;</span></div><div style=\"margin:auto 0pt auto 0pt;text-align:justify;line-height:normal;\"><span class=\"st5\">Dear "
                + customer.Title + " " + customer.LastName + ",</span></div><div style=\"margin:auto 0pt auto 0pt;text-align:justify;line-height:normal;\"><span class=\"st5\">Following the recent collision.</span></div><div style=\"margin:auto 0pt auto 0pt;text-align:justify;line-height:normal;\"><span class=\"st6\">The Details are:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div><table style=\"margin-left:0.25pt;border-collapse:collapse;\"><tr><td style=\"vertical-align:top;width:195.05pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st6\">"
                + "My Name:</span><span class=\"st5\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + fullNameIncTitle + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st4\">&nbsp;</span></div></td><td style=\"vertical-align:top;width:195.1pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st6\">Your Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class=\"st5\">"
                + fullDefendantName + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st4\">&nbsp;</span></div></td></tr><tr><td style=\"vertical-align:top;width:195.05pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Email: </span>"
                + "<a href=\"mailto:" + customer.Email + "\"><span class=\"st7\">" + customer.Email + "</span></a></div></td><td style=\"vertical-align:top;width:195.1pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Email: "
                + "</span><a href=\"mailto:" + otherDriver.Email + "\"><span class=\"st7\">" + otherDriver.Email + "</span></a></div></td></tr><tr><td style=\"vertical-align:top;width:195.05pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Contact Number:&nbsp;"
                + customer.Telephone + "</span></div></td><td style=\"vertical-align:top;width:195.1pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Contact Number:&nbsp; "
                + otherDriver.Telephone + "</span></div></td></tr><tr><td style=\"vertical-align:top;width:195.05pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Vehicle Registration Number : " +
                customer.VRN + "&#13;<br /></span></div></td><td style=\"vertical-align:top;width:195.1pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Vehicle Registration Number "
                + otherDriver.VRN + "&#13;<br /></span></div></td></tr><tr><td style=\"vertical-align:top;width:195.05pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Insurer Name:"
                + customer.Insurer + "</span></div></td><td style=\"vertical-align:top;width:195.1pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Insurer Name: "
                + otherDriver.InsurerName + "</span></div></td></tr><tr><td style=\"vertical-align:top;width:195.05pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Policy Number: "
                + customer.PolicyNumber + "</span></div></td><td style=\"vertical-align:top;width:195.1pt;border:solid 1pt #000000;padding:0pt 5.4pt 0pt 5.4pt;\"><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Policy Number: "
                + otherDriver.PolicyNumber + "</span></div></td></tr></table><div style=\"margin:auto 0pt auto 0pt;line-height:normal;\"><span class=\"st5\">Axiapp</span></div></td></tr><tr><td colspan=\"2\" style=\"vertical-align:top;width:412.5pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><span class=\"st3\">&#13;<br /></span></div></td></tr><tr><td colspan=\"2\" style=\"vertical-align:middle;width:412.5pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:auto 0pt auto 0pt;text-align:right;line-height:normal;\"><a href=\"http://www.linkedin.com/groups/InterResolve-4048238?trk=myg_ugrp_ovr\"><span class=\"st8\">&#13;<br /></span></a><span class=\"st9\">&nbsp;&nbsp; </span></div></td></tr><tr><td style=\"vertical-align:middle;width:1.55pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><span class=\"st1\">&nbsp;</span></div></td><td colspan=\"2\" style=\"vertical-align:middle;width:412.5pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><span class=\"st10\">&nbsp;</span></div></td></tr></table></td></tr><tr><td style=\"vertical-align:middle;width:429pt;border:none;padding:0pt 0pt 0pt 0pt;\"><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><span class=\"st11\">&#13;<br /></span></div></td></tr></table><div style=\"margin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ADYUWO/unAAgCE1zF8FAADsqLFfXTgAwJAa5q8CAAB21NivLhwAYEgN81cBAAA7auxXFw4AMKSG+asAAIAdNfarCwcAGFLD/FUAAMCOGvvVhQMADKlh/ioAAGBHjf3qwgEAhtQwfxUAALCjxn514QAAQ2qYvwoAANhRY7+6cACAITXMXwUAAOyosV9dOADAkBrmrwIAAHbU2K8uHABgSA3zVwEAADtq7FcXDgAwpIb5qwAAgB019qsLBwAYUsP8VQAAwI4a+9WFAwAMqWH+KgAAYEeN/erCAQCG1DB/FQAAsKPGfnXhAABDapi/CgAA2FFjv7pwAIAhNcxfBQAA7KixX104AMCQGuavAgAAdtTYry4cAGBIDfNXAQAAO2rsVxcOADCkhvmrAACAHTX2qwsHABhSw/xVAADAjhr71YUDAAypYf4qAABgR4396sIBAIbUMH8VAACwo8Z+deEAAENqmL8KAADYUWO/unAAgCE1zF8FAADsqLFfXTgAwJAa5q8CAAB21NivLhwAYEgN81cBAAA7auxXFw4AMKSG+asAAIAdNfarCwcAGFLD/FUAAMCOGvvVhQMADKlh/ioAAGBHjf3qwgEAhtQwfxUAALCjxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514QAAAAAAY2rsVxcOAAAAADCmxn514Q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kiRJ0ke7cACQJEmSJOmjXTgASJIkSZL00S4cACRJkiRJ+mgXDgCSJEmSJH20CwcASZIkSZI+2oUDgCRJkiRJH+3CAUCSJEmSpI928bf/+gkAAAD8xhwAAAAA4AdwAAAAAIAfwAEAAAAAfgAHAAAAAPgBHAAAAADgB3AAAAAAgB/AAQAAAAB+AAcAAAAA+AEcAAAAAOAHcAAAAACAH8ABAAAAAH4ABwAAAAD4ARwAAAAA4AdwAAAAAIAfwAEAAAAAfgAHAAAAAPgBHAAAAADgB3AAAAAAgB/AAQAAAAB+AAcAAAAA+AEcAAAAAOAHcAAAAACAH8ABAAAAAH4ABwAAAAD4ARwAAAAA4AdwAAAAAIAfwAEAAAAAfgAHAAAAAPgBHAAAAADgB3AAAAAAgB/AAQAAAAB+e//5n/8LalPVuviNNl4AAAAASUVORK5CYII=\" width=\"96\" height=\"24\" alt=\"\"></div><div style=\"margin:0pt 0pt 0pt 0pt;line-height:normal;\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPBAMAAAAWtvJmAAAAAXNSR0ICQMB9xQAAADBQTFRFAAAAgAAAAIAAgIAAAACAgACAAICAgICAwMDA/wAAAP8A//8AAAD//wD/AP//////ex+xxAAAAGJJREFUGNNFjiEOwDAIRXGIiV51rk0mVonrVXCTXAm3JoiuG6RDfPHy8/iQ18EpIgAzLjjMtIzN7P4oNg1qUHRzyoSYnCaq2Sm3TtFVGi0MXF6Bd5EmDMNeZXn7+sa+4V/2AGN8X4j84l45AAAAAElFTkSuQmCC\" width=\"20\" height=\"15\" alt=\"\"></div></td></tr></table></td></tr></table></body></html>";
            return accidentHtml;
        }