新增:
1.客户价格管理 2.销售订单表单插件取值
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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;
|
||||
using Kingdee.BOS.Core.Metadata.FormElement;
|
||||
|
||||
namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.BD_CustPrice.ServicePlugIn
|
||||
{
|
||||
[HotUpdate, Description("客户价格管理_保存操作")]
|
||||
public class Save : AbstractOperationServicePlugIn
|
||||
{
|
||||
public override void OnPreparePropertys(PreparePropertysEventArgs e)
|
||||
{
|
||||
base.OnPreparePropertys(e);
|
||||
//添加需要加载的字段:
|
||||
e.FieldKeys.Add("FLimitCustomer");
|
||||
e.FieldKeys.Add("F_MaterialModelGroup");
|
||||
e.FieldKeys.Add("FMaterialId");
|
||||
e.FieldKeys.Add("FSeq");
|
||||
|
||||
//大客户结算底价
|
||||
e.FieldKeys.Add("F_BigCustSettlePrice");
|
||||
//协议客户协议价
|
||||
e.FieldKeys.Add("F_AgreePrice");
|
||||
|
||||
e.FieldKeys.Add("FCustID");
|
||||
}
|
||||
|
||||
public override void OnAddValidators(AddValidatorsEventArgs e)
|
||||
{
|
||||
base.OnAddValidators(e);
|
||||
//添加检查校验器:
|
||||
if (this.FormOperation.OperationId == FormOperation.Operation_Save)
|
||||
{
|
||||
var validator = new SaveValidator();//新增的校验器
|
||||
validator.EntityKey = "FBillHead";
|
||||
e.Validators.Add(validator);//添加校验器
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user