public void MeetingDomicilio(int idMeeting) { using (var db = FactoryConn.GetConn()) { var MeetingId = int.Parse(idMeeting.ToString()); var dto = new ModelContainer(); dto.Reference = db.Table <Meeting> ().Where(s => s.Id == MeetingId).FirstOrDefault().CaseDetentionId.ToString() ?? ""; ImputedHome mdl = new ImputedHome(); mdl.MeetingId = idMeeting; dto.JsonModel = JsonConvert.SerializeObject(mdl); var temp = new AddressUpsert { Model = dto }; var pagestring = "nada que ver"; pagestring = temp.GenerateString(); webView.LoadHtmlString(pagestring); db.Close(); } }
public DomiciliosVerificationDto(ImputedHome nuevo) { this.AddressId = nuevo.AddressId; this.addressString = nuevo.addressString; this.Description = nuevo.Description; this.HomeTypeId = nuevo.HomeTypeId; this.Id = nuevo.Id; this.InnNum = nuevo.InnNum; this.Lat = nuevo.Lat; this.Lng = nuevo.Lng; this.LocationId = nuevo.LocationId; this.MeetingId = nuevo.MeetingId; this.OutNum = nuevo.OutNum; this.Phone = nuevo.Phone; this.ReasonChange = nuevo.ReasonChange; this.ReasonSecondary = nuevo.ReasonSecondary; this.RegisterTypeId = nuevo.RegisterTypeId; this.Specification = nuevo.Specification; this.Street = nuevo.Street; this.TimeLive = nuevo.TimeLive; }
public void EditMeetingDomicilio(int idHome) { var HomeId = int.Parse(idHome.ToString()); var dto = new ModelContainer(); using (var db = FactoryConn.GetConn()) { ImputedHome mdl = db.Table <ImputedHome> ().Where(lv => lv.Id == HomeId).FirstOrDefault(); if (mdl != null) { var schedule = db.Table <Schedule> ().Where(sc => sc.ImputedHomeId == mdl.Id).ToList(); if (schedule != null) { mdl.Schedule = JsonConvert.SerializeObject(schedule); } } if (mdl != null) { dto.JsonModel = JsonConvert.SerializeObject(mdl); dto.Reference = db.Table <Meeting> ().Where(s => s.Id == mdl.MeetingId).FirstOrDefault().CaseDetentionId.ToString() ?? ""; } else { mdl = new ImputedHome(); mdl.MeetingId = idHome; dto.JsonModel = JsonConvert.SerializeObject(mdl); } db.Close(); } var temp = new AddressUpsert { Model = dto }; // var temp = new NewMeeting{Model = new EntrevistaTabla{Name="nombre" , DateBirthString=DateTime.Today.ToString("yyyy/mm/dd")} }; var pagestring = "nada que ver"; pagestring = temp.GenerateString(); webView.LoadHtmlString(pagestring); }