自己写了一个表单校验原创
4人赞赏了该文章
436次浏览
编辑于2020年07月31日 08:53:16
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Kingdee.BOS.Core.BusinessFlow.PlugIn;
using Kingdee.BOS.Core.Metadata.FieldElement;
using Kingdee.BOS.Core.Metadata;
using Kingdee.K3.SCM.Contracts;
using Kingdee.BOS.Util;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.K3.BD.Contracts;
using Kingdee.K3.Core.BD;
using Kingdee.BOS;
using Kingdee.BOS.Core.Const;
using Kingdee.K3.Core.SCM;
using Kingdee.BOS.BusinessEntity;
using Kingdee.BOS.Core.BusinessFlow.PlugIn.Args;
using Kingdee.BOS.Workflow.Contracts;
using Kingdee.BOS.Workflow.ServiceHelper;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.Bill.PlugIn.Args;
using Kingdee.BOS.Core.Metadata.EntityElement;
namespace MyDev.K3.SCM.Stock.Business2.PlugIn
{
[Description("装卸费用核算单插件")]
public class SaleOrderEdit : AbstractBillPlugIn
{
public override void BeforeSave(BeforeSaveEventArgs e)
{
object rm = this.Model.GetValue("F_PAEZ_Amount1", 0);
if (rm == null)
{
this.View.ShowMessage("员工人名必录!");
return;
}
}
}
}
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Kingdee.BOS.Core.BusinessFlow.PlugIn;
using Kingdee.BOS.Core.Metadata.FieldElement;
using Kingdee.BOS.Core.Metadata;
using Kingdee.K3.SCM.Contracts;
using Kingdee.BOS.Util;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.K3.BD.Contracts;
using Kingdee.K3.Core.BD;
using Kingdee.BOS;
using Kingdee.BOS.Core.Const;
using Kingdee.K3.Core.SCM;
using Kingdee.BOS.BusinessEntity;
using Kingdee.BOS.Core.BusinessFlow.PlugIn.Args;
using Kingdee.BOS.Workflow.Contracts;
using Kingdee.BOS.Workflow.ServiceHelper;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.Bill.PlugIn.Args;
using Kingdee.BOS.Core.Metadata.EntityElement;
namespace MyDev.K3.SCM.Stock.Business2.PlugIn
{
[Description("装卸费用核算单插件")]
public class SaleOrderEdit : AbstractBillPlugIn
{
public override void BeforeSave(BeforeSaveEventArgs e)
{
object rm = this.Model.GetValue("F_PAEZ_Amount1", 0);
if (rm == null)
{
this.View.ShowMessage("员工人名必录!");
return;
}
}
}
}
赞 4
4人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!
推荐阅读