| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Data;
- namespace Core.StlMes.Client.Sale.BLL.SaleBusinessMgt.StaticData
- {
- public class StaticDBStruct
- {
- public StaticDBStruct()
- {
- _valueListDB = new Infragistics.Win.ValueList();
- _dataTableDB = new DataTable("dtBase");
- _dataTableDB.Columns.Add("ID_", typeof(string));
- _dataTableDB.Columns.Add("NAME_", typeof(string));
- _dataTableDB.Columns.Add("FILTER1_", typeof(string));
- _dataTableDB.Columns.Add("FILTER2_", typeof(string));
- _dataTableDB.Columns.Add("FILTER3_", typeof(string));
- }
- private Infragistics.Win.ValueList _valueListDB;
- public Infragistics.Win.ValueList ValueListDB
- {
- get
- {
- // Deal with valuelist not used in different grid's question
- if (_valueListDB != null && _valueListDB.Appearances != null && !_valueListDB.Appearances.Disposed)
- this._valueListDB.Appearances.Dispose();
- return _valueListDB;
- }
- }
- public Infragistics.Win.ValueList GetValueListDB
- {
- get
- {
- return _valueListDB;
- }
- }
- private DataTable _dataTableDB;
- public DataTable DataTableDB
- {
- get
- {
- return _dataTableDB.Copy();
- }
- }
- public DataTable GetDataTableDB
- {
- get
- {
- return _dataTableDB;
- }
- }
- public void Clear()
- {
- _valueListDB.ValueListItems.Clear();
- _dataTableDB.Clear();
- }
- }
- }
|