/// <summary> /// 插入乳化沥青采集记录 /// </summary> /// <param name="entity"></param> public void InsertEmulGatherProduceLog(EmulsificationGatherProduceLog entity) { using (ProcessingTableDataContext oContext = new ProcessingTableDataContext(this._strConn)) { //entity.inputDate = DateTime.Now; oContext.EmulsificationGatherProduceLog.InsertOnSubmit(entity); oContext.SubmitChanges(); } }
/// <summary> /// 插入执油炉能源消耗日报明细 /// </summary> /// <param name="entity"></param> public void InsertDeepFatDetail(DeepFatConsumeDailyStatisticsDetail entity) { using (ProcessingTableDataContext oContext = new ProcessingTableDataContext(this._strConn)) { entity.inputDate = DateTime.Now; entity.inputMan = "services"; oContext.DeepFatConsumeDailyStatisticsDetail.InsertOnSubmit(entity); oContext.SubmitChanges(); } }
/// <summary> /// 插入生产计量监控 /// </summary> /// <param name="entity"></param> public void InsertProduceMeasure(ProduceMeasureMonitor entity) { using (ProcessingTableDataContext oContext = new ProcessingTableDataContext(this._strConn)) { //entity.inputDate = DateTime.Now; entity.inputMan = "services"; oContext.ProduceMeasureMonitor.InsertOnSubmit(entity); oContext.SubmitChanges(); } }
/// <summary> /// 插入流量计历史记录 /// </summary> /// <param name="entity"></param> public void InsertFlowmeterHistory(FlowmeterHistory entity) { using (ProcessingTableDataContext oContext = new ProcessingTableDataContext(this._strConn)) { entity.date = DateTime.Now; entity.inputDate = DateTime.Now; entity.inputMan = "services"; oContext.FlowmeterHistory.InsertOnSubmit(entity); oContext.SubmitChanges(); } }