李狗蛋 569ca39775 1
2025-05-13 14:14:51 +08:00

29 lines
1.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GZ_LTHPilot_ORDER.SAL_DELIVERYNOTICE
{
[Description("服务插件:采购入库单保存触发检验周期字段更新"), HotUpdate]
public class SaveDate : AbstractOperationServicePlugIn
{
public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
{
base.AfterExecuteOperationTransaction(e);
foreach (var Row in e.SelectedRows)
{
//获取单据信息
var Billobj = Row.DataEntity;
//以采购入库单的FID获取采购入库单日期字段减去收料通知单的日期的天数并对检验周期字段赋值
SqlManage.SqlManage.UpdateFHTZDJYZQ(this.Context, Convert.ToString(Billobj["Id"]));
}
}
}
}