80 lines
1.8 KiB
C#
80 lines
1.8 KiB
C#
//using System;
|
|
//namespace GZTW.AyaNova.BLL
|
|
//{
|
|
// /// <summary>
|
|
// /// Object item representing a cell of data
|
|
// /// that is not directly read from a corresponding database
|
|
// /// record column.
|
|
// ///
|
|
// /// Used to redirect sorting and filtering in the grid
|
|
// /// to another sql field
|
|
// ///
|
|
// /// </summary>
|
|
// [Serializable]
|
|
// public class GridCalculatedCellItem
|
|
// {
|
|
// private object mValue;
|
|
// private string mSQLValueFieldName;
|
|
|
|
|
|
// public GridCalculatedCellItem(object Value)
|
|
// {
|
|
// mValue=Value;
|
|
// mSQLValueFieldName=null;
|
|
|
|
// }
|
|
|
|
|
|
// public GridCalculatedCellItem(object Value,string SQLValueFieldName)
|
|
// {
|
|
// mValue=Value;
|
|
// mSQLValueFieldName=SQLValueFieldName;
|
|
// }
|
|
|
|
// public override int GetHashCode()
|
|
// {
|
|
// return this.mValue.GetHashCode();
|
|
// }
|
|
|
|
//// public override bool Equals(object obj)
|
|
//// {
|
|
//// GridCalculatedCellItem i=(GridCalculatedCellItem)obj;
|
|
//// return(i.Value.Equals(this.mValue));
|
|
//// }
|
|
|
|
//// //necessary to give the grid something to display
|
|
//// public override string ToString()
|
|
//// {
|
|
//// return mValue.ToString();
|
|
//// }
|
|
|
|
// public bool bValue
|
|
// {
|
|
// get
|
|
// {
|
|
// return (bool)mValue;
|
|
// }
|
|
// }
|
|
// public object Value
|
|
// {
|
|
// get
|
|
// {
|
|
// return mValue;
|
|
// }
|
|
// }
|
|
|
|
|
|
// //The sql name of the value column to filter/sort on
|
|
// public string SQLValueFieldName
|
|
// {
|
|
// get
|
|
// {
|
|
// return mSQLValueFieldName;
|
|
// }
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
//}
|