修正项目结构
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net35\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
@@ -57,33 +60,40 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MOM\MoAllocate.cs" />
|
||||
<Compile Include="MOM\MomDetail.cs" />
|
||||
<Compile Include="MOM\MomOrder.cs" />
|
||||
<Compile Include="Purchase\Arrival.cs" />
|
||||
<Compile Include="Purchase\ArrivalDetail.cs" />
|
||||
<Compile Include="Base\Bin.cs" />
|
||||
<Compile Include="Base\Customer.cs" />
|
||||
<Compile Include="Base\Materiel.cs" />
|
||||
<Compile Include="Base\MaterielType.cs" />
|
||||
<Compile Include="Base\Supplier.cs" />
|
||||
<Compile Include="Base\Unit.cs" />
|
||||
<Compile Include="Base\Warehouse.cs" />
|
||||
<Compile Include="Response\Store\MaterielStoreOut.cs" />
|
||||
<Compile Include="Response\Store\MaterielStoreOutDetail.cs" />
|
||||
<Compile Include="Request\PuStoreIn.cs" />
|
||||
<Compile Include="Request\PuStoreInDetail.cs" />
|
||||
<Compile Include="Response\MOM\MoAllocate.cs" />
|
||||
<Compile Include="Response\MOM\MomDetail.cs" />
|
||||
<Compile Include="Response\MOM\MomOrder.cs" />
|
||||
<Compile Include="Response\Purchase\Arrival.cs" />
|
||||
<Compile Include="Response\Purchase\ArrivalDetail.cs" />
|
||||
<Compile Include="Response\Base\Bin.cs" />
|
||||
<Compile Include="Response\Base\Customer.cs" />
|
||||
<Compile Include="Response\Base\Materiel.cs" />
|
||||
<Compile Include="Response\Base\MaterielType.cs" />
|
||||
<Compile Include="Response\Base\Supplier.cs" />
|
||||
<Compile Include="Response\Base\Unit.cs" />
|
||||
<Compile Include="Response\Base\Warehouse.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sale\DispatchList.cs" />
|
||||
<Compile Include="Sale\DispatchListDetail.cs" />
|
||||
<Compile Include="Store\MaterielStoreOut.cs" />
|
||||
<Compile Include="Store\MaterielStoreOutDetail.cs" />
|
||||
<Compile Include="Store\OtherStoreIn.cs" />
|
||||
<Compile Include="Store\OtherStoreInDetail.cs" />
|
||||
<Compile Include="Store\OtherStoreOut.cs" />
|
||||
<Compile Include="Store\OtherStoreOutDetail.cs" />
|
||||
<Compile Include="Store\ProductStoreIn.cs" />
|
||||
<Compile Include="Store\ProductStoreInDetail.cs" />
|
||||
<Compile Include="Store\PuStoreIn.cs" />
|
||||
<Compile Include="Store\PuStoreInDetail.cs" />
|
||||
<Compile Include="Store\SaleStoreOut.cs" />
|
||||
<Compile Include="Store\SaleStoreOutDetail.cs" />
|
||||
<Compile Include="Response\Sale\DispatchList.cs" />
|
||||
<Compile Include="Response\Sale\DispatchListDetail.cs" />
|
||||
<Compile Include="Request\MaterielStoreOut.cs" />
|
||||
<Compile Include="Request\MaterielStoreOutDetail.cs" />
|
||||
<Compile Include="Response\Store\OtherStoreIn.cs" />
|
||||
<Compile Include="Response\Store\OtherStoreInDetail.cs" />
|
||||
<Compile Include="Response\Store\OtherStoreOut.cs" />
|
||||
<Compile Include="Response\Store\OtherStoreOutDetail.cs" />
|
||||
<Compile Include="Response\Store\ProductStoreIn.cs" />
|
||||
<Compile Include="Response\Store\ProductStoreInDetail.cs" />
|
||||
<Compile Include="Response\Store\PuStoreIn.cs" />
|
||||
<Compile Include="Response\Store\PuStoreInDetail.cs" />
|
||||
<Compile Include="Response\Store\SaleStoreOut.cs" />
|
||||
<Compile Include="Response\Store\SaleStoreOutDetail.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
29
NX.ERP.Model/Request/MaterielStoreOut.cs
Normal file
29
NX.ERP.Model/Request/MaterielStoreOut.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.Model.Request
|
||||
{
|
||||
public class MaterielStoreOut
|
||||
{
|
||||
private int id;
|
||||
private string code;
|
||||
private string whcode;
|
||||
|
||||
private DateTime date;
|
||||
private string sourceCode;
|
||||
private string source;
|
||||
private string maker;
|
||||
private IList<MaterielStoreOutDetail> details;
|
||||
|
||||
public int Id { get => id; set => id = value; }
|
||||
public string Code { get => code; set => code = value; }
|
||||
public string Whcode { get => whcode; set => whcode = value; }
|
||||
public string SourceCode { get => sourceCode; set => sourceCode = value; }
|
||||
public string Source { get => source; set => source = value; }
|
||||
public DateTime Date { get => date; set => date = value; }
|
||||
public IList<MaterielStoreOutDetail> Details { get => details; set => details = value; }
|
||||
public string Maker { get => maker; set => maker = value; }
|
||||
}
|
||||
}
|
||||
41
NX.ERP.Model/Request/PuStoreIn.cs
Normal file
41
NX.ERP.Model/Request/PuStoreIn.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.Model.Request
|
||||
{
|
||||
public class PuStoreIn
|
||||
{
|
||||
private int id;
|
||||
private string code;
|
||||
private DateTime date;
|
||||
private string depcode;
|
||||
private string whcode;
|
||||
private IList<PuStoreInDetail> puStoreInDetails = new List<PuStoreInDetail>();
|
||||
private string _puCode;
|
||||
private string maker;
|
||||
private string personCode;
|
||||
public IList<PuStoreInDetail> Details { get => puStoreInDetails; set => puStoreInDetails = value; }
|
||||
public int Id { get => id; set => id = value; }
|
||||
public string Code { get => code; set => code = value; }
|
||||
public DateTime Date { get => date; set => date = value; }
|
||||
public string Depcode { get => depcode; set => depcode = value; }
|
||||
public string Whcode { get => whcode; set => whcode = value; }
|
||||
public string Maker { get => maker; set => maker = value; }
|
||||
public string PersonCode { get => personCode; set => personCode = value; }
|
||||
|
||||
/// <summary>
|
||||
/// 源单类别
|
||||
/// </summary>
|
||||
public string Source { get; set; }
|
||||
/// <summary>
|
||||
/// 源单编号
|
||||
/// </summary>
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
27
NX.ERP.Model/Request/PuStoreInDetail.cs
Normal file
27
NX.ERP.Model/Request/PuStoreInDetail.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.Model.Request
|
||||
{
|
||||
public class PuStoreInDetail
|
||||
{
|
||||
private int id;
|
||||
private int puStoreInId;
|
||||
private string invcode;
|
||||
private string unit;
|
||||
private double quantity;
|
||||
public string Batch { get; set; }
|
||||
|
||||
public int Id { get => id; set => id = value; }
|
||||
|
||||
public string Invcode { get => invcode; set => invcode = value; }
|
||||
|
||||
public double Quantity { get => quantity; set => quantity = value; }
|
||||
|
||||
public string Position { get; set; }
|
||||
|
||||
public int SorceDetailId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -10,6 +11,7 @@ namespace NX.ERP.Model.MOM
|
||||
private int id;
|
||||
private double qty;
|
||||
private int modid;
|
||||
[JsonIgnore]
|
||||
public ICollection<MoAllocate> moAllocates { get; set; } = new List<MoAllocate>();
|
||||
public int Id { get => id; set => id = value; }
|
||||
public double Qty { get => qty; set => qty = value; }
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
namespace NX.ERP.Model.MOM
|
||||
{
|
||||
public class MomOrder
|
||||
@@ -12,10 +12,11 @@ namespace NX.ERP.Model.MOM
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public ICollection<MomDetail> momDetails { get; set; } = new List<MomDetail>();
|
||||
|
||||
public ICollection<MomDetail> Details { get; set; } = new List<MomDetail>();
|
||||
public int Id { get => id; set => id = value; }
|
||||
public string Code { get => code; set => code = value; }
|
||||
public ICollection<MoAllocate> moAllocates { get; set; } = new List<MoAllocate>();
|
||||
public ICollection<MoAllocate> Allocates { get; set; } = new List<MoAllocate>();
|
||||
|
||||
|
||||
}
|
||||
21
NX.ERP.Model/Response/Store/MaterielStoreOutDetail.cs
Normal file
21
NX.ERP.Model/Response/Store/MaterielStoreOutDetail.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.Model.Request
|
||||
{
|
||||
public class MaterielStoreOutDetail
|
||||
{
|
||||
|
||||
private double quantity;
|
||||
private string binCode;
|
||||
private string cinvcode;
|
||||
public int sorceDetailId { get; set; }
|
||||
|
||||
|
||||
public double Quantity { get => quantity; set => quantity = value; }
|
||||
public string Position { get => binCode; set => binCode = value; }
|
||||
public string Cinvcode { get => cinvcode; set => cinvcode = value; }
|
||||
}
|
||||
}
|
||||
@@ -20,6 +20,7 @@ namespace NX.ERP.Model.Store
|
||||
public string Unit { get => unit; set => unit = value; }
|
||||
public double Quantity { get => quantity; set => quantity = value; }
|
||||
|
||||
public string Position { get; set; }
|
||||
|
||||
public int SorceDetailId { get; set; }
|
||||
}
|
||||
4
NX.ERP.Model/packages.config
Normal file
4
NX.ERP.Model/packages.config
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net35" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user