| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- 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<Model.SEL_FUND_USERANDBALRELATION> 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<Model.SEL_FUND_USERANDBALRELATION> list = new List<SEL_FUND_USERANDBALRELATION>();
- 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;
- }
- /// <summary>
- /// 有效性检查
- /// </summary>
- /// <param name="real"></param>
- /// <returns></returns>
- 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;
- }
- }
- }
|