From 9ccf6d91d20d204ccb6e54d2661d97e83eef4304 Mon Sep 17 00:00:00 2001 From: wugang <425674808@qq.com> Date: Fri, 2 Feb 2018 18:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BLActions/CusAcceptUpdateDateAction.cs | 43 +++++++++++++++++++ BWP.B3_YunKen/BWP.B3_YunKen.csproj | 1 + 2 files changed, 44 insertions(+) create mode 100644 BWP.B3_YunKen/BLActions/CusAcceptUpdateDateAction.cs diff --git a/BWP.B3_YunKen/BLActions/CusAcceptUpdateDateAction.cs b/BWP.B3_YunKen/BLActions/CusAcceptUpdateDateAction.cs new file mode 100644 index 0000000..864fe87 --- /dev/null +++ b/BWP.B3_YunKen/BLActions/CusAcceptUpdateDateAction.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using BWP.B3Frameworks.BO.NamedValueTemplate; +using BWP.B3Sale.BL; +using BWP.B3Sale.BO; +using Forks.EnterpriseServices.BusinessInterfaces; +using Forks.EnterpriseServices.DomainObjects2; +using Forks.EnterpriseServices.DomainObjects2.DQuery; +using Forks.EnterpriseServices.SqlDoms; +using TSingSoft.WebPluginFramework.BIPlugins.BLEvents; + +namespace BWP.B3_YunKen.BLActions +{ + public class CusAcceptUpdateDateAction : IBLMethodAction + { + public string Description + { + get { return "【客户验收单】审核更新验收日期、发货日期"; } + } + + public void Execute(Forks.EnterpriseServices.BusinessInterfaces.IDmoContext context, object customer, object parameter) + { + var dmo = customer as CustomerAccept; + if (dmo == null) + return; + dmo.BillDate = dmo.CreateTime; + dmo.LoadTime = dmo.CheckTime; + context.Session.Update(dmo); + } + + public IList Features + { + get { return new List(); } + } + + public string Name + { + get { return "B3_YunKen.【客户验收单】审核更新验收日期、发货日期"; } + } + } +} diff --git a/BWP.B3_YunKen/BWP.B3_YunKen.csproj b/BWP.B3_YunKen/BWP.B3_YunKen.csproj index 71df4cf..5aeae1f 100644 --- a/BWP.B3_YunKen/BWP.B3_YunKen.csproj +++ b/BWP.B3_YunKen/BWP.B3_YunKen.csproj @@ -64,6 +64,7 @@ +