using JY.Model; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JY.DAL { public interface IDbHelper { /// /// 保存报警数据 /// /// /// int AddAlarmData(AlarmData m); /// /// 缓存报警数据 /// /// /// /// int AddAlarmCacheData(string tablename, List m); /// /// 查询缓存表报警信息 /// /// 开始时间 /// 结束时间 /// List GetAlarmCacheData(); /// /// 删除未更新数据 /// /// int DeleteAlarmCacheData(); /// /// 查询报警信息 /// /// 开始时间 /// 结束时间 /// List GetAlarmData(string strDate1, string strDate2); /// /// 查询进站信息 /// /// /// List GetFeedingData(string strCode); /// /// 新增产品型号 /// /// 机型信息 /// int AddProductModel(ProductModel entity); /// /// 删除本地型号 /// /// 型号 /// void DelProductModel(string modeltype); /// /// 获取产品型号列表 /// /// 产品型号 /// List GetProductModelList(string strProdType = ""); /// /// 保存产品类型配置参数 /// /// bool AddProductParaList(List list); /// /// 获取产品参数通过产品型号 /// /// 产品型号 /// List GetProductParaByProdModel(string strModelType); /// /// 标准轴参数保存 /// /// /// /// /// bool InsertPLCConfigBase(List list); /// /// 获取换型操作的基本参数 /// /// List GetPLCConfigBases(); /// /// 获取PLC换型参数绑定值 /// /// 产品型号 /// List GetPLCConfigPara(string modelName); /// /// 具体型号轴参数保存 /// /// /// /// /// bool InsertPLCConfigParam(List list); /// /// 查询历史数据 /// /// /// /// /// DataTable GetTestData(int type,string strBarCode, string strDate1, string strDate2, string flag); /// /// 查询历史数据 /// /// /// /// /// /// DataTable GetTestData2(int type,int resultType, string strBarCode, string strDate1, string strDate2, string flag); /// /// 查询CCD历史数据 /// /// /// /// /// DataTable GetCCDData(string strWorkerNum, string strDate1, string strDate2); /// /// 查询CCD历史数据 /// /// /// /// /// DataTable GetBarInTime(string strBar); /// /// 更新获取进站时间状态 /// /// /// int UparInTime(string strBar); /// /// 按日期查询和时间查询投入产出信息 /// /// /// /// List GetProdTotal(string strDate, int Hour); /// /// 更新指定时间的小时产出 /// /// 小时产出数据 /// int UpdateHourprodData(HourprodEntity enity); /// /// 保存进托盘数据 /// /// /// /// int AddInPutTrayID(TrayTestEntry m, ref string strErr); /// /// 保存空托盘排出数据 /// /// /// /// int AddOutTrayID(TrayTestEntry m, ref string strErr); /// /// 保存上料数据 /// /// /// /// int AddFeedingData(FeedingData m, ref string strErr); /// /// 保存下料数据 /// /// /// /// int AddBlankingData(BlankingData m, ref string strErr); int AddCamInforData(CamInfor m, ref string strErr); /// /// 根据工位编码获取异常播报内容 /// /// /// 如果没有找到记录,是否需要插入 /// string GetAbnormalVoice(string code, bool needInsert = false); } }