| | |
| | | using Tiger.Business.MES.WorkAction; |
| | | using System.Collections; |
| | | using Tiger.IBusiness.MES.WorkAction; |
| | | using Dm.parser; |
| | | |
| | | namespace Tiger.Business.MES.Transaction |
| | | { |
| | |
| | | { |
| | | case "GetSN": |
| | | return CurSN; |
| | | case "GetItemCode": |
| | | return GetLabelVarWo(lv, WorkBatch.Product.ITEM_CODE); |
| | | case "GetBAS_ITEM": |
| | | return GetLabelVarWo(lv, WorkBatch.Product.CUST_PROD_CODE); |
| | | case "GetItemName": |
| | |
| | | case "GetPackNumber": |
| | | return GetLabelVarWo(lv, WorkBatch.WO.ORDER_NO); |
| | | case "GetBoxQR": |
| | | return GetCardOrBoxQR(GetBoxCode(lvars), curAction); |
| | | return GetCardOrBoxQR(GetBoxCode(), curAction); |
| | | case "GetCardQR": |
| | | return GetCardOrBoxQR(GetCardCode(lvars), curAction); |
| | | return GetCardOrBoxQR("", curAction); |
| | | case "GetCardSN": |
| | | List<string> minPkgList = new List<string>(); |
| | | var _pkaction = curAction is PackingAction ? curAction as PackingAction : null; |
| | |
| | | case "GetNOTES": |
| | | return GetLabelVarWo(lv, WorkBatch.Product.ExtInfo?.Remark); |
| | | case "GetXH": |
| | | return GetCardCode(lvars); |
| | | return ""; |
| | | case "GetCardNo": |
| | | return ""; |
| | | case "GetCardTotal": |
| | |
| | | /// <summary> |
| | | /// 获取白盒条码 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | private string GetBoxCode(List<BAS_LABEL_VAR> lvars) |
| | | private string GetBoxCode() |
| | | { |
| | | return Biz.CodeRule["WhiteBoxNo"]?.Generate("W", $"{WorkBatch.Batch.BATCH_NO}-{WorkBatch.Batch.PLAN_QTY}-").Data.ToString() ?? ""; |
| | | } |
| | |
| | | /// <summary> |
| | | /// 获取箱条码 |
| | | /// </summary> |
| | | /// <param name="lvars"></param> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | private string GetCardCode(List<BAS_LABEL_VAR> lvars) |
| | | private string GetCardCode() |
| | | { |
| | | return Biz.CodeRule["CartonNo"]?.Generate("B", $"{WorkBatch.Batch.BATCH_NO}-{WorkBatch.Batch.PLAN_QTY}-").Data.ToString() ?? ""; |
| | | } |