This commit is contained in:
李狗蛋 2025-04-15 19:54:21 +08:00
parent 4f6ed39575
commit 8bbf5d8e3c
7 changed files with 37 additions and 0 deletions

View File

@ -240,6 +240,7 @@
<Compile Include="RECEIVEBILL\ReceivebillCounterOrder.cs" />
<Compile Include="RECEIVEBILL\ReceivebillAuditOrder.cs" />
<Compile Include="REFUNDBILL\RefundbillAuditOrder.cs" />
<Compile Include="SAL_ORDER\SaveF_VRYF_Combo-lsn.cs" />
<Compile Include="SAL_OUTSTOCK\AuditSal_Order.cs" />
<Compile Include="SAL_OUTSTOCK\ListSFDateForm.cs" />
<Compile Include="SAL_OUTSTOCK\ListSFDate.cs" />

View File

@ -0,0 +1,28 @@
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;
namespace GZ_LTHPilot_ORDER.SAL_ORDER
{
[Description("服务插件:销售订单根据纸质合同号变更销售类型"), HotUpdate]
public class SaveF_VRYF_Combo_lsn : AbstractOperationServicePlugIn
{
public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
{
base.AfterExecuteOperationTransaction(e);
foreach (var Row in e.SelectedRows)
{
// 获取单据信息
var Billobj = Row.DataEntity;
//sql
SqlManage.SqlManage.UpdateSal_OrderF_VRYF_Combo_lsn(this.Context, Convert.ToString(Billobj["Id"]));
}
}
}
}

View File

@ -290,5 +290,13 @@ namespace GZ_LTHPilot_ORDER.SqlManage
",FID);
DBServiceHelper.ExecuteDynamicObject(ctx, sql.ToString(), null, null, CommandType.Text, null);
}
//根据销售订单的纸质合同号,修改销售订单的销售类型字段
public static void UpdateSal_OrderF_VRYF_Combo_lsn(Context ctx,string FID)
{
string sql = string.Format(@"/*dialect*/
EXEC GZTH_UpdateSal_OrderF_VRYF_Combo_lsn '{0}'
",FID);
DBServiceHelper.ExecuteDynamicObject(ctx, sql.ToString(), null, null, CommandType.Text, null);
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.