ÎļþÃû´Ó service/base/PdaJyMangeer.cs ÐÞ¸Ä |
| | |
| | | namespace NewPdaSqlServer.util |
| | | namespace NewPdaSqlServer.service.@base |
| | | { |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | |
| | | using NewPdaSqlServer.DB; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Internal; |
| | | |
| | | |
| | | public class PdaJyMangeer |
| | | public class WmsBaseMangeer : Repository<dynamic> |
| | | { |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="billNo">ç³è¯·åå·</param> |
| | | /// <param name="transactionNo">äºå¡ç±»å</param> |
| | | /// <returns>å
嫿 ¡éªç»æçæ°æ®ä¼ è¾å¯¹è±¡</returns> |
| | | public ProductionPickDto SalesReturnCheck(SqlSugarScope db, string edtUserNo, |
| | | public dynamic pdaInvJY(SqlSugarScope db, string edtUserNo, |
| | | string barcode, string sectionCode, string stockId, string stockOrgId, |
| | | string billNo, string transactionNo) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæ¡ç ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="unity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public MesInvItemBarcodes GetBarInfo(WarehouseQuery unity) |
| | | { |
| | | var barInfo = Db.Queryable<MesInvItemBarcodes>() |
| | | .Where(s => s.ItemBarcode == unity.barcode) |
| | | .First(); |
| | | if (barInfo is null) throw new Exception("该æ¡ç åºåä¸åå¨ï¼"); |
| | | |
| | | return barInfo; // è¿å第ä¸è¡æ°æ®ï¼å¦ææ²¡æåè¿å null |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åç©æä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="strItemId"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public MesItems GetItemNo(decimal strItemId) |
| | | { |
| | | var itemInfo = Db.Queryable<MesItems>() |
| | | .Where(s => s.Id == strItemId && s.Fforbidstatus == "A") |
| | | .First(); |
| | | if (itemInfo is null) throw new Exception("该æ¡ç 对åºç©æä¿¡æ¯ä¸å卿已ç¦ç¨ï¼"); |
| | | |
| | | return itemInfo; |
| | | } |
| | | } |
| | | } |