Exemple #1
0
        public E_RESULTADO InsertaActualizaPlantillaFormulario(string pClAccion, E_PLANTILLA pPlantillaFormulario, string pClUsuario, string pNbPrograma)
        {
            XElement vLstCampos = new XElement("CAMPOS");

            int vNoOrden = 1;

            foreach (E_CAMPO campo in pPlantillaFormulario.LST_CAMPOS)
            {
                XElement vXmlCampoFormulario = new XElement("CAMPO_FORMULARIO",
                                                            new XAttribute("ID_CAMPO_FORMULARIO", campo.ID_CAMPO),
                                                            new XAttribute("CL_CONTENEDOR", campo.CL_CONTENEDOR),
                                                            new XAttribute("FG_HABILITADO", campo.FG_HABILITADO),
                                                            new XAttribute("FG_REQUERIDO", campo.FG_REQUERIDO),
                                                            new XAttribute("NO_ORDEN", vNoOrden++),
                                                            XElement.Parse(campo.XML_CAMPO));
                vLstCampos.Add(vXmlCampoFormulario);
            }

            PlantillaFormularioOperaciones oPlantilla = new PlantillaFormularioOperaciones();

            return(UtilRespuesta.EnvioRespuesta(oPlantilla.InsertarActualizarPlantillaFormulario(pClAccion, pPlantillaFormulario, vLstCampos, pClUsuario, pNbPrograma)));
        }