Exemplo n.º 1
0
    protected void gvrGrid_rowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            GridView gev = (GridView)e.Row.FindControl("elGrid");

            Affinity.ExportLogs el = new Affinity.ExportLogs(this.phreezer);
            // populate current exports grid
            Affinity.ExportLogCriteria elc = new Affinity.ExportLogCriteria();
            Affinity.Request           r   = (Affinity.Request)e.Row.DataItem;
            elc.RequestID = r.Id;
            el.Query(elc);

            gev.DataSource = el;
            gev.DataBind();


            GridView guv = (GridView)e.Row.FindControl("ulGrid");

            Affinity.UploadLogs ul = new Affinity.UploadLogs(this.phreezer);
            // populate current uploads grid
            Affinity.UploadLogCriteria ulc = new Affinity.UploadLogCriteria();
            ulc.RequestID = r.Id;
            ul.Query(ulc);

            guv.DataSource = ul;
            guv.DataBind();
        }
    }
Exemplo n.º 2
0
        /* ~~~ SETS ~~~ */

        /// <summary>
        /// Returns a collection of ExportLog objects
        /// </summary>
        /// <param name="criteria"></param>
        /// <returns>ExportLogs</returns>
        protected ExportLogs GetExportLogs(ExportLogCriteria criteria)
        {
            //criteria.OriginatorId = this.Id;
            ExportLogs exportLogs = new ExportLogs(this.phreezer);

            exportLogs.Query(criteria);
            return(exportLogs);
        }