时间:2021-07-01 10:21:17 帮助过:2人阅读
{
base.OnFieldValueChanged(originalValue, field);
switch ((SalesOrderFieldIndex)field.FieldIndex)
{
case SalesOrderFieldIndex.CustomerNo:
OnChangeCustomer((string)originalValue);
break;
}
}
public override void ValidateEntityBeforeSave(IEntityCore involvedEntity){base.ValidateEntityBeforeSave(involvedEntity);
SalesOrderEntity salesOrder = (SalesOrderEntity)involvedEntity;if (string.IsNullOrEmpty(salesOrder.CustomerNo))throw new FieldValidationException("Customer No. is required");}
项目源代码:Inventory 仓库管理
QQ: 361764203
邮件:361764203@qq.com
Enterprise Solution 3.1 企业应用开发框架 .NET ERP/CRM/MIS 开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
标签: