Introduced several new classes in the `EnvelopeGenerator.WebUI.Client` namespace: - Added `Adjustment` class for financial adjustments with deterministic randomization. - Added `Customer` class to load customer data from a SQL data source with fallback. - Added `DataItem` class to represent detailed billing data, including adjustments. - Added `DataItemList` class implementing `IList` for dynamic `DataItem` generation. - Added `DeterministicRandom` class for reproducible random value generation. - Added `Term` struct to define payment terms. - Added `ReportsFactory` class to manage predefined reports. Updated `MIGRATION_CONTEXT.md` to document the completion of Phase 5 (Data & PredefinedReports Migration) and outline next steps for resolving DevExpress-related errors in Phase 7.
71 lines
2.5 KiB
C#
71 lines
2.5 KiB
C#
using System.Collections;
|
|
|
|
namespace EnvelopeGenerator.WebUI.Client.Data {
|
|
public class DataItemList : IList<DataItem>, IList {
|
|
readonly int rowCount;
|
|
|
|
public DataItem this[int index] { get { return new DataItem(index); } set { } }
|
|
public int Count { get { return rowCount; } }
|
|
public bool IsReadOnly { get { return false; } }
|
|
public bool IsFixedSize { get { return false; } }
|
|
public object SyncRoot { get { return true; } }
|
|
public bool IsSynchronized { get { return true; } }
|
|
object IList.this[int index] { get { return new DataItem(index); } set { } }
|
|
|
|
public DataItemList(int rowCount) {
|
|
this.rowCount = rowCount;
|
|
}
|
|
public IEnumerator<DataItem> GetEnumerator() {
|
|
throw new NotImplementedException();
|
|
}
|
|
public int Add(object value) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public bool Contains(object value) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void Clear() {
|
|
throw new NotImplementedException();
|
|
}
|
|
public int IndexOf(object value) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void Insert(int index, object value) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void Remove(object value) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void RemoveAt(int index) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void CopyTo(Array array, int index) {
|
|
throw new NotImplementedException();
|
|
}
|
|
IEnumerator IEnumerable.GetEnumerator() {
|
|
throw new NotImplementedException();
|
|
}
|
|
public int IndexOf(DataItem item) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void Insert(int index, DataItem item) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void Add(DataItem item) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public bool Contains(DataItem item) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public void CopyTo(DataItem[] array, int arrayIndex) {
|
|
throw new NotImplementedException();
|
|
}
|
|
public bool Remove(DataItem item) {
|
|
throw new NotImplementedException();
|
|
}
|
|
void ICollection<DataItem>.CopyTo(DataItem[] array, int arrayIndex) {
|
|
CopyTo(array, arrayIndex);
|
|
}
|
|
}
|
|
}
|