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


当前文件路径:AcomStore/BLL/ShProduct.cs 文件类型
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Data; 5 6using AcomLb.Model; 7 8namespace AcomLb.BLL 9{ 10 public class ShProduct 11 { 12 AcomLb.SqlDAL.ShProduct dal; 13 14 public ShProduct() 15 { 16 dal = new AcomLb.SqlDAL.ShProduct(); 17 } 18 19 /// <summary> 20 /// 保存数据 21 /// </summary> 22 /// <param name="ds">数据集</param> 23 /// <returns></returns> 24 public bool Save(ShProductData 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[ShProductData.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 ShProductData GetDataByID(int Id) 48 { 49 return dal.GetDataByID(Id); 50 } 51 52 /// <summary> 53 /// 获取产品信息 54 /// </summary> 55 /// <param name="strSearch"></param> 56 /// <returns></returns> 57 public DataSet GetProductInfo(string strSearch, string OrderBy) 58 { 59 return dal.GetProductInfo(strSearch, OrderBy); 60 } 61 62 public bool SetWasById(int Id) 63 { 64 return dal.SetWasById(Id); 65 } 66 } 67} 68
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Acom进出仓管理系统源码

- 包哥Asp.net留言板源码

- x3blog1.0.0多用户Beta2版源码

- 衣购网站项目(三层开发)源码

- 博易(BlogYi)v1.7.5 项目源文件

- 漂亮的ComponentArtWebUI及D..

- Asp.net简单入门新闻系统51a..

- 邓西网站在线帮助系统V2.0(A..

- 通过数据的添加删除学三层入..

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