/// <summary>
        /// 由DataTable得到泛型数据列表
        /// </summary>
        internal List <EmsModel.EquipHistory> GetListJoin(DataTable dt)
        {
            List <EmsModel.EquipHistory> lst = new List <EmsModel.EquipHistory>();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                EmsModel.EquipHistory mod = new EmsModel.EquipHistory();
                DataRowToModelJoin(mod, dt.Rows[i]);
                lst.Add(mod);
            }

            return(lst);
        }
 /// <summary>
 /// 由一行DataRow数据得到一个实体
 /// </summary>
 internal void DataRowToModelJoin(EmsModel.EquipHistory EmsModel, DataRow dr)
 {
     EmsModel.EquipId    = dr["EquipId"] as int?; EmsModel.UserName = dr["UserName"] as string;
     EmsModel.UserIDCard = dr["UserIDCard"] as string; EmsModel.LendTime = dr["LendTime"] as DateTime?;
     EmsModel.Count      = dr["Count"] as int?; EmsModel.Type = dr["Type"] as string; EmsModel.Remarks = dr["Remarks"] as string;
 }