Esempio n. 1
0
    private void InitializeMyComponents()
    {
        this.PreRender        += new System.EventHandler(this.frm_MSB_UTE_PreRender);
        objUtente              = new Utente();
        objCrossUtenteWorkflow = new CrossUtenteWorkflow();
        objCrossUtenteCliente  = new CrossUtenteCliente();
        objClienti             = new Clienti();

        GridViewUtenti.DataSourceID = "ObjectDataSourceUtenti";
        string[] utentiDataKeys = { "UTE_ID_UTENTE", "UTE_STATO_UTENTE", "ISONLINE" };
        GridViewUtenti.DataKeyNames          = utentiDataKeys;
        GridViewUtenti.RowCreated           += new GridViewRowEventHandler(GridViewUtenti.MyGridViewRowCreated);
        GridViewUtenti.RowDataBound         += new GridViewRowEventHandler(GridViewUtenti.MyGridViewDataBound);
        GridViewUtenti.SelectedIndexChanged += new EventHandler(GridViewUtenti_SelectedIndexChanged);
        GridViewUtenti.PageIndexChanged     += new EventHandler(GridViewUtenti_PageIndexChanged);
        GridViewUtenti.RowCommand           += new GridViewCommandEventHandler(GridViewUtenti_RowCommand);
        GridViewUtenti.DataBound            += new EventHandler(GridViewUtenti_DataBound);

        ObjectDataSourceUtenti.TypeName       = "SDG.GestioneUtenti.Utente";
        ObjectDataSourceUtenti.SelectMethod   = "List";
        ObjectDataSourceUtenti.ObjectCreated += new ObjectDataSourceObjectEventHandler(ObjectDataSourceUtenti_SetProperties);
        ObjectDataSourceUtenti.Selected      += new ObjectDataSourceStatusEventHandler(ObjectDataSourceUtenti_Selected);

        ButtonExportUtenti.Click += new EventHandler(ButtonExportUtenti_Click);

        //DropDownList
        DropDownListRecordPagina.Items.Insert(0, new ListItem("5", "5"));
        DropDownListRecordPagina.Items.Insert(1, new ListItem("10", "10"));
        DropDownListRecordPagina.Items.Insert(2, new ListItem("15", "15"));
        DropDownListRecordPagina.Items.Insert(3, new ListItem("25", "25"));
        DropDownListRecordPagina.Items.Insert(4, new ListItem("35", "35"));
        DropDownListRecordPagina.Items.Insert(5, new ListItem("75", "75"));
        DropDownListRecordPagina.Items.Insert(6, new ListItem("100", "100"));
    }
Esempio n. 2
0
    override protected void OnInit(EventArgs e)
    {
        InitializeMyComponents();
        objClienti            = new Clienti();
        objUtente             = new Utente();
        objCrossUtenteCliente = new CrossUtenteCliente();

        base.OnInit(e);
    }