1
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?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>{B6FD6277-A4DA-4FAC-BDA9-841D51E3D57F}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>HW.PRD_LACKANAYLEBILL</RootNamespace>
|
||||
<AssemblyName>HW.PRD_LACKANAYLEBILL</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</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>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.App">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.App.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Core">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.DataEntity">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.DataEntity.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.Model">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.Model.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.ServiceHelper">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.ServiceHelper.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.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="aaaa.cs" />
|
||||
<Compile Include="ProductBomLackAnalyePlugIn.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,149 @@
|
||||
using Kingdee.BOS;
|
||||
using Kingdee.BOS.Core.DynamicForm.PlugIn;
|
||||
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
|
||||
using Kingdee.BOS.Core.Metadata.EntityElement;
|
||||
using Kingdee.BOS.Orm.DataEntity;
|
||||
using Kingdee.BOS.ServiceHelper;
|
||||
using Kingdee.BOS.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace HW.PRD_LACKANAYLEBILL
|
||||
{
|
||||
public class ProductBomLackAnalyePlugIn : AbstractDynamicFormPlugIn
|
||||
{
|
||||
public override void OnInitialize(InitializeEventArgs e)
|
||||
{
|
||||
base.OnInitialize(e);
|
||||
|
||||
}
|
||||
|
||||
public override void ButtonClick(ButtonClickEventArgs e)
|
||||
{
|
||||
base.ButtonClick(e);
|
||||
if (e.Key.EndsWith("FToAnalyze", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
||||
var materialEntity = this.View.Model.BusinessInfo.GetEntryEntity("FAnalyzeMaterialEntity");
|
||||
var materialRows = this.View.Model.GetEntityDataObject(materialEntity);
|
||||
var row = new DynamicObject(materialEntity.DynamicObjectType);
|
||||
var a = row[""].Long2Int();
|
||||
materialEntity.SeqDynamicProperty.SetValue(row, 1);
|
||||
int num = (int)base.Context.CurrentOrganizationInfo.ID;
|
||||
Entity entryEntity = this.View.Model.BusinessInfo.GetEntryEntity("F_ora_Entity");
|
||||
DynamicObjectCollection entityDataObject = this.View.Model.GetEntityDataObject(entryEntity);
|
||||
this.View.Model.BeginIniti();
|
||||
entityDataObject.Clear();
|
||||
DynamicObjectCollection dynamicObjectCollection = this.View.Model.GetValue("F_ora_Stock") as DynamicObjectCollection;
|
||||
DynamicObject dynamicObject = this.View.Model.GetValue("F_ora_Base") as DynamicObject;
|
||||
DynamicObject dynamicObject2 = this.View.Model.GetValue("F_ora_Base1") as DynamicObject;
|
||||
string text = " AND FSTOCKID IN (";
|
||||
string text2 = "";
|
||||
string text3 = "";
|
||||
string text4 = "";
|
||||
string text5 = "";
|
||||
string text6 = "";
|
||||
if (this.View.Model.GetValue("F_ora_SDate") != null)
|
||||
{
|
||||
text5 = this.View.Model.GetValue("F_ora_SDate").ToString();
|
||||
}
|
||||
if (this.View.Model.GetValue("F_ora_EDate") != null)
|
||||
{
|
||||
text6 = this.View.Model.GetValue("F_ora_EDate").ToString();
|
||||
}
|
||||
if (dynamicObject != null)
|
||||
{
|
||||
text3 = Convert.ToString(dynamicObject["Number"]);
|
||||
}
|
||||
if (dynamicObject2 != null)
|
||||
{
|
||||
text4 = Convert.ToString(dynamicObject2["Number"]);
|
||||
}
|
||||
if (this.View.Model.GetValue("F_ora_HName") != null)
|
||||
{
|
||||
text2 = this.View.Model.GetValue("F_ora_HName").ToString();
|
||||
}
|
||||
HashSet<long> hashSet = new HashSet<long>();
|
||||
if (dynamicObjectCollection.Count > 0)
|
||||
{
|
||||
foreach (DynamicObject dynamicObject3 in dynamicObjectCollection)
|
||||
{
|
||||
long num2 = Convert.ToInt64(dynamicObject3["F_ora_Stock_Id"]);
|
||||
bool flag8 = num2 == 0L;
|
||||
if (!flag8)
|
||||
{
|
||||
bool flag9 = !hashSet.Contains(num2);
|
||||
if (flag9)
|
||||
{
|
||||
text = text + num2 + ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
text += "0)";
|
||||
}
|
||||
else
|
||||
{
|
||||
text = " AND 1=1 ";
|
||||
}
|
||||
string text7 = string.Concat(new string[]
|
||||
{
|
||||
"exec Pro_BOMStockStatusBillEXP '",
|
||||
text3,
|
||||
"','",
|
||||
text4,
|
||||
"','",
|
||||
text,
|
||||
"','",
|
||||
text5,
|
||||
"' ,'",
|
||||
text6,
|
||||
"','",
|
||||
text2,
|
||||
"'"
|
||||
});
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
DynamicObjectCollection dynamicObjectCollection2 = DBServiceHelper.ExecuteDynamicObject(base.Context, text7);
|
||||
bool flag10 = dynamicObjectCollection2.Count > 0;
|
||||
if (flag10)
|
||||
{
|
||||
this.View.Model.BatchCreateNewEntryRow("F_ora_Entity", dynamicObjectCollection2.Count);
|
||||
}
|
||||
int num3 = 0;
|
||||
foreach (DynamicObject dynamicObject4 in dynamicObjectCollection2)
|
||||
{
|
||||
this.Model.SetValue("F_ora_Number", dynamicObject4[1], num3);
|
||||
this.Model.SetValue("F_ora_Name", dynamicObject4[2], num3);
|
||||
this.Model.SetValue("F_ora_Model", dynamicObject4[3], num3);
|
||||
this.Model.SetValue("F_ora_OldNumber", dynamicObject4[4], num3);
|
||||
this.Model.SetValue("F_ora_StartQty", dynamicObject4[5], num3);
|
||||
this.Model.SetValue("F_ora_PoInQty", dynamicObject4[6], num3);
|
||||
this.Model.SetValue("F_ora_AllOutQty", dynamicObject4[7], num3);
|
||||
this.Model.SetValue("F_ora_EndQty", dynamicObject4[8], num3);
|
||||
this.Model.SetValue("F_ora_ZTQty", dynamicObject4[9], num3);
|
||||
this.Model.SetValue("F_ora_ZZQty", dynamicObject4[10], num3);
|
||||
this.Model.SetValue("F_ora_JJQty", dynamicObject4[11], num3);
|
||||
this.Model.SetValue("F_ora_WFQty", dynamicObject4[12], num3);
|
||||
this.Model.SetValue("F_ora_LLQty", dynamicObject4[13], num3);
|
||||
this.Model.SetValue("F_ora_XSCKQty", dynamicObject4[14], num3);
|
||||
this.Model.SetValue("F_ora_DBCKQty", dynamicObject4[15], num3);
|
||||
this.Model.SetValue("F_ora_DBRKQty", dynamicObject4[16], num3);
|
||||
this.Model.SetValue("F_ora_SGWZQty", dynamicObject4[17], num3);
|
||||
this.Model.SetValue("F_ora_SDQty", dynamicObject4[18], num3);
|
||||
this.Model.SetValue("F_ora_ZYQty", dynamicObject4[19], num3);
|
||||
this.Model.SetValue("F_ora_KYKCQty", dynamicObject4[20], num3);
|
||||
this.Model.SetValue("F_ora_StockNumber", dynamicObject4[21], num3);
|
||||
this.Model.SetValue("F_ora_StockName", dynamicObject4[22], num3);
|
||||
this.Model.SetValue("F_ora_Text", dynamicObject4[23], num3);
|
||||
this.Model.SetValue("F_ora_CPNumber", dynamicObject4[24], num3);
|
||||
num3++;
|
||||
}
|
||||
DBServiceHelper.LoadReferenceObject(base.Context, entityDataObject.ToArray(), entityDataObject.DynamicCollectionItemPropertyType, false);
|
||||
this.View.Model.EndIniti();
|
||||
this.View.UpdateView("F_ora_Entity");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("HW.PRD_LACKANAYLEBILL")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("HW.PRD_LACKANAYLEBILL")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("b6fd6277-a4da-4fac-bda9-841d51e3d57f")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
11
03.珠海市汇威精密制造有限公司/HW.PRD_LACKANAYLEBILL/aaaa.cs
Normal file
11
03.珠海市汇威精密制造有限公司/HW.PRD_LACKANAYLEBILL/aaaa.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace HW.PRD_LACKANAYLEBILL
|
||||
{
|
||||
internal class aaaa
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user