您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->Acom进出仓管理系统源码>>BLL/ShDict.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Acom进出仓管理系统源码


当前文件路径:AcomStore/BLL/ShDict.cs 文件类型
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Data; 5 6using AcomLb.Model; 7using AcomLb.Enumerations; 8 9namespace AcomLb.BLL 10{ 11 public class ShDict 12 { 13 AcomLb.SqlDAL.ShDict dal; 14 15 public ShDict() 16 { 17 dal = new AcomLb.SqlDAL.ShDict(); 18 } 19 20 /// <summary> 21 /// 保存数据 22 /// </summary> 23 /// <param name="ds">数据集</param> 24 /// <returns></returns> 25 public bool Save(ShDictData ds) 26 { 27 if (ds.Tables[0].Rows.Count != 1) 28 return false; 29 DataRow dr = ds.Tables[0].Rows[0]; 30 ds.AcceptChanges(); 31 if (dr[ShDictData.ID_FIELD] == DBNull.Value) 32 { 33 dr.SetAdded(); 34 return dal.InsertData(ds); 35 } 36 else 37 { 38 dr.SetModified(); 39 return dal.UpdateData(ds); 40 } 41 } 42 43 public bool DeleteById(int Id) 44 { 45 return dal.DeleteData(Id); 46 } 47 48 public ShDictData GetDataByID(int Id) 49 { 50 return dal.GetDataByID(Id); 51 } 52 53 /// <summary> 54 /// 返回字典类别对应的列表 55 /// </summary> 56 /// <param name="kind">类别,EnDictKind枚举</param> 57 /// <returns></returns> 58 public ShDictData GetDataByKind(EnDictKind kind) 59 { 60 return dal.GetDataByKind(kind); 61 } 62 } 63} 64
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Acom进出仓管理系统源码

- RedSoft多层分布式架构实例源码

- NetShopForge网上商店程序(V..

- 大学23事CMS免费源码

- JavaScript+Jquery+Ajax用户..

- Baidu恶搞程序源码

- Asp.net简单网络选课系统源码

- Vb.net验证码控件及Demo源码

- Asp.net简单防刷新图片计数器..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号