using System; using System.Collections.Generic; using System.Text; namespace Core.StlMes.Client.Sale.SaleFundMgt.Model { public class SEL_FUND_USERANDBALRELATION { private string _USERID; private string _BALANCESUBJECT; private string _IMPORTOR; private string _IMPORTTIME; public string USERID { get { return this._USERID; } set { this._USERID = value; } } public string BALANCESUBJECT { get { return this._BALANCESUBJECT; } set { this._BALANCESUBJECT = value; } } public string IMPORTOR { get { return this._IMPORTOR; } set { this._IMPORTOR = value; } } public string IMPORTTIME { get { return this._IMPORTTIME; } set { this._IMPORTTIME = value; } } public SEL_FUND_USERANDBALRELATION() { } public SEL_FUND_USERANDBALRELATION(string userid,string balancesubject,string importer,string importtime) { this.USERID = userid; this.BALANCESUBJECT = balancesubject; this.IMPORTOR = importer; this.IMPORTTIME = importtime; } public static List GetSelFundUserAndBalRealtion(System.Data.DataSet ds) { if (ds == null) return null; if (ds.Tables.Count == 0) return null; if (ds.Tables[0].Rows.Count == 0) return null; List list = new List(); foreach (System.Data.DataRow dr in ds.Tables[0].Rows) { list.Add(new Model.SEL_FUND_USERANDBALRELATION(dr["USERID"].ToString(), dr["BALANCESUBJECT"].ToString(), dr["IMPORTOR"].ToString(), dr["IMPORTTIME"].ToString())); } return list; } /// /// 有效性检查 /// /// /// public static Boolean IsValid(Model.SEL_FUND_USERANDBALRELATION real) { if(real == null) return false; if (real.USERID.Length == 0) return false; if (real.BALANCESUBJECT.Length == 0) return false; return true; } } }