Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            vClUsuario  = ContextoUsuario.oUsuario.CL_USUARIO;
            vNbPrograma = ContextoUsuario.nbPrograma;
            vIdEmpresa  = ContextoUsuario.oUsuario.ID_EMPRESA;
            vIdRol      = ContextoUsuario.oUsuario.oRol.ID_ROL;
            vIdCurso    = 0;
            vIdPrograma = 0;
            if (!Page.IsPostBack)
            {
                vIdEvento      = 0;
                FechasEventos  = new List <E_EVENTO_CALENDARIO>();
                ListaEmpleados = new List <E_EVENTO_PARTICIPANTE>();

                XElement xml_seleccion;
                EventoCapacitacionNegocio nEvento = new EventoCapacitacionNegocio();

                vXmlAdicionales = nEvento.ObtieneCampoAdicionalXml("C_EVENTO");

                xml_seleccion          = new XElement("SELECCION", new XElement("FILTRO", new XAttribute("CL_TIPO", "EMPLEADO")));
                vXmlEmpleadosAgregados = xml_seleccion.ToString();

                vClOperacion = E_TIPO_OPERACION_DB.I;

                if (Request.Params["EventoId"] != null)
                {
                    vClOperacion = E_TIPO_OPERACION_DB.A;
                    vIdEvento    = int.Parse(Request.Params["EventoId"].ToString());
                    cargarEvento();
                }

                if (Request.Params["EventoIdCopia"] != null)
                {
                    dvContextoEvento.Visible = false;
                    dvDatosEvento.Visible    = true;
                    vIdEvento = int.Parse(Request.Params["EventoIdCopia"].ToString());
                    cargarEvento();
                }

                SeguridadProcesos();

                if (Request.Params["clOrigen"] != null)
                {
                    if (Request.Params["clOrigen"] == "AVANCE")
                    {
                        btnGuardarEvento.Enabled = false;
                        btnAgregarFecha.Enabled  = false;
                    }
                }
            }
        }
Exemple #2
0
        protected void Page_Init(object sender, EventArgs e)
        {
            EventoCapacitacionNegocio nCurso = new EventoCapacitacionNegocio();

            CrearFormulario(XElement.Parse(nCurso.ObtieneCampoAdicionalXml("C_EVENTO")));
        }