Beispiel #1
0
        /// </summary>
        ///Query 方法 dt查询结果
        /// </summary>
        public System.Collections.IList Query(System.Data.DataTable dt)
        {
            System.Collections.IList result = new System.Collections.ArrayList();
            foreach (System.Data.DataRow dr in dt.Rows)
            {
                project.Entity.Sys.EntityDept entity = new project.Entity.Sys.EntityDept();

                entity.DeptNo   = dr["DeptNo"].ToString();
                entity.DeptName = dr["DeptName"].ToString();
                entity.Parent   = dr["Parent"].ToString();
                entity.Manager  = dr["Manager"].ToString();
                entity.Remark   = dr["Remark"].ToString();
                entity.AccID    = dr["AccID"].ToString();
                entity.Level    = ParseIntForString(dr["Level"].ToString());;
                result.Add(entity);
            }
            return(result);
        }
Beispiel #2
0
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessDept(project.Entity.Sys.EntityDept entity)
 {
     this._entity = entity;
 }