421 lines
12 KiB
C#
421 lines
12 KiB
C#
|
|
using System;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Data.SqlClient;
|
|||
|
|
using ZWL.DBUtility;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
namespace ZWL.BLL
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ERPDangAn<41><6E>
|
|||
|
|
/// </summary>
|
|||
|
|
public class ERPDangAn
|
|||
|
|
{
|
|||
|
|
public ERPDangAn()
|
|||
|
|
{}
|
|||
|
|
#region Model
|
|||
|
|
private int _id;
|
|||
|
|
private string _filename;
|
|||
|
|
private string _juankuname;
|
|||
|
|
private string _fileserils;
|
|||
|
|
private string _filetitle;
|
|||
|
|
private string _fawendanwei;
|
|||
|
|
private string _fawendate;
|
|||
|
|
private string _miji;
|
|||
|
|
private string _jingji;
|
|||
|
|
private string _typestr;
|
|||
|
|
private string _gongwentype;
|
|||
|
|
private string _filepage;
|
|||
|
|
private string _fujianlist;
|
|||
|
|
private string _backinfo;
|
|||
|
|
private string _username;
|
|||
|
|
private DateTime? _timestr;
|
|||
|
|
/// <summary>
|
|||
|
|
///
|
|||
|
|
/// </summary>
|
|||
|
|
public int ID
|
|||
|
|
{
|
|||
|
|
set{ _id=value;}
|
|||
|
|
get{return _id;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string FileName
|
|||
|
|
{
|
|||
|
|
set{ _filename=value;}
|
|||
|
|
get{return _filename;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string JuanKuName
|
|||
|
|
{
|
|||
|
|
set{ _juankuname=value;}
|
|||
|
|
get{return _juankuname;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string FileSerils
|
|||
|
|
{
|
|||
|
|
set{ _fileserils=value;}
|
|||
|
|
get{return _fileserils;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string FileTitle
|
|||
|
|
{
|
|||
|
|
set{ _filetitle=value;}
|
|||
|
|
get{return _filetitle;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>ĵ<EFBFBD>λ
|
|||
|
|
/// </summary>
|
|||
|
|
public string FaWenDanWei
|
|||
|
|
{
|
|||
|
|
set{ _fawendanwei=value;}
|
|||
|
|
get{return _fawendanwei;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string FaWenDate
|
|||
|
|
{
|
|||
|
|
set{ _fawendate=value;}
|
|||
|
|
get{return _fawendate;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ܼ<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string MiJi
|
|||
|
|
{
|
|||
|
|
set{ _miji=value;}
|
|||
|
|
get{return _miji;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string JingJi
|
|||
|
|
{
|
|||
|
|
set{ _jingji=value;}
|
|||
|
|
get{return _jingji;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string TypeStr
|
|||
|
|
{
|
|||
|
|
set{ _typestr=value;}
|
|||
|
|
get{return _typestr;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string GongWenType
|
|||
|
|
{
|
|||
|
|
set{ _gongwentype=value;}
|
|||
|
|
get{return _gongwentype;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ļ<EFBFBD>ҳ<EFBFBD><D2B3>
|
|||
|
|
/// </summary>
|
|||
|
|
public string FilePage
|
|||
|
|
{
|
|||
|
|
set{ _filepage=value;}
|
|||
|
|
get{return _filepage;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string FuJianList
|
|||
|
|
{
|
|||
|
|
set{ _fujianlist=value;}
|
|||
|
|
get{return _fujianlist;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ע<EFBFBD><D7A2>Ϣ
|
|||
|
|
/// </summary>
|
|||
|
|
public string BackInfo
|
|||
|
|
{
|
|||
|
|
set{ _backinfo=value;}
|
|||
|
|
get{return _backinfo;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// ¼<><C2BC><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string UserName
|
|||
|
|
{
|
|||
|
|
set{ _username=value;}
|
|||
|
|
get{return _username;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// ¼<><C2BC>ʱ<EFBFBD><CAB1>
|
|||
|
|
/// </summary>
|
|||
|
|
public DateTime? TimeStr
|
|||
|
|
{
|
|||
|
|
set{ _timestr=value;}
|
|||
|
|
get{return _timestr;}
|
|||
|
|
}
|
|||
|
|
#endregion Model
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region <EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>õ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>
|
|||
|
|
/// </summary>
|
|||
|
|
public ERPDangAn(int ID)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("select ID,FileName,JuanKuName,FileSerils,FileTitle,FaWenDanWei,FaWenDate,MiJi,JingJi,TypeStr,GongWenType,FilePage,FuJianList,BackInfo,UserName,TimeStr ");
|
|||
|
|
strSql.Append(" FROM ERPDangAn ");
|
|||
|
|
strSql.Append(" where ID=@ID ");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@ID", SqlDbType.Int,4)};
|
|||
|
|
parameters[0].Value = ID;
|
|||
|
|
|
|||
|
|
DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
|
|||
|
|
if(ds.Tables[0].Rows.Count>0)
|
|||
|
|
{
|
|||
|
|
if(ds.Tables[0].Rows[0]["ID"].ToString()!="")
|
|||
|
|
{
|
|||
|
|
ID=int.Parse(ds.Tables[0].Rows[0]["ID"].ToString());
|
|||
|
|
}
|
|||
|
|
FileName=ds.Tables[0].Rows[0]["FileName"].ToString();
|
|||
|
|
JuanKuName=ds.Tables[0].Rows[0]["JuanKuName"].ToString();
|
|||
|
|
FileSerils=ds.Tables[0].Rows[0]["FileSerils"].ToString();
|
|||
|
|
FileTitle=ds.Tables[0].Rows[0]["FileTitle"].ToString();
|
|||
|
|
FaWenDanWei=ds.Tables[0].Rows[0]["FaWenDanWei"].ToString();
|
|||
|
|
FaWenDate=ds.Tables[0].Rows[0]["FaWenDate"].ToString();
|
|||
|
|
MiJi=ds.Tables[0].Rows[0]["MiJi"].ToString();
|
|||
|
|
JingJi=ds.Tables[0].Rows[0]["JingJi"].ToString();
|
|||
|
|
TypeStr=ds.Tables[0].Rows[0]["TypeStr"].ToString();
|
|||
|
|
GongWenType=ds.Tables[0].Rows[0]["GongWenType"].ToString();
|
|||
|
|
FilePage=ds.Tables[0].Rows[0]["FilePage"].ToString();
|
|||
|
|
FuJianList=ds.Tables[0].Rows[0]["FuJianList"].ToString();
|
|||
|
|
BackInfo=ds.Tables[0].Rows[0]["BackInfo"].ToString();
|
|||
|
|
UserName=ds.Tables[0].Rows[0]["UserName"].ToString();
|
|||
|
|
if(ds.Tables[0].Rows[0]["TimeStr"].ToString()!="")
|
|||
|
|
{
|
|||
|
|
TimeStr=DateTime.Parse(ds.Tables[0].Rows[0]["TimeStr"].ToString());
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>ID
|
|||
|
|
/// </summary>
|
|||
|
|
public int GetMaxId()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
return DbHelperSQL.GetMaxID("ID", "ERPDangAn");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ڸü<DAB8>¼
|
|||
|
|
/// </summary>
|
|||
|
|
public bool Exists(int ID)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("select count(1) from ERPDangAn");
|
|||
|
|
strSql.Append(" where ID=@ID ");
|
|||
|
|
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@ID", SqlDbType.Int,4)};
|
|||
|
|
parameters[0].Value = ID;
|
|||
|
|
|
|||
|
|
return DbHelperSQL.Exists(strSql.ToString(),parameters);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public int Add()
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("insert into ERPDangAn(");
|
|||
|
|
strSql.Append("FileName,JuanKuName,FileSerils,FileTitle,FaWenDanWei,FaWenDate,MiJi,JingJi,TypeStr,GongWenType,FilePage,FuJianList,BackInfo,UserName,TimeStr)");
|
|||
|
|
strSql.Append(" values (");
|
|||
|
|
strSql.Append("@FileName,@JuanKuName,@FileSerils,@FileTitle,@FaWenDanWei,@FaWenDate,@MiJi,@JingJi,@TypeStr,@GongWenType,@FilePage,@FuJianList,@BackInfo,@UserName,@TimeStr)");
|
|||
|
|
strSql.Append(";select @@IDENTITY");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@FileName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@JuanKuName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FileSerils", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FileTitle", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FaWenDanWei", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FaWenDate", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@MiJi", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@JingJi", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@TypeStr", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@GongWenType", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FilePage", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FuJianList", SqlDbType.VarChar,5000),
|
|||
|
|
new SqlParameter("@BackInfo", SqlDbType.VarChar,5000),
|
|||
|
|
new SqlParameter("@UserName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@TimeStr", SqlDbType.DateTime)};
|
|||
|
|
parameters[0].Value = FileName;
|
|||
|
|
parameters[1].Value = JuanKuName;
|
|||
|
|
parameters[2].Value = FileSerils;
|
|||
|
|
parameters[3].Value = FileTitle;
|
|||
|
|
parameters[4].Value = FaWenDanWei;
|
|||
|
|
parameters[5].Value = FaWenDate;
|
|||
|
|
parameters[6].Value = MiJi;
|
|||
|
|
parameters[7].Value = JingJi;
|
|||
|
|
parameters[8].Value = TypeStr;
|
|||
|
|
parameters[9].Value = GongWenType;
|
|||
|
|
parameters[10].Value = FilePage;
|
|||
|
|
parameters[11].Value = FuJianList;
|
|||
|
|
parameters[12].Value = BackInfo;
|
|||
|
|
parameters[13].Value = UserName;
|
|||
|
|
parameters[14].Value = TimeStr;
|
|||
|
|
|
|||
|
|
object obj = DbHelperSQL.GetSingle(strSql.ToString(),parameters);
|
|||
|
|
if (obj == null)
|
|||
|
|
{
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
return Convert.ToInt32(obj);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public void Update()
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("update ERPDangAn set ");
|
|||
|
|
strSql.Append("FileName=@FileName,");
|
|||
|
|
strSql.Append("JuanKuName=@JuanKuName,");
|
|||
|
|
strSql.Append("FileSerils=@FileSerils,");
|
|||
|
|
strSql.Append("FileTitle=@FileTitle,");
|
|||
|
|
strSql.Append("FaWenDanWei=@FaWenDanWei,");
|
|||
|
|
strSql.Append("FaWenDate=@FaWenDate,");
|
|||
|
|
strSql.Append("MiJi=@MiJi,");
|
|||
|
|
strSql.Append("JingJi=@JingJi,");
|
|||
|
|
strSql.Append("TypeStr=@TypeStr,");
|
|||
|
|
strSql.Append("GongWenType=@GongWenType,");
|
|||
|
|
strSql.Append("FilePage=@FilePage,");
|
|||
|
|
strSql.Append("FuJianList=@FuJianList,");
|
|||
|
|
strSql.Append("BackInfo=@BackInfo,");
|
|||
|
|
strSql.Append("UserName=@UserName,");
|
|||
|
|
strSql.Append("TimeStr=@TimeStr");
|
|||
|
|
strSql.Append(" where ID=@ID ");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@ID", SqlDbType.Int,4),
|
|||
|
|
new SqlParameter("@FileName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@JuanKuName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FileSerils", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FileTitle", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FaWenDanWei", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FaWenDate", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@MiJi", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@JingJi", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@TypeStr", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@GongWenType", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FilePage", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@FuJianList", SqlDbType.VarChar,5000),
|
|||
|
|
new SqlParameter("@BackInfo", SqlDbType.VarChar,5000),
|
|||
|
|
new SqlParameter("@UserName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@TimeStr", SqlDbType.DateTime)};
|
|||
|
|
parameters[0].Value = ID;
|
|||
|
|
parameters[1].Value = FileName;
|
|||
|
|
parameters[2].Value = JuanKuName;
|
|||
|
|
parameters[3].Value = FileSerils;
|
|||
|
|
parameters[4].Value = FileTitle;
|
|||
|
|
parameters[5].Value = FaWenDanWei;
|
|||
|
|
parameters[6].Value = FaWenDate;
|
|||
|
|
parameters[7].Value = MiJi;
|
|||
|
|
parameters[8].Value = JingJi;
|
|||
|
|
parameters[9].Value = TypeStr;
|
|||
|
|
parameters[10].Value = GongWenType;
|
|||
|
|
parameters[11].Value = FilePage;
|
|||
|
|
parameters[12].Value = FuJianList;
|
|||
|
|
parameters[13].Value = BackInfo;
|
|||
|
|
parameters[14].Value = UserName;
|
|||
|
|
parameters[15].Value = TimeStr;
|
|||
|
|
|
|||
|
|
DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// ɾ<><C9BE>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public void Delete(int ID)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("delete from ERPDangAn ");
|
|||
|
|
strSql.Append(" where ID=@ID ");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@ID", SqlDbType.Int,4)};
|
|||
|
|
parameters[0].Value = ID;
|
|||
|
|
|
|||
|
|
DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>õ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>
|
|||
|
|
/// </summary>
|
|||
|
|
public void GetModel(int ID)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("select top 1 ID,FileName,JuanKuName,FileSerils,FileTitle,FaWenDanWei,FaWenDate,MiJi,JingJi,TypeStr,GongWenType,FilePage,FuJianList,BackInfo,UserName,TimeStr ");
|
|||
|
|
strSql.Append(" FROM ERPDangAn ");
|
|||
|
|
strSql.Append(" where ID=@ID ");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@ID", SqlDbType.Int,4)};
|
|||
|
|
parameters[0].Value = ID;
|
|||
|
|
|
|||
|
|
DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
|
|||
|
|
if(ds.Tables[0].Rows.Count>0)
|
|||
|
|
{
|
|||
|
|
if(ds.Tables[0].Rows[0]["ID"].ToString()!="")
|
|||
|
|
{
|
|||
|
|
ID=int.Parse(ds.Tables[0].Rows[0]["ID"].ToString());
|
|||
|
|
}
|
|||
|
|
FileName=ds.Tables[0].Rows[0]["FileName"].ToString();
|
|||
|
|
JuanKuName=ds.Tables[0].Rows[0]["JuanKuName"].ToString();
|
|||
|
|
FileSerils=ds.Tables[0].Rows[0]["FileSerils"].ToString();
|
|||
|
|
FileTitle=ds.Tables[0].Rows[0]["FileTitle"].ToString();
|
|||
|
|
FaWenDanWei=ds.Tables[0].Rows[0]["FaWenDanWei"].ToString();
|
|||
|
|
FaWenDate=ds.Tables[0].Rows[0]["FaWenDate"].ToString();
|
|||
|
|
MiJi=ds.Tables[0].Rows[0]["MiJi"].ToString();
|
|||
|
|
JingJi=ds.Tables[0].Rows[0]["JingJi"].ToString();
|
|||
|
|
TypeStr=ds.Tables[0].Rows[0]["TypeStr"].ToString();
|
|||
|
|
GongWenType=ds.Tables[0].Rows[0]["GongWenType"].ToString();
|
|||
|
|
FilePage=ds.Tables[0].Rows[0]["FilePage"].ToString();
|
|||
|
|
FuJianList=ds.Tables[0].Rows[0]["FuJianList"].ToString();
|
|||
|
|
BackInfo=ds.Tables[0].Rows[0]["BackInfo"].ToString();
|
|||
|
|
UserName=ds.Tables[0].Rows[0]["UserName"].ToString();
|
|||
|
|
if(ds.Tables[0].Rows[0]["TimeStr"].ToString()!="")
|
|||
|
|
{
|
|||
|
|
TimeStr=DateTime.Parse(ds.Tables[0].Rows[0]["TimeStr"].ToString());
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public DataSet GetList(string strWhere)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("select * ");
|
|||
|
|
strSql.Append(" FROM ERPDangAn ");
|
|||
|
|
if(strWhere.Trim()!="")
|
|||
|
|
{
|
|||
|
|
strSql.Append(" where "+strWhere);
|
|||
|
|
}
|
|||
|
|
return DbHelperSQL.Query(strSql.ToString());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion <EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|