Ejemplo n.º 1
0
        public void Insertformularioall(formularioAll model)
        {
            connection.Insert(model);
            /****Identificacion Ubicacion****/
            Insertidentificacionubicacionlote(model.identificacionubicacionlote);
            InsertDDescriptivosPredio_IULote(model.identificacionubicacionlote.dDescriptivosPredio_IULote);
            InsertDireccion_DDPLote(model.identificacionubicacionlote.dDescriptivosPredio_IULote.dDPLote);

            /********/
        }
Ejemplo n.º 2
0
        public formularioAll convertirFtoFAll(formulario f)
        {
            formularioAll fAll = new formularioAll();

            using (DataAccess datos = new DataAccess())
            {
                //fAll.ID_FORMULARIO = f.ID_FORMULARIO;
                //fAll.CODIGO_FORMULARIO = f.CODIGO_FORMULARIO;
                //fAll.USUARIO_FORMULARIO = f.ID_USUARIO;
                fAll = datos.getFormularioAllCodigo(f.CODIGO_FORMULARIO);
                fAll.ESTADO_FORMULARIO = f.ESTADO_FORMULARIO;
            }
            return(fAll);
        }
Ejemplo n.º 3
0
        /***********/
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }