| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using Tiger.Model; |
| | | using Tiger.Model.Entitys.MES.Position; |
| | | |
| | | namespace Tiger.IBusiness |
| | | { |
| | | public interface IPosition : IMESTransaction |
| | | { |
| | | #region Propertys & Variables |
| | | public DbClient MainDB { get; } |
| | | public string UserCode { get; set; } |
| | | public string PostCode { get; set; } |
| | | public MES_FACTORY CurFactory { get; set; } |
| | |
| | | public MES_POSITION CurPosition { get; set; } |
| | | public IWorkBatch WorkBatch { get; } |
| | | public List<MES_WIP_DATA> CurWipSNs { get; set; } |
| | | public List<MES_WIP_DATA> LastWipSNs { get; set; } |
| | | public string CurSN { get; } |
| | | public List<MES_WIP_HIS> CurWipSNHiss { get; set; } |
| | | public Dictionary<string, object> Context { get; set; } |
| | |
| | | /// <returns></returns> |
| | | public DbClient GetCommitDB(); |
| | | /// <summary> |
| | | /// 保存工步的数据库提交操作到数据库 |
| | | /// </summary> |
| | | /// <param name="appendAction">保存完工步数据后,附加的保存内容</param> |
| | | public void SaveStepsCommitActionToDB(Action appendAction = null); |
| | | /// <summary> |
| | | /// 获取打印标签模板过程变量值 |
| | | /// </summary> |
| | | /// <param name="labelPVs">过程变量列表</param> |
| | |
| | | /// <param name="labelPVs">过程变量列表</param> |
| | | /// <param name="lv">标签模板变量</param> |
| | | /// <returns></returns> |
| | | public string GetPrintProcessValue(List<BAS_LABEL_PV> labelPVs, BAS_LABEL_VAR lv, IWorkAction action); |
| | | public string GetPrintProcessValue(List<BAS_LABEL_PV> labelPVs, BAS_LABEL_VAR lv, List<BAS_LABEL_VAR> lvars, IWorkAction curAction, WipPkg? CurPkg); |
| | | /// <summary> |
| | | /// 根据传入的包装对象返回所有的包装实体列表 |
| | | /// </summary> |
| | | /// <param name="parent"></param> |
| | | /// <returns></returns> |
| | | public List<MES_WIP_PKG> GetPackageList(WipPkgItem parent); |
| | | /// <summary> |
| | | /// 获取根据条码规则生成条码 |
| | | /// </summary> |
| | | /// <param name="ruleCode"></param> |
| | | /// <param name="curAction"></param> |
| | | /// <returns></returns> |
| | | public string GenerateSN(string ruleCode, IWorkAction curAction); |
| | | #endregion Functions |
| | | } |
| | | } |