Exemple #1
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);
        }
Exemple #2
0
        public E_RESULTADO INSERTA_COPIA_FORMATOS_Y_TRAMITES(int?id_Documento = null, string descripcion = "", string tipoDocumento = "", bool estatus = true, string usuario = "", string programa = "", string tipo_transaccion = "")
        {
            FormatosYTramitesOperaciones operaciones = new FormatosYTramitesOperaciones();

            return(UtilRespuesta.EnvioRespuesta(operaciones.INSERTA_COPIA_FORMATOS_Y_TRAMITES(id_Documento, descripcion, tipoDocumento, estatus, usuario, programa, tipo_transaccion)));
        }
Exemple #3
0
        public List <SPE_OBTIENE_FORMATOS_Y_TRAMITES_Result> OBTENER_FORMATOS_Y_TRAMITES(int?id_documento = null, string TipoDocumento = null, bool documentoActivo = true)
        {
            FormatosYTramitesOperaciones operaciones = new FormatosYTramitesOperaciones();

            return(operaciones.OBTENER_FORMATOS_Y_TRAMITES(id_documento, TipoDocumento, documentoActivo).ToList());
        }