Exemplo n.º 1
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <ERM.MDL.NewFileRecording_Templet> GetModelList(string strWhere)
        {
            DataSet ds = dal.GetList(strWhere);
            List <ERM.MDL.NewFileRecording_Templet> modelList = new List <ERM.MDL.NewFileRecording_Templet>();
            int rowsCount = ds.Tables[0].Rows.Count;

            if (rowsCount > 0)
            {
                ERM.MDL.NewFileRecording_Templet model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model            = new ERM.MDL.NewFileRecording_Templet();
                    model.id         = ds.Tables[0].Rows[n]["id"].ToString();
                    model.ptreepath  = ds.Tables[0].Rows[n]["ptreepath"].ToString();
                    model.table_name = ds.Tables[0].Rows[n]["table_name"].ToString();
                    model.title      = ds.Tables[0].Rows[n]["title"].ToString();
                    model.treepath   = ds.Tables[0].Rows[n]["treepath"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(ERM.MDL.NewFileRecording_Templet model)
 {
     dal.Update(model);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(ERM.MDL.NewFileRecording_Templet model)
 {
     dal.Add(model);
 }