You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
850 B
C#
26 lines
850 B
C#
using Aucma.Scada.Model.domain;
|
|
using HighWayIot.Log4net;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HighWayIot.Repository.service.Impl
|
|
{
|
|
public class CodeBindingRecordServiceImpl : ICodeBindingRecordServices
|
|
{
|
|
Repository<CodeBindingRecord> _repository => new Repository<CodeBindingRecord>("scada");
|
|
private LogHelper logHelper = LogHelper.Instance;
|
|
|
|
public bool BindingCode(string boxCode, string linerCode)
|
|
{
|
|
CodeBindingRecord codeBindingRecord = new CodeBindingRecord();
|
|
codeBindingRecord.BoxCode = boxCode;
|
|
codeBindingRecord.LinerCode = linerCode;
|
|
codeBindingRecord.RecordTime1 = DateTime.Now;
|
|
return _repository.Insert(codeBindingRecord);
|
|
}
|
|
}
|
|
}
|