新增一个文本字段 取名计划跟踪号
将库存页签的计划跟踪号代理字段绑定到新增的计划跟踪号字段上
工序计划保存操作插件 将新增的计划跟踪号值赋值给原来的计划跟踪号字段
[Description("生产入库单保存插件")]
[HotUpdate]
public class PoInStockSavePlugIn : AbstractOperationServicePlugIn
{
public Dictionary<long, DynamicObject> OldScpOrderDic = new Dictionary<long, DynamicObject>();
//
// 摘要:
// 操作结果
public IOperationResult Result { get; set; }
private SNSubEntryEntity _snEntity;
private FormMetadata meta;
private DynamicObject dataObjct;
private DynamicObject _parData;
private DynamicObject _entryData;
public override void OnPreparePropertys(PreparePropertysEventArgs e)
{
e.FieldKeys.Add("FBILLNO");
}
public override void BeginOperationTransaction(BeginOperationTransactionArgs e)
{
base.BeginOperationTransaction(e);
}
/// <summary>
/// 操作结束事假
/// </summary>
/// <param name="e"></param>
public override void EndOperationTransaction(EndOperationTransactionArgs e)
{
base.EndOperationTransaction(e);
}
public override void BeforeExecuteOperationTransaction(BeforeExecuteOperationTransaction e)
{
base.BeforeExecuteOperationTransaction(e);
foreach (ExtendedDataEntity obj in e.SelectedRows)
{
DynamicObject entity = obj.DataEntity as DynamicObject;
dataObjct = entity;
DynamicObjectCollection rows = entity["Entity"] as DynamicObjectCollection;
foreach (DynamicObject row in rows)
{
DynamicObject item = _entryData = row;
item["MtoNo"] = item["F_XDUA_JHGZH"];
}
}
}
}
推荐阅读