聚合入库接口
This commit is contained in:
77
NX.ERP.WMS/BLL/ArrivalAndProductPlanBLL.cs
Normal file
77
NX.ERP.WMS/BLL/ArrivalAndProductPlanBLL.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.WMS.BLL
|
||||
{
|
||||
public class ArrivalAndProductPlanBLL
|
||||
{
|
||||
//public IEnumerable<Model.ArrivalAndProductPlanBill> GetArrivalAndProductPlanBills(Request.ArrivalAndProductPlan Params)
|
||||
//{
|
||||
//var result = new List<Model.ArrivalAndProductPlanBill>();
|
||||
//if (Params.BillType == 0 || Params.BillType==1)
|
||||
//{
|
||||
// var dal = new NX.ERP.U8.Purchase.ArrivalDAL();
|
||||
// var model = dal.GetList();
|
||||
|
||||
// foreach (var item in model)
|
||||
// {
|
||||
|
||||
// var dec = new Model.ArrivalAndProductPlanBill();
|
||||
// dec.ArrivalNo = item.ArrivalCode;
|
||||
// dec.BillDate = item.Date;
|
||||
// dec.BillID = item.Id;
|
||||
// dec.ExchRate = item.ExchRate;
|
||||
// dec.BillType = "采购到货单";
|
||||
// foreach (var dtl in item.Details)
|
||||
// {
|
||||
// var detal = new Model.ArrivalAndProductPlanBillDetail();
|
||||
// detal.BillDtlId = dtl.Id;
|
||||
// detal.BillId = item.Id;
|
||||
// detal.MaterialCode = dtl.MaterielCode;
|
||||
// detal.Qty = dtl.Quantity;
|
||||
// detal.UnitCode = dtl.UnitCode;
|
||||
// dec.ArrivalDtlLst.Add(detal);
|
||||
// }
|
||||
// result.Add(dec);
|
||||
// }
|
||||
//}
|
||||
|
||||
//if (Params.BillType==0||Params.BillType==2)
|
||||
//{
|
||||
|
||||
// var momOrderDal = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||
// var momOrders = momOrderDal.GetList();
|
||||
// foreach (var item in momOrders)
|
||||
// {
|
||||
// var dec = new Model.ArrivalAndProductPlanBill();
|
||||
// dec.ArrivalNo = item.Code;
|
||||
|
||||
// dec.BillDate = item.Date;
|
||||
// dec.BillID = item.Id;
|
||||
|
||||
// dec.BillType = "生产订单";
|
||||
// foreach (var dtl in item.Allocates)
|
||||
// {
|
||||
// var detal = new Model.ArrivalAndProductPlanBillDetail();
|
||||
// detal.BillDtlId = dtl.Id;
|
||||
// detal.BillId = item.Id;
|
||||
// detal.MaterialCode = dtl.InvCode;
|
||||
// detal.OrderCode=
|
||||
// //detal.Qty = dtl.Qty;
|
||||
// dec.ArrivalDtlLst.Add(detal);
|
||||
// }
|
||||
// result.Add(dec);
|
||||
|
||||
// }
|
||||
|
||||
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
24
NX.ERP.WMS/Model/ArrivalAndProductPlanBill.cs
Normal file
24
NX.ERP.WMS/Model/ArrivalAndProductPlanBill.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.WMS.Model
|
||||
{
|
||||
public class ArrivalAndProductPlanBill : NX.ERP.Model.BaseModel
|
||||
{
|
||||
|
||||
public int BillID { get; set; }
|
||||
public string ArrivalNo { get; set; }
|
||||
|
||||
public string ArrivalName { get; set; }
|
||||
public string BillType { get; set; }
|
||||
public DateTime BillDate { get; set; }
|
||||
|
||||
public double ExchRate { get; set; }
|
||||
|
||||
public List<ArrivalAndProductPlanBillDetail> ArrivalDtlLst { get; set; } = new List<ArrivalAndProductPlanBillDetail>();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
23
NX.ERP.WMS/Model/ArrivalAndProductPlanBillDetail.cs
Normal file
23
NX.ERP.WMS/Model/ArrivalAndProductPlanBillDetail.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.WMS.Model
|
||||
{
|
||||
public class ArrivalAndProductPlanBillDetail
|
||||
{
|
||||
public int BillDtlId { get; set; }
|
||||
public int BillId { get; set; }
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
public string BatchNo { get; set; }
|
||||
|
||||
public string UnitCode { get; set; }
|
||||
|
||||
public double Qty { get; set; }
|
||||
public string SupplierCode { get; set; }
|
||||
public string OrderCode { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
60
NX.ERP.WMS/NX.ERP.WMS.csproj
Normal file
60
NX.ERP.WMS/NX.ERP.WMS.csproj
Normal file
@@ -0,0 +1,60 @@
|
||||
<?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>{98ED37D6-32AA-47B1-AA36-944964D1F683}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>NX.ERP.WMS</RootNamespace>
|
||||
<AssemblyName>NX.ERP.WMS</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</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="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BLL\ArrivalAndProductPlanBLL.cs" />
|
||||
<Compile Include="Model\ArrivalAndProductPlanBill.cs" />
|
||||
<Compile Include="Model\ArrivalAndProductPlanBillDetail.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Request\ArrivalAndProductPlan.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\NX.ERP.Model\NX.ERP.Model.csproj">
|
||||
<Project>{5d012e0a-afed-474e-81a9-5820890b1b29}</Project>
|
||||
<Name>NX.ERP.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\NX.ERP.U8\NX.ERP.U8.csproj">
|
||||
<Project>{bd673da9-0606-4bcf-a016-fb5c4e7b5d59}</Project>
|
||||
<Name>NX.ERP.U8</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
36
NX.ERP.WMS/Properties/AssemblyInfo.cs
Normal file
36
NX.ERP.WMS/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("NX.ERP.WMS")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("NX.ERP.WMS")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2021")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("98ed37d6-32aa-47b1-aa36-944964d1f683")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
17
NX.ERP.WMS/Request/ArrivalAndProductPlan.cs
Normal file
17
NX.ERP.WMS/Request/ArrivalAndProductPlan.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.WMS.Request
|
||||
{
|
||||
public class ArrivalAndProductPlan : NX.ERP.Model.BaseModel
|
||||
{
|
||||
public string ArrivalNo { get; set; }
|
||||
public int BillType { get; set; }
|
||||
// arrival_no
|
||||
//bill_type
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user