¶Ô±ÈÐÂÎļþ |
| | |
| | | using Rhea.Common; |
| | | using Tiger.IBusiness; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using Tiger.Model; |
| | | using Tiger.Model.Sharetronic.Shelf; |
| | | using System.ComponentModel; |
| | | |
| | | namespace Tiger.Business.MES.Transaction |
| | | { |
| | | /// <summary> |
| | | /// å
¥åºåäºå¡ |
| | | /// </summary> |
| | | public class InStoreOrderNo : MESTransactionBase, IInStoreOrderNo |
| | | { |
| | | private readonly IMES_U9C _IMES_U9C = DI.Resolve<IMES_U9C>(); |
| | | public IInStoreOrderNo Init(string id, string userCode, string apiHost, string orgCode) |
| | | { |
| | | TransID = id; |
| | | UserCode = userCode; |
| | | ApiHost = apiHost; |
| | | OrgCode = orgCode; |
| | | Logger.Console.Info($"Start {this.GetType().Name} Transaction[ID: {TransID}]"); |
| | | return this; |
| | | } |
| | | |
| | | #region Propertys & Variables |
| | | |
| | | public string UserCode { get; set; } |
| | | public long UserId { get; set; } |
| | | public string OrgCode { get; set; } |
| | | public string CurSmtCode { get; set; } |
| | | public string CurrSlotNo { get; set; } |
| | | |
| | | #endregion Propertys & Variables |
| | | |
| | | #region Functions |
| | | |
| | | /// <summary> |
| | | /// æ«ææ¡ç 䏿 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<SmtLoadingReturn>> ScanItem(SmtLoadingInput input) |
| | | { |
| | | var action = new ApiAction<SmtLoadingReturn>(); |
| | | try |
| | | { |
| | | if (input.Code.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L($"{EnumHelper.GetEnum<Step_Types>(input.Step).GetDesc()}ä¸è½ä¸ºç©º"); |
| | | return action; |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, $"æ«æç©æ[{input.Code}]夿 ¸å¼å¸¸"); |
| | | } |
| | | return action; |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion Functions |
| | | |
| | | public override bool Close(bool needSaveHistoryLog = false) |
| | | { |
| | | //needSaveHistoryLog = true; |
| | | //ä¿åæä½æ¥å¿ |
| | | |
| | | this.IsFinished = true; |
| | | return IsFinished ? base.Close(needSaveHistoryLog) : IsFinished; |
| | | } |
| | | }//endClass |
| | | } |