ab56a9bcf7
SVN-Revision: r240
39 lines
803 B
C#
39 lines
803 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Lskj.PubBomAlter.Model
|
|
{
|
|
public class ComboBoxModel
|
|
{
|
|
public ComboBoxModel(DataRow _rowItem)
|
|
{
|
|
SourceItem = _rowItem;
|
|
}
|
|
public DataRow SourceItem;
|
|
public string ValueMember;
|
|
public string DisplayMember;
|
|
public string Text
|
|
{
|
|
get
|
|
{
|
|
return SourceItem[DisplayMember] + "";
|
|
}
|
|
}
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return SourceItem[ValueMember] + "";
|
|
}
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return SourceItem[DisplayMember] + "";
|
|
}
|
|
}
|
|
}
|