protected void rgAnalyzeRecords_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { rgAnalyzeRecords.DataSource = db.SP_RMS_Record_List_for_analyze_approve("analyze", user.ID, OfficeID).Select(p => new Data.RecordProcessDataItem { rms_record_id = p.rms_record_id, lock_dt = p.lock_dt, lock_type = p.lock_type, lock_uid = p.lock_uid, site_no = p.site_no, site_id = p.site_id, SIMSURL = Config.SIMSURL, station_nm = p.station_nm, category_no = p.category_no, type_ds = p.type_ds, type_cd = p.type_cd, analyzer_uid = p.analyzer_uid, reanalyze_status = p.reanalyze_status, LastAnalyzedDate = p.LastAnalyzedDate, DaysSinceAging = p.DaysSinceAging }).ToList(); }