using Rhea.Common;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using Tiger.Model;
|
|
namespace Tiger.IBusiness
|
{
|
public interface IPosition : IMESTransaction
|
{
|
#region Propertys & Variables
|
public string UserCode { get; set; }
|
public string PostCode { get; set; }
|
public MES_FACTORY CurFactory { get; set; }
|
public MES_WORKSHOP CurWorkshop { get; set; }
|
public MES_LINE CurLine { get; set; }
|
public MES_POSITION CurPosition { get; set; }
|
public IWorkBatch WorkBatch { get; }
|
public MES_WIP_DATA CurWipSN { get; set; }
|
public MES_WIP_HIS CurWipSNHis { get; set; }
|
public Dictionary<string, object> Context { get; set; }
|
#endregion Propertys & Variables
|
|
#region Functions
|
/// <summary>
|
/// 初始化岗位
|
/// </summary>
|
/// <param name="id"></param>
|
/// <param name="apiHost"></param>
|
/// <param name="userCode"></param>
|
/// <param name="postCode"></param>
|
/// <returns></returns>
|
public IPosition Init(string id, string apiHost, string userCode, string postCode);
|
/// <summary>
|
/// 重置工步列表
|
/// </summary>
|
public void ResetSteps();
|
/// <summary>
|
/// 获取提交数据的DbClient对象
|
/// </summary>
|
/// <returns></returns>
|
public DbClient GetCommitDB();
|
/// <summary>
|
/// 获取打印标签模板过程变量值
|
/// </summary>
|
/// <param name="labelPVs">过程变量列表</param>
|
/// <param name="lv">标签模板变量</param>
|
/// <returns></returns>
|
public string GetPrintProcessValue(List<BAS_LABEL_PV> labelPVs, BAS_LABEL_VAR lv);
|
#endregion Functions
|
}
|
}
|