Exemplo n.º 1
0
 public List <ContainerTrackingDailyModel> GetListContainer(int?applicationId, DateTime workDate, string gateId, string userId)
 {
     try
     {
         var list = (from l in _db.SP_CONTAINER_TRACKINGDAILY_GET(applicationId, workDate, gateId, userId)
                     select new ContainerTrackingDailyModel
         {
             Id = l.Id,
             Code = l.Code,
             ContainerNum = l.ContainerNum,
             VendorId = l.VendorId,
             CompanyName = l.CompanyName,
             FromDate = l.FromDate,
             ToDate = l.ToDate,
             IsImport = l.IsImport,
             IsImportName = l.IsImportName,
             GateId = l.GateRegis,
             GateName = l.GateNameRegis,
             IsCheckIn = l.IsCheckIn ?? false,
             NumCheck = l.NumCheck ?? 0
         }).ToList();
         return(list);
     }
     catch (Exception ex)
     {
         LogHelper.Error("VisitorWorkingDailyRepository GetListContainer: " + ex.Message + " Inner Exception: " + ex.InnerException.Message);
         return(null);
     }
 }