/// </summary> ///Query 方法 dt查询结果 /// </summary> private System.Collections.IList Query(System.Data.DataTable dt) { System.Collections.IList result = new System.Collections.ArrayList(); foreach (System.Data.DataRow dr in dt.Rows) { project.Entity.Admin.EntitySMS entity = new project.Entity.Admin.EntitySMS(); entity.InnerEntityOID = dr["RowPointer"].ToString(); entity.SendType = dr["SendType"].ToString(); entity.SendPerson = dr["SendPerson"].ToString(); entity.Tel = dr["Tel"].ToString(); entity.Content = dr["Content"].ToString(); entity.CreateDate = ParseDateTimeForString(dr["CreateDate"].ToString()); entity.IsSend = bool.Parse(dr["IsSend"].ToString()); entity.SendDate = ParseDateTimeForString(dr["SendDate"].ToString()); entity.SendStat = dr["SendStat"].ToString(); entity.SendResult = dr["SendResult"].ToString(); entity.RefNo = dr["RefNo"].ToString(); entity.VerifyNo = dr["VerifyNo"].ToString(); result.Add(entity); } return(result); }
/// <summary> /// 带参数的构函数 /// </summary> /// <param name="entity">实体类</param> public BusinessSMS(project.Entity.Admin.EntitySMS entity) { this._entity = entity; }