www.pudn.com > WorkflowDesigner.rar > DO_UserInfo.cs, change:2008-03-26,size:841b


using System; 
using System.Collections.Generic; 
using System.Text; 
using DataAccess; 
using System.Data; 
 
namespace Bussiness 
{ 
    public class DO_UserInfo 
    { 
        public DO_UserInfo() 
        { } 
 
        //得到所有有效的用户信息 
        public DataSet GetUserInfo() 
        { 
            String strsql = "select t.* from dap_user t where t.is_vaild=1 order by User_name"; 
            IDataAccess da = DataAccessFactory.CreateDataAccess(); 
            return da.ExecuteDataset(strsql); 
        } 
 
        public DataSet GetUserInfoByIds(String Ids) 
        { 
            String strsql = "select t.* from dap_user t where t.is_vaild=1 and id in("+Ids+") order by User_name"; 
            IDataAccess da = DataAccessFactory.CreateDataAccess(); 
            return da.ExecuteDataset(strsql); 
        } 
    } 
}