public bool guardarIdentificacionUbicacion() { using (DataAccess datos = new DataAccess()) { try { IdentificacionUbicacionlModel identificacionUbicacionModel = MainViewModel.GetInstance().IdentificacionUbicacionPart; /***/ identificacionubicacionlote iulote = new identificacionubicacionlote(); iulote.ID_IULOTE = identificacionUbicacionModel.ID_IULOTE; iulote.ID_DDPLOTE = identificacionUbicacionModel.ID_DDPLOTE; iulote.CLAVECATASTRALANTIGUO_IULOTE = identificacionUbicacionModel.CLAVECATASTRALANTIGUO_IULOTE; iulote.CLAVECATASTRALNUEVO_IULOTE = identificacionUbicacionModel.CLAVECATASTRALNUEVO_IULOTE; iulote.NUMEROPREDIO_IULOTE = identificacionUbicacionModel.NUMEROPREDIO_IULOTE; DDescriptivosPredio_IULote dDescriptivos = new DDescriptivosPredio_IULote(); dDescriptivos.ID_DDPLOTE = identificacionUbicacionModel.ID_DDPLOTEDP; dDescriptivos.ID_DLOTE = identificacionUbicacionModel.ID_DLOTE; dDescriptivos.NOMBRESECTOR_DDPLOTE = identificacionUbicacionModel.NOMBRESECTOR_DDPLOTE; dDescriptivos.NOMBREEDIFICIO_DDPLOTE = identificacionUbicacionModel.NOMBREEDIFICIO_DDPLOTE; dDescriptivos.USOPREDIO_DDPLOTE = identificacionUbicacionModel.USOPREDIO_DDPLOTE; dDescriptivos.TIPOPREDIO_DDPLOTE = identificacionUbicacionModel.MyTipoPredio; dDescriptivos.REGIMENTENECIA_DDPLOTE = identificacionUbicacionModel.MyRegimenTenencia; Direccion_DDPLote dDPLote = new Direccion_DDPLote(); dDPLote.ID_DLOTE = identificacionUbicacionModel.ID_DLOTEDIR; dDPLote.CALLEP_DLOTE = identificacionUbicacionModel.CALLEP_DLOTE; dDPLote.NO_DLOTE = identificacionUbicacionModel.NO_DLOTE; dDPLote.INTERSECCION_DLOTE = identificacionUbicacionModel.INTERSECCION_DLOTE; /****/ datos.updateIdentificacionUbicacion(iulote); datos.updateDDescriptivosPredio_IULote(dDescriptivos); datos.updateDireccion_DDPLote(dDPLote); datos.updateCambiosEstadoSqlite(true); MainViewModel.GetInstance().Formularioall.ESTADO_FORMULARIO = true; datos.updateEstadoFormulario(MainViewModel.GetInstance().Formularioall.ESTADO_FORMULARIO, MainViewModel.GetInstance().Formularioall.CODIGO_FORMULARIO, MainViewModel.GetInstance().Formularioall.ID_FORMULARIO); return(true); } catch (Exception ee) { } } return(false); }
/***********/ public formularioAll getFormularioAllCodigo(int codigo) { formularioAll fall = new formularioAll(); formulario f = new formulario(); /*Identifucacion Ubicacion*/ Direccion_DDPLote direccion_DDPLote = new Direccion_DDPLote(); DDescriptivosPredio_IULote dDescriptivosPredio_IULote = new DDescriptivosPredio_IULote(); identificacionubicacionlote identificacionubicacionlote = new identificacionubicacionlote(); /***/ f = getFormularioCodigo(codigo); //fall = connection.Table<formularioAll>().FirstOrDefault(c => c.CODIGO_FORMULARIO == codigo); fall = connection.Query <formularioAll>("SELECT * FROM formularioAll WHERE CODIGO_FORMULARIO=?", codigo).FirstOrDefault(); fall.identificacionubicacionlote = getidentificacionubicacionlote(f.ID_IULOTE); fall.identificacionubicacionlote.dDescriptivosPredio_IULote = getDDescriptivosPredio_IULote(fall.identificacionubicacionlote.ID_DDPLOTE); fall.identificacionubicacionlote.dDescriptivosPredio_IULote.dDPLote = getDireccion_DDPLote(fall.identificacionubicacionlote.dDescriptivosPredio_IULote.ID_DLOTE); return(fall); }
public formularioAll listarFormulariosAll(int codigo, int codigo3, int codigo2) { var serviciof = new WSGestionFormulario(); formularioAll formAll = new formularioAll(); /***/ identificacionubicacionlote iul = new identificacionubicacionlote(); DDescriptivosPredio_IULote dDescriptivosPredio_IULote = new DDescriptivosPredio_IULote(); Direccion_DDPLote direccion_DDPLote = new Direccion_DDPLote(); /***/ AmazonDesgoWebServiceForm1.formulario f = new AmazonDesgoWebServiceForm1.formulario(); AmazonDesgoWebServiceForm1.formularioIds fid = new AmazonDesgoWebServiceForm1.formularioIds() { idFormulario = codigo, identificacionU_F = codigo2, }; AmazonDesgoWebServiceForm1.user us = new AmazonDesgoWebServiceForm1.user() { ID_USUARIO = 1, }; try { f = serviciof.listarFormularioInt(codigo, codigo2); formAll.ID_FORMULARIO = f.idFormulario; formAll.CODIGO_FORMULARIO = codigo3; /****/ iul.ID_IULOTE = f.identificacionU_F.ID_IULOTE; iul.ID_DDPLOTE = f.identificacionU_F.ID_DDPLOTE; iul.CLAVECATASTRALNUEVO_IULOTE = f.identificacionU_F.CLAVECATASTRALNUEVO_IULOTE; iul.CLAVECATASTRALANTIGUO_IULOTE = f.identificacionU_F.CLAVECATASTRALANTIGUO_IULOTE; iul.NUMEROPREDIO_IULOTE = f.identificacionU_F.NUMEROPREDIO_IULOTE; dDescriptivosPredio_IULote.ID_DDPLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.ID_DDPLOTE; dDescriptivosPredio_IULote.ID_DLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.ID_DLOTE; dDescriptivosPredio_IULote.NOMBREEDIFICIO_DDPLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.NOMBREEDIFICIO_DDPLOTE; dDescriptivosPredio_IULote.NOMBRESECTOR_DDPLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.NOMBRESECTOR_DDPLOTE; dDescriptivosPredio_IULote.USOPREDIO_DDPLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.USOPREDIO_DDPLOTE; dDescriptivosPredio_IULote.TIPOPREDIO_DDPLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.TIPOPREDIO_DDPLOTE; dDescriptivosPredio_IULote.REGIMENTENECIA_DDPLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.REGIMENTENECIA_DDPLOTE; direccion_DDPLote.ID_DLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.ID_DLOTE; direccion_DDPLote.INTERSECCION_DLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.INTERSECCION_DLOTE; direccion_DDPLote.NO_DLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.NO_DLOTE; direccion_DDPLote.CALLEP_DLOTE = f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.CALLEP_DLOTE; formAll.identificacionubicacionlote = iul; formAll.identificacionubicacionlote.dDescriptivosPredio_IULote = dDescriptivosPredio_IULote; formAll.identificacionubicacionlote.dDescriptivosPredio_IULote.dDPLote = direccion_DDPLote; /***/ formAll.ID_USUARIO = f.idUsuario_F; //formAll.CODIGO_FORMULARIO = f.codigo_F; if (f.estado_F == 0) { formAll.ESTADO_FORMULARIO = false; } else { formAll.ESTADO_FORMULARIO = true; } return(formAll); } catch (Exception e) { } return(formAll); }
public AmazonDesgoWebServiceForm1.formulario convertirFAlltoFAws(formularioAll formAll) { AmazonDesgoWebServiceForm1.formulario f = new AmazonDesgoWebServiceForm1.formulario(); /***/ //SQlite identificacionubicacionlote iul = formAll.identificacionubicacionlote; DDescriptivosPredio_IULote dDescriptivosPredio_IULote = formAll.identificacionubicacionlote.dDescriptivosPredio_IULote; Direccion_DDPLote direccion_DDPLote = formAll.identificacionubicacionlote.dDescriptivosPredio_IULote.dDPLote; //AWS identificacionUF uF = new identificacionUF(); dDescriptivosPredioIULote dDescriptivosPredio = new dDescriptivosPredioIULote(); direccionDDPLote direccion = new direccionDDPLote(); dDescriptivosPredio.dDPLote = direccion; uF.dDescriptivosPredio_IULote = dDescriptivosPredio; f.identificacionU_F = uF; /***/ f.idFormulario = formAll.ID_FORMULARIO; f.idFormularioSpecified = true; f.codigo_F = formAll.CODIGO_FORMULARIO; f.codigo_FSpecified = true; /****/ f.identificacionU_F.ID_IULOTE = iul.ID_IULOTE; f.identificacionU_F.ID_IULOTESpecified = true; f.identificacionU_F.ID_DDPLOTE = iul.ID_DDPLOTE; f.identificacionU_F.ID_DDPLOTESpecified = true; f.identificacionU_F.CLAVECATASTRALNUEVO_IULOTE = iul.CLAVECATASTRALNUEVO_IULOTE; f.identificacionU_F.CLAVECATASTRALANTIGUO_IULOTE = iul.CLAVECATASTRALANTIGUO_IULOTE; f.identificacionU_F.NUMEROPREDIO_IULOTE = iul.NUMEROPREDIO_IULOTE; f.identificacionU_F.dDescriptivosPredio_IULote.ID_DDPLOTE = dDescriptivosPredio_IULote.ID_DDPLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.ID_DDPLOTESpecified = true; f.identificacionU_F.dDescriptivosPredio_IULote.ID_DLOTE = dDescriptivosPredio_IULote.ID_DLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.ID_DLOTESpecified = true; f.identificacionU_F.dDescriptivosPredio_IULote.NOMBREEDIFICIO_DDPLOTE = dDescriptivosPredio_IULote.NOMBREEDIFICIO_DDPLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.NOMBRESECTOR_DDPLOTE = dDescriptivosPredio_IULote.NOMBRESECTOR_DDPLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.USOPREDIO_DDPLOTE = dDescriptivosPredio_IULote.USOPREDIO_DDPLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.TIPOPREDIO_DDPLOTE = dDescriptivosPredio_IULote.TIPOPREDIO_DDPLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.REGIMENTENECIA_DDPLOTE = dDescriptivosPredio_IULote.REGIMENTENECIA_DDPLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.ID_DLOTE = direccion_DDPLote.ID_DLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.ID_DLOTESpecified = true; f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.INTERSECCION_DLOTE = direccion_DDPLote.INTERSECCION_DLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.NO_DLOTE = direccion_DDPLote.NO_DLOTE; f.identificacionU_F.dDescriptivosPredio_IULote.dDPLote.CALLEP_DLOTE = direccion_DDPLote.CALLEP_DLOTE; /***/ f.idUsuario_F = formAll.ID_USUARIO; f.idUsuario_FSpecified = true; f.estado_FSpecified = true; if (formAll.ESTADO_FORMULARIO == true) { f.estado_F = 1; } else { f.estado_F = 0; } return(f); }
public void InsertDireccion_DDPLote(Direccion_DDPLote model) { connection.Insert(model); }
public void updateDireccion_DDPLote(Direccion_DDPLote model) { connection.Update(model); }