Exemplo n.º 1
0
        /// <summary>
        /// 查询所有用户
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public List <userBean> GetAllUsersBll()
        {
            List <userBean> _lstwuser = new List <userBean>();
            DataSet         _ds       = _userD.getAllUser();

            foreach (DataRow _dr in _ds.Tables[0].Rows)
            {
                userBean _userBean = new userBean();
                _userBean.UId     = _dr["id"].ToString().Trim();
                _userBean.Uname   = _dr["name"].ToString().Trim();
                _userBean.Uzgbm   = _dr["zgbm"].ToString().Trim();
                _userBean.Upasswd = _dr["passwd"].ToString().Trim();
                _userBean.Ugzbz   = Convert.ToInt16(_dr["gzbz"]);
                _userBean.Ujrsj   = _dr["jrsj"].ToString().Trim();
                _userBean.Ubdsj   = _dr["bdsj"].ToString().Trim();
                _userBean.Uszry   = _dr["szry"].ToString().Trim();
                _userBean.Ugwlx   = Convert.ToInt16(_dr["gwlx"]);
                _userBean.Uisdl   = Convert.ToInt16(_dr["isdl"]);
                _userBean.Umemo   = _dr["memo"].ToString().Trim();
                _lstwuser.Add(_userBean);
            }

            return(_lstwuser);
        }
Exemplo n.º 2
0
 public IEnumerable <Object> getAll( )
 {
     return(_userDao.getAllUser());
 }