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><>ERPCarShiYong<6E><67>
|
|||
|
|
/// </summary>
|
|||
|
|
public class ERPCarShiYong
|
|||
|
|
{
|
|||
|
|
public ERPCarShiYong()
|
|||
|
|
{}
|
|||
|
|
#region Model
|
|||
|
|
private int _id;
|
|||
|
|
private string _carname;
|
|||
|
|
private string _driveruser;
|
|||
|
|
private string _yongcheuser;
|
|||
|
|
private string _yongchebumen;
|
|||
|
|
private string _qishitime;
|
|||
|
|
private string _jieshutime;
|
|||
|
|
private string _mudidi;
|
|||
|
|
private string _licheng;
|
|||
|
|
private string _shengqinguser;
|
|||
|
|
private string _diaoduuser;
|
|||
|
|
private string _shengqingshiyou;
|
|||
|
|
private string _nowstate;
|
|||
|
|
private string _username;
|
|||
|
|
private DateTime? _timestr;
|
|||
|
|
private string _backinfo;
|
|||
|
|
/// <summary>
|
|||
|
|
///
|
|||
|
|
/// </summary>
|
|||
|
|
public int ID
|
|||
|
|
{
|
|||
|
|
set{ _id=value;}
|
|||
|
|
get{return _id;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string CarName
|
|||
|
|
{
|
|||
|
|
set{ _carname=value;}
|
|||
|
|
get{return _carname;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// ˾<><CBBE>
|
|||
|
|
/// </summary>
|
|||
|
|
public string DriverUser
|
|||
|
|
{
|
|||
|
|
set{ _driveruser=value;}
|
|||
|
|
get{return _driveruser;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ó<EFBFBD><C3B3><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string YongCheUser
|
|||
|
|
{
|
|||
|
|
set{ _yongcheuser=value;}
|
|||
|
|
get{return _yongcheuser;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string YongCheBuMen
|
|||
|
|
{
|
|||
|
|
set{ _yongchebumen=value;}
|
|||
|
|
get{return _yongchebumen;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ʼʱ<CABC><CAB1>
|
|||
|
|
/// </summary>
|
|||
|
|
public string QiShiTime
|
|||
|
|
{
|
|||
|
|
set{ _qishitime=value;}
|
|||
|
|
get{return _qishitime;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
|||
|
|
/// </summary>
|
|||
|
|
public string JieShuTime
|
|||
|
|
{
|
|||
|
|
set{ _jieshutime=value;}
|
|||
|
|
get{return _jieshutime;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// Ŀ<>ĵ<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string MuDiDi
|
|||
|
|
{
|
|||
|
|
set{ _mudidi=value;}
|
|||
|
|
get{return _mudidi;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string LiCheng
|
|||
|
|
{
|
|||
|
|
set{ _licheng=value;}
|
|||
|
|
get{return _licheng;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string ShengQingUser
|
|||
|
|
{
|
|||
|
|
set{ _shengqinguser=value;}
|
|||
|
|
get{return _shengqinguser;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string DiaoDuUser
|
|||
|
|
{
|
|||
|
|
set{ _diaoduuser=value;}
|
|||
|
|
get{return _diaoduuser;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string ShengQingShiYou
|
|||
|
|
{
|
|||
|
|
set{ _shengqingshiyou=value;}
|
|||
|
|
get{return _shengqingshiyou;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ǰ״̬
|
|||
|
|
/// </summary>
|
|||
|
|
public string NowState
|
|||
|
|
{
|
|||
|
|
set{ _nowstate=value;}
|
|||
|
|
get{return _nowstate;}
|
|||
|
|
}
|
|||
|
|
/// <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;}
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ע˵<D7A2><CBB5>
|
|||
|
|
/// </summary>
|
|||
|
|
public string BackInfo
|
|||
|
|
{
|
|||
|
|
set{ _backinfo=value;}
|
|||
|
|
get{return _backinfo;}
|
|||
|
|
}
|
|||
|
|
#endregion Model
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region <EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>õ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>
|
|||
|
|
/// </summary>
|
|||
|
|
public ERPCarShiYong(int ID)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("select ID,CarName,DriverUser,YongCheUser,YongCheBuMen,QiShiTime,JieShuTime,MuDiDi,LiCheng,ShengQingUser,DiaoDuUser,ShengQingShiYou,NowState,UserName,TimeStr,BackInfo ");
|
|||
|
|
strSql.Append(" FROM ERPCarShiYong ");
|
|||
|
|
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());
|
|||
|
|
}
|
|||
|
|
CarName=ds.Tables[0].Rows[0]["CarName"].ToString();
|
|||
|
|
DriverUser=ds.Tables[0].Rows[0]["DriverUser"].ToString();
|
|||
|
|
YongCheUser=ds.Tables[0].Rows[0]["YongCheUser"].ToString();
|
|||
|
|
YongCheBuMen=ds.Tables[0].Rows[0]["YongCheBuMen"].ToString();
|
|||
|
|
QiShiTime=ds.Tables[0].Rows[0]["QiShiTime"].ToString();
|
|||
|
|
JieShuTime=ds.Tables[0].Rows[0]["JieShuTime"].ToString();
|
|||
|
|
MuDiDi=ds.Tables[0].Rows[0]["MuDiDi"].ToString();
|
|||
|
|
LiCheng=ds.Tables[0].Rows[0]["LiCheng"].ToString();
|
|||
|
|
ShengQingUser=ds.Tables[0].Rows[0]["ShengQingUser"].ToString();
|
|||
|
|
DiaoDuUser=ds.Tables[0].Rows[0]["DiaoDuUser"].ToString();
|
|||
|
|
ShengQingShiYou=ds.Tables[0].Rows[0]["ShengQingShiYou"].ToString();
|
|||
|
|
NowState=ds.Tables[0].Rows[0]["NowState"].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());
|
|||
|
|
}
|
|||
|
|
BackInfo=ds.Tables[0].Rows[0]["BackInfo"].ToString();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>ID
|
|||
|
|
/// </summary>
|
|||
|
|
public int GetMaxId()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
return DbHelperSQL.GetMaxID("ID", "ERPCarShiYong");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ڸü<DAB8>¼
|
|||
|
|
/// </summary>
|
|||
|
|
public bool Exists(int ID)
|
|||
|
|
{
|
|||
|
|
StringBuilder strSql=new StringBuilder();
|
|||
|
|
strSql.Append("select count(1) from ERPCarShiYong");
|
|||
|
|
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 ERPCarShiYong(");
|
|||
|
|
strSql.Append("CarName,DriverUser,YongCheUser,YongCheBuMen,QiShiTime,JieShuTime,MuDiDi,LiCheng,ShengQingUser,DiaoDuUser,ShengQingShiYou,NowState,UserName,TimeStr,BackInfo)");
|
|||
|
|
strSql.Append(" values (");
|
|||
|
|
strSql.Append("@CarName,@DriverUser,@YongCheUser,@YongCheBuMen,@QiShiTime,@JieShuTime,@MuDiDi,@LiCheng,@ShengQingUser,@DiaoDuUser,@ShengQingShiYou,@NowState,@UserName,@TimeStr,@BackInfo)");
|
|||
|
|
strSql.Append(";select @@IDENTITY");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@CarName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@DriverUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@YongCheUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@YongCheBuMen", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@QiShiTime", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@JieShuTime", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@MuDiDi", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@LiCheng", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@ShengQingUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@DiaoDuUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@ShengQingShiYou", SqlDbType.VarChar,5000),
|
|||
|
|
new SqlParameter("@NowState", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@UserName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@TimeStr", SqlDbType.DateTime),
|
|||
|
|
new SqlParameter("@BackInfo", SqlDbType.VarChar,5000)};
|
|||
|
|
parameters[0].Value = CarName;
|
|||
|
|
parameters[1].Value = DriverUser;
|
|||
|
|
parameters[2].Value = YongCheUser;
|
|||
|
|
parameters[3].Value = YongCheBuMen;
|
|||
|
|
parameters[4].Value = QiShiTime;
|
|||
|
|
parameters[5].Value = JieShuTime;
|
|||
|
|
parameters[6].Value = MuDiDi;
|
|||
|
|
parameters[7].Value = LiCheng;
|
|||
|
|
parameters[8].Value = ShengQingUser;
|
|||
|
|
parameters[9].Value = DiaoDuUser;
|
|||
|
|
parameters[10].Value = ShengQingShiYou;
|
|||
|
|
parameters[11].Value = NowState;
|
|||
|
|
parameters[12].Value = UserName;
|
|||
|
|
parameters[13].Value = TimeStr;
|
|||
|
|
parameters[14].Value = BackInfo;
|
|||
|
|
|
|||
|
|
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 ERPCarShiYong set ");
|
|||
|
|
strSql.Append("CarName=@CarName,");
|
|||
|
|
strSql.Append("DriverUser=@DriverUser,");
|
|||
|
|
strSql.Append("YongCheUser=@YongCheUser,");
|
|||
|
|
strSql.Append("YongCheBuMen=@YongCheBuMen,");
|
|||
|
|
strSql.Append("QiShiTime=@QiShiTime,");
|
|||
|
|
strSql.Append("JieShuTime=@JieShuTime,");
|
|||
|
|
strSql.Append("MuDiDi=@MuDiDi,");
|
|||
|
|
strSql.Append("LiCheng=@LiCheng,");
|
|||
|
|
strSql.Append("ShengQingUser=@ShengQingUser,");
|
|||
|
|
strSql.Append("DiaoDuUser=@DiaoDuUser,");
|
|||
|
|
strSql.Append("ShengQingShiYou=@ShengQingShiYou,");
|
|||
|
|
strSql.Append("NowState=@NowState,");
|
|||
|
|
strSql.Append("UserName=@UserName,");
|
|||
|
|
strSql.Append("TimeStr=@TimeStr,");
|
|||
|
|
strSql.Append("BackInfo=@BackInfo");
|
|||
|
|
strSql.Append(" where ID=@ID ");
|
|||
|
|
SqlParameter[] parameters = {
|
|||
|
|
new SqlParameter("@ID", SqlDbType.Int,4),
|
|||
|
|
new SqlParameter("@CarName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@DriverUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@YongCheUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@YongCheBuMen", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@QiShiTime", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@JieShuTime", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@MuDiDi", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@LiCheng", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@ShengQingUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@DiaoDuUser", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@ShengQingShiYou", SqlDbType.VarChar,5000),
|
|||
|
|
new SqlParameter("@NowState", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@UserName", SqlDbType.VarChar,50),
|
|||
|
|
new SqlParameter("@TimeStr", SqlDbType.DateTime),
|
|||
|
|
new SqlParameter("@BackInfo", SqlDbType.VarChar,5000)};
|
|||
|
|
parameters[0].Value = ID;
|
|||
|
|
parameters[1].Value = CarName;
|
|||
|
|
parameters[2].Value = DriverUser;
|
|||
|
|
parameters[3].Value = YongCheUser;
|
|||
|
|
parameters[4].Value = YongCheBuMen;
|
|||
|
|
parameters[5].Value = QiShiTime;
|
|||
|
|
parameters[6].Value = JieShuTime;
|
|||
|
|
parameters[7].Value = MuDiDi;
|
|||
|
|
parameters[8].Value = LiCheng;
|
|||
|
|
parameters[9].Value = ShengQingUser;
|
|||
|
|
parameters[10].Value = DiaoDuUser;
|
|||
|
|
parameters[11].Value = ShengQingShiYou;
|
|||
|
|
parameters[12].Value = NowState;
|
|||
|
|
parameters[13].Value = UserName;
|
|||
|
|
parameters[14].Value = TimeStr;
|
|||
|
|
parameters[15].Value = BackInfo;
|
|||
|
|
|
|||
|
|
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 ERPCarShiYong ");
|
|||
|
|
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,CarName,DriverUser,YongCheUser,YongCheBuMen,QiShiTime,JieShuTime,MuDiDi,LiCheng,ShengQingUser,DiaoDuUser,ShengQingShiYou,NowState,UserName,TimeStr,BackInfo ");
|
|||
|
|
strSql.Append(" FROM ERPCarShiYong ");
|
|||
|
|
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());
|
|||
|
|
}
|
|||
|
|
CarName=ds.Tables[0].Rows[0]["CarName"].ToString();
|
|||
|
|
DriverUser=ds.Tables[0].Rows[0]["DriverUser"].ToString();
|
|||
|
|
YongCheUser=ds.Tables[0].Rows[0]["YongCheUser"].ToString();
|
|||
|
|
YongCheBuMen=ds.Tables[0].Rows[0]["YongCheBuMen"].ToString();
|
|||
|
|
QiShiTime=ds.Tables[0].Rows[0]["QiShiTime"].ToString();
|
|||
|
|
JieShuTime=ds.Tables[0].Rows[0]["JieShuTime"].ToString();
|
|||
|
|
MuDiDi=ds.Tables[0].Rows[0]["MuDiDi"].ToString();
|
|||
|
|
LiCheng=ds.Tables[0].Rows[0]["LiCheng"].ToString();
|
|||
|
|
ShengQingUser=ds.Tables[0].Rows[0]["ShengQingUser"].ToString();
|
|||
|
|
DiaoDuUser=ds.Tables[0].Rows[0]["DiaoDuUser"].ToString();
|
|||
|
|
ShengQingShiYou=ds.Tables[0].Rows[0]["ShengQingShiYou"].ToString();
|
|||
|
|
NowState=ds.Tables[0].Rows[0]["NowState"].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());
|
|||
|
|
}
|
|||
|
|
BackInfo=ds.Tables[0].Rows[0]["BackInfo"].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 ERPCarShiYong ");
|
|||
|
|
if(strWhere.Trim()!="")
|
|||
|
|
{
|
|||
|
|
strSql.Append(" where "+strWhere);
|
|||
|
|
}
|
|||
|
|
return DbHelperSQL.Query(strSql.ToString());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion <EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|