Files
T-DAS/Epost.DAL/AgvLogInfoDAL.cs

32 lines
1.0 KiB
C#
Raw Normal View History

2024-12-25 10:15:41 +08:00
using System;
using System.Collections.Generic;
2024-12-27 16:54:02 +08:00
using System.Data;
2024-12-25 10:15:41 +08:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Epost.DAL
{
public class AgvLogInfoDAL
{
DataBaseOpration.OprationSqlDAL db = DB_DLL.GetInstance();
public bool insertAgvLogInfo(string reqCode, string reqTime, string robotCode, string beginDate, string warnContent, string taskCode)
{
string sql = string.Format("insert into agvLogInfo(reqCode ,reqTime,robotCode,beginDate,warnContent,taskCode,addtime) values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')",
reqCode,reqTime,robotCode,beginDate,warnContent,
taskCode,DateTime.Now.ToString());
long x =db.InsertSql(sql);
if (x > 0)
return true;
return false;
}
2024-12-27 16:54:02 +08:00
public DataTable getAgvLogList(string strwhere)
{
string sql = string.Format("select * from agvLogInfo where 1=1 "+strwhere);
return db.GetsqlForDT(sql);
}
2024-12-25 10:15:41 +08:00
}
}