Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CARTEL_MODELO_BL = new SCE_CARTEL_MODELO_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]);
        CAMPO_BL         = new SCE_CAMPO_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]);

        txtDescCartMod.Attributes.Add("onkeypress", String.Format("javascript:return SoloEnterosLetrasYEspacios(event)"));

        btnGuardar.OnClientClick = string.Format("return confirmacion('{0}');", Resources.Mensajes.msgConfirmación);

        Util.SetEnterButton(txtDescCartMod, btnBuscarDCM);

        if (!Page.IsPostBack)
        {
            Session["Formulario"] = "ConfReglCartelCamp.aspx";
            GetData();
        }

        Session["operacion"] = true;
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CAMPO_BL = new SCE_CAMPO_BL((Usuario)Session["DatosCnSistema"]);

        txtAlias.Attributes.Add("onKeyPress", "doClick('" + btnGuardar.ClientID + "',event)");
        txtCampo.Attributes.Add("onKeyPress", "doClick('" + btnGuardar.ClientID + "',event)");

        if (!Page.IsPostBack)
        {
            Session["Formulario"] = "ParCampos.aspx";

            LoadData();

            this.cboTipoCampo.Items.Insert(0, new ListItem("PRECIO ENTERO", "PE"));
            this.cboTipoCampo.Items.Insert(0, new ListItem("PRECIO DECIMAL", "PD"));
            this.cboTipoCampo.Items.Insert(0, new ListItem("SIMBOLO", "SI"));
            this.cboTipoCampo.Items.Insert(0, new ListItem("TEXTO", "TE"));
            this.cboTipoCampo.Items.Insert(0, new ListItem("------------Seleccionar-----------", "0"));
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        CARTEL_MODELO_BL = new SCE_CARTEL_MODELO_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]);
        CAMPO_BL         = new SCE_CAMPO_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]);

        Page.Form.Attributes.Add("enctype", "multipart/form-data");

        btnImportar.OnClientClick = string.Format("return confirmacion('{0}');", Resources.Mensajes.msgConfirmación);

        txtDescCartMod.Attributes.Add("onkeypress", String.Format("javascript:return SoloEnterosLetrasYEspacios(event)"));

        Util.SetEnterButton(txtDescCartMod, btnBuscarDCM);

        if (!Page.IsPostBack)
        {
            Session["Formulario"] = "ConfConfigurCartel.aspx";

            CargaCartelesModelo();
        }
    }