Asp.net源码专业站
首页->商务办公->Acom进出仓管理系统源码>>BLL/ShUser.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Acom进出仓管理系统源码
当前文件:文件类型 AcomStore/BLL/ShUser.cs[1K,2009-6-12 11:31:29]打开代码结构图
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Data; 5 6using AcomLb.Model; 7 8namespace AcomLb.BLL 9{ 10 public class ShUser 11 { 12 AcomLb.SqlDAL.ShUser dal; 13 14 public ShUser() 15 { 16 dal = new AcomLb.SqlDAL.ShUser(); 17 } 18 19 /// <summary> 20 /// 保存数据 21 /// </summary> 22 /// <param name="ds">数据集</param> 23 /// <returns></returns> 24 public bool Save(ShUserData ds) 25 { 26 if (ds.Tables[0].Rows.Count != 1) 27 return false; 28 DataRow dr = ds.Tables[0].Rows[0]; 29 ds.AcceptChanges(); 30 if (dr[ShUserData.ID_FIELD] == DBNull.Value) 31 { 32 dr.SetAdded(); 33 return dal.InsertData(ds); 34 } 35 else 36 { 37 dr.SetModified(); 38 return dal.UpdateData(ds); 39 } 40 } 41 42 public bool DeleteById(int Id) 43 { 44 return dal.DeleteData(Id); 45 } 46 47 public ShUserData GetDataByID(int Id) 48 { 49 return dal.GetDataByID(Id); 50 } 51 52 /// <summary> 53 /// 获取用户信息 54 /// </summary> 55 /// <param name="userId"></param> 56 /// <param name="passWd"></param> 57 /// <returns></returns> 58 public ShUserData GetUserInfo(string userId) 59 { 60 return dal.GetUserInfo(userId); 61 } 62 63 /// <summary> 64 /// 获取用户信息 65 /// </summary> 66 /// <param name="userId"></param> 67 /// <param name="passWd"></param> 68 /// <returns></returns> 69 public ShUserData GetUserInfo(string userId, string passWd) 70 { 71 return dal.GetUserInfo(userId, passWd); 72 } 73 } 74} 75
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Acom进出仓管理系统源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146