示例#1
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <tdps.Model.HDXX> DataTableToList(DataTable dt)
        {
            List <tdps.Model.HDXX> modelList = new List <tdps.Model.HDXX>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                tdps.Model.HDXX model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model          = new tdps.Model.HDXX();
                    model.NSRSBH   = dt.Rows[n]["NSRSBH"].ToString();
                    model.FileName = dt.Rows[n]["FileName"].ToString();
                    model.HDXXXML  = dt.Rows[n]["HDXXXML"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
示例#2
0
 /// <summary>
 /// 更新核定信息的更新时间
 /// </summary>
 public void UpdateGXSJ(tdps.Model.HDXX model)
 {
     dal.UpdateGXSJ(model);
 }
示例#3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(tdps.Model.HDXX model)
 {
     dal.Add(model);
 }