资源简介
erp 源码 希望对大家有所帮助。我也开发过erp项目,网上的资料太难找了!
代码片段和文件信息
using System;
using System.Data;
using LTP.Common;
using Maticsoft.Model;
using Maticsoft.DALFactory;
using Maticsoft.IDAL;
namespace Maticsoft.BLL
{
///
/// ?????BasBank 篕璶?
///
public class BasBank
{
private readonly IBasBank dal=DataAccess.CreateBasBank();
public BasBank()
{}
#region Θ?よ猭
///
/// 琌???
///
public bool Exists(string Codeint AutoID)
{
return dal.Exists(CodeAutoID);
}
///
/// 糤??誹
///
public int Add(Maticsoft.Model.BasBank model)
{
return dal.Add(model);
}
///
/// 穝??誹
///
public void Update(Maticsoft.Model.BasBank model)
{
dal.Update(model);
}
///
/// ?埃??誹
///
public void Delete(string Codeint AutoID)
{
dal.Delete(CodeAutoID);
}
///
/// 眔??禜?蔨
///
public Maticsoft.Model.BasBank GetModel(string Codeint AutoID)
{
return dal.GetModel(CodeAutoID);
}
///
/// 眔??禜?蔨??い
///
public Maticsoft.Model.BasBank GetModelByCache(string Codeint AutoID)
{
string CacheKey = “BasBankModel-“ + Code+AutoID;
object objModel = LTP.Common.DataCache.GetCache(CacheKey);
if (objModel == null)
{
try
{
objModel = dal.GetModel(CodeAutoID);
if (objModel != null)
{
int ModelCache = LTP.Common.ConfigHelper.GetConfigInt(“ModelCache“);
LTP.Common.DataCache.SetCache(CacheKey objModel DateTime.Now.AddMinutes(ModelCache) TimeSpan.Zero);
}
}
catch{}
}
return (Maticsoft.Model.BasBank)objModel;
}
///
/// ?眔?誹
///
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
///
/// ?眔?誹
///
public List GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List modelList = new List();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
Maticsoft.Model.BasBank model;
for (int n = 0; n < rowsCount; n++)
{
model = new Maticsoft.Model.BasBank();
model.Code=ds.Tables[0].Rows[0][“Code“].ToString();
model.CName=ds.Tables[0].Rows[0][“CName“].ToString();
model.CBName=ds.Tables[0].Rows[0][“CBName“].ToString();
model.EName=ds.Tables[0].Rows[0][“EName“].ToString();
model.VName=ds.Tables[0].Rows[0][“VName“].ToString();
if(ds.Tables[0].Rows[0][“Flag“].ToString()!=““)
{
if((ds.Tables[0].Rows[0][“Flag“].ToString()==“1“)||(ds.Tables[0].Rows[0][“Flag“].ToString().ToLower()==“true“))
{
model.Flag=true;
}
else
{
model.Flag=false;
}
}
if(ds.Tables[0].Rows[0][“AutoID“].ToString()!=““)
{
model.AutoID=int.P
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3521 2008-10-04 08:14 PWERPNET\BLL\BasBank.cs
文件 15360 2007-03-07 11:55 PWERPNET\BLL\bin\Debug\COM.Excel.dll
文件 1089536 2007-03-07 11:55 PWERPNET\BLL\bin\Debug\Excel.dll
文件 32768 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.BLL.dll
文件 101888 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.BLL.pdb
文件 16384 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.DALFactory.dll
文件 22016 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.DALFactory.pdb
文件 20480 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.IDAL.dll
文件 24064 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.IDAL.pdb
文件 49152 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.Model.dll
文件 200192 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\Gumy.Model.pdb
文件 53248 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\LTP.Common.dll
文件 124416 2008-10-24 07:25 PWERPNET\BLL\bin\Debug\LTP.Common.pdb
文件 64088 2007-04-26 15:30 PWERPNET\BLL\bin\Debug\Microsoft.Vbe.Interop.dll
文件 223800 2007-04-26 15:30 PWERPNET\BLL\bin\Debug\office.dll
文件 387947 2005-04-19 14:42 PWERPNET\BLL\bin\Debug\office.xm
文件 6730 2008-10-22 08:58 PWERPNET\BLL\BLL.csproj
文件 2444 2008-10-04 09:56 PWERPNET\BLL\BLL.csproj.user
文件 3216 2008-10-22 09:44 PWERPNET\BLL\CG\INV\CGINVItemBll.cs
文件 1072 2008-10-22 08:58 PWERPNET\BLL\CG\INV\CGINVItemSelectBll.cs
文件 3444 2008-10-22 09:44 PWERPNET\BLL\CG\INV\CGINVMainBll.cs
文件 3269 2008-10-22 10:29 PWERPNET\BLL\CG\PLAN\CGPoNoPlanItemBll.cs
文件 3426 2008-10-22 10:29 PWERPNET\BLL\CG\PLAN\CGPoNoPlanMainBll.cs
文件 1055 2008-10-21 08:02 PWERPNET\BLL\CG\PONO\CGPlanToPoNoBll.cs
文件 3338 2008-10-22 09:44 PWERPNET\BLL\CG\PONO\CGPoNo.cs
文件 3225 2008-10-22 09:44 PWERPNET\BLL\CG\PONO\CGPoNoItem.cs
文件 3268 2008-10-15 14:22 PWERPNET\BLL\CG\Prv\CGPrvBll.cs
文件 3343 2008-10-18 09:59 PWERPNET\BLL\CG\Prv\CGPrvPriceBll.cs
文件 3290 2008-10-20 07:54 PWERPNET\BLL\CK\Rm\CKRmMstBll.cs
文件 1841 2008-10-22 10:13 PWERPNET\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
............此处省略1021个文件信息
- 上一篇:duochengshi.zip
- 下一篇:cPropertysheet大全
相关资源
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
- 一个人脸识别程序源码
- 编译原理课程设计:词法语法编译器
- 透明加密源码及说明
- 电视直播源码
- 远程桌面(带C 源码)
- mtrace 源码
- 安卓协议QQ源码包附模块源码
- 天龙八部2易语言源码HX
- 读取串口数据并画实时曲线的VC 程序
- wpe源码1.2
评论
共有 条评论