示例#1
0
        public SPE_OBTIENE_SOLICITUD_PLANTILLA_Result ObtenerSolicitudPlantilla(int?pIdPlantilla, int?pIdSolicitud, Guid?pFlPlantillaSolicitud)
        {
            SolicitudOperaciones oSolicitud = new SolicitudOperaciones();
            SPE_OBTIENE_SOLICITUD_PLANTILLA_Result vSolicitudPlantilla = oSolicitud.ObtenerSolicitudPlantilla(pIdPlantilla, pIdSolicitud, pFlPlantillaSolicitud);

            XElement vSolicitud = XElement.Parse(vSolicitudPlantilla.XML_SOLICITUD_PLANTILLA);
            XElement vValores   = XElement.Parse(vSolicitudPlantilla.XML_VALORES);

            foreach (XElement vXmlContenedor in vSolicitud.Element("CONTENEDORES").Elements("CONTENEDOR"))
            {
                foreach (XElement vXmlCampo in vXmlContenedor.Elements("CAMPO"))
                {
                    UtilXML.AsignarValorCampo(vXmlCampo, vValores);
                }
            }

            vSolicitudPlantilla.XML_SOLICITUD_PLANTILLA = vSolicitud.ToString();

            return(vSolicitudPlantilla);
        }
示例#2
0
        public SPE_OBTIENE_EMPLEADO_FORMATO_TRAMITE_Result ObtenerPlantilla(int?pIdPlantilla, string pIdEmpleado, string version = "")
        {
            FormatosYTramitesOperaciones oEmpleado = new FormatosYTramitesOperaciones();
            SPE_OBTIENE_EMPLEADO_FORMATO_TRAMITE_Result vEmpleadoPlantilla = oEmpleado.ObtenerPlantilla(pIdPlantilla, pIdEmpleado, version);

            XElement vEmpleado = XElement.Parse(vEmpleadoPlantilla.XML_SOLICITUD_PLANTILLA);
            XElement vValores  = XElement.Parse(vEmpleadoPlantilla.XML_VALORES);

            foreach (XElement vXmlContenedor in vEmpleado.Element("CONTENEDORES").Elements("CONTENEDOR"))
            {
                foreach (XElement vXmlCampo in vXmlContenedor.Elements("CAMPO"))
                {
                    UtilXML.AsignarValorCampo(vXmlCampo, vValores);
                }
            }

            vEmpleadoPlantilla.XML_SOLICITUD_PLANTILLA = vEmpleado.ToString();

            return(vEmpleadoPlantilla);
        }
示例#3
0
        public SPE_OBTIENE_EMPLEADO_PLANTILLA_CAMBIO_PDE_Result ObtenerPlantillaCambioPDE(int?pIdPlantilla, string pIdEmpleado, string pClFormulario)
        {
            EmpleadoOperaciones oEmpleado = new EmpleadoOperaciones();
            SPE_OBTIENE_EMPLEADO_PLANTILLA_CAMBIO_PDE_Result vEmpleadoPlantilla = oEmpleado.ObtenerPlantillaCambioPDE(pIdPlantilla, pIdEmpleado, pClFormulario);

            XElement vEmpleado = XElement.Parse(vEmpleadoPlantilla.XML_SOLICITUD_PLANTILLA);
            XElement vValores  = XElement.Parse(vEmpleadoPlantilla.XML_VALORES);

            foreach (XElement vXmlContenedor in vEmpleado.Element("CONTENEDORES").Elements("CONTENEDOR"))
            {
                foreach (XElement vXmlCampo in vXmlContenedor.Elements("CAMPO"))
                {
                    UtilXML.AsignarValorCampo(vXmlCampo, vValores);
                }
            }

            vEmpleadoPlantilla.XML_SOLICITUD_PLANTILLA = vEmpleado.ToString();

            return(vEmpleadoPlantilla);
        }