Model/Other/DataPowerInfoCollection.cs
(完整代码) 1KBusing System;
namespace Model.Other
{
/// <summary>
/// DataPowerInfo的集合
/// </summary>
/// <remarks></remarks>
public class DataPowerInfoCollection : System.Collections.ObjectModel.Collection<DataPowerInfo>
{
public DataPowerInfoCollection get_byUserName(string cUserName)
{
DataPowerInfoCollection mdls = new DataPowerInfoCollection();
foreach (DataPowerInfo mdl in this)
{
if (mdl.A03_cUserName.Trim().ToLower() == cUserName.Trim().ToLower())
{
mdls.Add(mdl);
}
}
return mdls;
}
/// <summary>
/// 指定的编码是否存在
/// </summary>
/// <param name="cCode"></param>
/// <returns></returns>
/// <remarks></remarks>
public bool Exist_byCode(string cCode)
{
foreach (Model.Other.DataPowerInfo mdl in this)
{
if (mdl.A04_cBaseCode.Trim().ToLower() == cCode.Trim().ToLower())
{
return true;
}
}
return false;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
