Ejemplo n.º 1
0
        public int UptOutLibrary([FromForm] IOT.Core.Model.OutLibrary outLibrary)
        {
            logger.Debug($"用户修改了出库表信息,修改的单号为:{outLibrary.OutNO}");
            int i = _outLibraryRepository.Update(outLibrary);

            return(i);
        }
Ejemplo n.º 2
0
        public int AddOutLibrary([FromForm] IOT.Core.Model.OutLibrary outLibrary)
        {
            logger.Debug($"用户添加了出库表信息,添加的单号为:{outLibrary.OutNO}");
            int i = _outLibraryRepository.Insert(outLibrary);

            return(i);
        }
Ejemplo n.º 3
0
        public IActionResult FtOutLibrary(int id)
        {
            List <IOT.Core.Model.OutLibrary> lp = _outLibraryRepository.Query();

            IOT.Core.Model.OutLibrary outLibrary = lp.FirstOrDefault(x => x.PutLibraryId.Equals(id));
            return(Ok(new
            {
                msg = "",
                code = 0,
                data = outLibrary
            }));
        }
Ejemplo n.º 4
0
 public int OutLibraryUpt(IOT.Core.Model.OutLibrary a)
 {
     return(_outLibrary.UptOutLibrary(a));
 }
Ejemplo n.º 5
0
        public int OutLibraryAdd(IOT.Core.Model.OutLibrary a)
        {
            int i = _outLibrary.AddOutLibrary(a);

            return(i);
        }