using AutoMapper;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Common;
|
using WIDESEA_Core.BaseServices;
|
using WIDESEA_Core.Enums;
|
using WIDESEA_Core.Helper;
|
using WIDESEA_DTO;
|
using WIDESEA_IRecordRepository;
|
using WIDESEA_IRecordService;
|
using WIDESEA_Model.Models;
|
using WIDESEA_RecordRepository;
|
|
namespace WIDESEA_RecordService
|
{
|
public partial class Dt_PassPointRecordService : ServiceBase<Dt_PassPointRecord, IDt_PassPointRecordRepository>, IDt_PassPointRecordService
|
{
|
private readonly IMapper _mapper;
|
public Dt_PassPointRecordService(IDt_PassPointRecordRepository BaseDal, IMapper mapper) : base(BaseDal)
|
{
|
_mapper = mapper;
|
}
|
|
public void AddPassPointRecord(PassPointInfo info, RequestTaskDto json)
|
{
|
try
|
{
|
Dt_PassPointRecord record = new Dt_PassPointRecord()
|
{
|
Content = info.Serialize(),
|
Position = json.Position,
|
PalletCode = json.PalletCode,
|
PVI = json.PVI,
|
lineCode = info.line_code,
|
PassPointTime = DateTime.Now
|
};
|
BaseDal.AddData(record);
|
}
|
catch (Exception ex)
|
{
|
throw new Exception(ex.Message);
|
|
}
|
}
|
}
|
}
|