/// <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); }
/// <summary> /// 更新核定信息的更新时间 /// </summary> public void UpdateGXSJ(tdps.Model.HDXX model) { dal.UpdateGXSJ(model); }
/// <summary> /// 增加一条数据 /// </summary> public void Add(tdps.Model.HDXX model) { dal.Add(model); }