using System; using System.Collections.Generic; using System.Data; 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; } public DataTable getAgvLogList(string strwhere) { string sql = string.Format("select * from agvLogInfo where 1=1 "+strwhere); return db.GetsqlForDT(sql); } } }