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

            if (rowsCount > 0)
            {
                tdps.Model.YWSLJG model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new tdps.Model.YWSLJG();
                    if (dt.Rows[n]["FID"].ToString() != "")
                    {
                        model.FID = int.Parse(dt.Rows[n]["FID"].ToString());
                    }
                    model.FileName      = dt.Rows[n]["FileName"].ToString();
                    model.returnCode    = dt.Rows[n]["returnCode"].ToString();
                    model.returnMessage = dt.Rows[n]["returnMessage"].ToString();
                    model.businessID    = dt.Rows[n]["businessID"].ToString();
                    model.jmm           = dt.Rows[n]["jmm"].ToString();
                    model.NSRSBH        = dt.Rows[n]["NSRSBH"].ToString();
                    model.NSRMC         = dt.Rows[n]["NSRMC"].ToString();
                    model.createTime    = dt.Rows[n]["createTime"].ToString();
                    model.SWJGDM        = dt.Rows[n]["SWJGDM"].ToString();
                    model.JYSLXX        = dt.Rows[n]["JYSLXX"].ToString();
                    model.swjgMc        = dt.Rows[n]["swjgMc"].ToString();
                    model.DZYZData      = dt.Rows[n]["DZYZData"].ToString();
                    model.MW            = dt.Rows[n]["MW"].ToString();
                    model.SLLX          = dt.Rows[n]["SLLX"].ToString();
                    model.KHDFSSJ       = dt.Rows[n]["KHDFSSJ"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
Exemple #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(tdps.Model.YWSLJG model)
 {
     dal.Add(model);
 }
Exemple #3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(tdps.Model.YWSLJG model)
 {
     dal.Update(model);
 }
Exemple #4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(tdps.Model.YWSLJG model, object trans)
 {
     dal.Add(model, trans);
 }