1
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
using Kingdee.BOS.Core.DynamicForm.PlugIn;
|
||||
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
|
||||
using Kingdee.BOS.Orm.DataEntity;
|
||||
using Kingdee.BOS.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Gatedge.ScanCode.Basis.PlugIn.Bill.BAR_Record.ServicePlugIn
|
||||
{
|
||||
[Description("条码扫描记录-保存将条码明细行数写到单据头"), HotUpdate]
|
||||
public class Save : AbstractOperationServicePlugIn
|
||||
{
|
||||
public override void OnPreparePropertys(PreparePropertysEventArgs e)
|
||||
{
|
||||
base.OnPreparePropertys(e);
|
||||
e.FieldKeys.Add("FBarSum");
|
||||
e.FieldKeys.Add("FBarCount");
|
||||
e.FieldKeys.Add("FBarCode");
|
||||
e.FieldKeys.Add("FResultBillNo");
|
||||
e.FieldKeys.Add("FMOInfo");
|
||||
e.FieldKeys.Add("FBarMoEntryId");
|
||||
}
|
||||
|
||||
public override void BeforeDoSaveExecute(BeforeDoSaveExecuteEventArgs e)
|
||||
{
|
||||
base.BeforeDoSaveExecute(e);
|
||||
foreach (var bill in e.DataEntities)
|
||||
{
|
||||
var barEntityList = bill["FBarEntity"] as DynamicObjectCollection;
|
||||
var resultEntityList = bill["FResultEntity"] as DynamicObjectCollection;
|
||||
bill["FBarCount"] = barEntityList.Count;
|
||||
bill["FResultCount"] = resultEntityList.Count;
|
||||
var moList = barEntityList.Select(n => n["FBarMoEntryId"] as DynamicObject).ToList();
|
||||
var moNoList = moList.Select(n => n["Number"].ToString() + '/' + n["FMOEntrySeq"].ToString()).Distinct();
|
||||
|
||||
var moInfo = string.Join(",", moNoList);
|
||||
bill["FMOInfo"] = moInfo.Substring(0, Math.Min(50, moInfo.Length));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{C2252356-BCEC-48D8-80DF-6C45B4BDA1FC}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Gatedge.ScanCode.Basis.PlugIn</RootNamespace>
|
||||
<AssemblyName>Gatedge.ScanCode.Basis.PlugIn</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Kingdee.BOS">
|
||||
<HintPath>..\Library\Kingdee.BOS.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.App">
|
||||
<HintPath>..\Library\Kingdee.BOS.App.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.App.Core">
|
||||
<HintPath>..\Library\Kingdee.BOS.App.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Business.Bill">
|
||||
<HintPath>..\Library\Kingdee.BOS.Business.Bill.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Contracts">
|
||||
<HintPath>..\Library\Kingdee.BOS.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Core">
|
||||
<HintPath>..\Library\Kingdee.BOS.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.DataEntity">
|
||||
<HintPath>..\Library\Kingdee.BOS.DataEntity.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Excel">
|
||||
<HintPath>..\Library\Kingdee.BOS.Excel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.FileServer.Core">
|
||||
<HintPath>..\Library\Kingdee.BOS.FileServer.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.FileServer.ProxyService">
|
||||
<HintPath>..\Library\Kingdee.BOS.FileServer.ProxyService.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.BOS.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.VerificationHelper">
|
||||
<HintPath>..\Library\Kingdee.BOS.VerificationHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Web">
|
||||
<HintPath>..\Library\Kingdee.BOS.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Web.HTML">
|
||||
<HintPath>..\Library\Kingdee.BOS.Web.HTML.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Web.HTML.Core">
|
||||
<HintPath>..\Library\Kingdee.BOS.Web.HTML.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.WebApi.FormService">
|
||||
<HintPath>..\Library\Kingdee.BOS.WebApi.FormService.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.CDP.WebApi.SDK">
|
||||
<HintPath>..\Library\Kingdee.CDP.WebApi.SDK.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.BarCode.App">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.BarCode.App.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.BarCode.App.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.BarCode.App.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.BarCode.Business.PlugIn">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.BarCode.Business.PlugIn.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.BarCode.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.BarCode.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.BarCode.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.BarCode.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.Contracts">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.NewCode.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.NewCode.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.NewCode.Extension">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.NewCode.Extension.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.BD.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.K3.BD.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.Business.PlugIn">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.Business.PlugIn.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.HS.Business.PlugIn">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.HS.Business.PlugIn.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.HS.Common.BusinessEntity">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.HS.Common.BusinessEntity.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.HS.Contracts">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.HS.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.HS.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.HS.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.FIN.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.K3.FIN.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.App">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.App.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.BusinessCommon">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.BusinessCommon.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.Contracts">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.PLN.App.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.PLN.App.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.PLN.App.MrpModel">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.PLN.App.MrpModel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.PLN.Business.PlugIn">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.PLN.Business.PlugIn.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.PLN.Report.PlugIn">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.PLN.Report.PlugIn.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.MFG.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.K3.MFG.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.SCM.App.Core">
|
||||
<HintPath>..\Library\Kingdee.K3.SCM.App.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.SCM.Common.BusinessEntity">
|
||||
<HintPath>..\Library\Kingdee.K3.SCM.Common.BusinessEntity.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.K3.SCM.ServiceHelper">
|
||||
<HintPath>..\Library\Kingdee.K3.SCM.ServiceHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\Library\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Bill\BAR_BarCodePrint\FormPlugIn\BarCodePrintEditRewrite.cs" />
|
||||
<Compile Include="Bill\BAR_Record\ServicePlugIn\Save.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy $(TargetPath) "D:\Program Files (x86)\Kingdee\K3Cloud\WebSite\Bin\$(TargetFileName)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
32
Gatedge.ScanCode.Basis.PlugIn/Properties/AssemblyInfo.cs
Normal file
32
Gatedge.ScanCode.Basis.PlugIn/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Gatedge.ScanCode.Basis.PlugIn")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Gatedge.ScanCode.Basis.PlugIn")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("c2252356-bcec-48d8-80df-6c45b4bda1fc")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
Reference in New Issue
Block a user