1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- namespace PRSDesktop
- {
- }
- //public class JobLevelGrid : DynamicDataGrid<JobLevel>, IJobGrid, IDataModelSource
- //{
- // public Guid JobID { get; set; }
- // public JobLevelGrid() : base()
- // {
- // Options = new DynamicGridOptions[] { DynamicGridOptions.RecordCount, DynamicGridOptions.SelectColumns, DynamicGridOptions.AddRows, DynamicGridOptions.ExportData, DynamicGridOptions.FilterRows, DynamicGridOptions.MultiSelect, DynamicGridOptions.EditRows, DynamicGridOptions.SortRows, DynamicGridOptions.DeleteRows };
- // }
- // public event DataModelUpdateEvent OnUpdateDataModel;
- // protected override void DoAdd(bool OpenEditorOnDirectEdit = false)
- // {
- // if (JobID.Equals(Guid.Empty) || JobID.Equals(CoreUtils.FullGuid))
- // System.Windows.MessageBox.Show("Please select a Job first!");
- // else
- // base.DoAdd();
- // }
- // protected override JobLevel CreateItem()
- // {
- // var result = base.CreateItem();
- // result.Job.ID = JobID;
- // return result;
- // }
- // protected override void Reload(Filters<JobLevel> criteria, Columns<JobLevel> columns, ref SortOrder<JobLevel> sort, Action<CoreTable,Exception> action)
- // {
- // criteria.Add(new Filter<JobLevel>(x => x.Job.ID).IsEqualTo(JobID));
- // base.Reload(criteria, columns, ref sort, action);
- // }
- // public DataModel DataModel(Selection selection)
- // {
- // Guid[] ids = ExtractValues<Guid>(x => x.ID, selection).ToArray();
- // return new JobLevelDataModel(new Filter<JobLevel>(x => x.ID).InList(ids));
- // }
- //}
|