服务插件

using System;
using System.Collections.Generic;
using System.Text;
using Kingdee.BOS.Log;
using Kingdee.BOS.Util;
using System.ComponentModel;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
namespace QJ.xunjia.plugIn
{
[Description("【服务插件】"), HotUpdate]
public class UpdatePlugIn : AbstractOperationServicePlugIn
{
public override void OnPreparePropertys(PreparePropertysEventArgs e)
{
base.OnPreparePropertys(e);
if (this.FormOperation.Operation.ToUpperInvariant() == "AUDIT")
{
e.FieldKeys.Add("F_BEC_WL");
}
}
public override void EndOperationTransaction(EndOperationTransactionArgs e)
{
base.EndOperationTransaction(e);
if (this.FormOperation.Operation.ToUpperInvariant() == "AUDIT")
{
List<string> sqlList = new List<string>();
var entity1 = this.BusinessInfo.GetEntity("FEntity");
foreach (DynamicObject entity in e.DataEntitys)
{
DynamicObjectCollection entry = (DynamicObjectCollection)entity[entity1.DynamicProperty.Nam
服务插件
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



