聚合入库接口

This commit is contained in:
admin
2021-01-21 13:42:23 +08:00
parent 0e95475880
commit 9f9e429205
34 changed files with 722 additions and 15 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public class Inbound:NX.ERP.Model.BaseModel
{
public string InboundNo { get; set; }
public DateTime InboundDate { get; set; }
public InboundType InboundType { get; set; }
public string WarehouseCode { get; set; }
public string SourceNo { get; set; }
public string SourceName { get; set; }
public IEnumerable<InboundDetail> InboundDtlLst { get; set; }
public string Maker { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public class InboundDetail
{
public string MaterialCode { get; set; }
public double Qty { get; set; }
public int SourceDtlId { get; set; }
public string BinCode { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public enum InboundType
{
PurchaseIn = 1,
productIn = 2,
OtherIn = 3
}
}

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public class OutBound
{
public string OutboundNo { get; set; }
public DateTime OutboundDate { get; set; }
public OutBoundType OutBoundType { get; set; }
public string WarehouseCode { get; set; }
public string SourceNo { get; set; }
public string SourceName { get; set; }
public string Maker { get; set; }
public List<OutBoundDetail> OutboundDtlLst { get; set; }
// outbound_no
//outbound_date
//outbound_type
//warehouse_code
//source_no
//source_name
//maker
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public class OutBoundDetail
{
public string MaterialCode { get; set; }
public double Qty { get; set; }
public string BinCode { get; set; }
public int SourceDtlId { get; set; }
// material_code
//qty
//source_dtl_id
//bin_code
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public enum OutBoundType
{
SaleOut=1,
MaterielOut=2,
OtherOut=3
//1:销售出库;2:原材料出库;3:其它出库
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Model
{
public class StoreResult
{
public int ID { get; set; }
}
}

View File

@@ -0,0 +1,64 @@
<?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>{C1FFE393-1879-4FC1-A99E-695F2882553D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NX.ERP.BLL</RootNamespace>
<AssemblyName>NX.ERP.BLL</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="Model\InboundDetail.cs" />
<Compile Include="Model\InboundType.cs" />
<Compile Include="Model\Inbound.cs" />
<Compile Include="Model\OutBound.cs" />
<Compile Include="Model\OutBoundDetail.cs" />
<Compile Include="Model\OutBoundType.cs" />
<Compile Include="Model\StoreResult.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Store\SotreIn.cs" />
<Compile Include="Store\SotreOut.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>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("NX.ERP.BLL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NX.ERP.BLL")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("c1ffe393-1879-4fc1-a99e-695f2882553d")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,92 @@
using NX.ERP.BLL.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Store
{
public class SotreIn
{
public StoreResult AddVoucher(Model.Inbound inbound)
{
var deptCode = "52";
string ID = "";
if (inbound.InboundType == Model.InboundType.productIn)
{
var dal = new NX.ERP.U8.Store.PuStoreInDAL();
ID = dal.AddVocher(new ERP.Model.Request.PuStoreIn()
{
Date = inbound.InboundDate,
Source = inbound.SourceName,
SourceCode = inbound.SourceNo,
Whcode = inbound.WarehouseCode,
Deptcode = deptCode,
Maker = inbound.Maker,
Details = inbound.InboundDtlLst.ToList().ConvertAll(m =>
{
return new ERP.Model.Request.PuStoreInDetail()
{
Invcode = m.MaterialCode,
SorceDetailId = m.SourceDtlId,
Position = m.BinCode,
Quantity = m.Qty
};
})
});
}
if (inbound.InboundType == Model.InboundType.PurchaseIn)
{
var dal = new NX.ERP.U8.Store.ProductInDAL();
ID = dal.AddVoucher(new ERP.Model.Request.ProductStoreIn()
{
Date = inbound.InboundDate,
Source = inbound.SourceName,
SourceCode = inbound.SourceNo,
WhCode = inbound.WarehouseCode,
Deptcode = deptCode,
Maker = inbound.Maker,
Details = inbound.InboundDtlLst.ToList().ConvertAll(m =>
{
return new ERP.Model.Request.ProductStoreInDetail()
{
Batch = "",
InvCode = m.MaterialCode,
SourceDetailId = m.SourceDtlId,
Position = m.BinCode,
Quantity = m.Qty
};
})
});
}
if (inbound.InboundType == Model.InboundType.OtherIn)
{
var dal = new NX.ERP.U8.Store.OtherStoreInDAL();
ID = dal.AddVocher(new ERP.Model.Request.OtherStoreInOut()
{
Date = inbound.InboundDate,
WhCode = inbound.WarehouseCode,
Maker = inbound.Maker,
details = inbound.InboundDtlLst.ToList().ConvertAll(m =>
{
return new ERP.Model.Request.OtherStoreInOutDetail()
{
InvCode = m.MaterialCode,
Position = m.BinCode,
Quantity = m.Qty
};
})
});
}
return new StoreResult() { ID = int.Parse( ID) };
}
}
}

View File

@@ -0,0 +1,90 @@
using NX.ERP.BLL.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.BLL.Store
{
public class SotreOut
{
public StoreResult AddVoucher(Model.OutBound outBound)
{
string ID = "";
if (outBound.OutBoundType == Model.OutBoundType.MaterielOut)
{
var dal = new U8.Store.MaterielStoreOutDAL();
ID = dal.AddVocher(new ERP.Model.Request.MaterielStoreOut()
{
Date = outBound.OutboundDate,
Maker = outBound.Maker,
Source = outBound.SourceName,
SourceCode = outBound.SourceNo,
Whcode = outBound.WarehouseCode,
Details = outBound.OutboundDtlLst.ConvertAll(m =>
{
return new ERP.Model.Request.MaterielStoreOutDetail()
{
InvCode = m.MaterialCode,
Position = m.BinCode,
Quantity = m.Qty,
SorceDetailId = m.SourceDtlId
};
})
});
}
if (outBound.OutBoundType == Model.OutBoundType.SaleOut)
{
var dal = new U8.Store.SaleOutDAL();
ID = dal.AddVoucher(new ERP.Model.Request.SaleStoreOut()
{
Date = outBound.OutboundDate,
WhCode = outBound.Maker,
Source = outBound.SourceName,
SourceCode = outBound.SourceNo,
Maker = outBound.Maker,
Details = outBound.OutboundDtlLst.ConvertAll(m =>
{
return new ERP.Model.Request.SaleStoreOutDetail()
{
InvCode = m.MaterialCode,
Position = m.BinCode,
Quantity = m.Qty,
SourceDetailId = m.SourceDtlId
};
})
});
}
if (outBound.OutBoundType == Model.OutBoundType.OtherOut)
{
var dal = new U8.Store.OtherStoreOutDAL();
ID = dal.AddVocher(new ERP.Model.Request.OtherStoreInOut()
{
Date = outBound.OutboundDate,
WhCode = outBound.Maker,
Maker = outBound.Maker,
details = outBound.OutboundDtlLst.ConvertAll(m =>
{
return new ERP.Model.Request.OtherStoreInOutDetail()
{
InvCode = m.MaterialCode,
Position = m.BinCode,
Quantity = m.Qty,
};
})
});
}
return new StoreResult() { ID = int.Parse(ID) };
}
}
}

View File

@@ -10,6 +10,7 @@ namespace NX.ERP.Model.Request
public string Code { get; set; }
public DateTime Date { get; set; }
public string WhCode { get; set; }
public string Maker { get; set; }
public IList<OtherStoreInOutDetail> details = new List<OtherStoreInOutDetail>();
}
}

View File

@@ -7,6 +7,8 @@ namespace NX.ERP.Model.Request
{
public class ProductStoreIn
{
public string Maker { get; set; }
public string Deptcode { get; set; }
public DateTime Date { get; set; }
public string Source { get; set; }
public string SourceCode { get; set; }

View File

@@ -8,7 +8,7 @@ namespace NX.ERP.Model.Request
public class ProductStoreInDetail
{
public string InvCode { get; set; }
public int Quantity { get; set; }
public double Quantity { get; set; }
public string Batch { get; set; }
public string Position { get; set; }
public int SourceDetailId { get; set; }

View File

@@ -20,7 +20,7 @@ namespace NX.ERP.Model.Request
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 Deptcode { 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; }

View File

@@ -12,6 +12,7 @@ namespace NX.ERP.Model.Request
public string SourceCode { get; set; }
public DateTime Date { get; set; }
public string WhCode { get; set; }
public string Maker { get; set; }
public IList<SaleStoreOutDetail> Details { get; set; } = new List<SaleStoreOutDetail>();
}
}

View File

@@ -9,12 +9,12 @@ namespace NX.ERP.Model.MOM
{
private int id;
private string invCode;
private int qty;
private double qty;
private int modid;
public int Id { get => id; set => id = value; }
public string InvCode { get => invCode; set => invCode = value; }
public int Qty { get => qty; set => qty = value; }
public double Qty { get => qty; set => qty = value; }
public int ModId { get => modid; set => modid = value; }
}
}

View File

@@ -9,15 +9,16 @@ namespace NX.ERP.Model.MOM
{
private int id;
private string code;
public DateTime Date { get; set; }
/// <summary>
///
/// </summary>
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> Allocates { get; set; } = new List<MoAllocate>();
}
}

View File

@@ -320,7 +320,7 @@ namespace U8AppMain
Code = "0001",
Date = DateTime.Today,
Depcode = "24",
Deptcode = "24",
Whcode = "1",
Source = "采购到货单",
SourceCode = "CGDH210100187",

View File

@@ -11,7 +11,7 @@ namespace NX.ERP.U8.Mom
{
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
{
string strSQL = @"select a.MoId as id,a.moCode as Code,a.*,b.MoDId as id ,b.*,c.AllocateId as id ,c.* from mom_order as a
string strSQL = @"select a.MoId as id,a.moCode as Code,a.CreateDate as date,a.*,b.MoDId as id ,b.*,c.AllocateId as id ,c.* from mom_order as a
left join mom_orderdetail as b on a.MoId=b.MoId
left join mom_moallocate as c on b.MoDId=c.MoDId";
if (!string.IsNullOrEmpty(strWhere))

View File

@@ -37,7 +37,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("brdflag", 1);
headXml.setAttribute("ccode", storeIn.Code);
headXml.setAttribute("ddate", storeIn.Date);
headXml.setAttribute("cmaker", "/");
headXml.setAttribute("cmaker",storeIn.Maker);
headXml.setAttribute("cvouchtype", this.VoucherID);
headXml.setAttribute("vt_id",new VT().GetDefaltVTID("0301"));
headXml.setAttribute("editprop", "A");

View File

@@ -35,7 +35,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("brdflag", 1);
headXml.setAttribute("ccode", "11");
headXml.setAttribute("ddate", storeIn.Date);
headXml.setAttribute("cmaker", "");
headXml.setAttribute("cmaker", storeIn.Maker);
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0411"));
headXml.setAttribute("editprop", "A");

View File

@@ -46,7 +46,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("cmaker", puStoreIn.Maker);//DomHead[0]["cmaker"] = ""; //制单人,string类型
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("24"));
headXml.setAttribute("editprop", "A");
headXml.setAttribute("cdepcode", puStoreIn.Depcode);
headXml.setAttribute("cdepcode", puStoreIn.Deptcode);
headXml.setAttribute("cpersoncode", puStoreIn.PersonCode);
headXml.setAttribute("crdcode", "101" /*puStoreIn.RdCode*/);
headXml.setAttribute("cwhcode", puStoreIn.Whcode);

View File

@@ -38,7 +38,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("brdflag", 0);
headXml.setAttribute("ccode", storeOut.Code);
headXml.setAttribute("ddate", storeOut.Date);
headXml.setAttribute("cmaker", "");
headXml.setAttribute("cmaker", storeOut.Maker);
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0303"));
headXml.setAttribute("editprop", "A");

View File

@@ -19,7 +19,7 @@ namespace NX.ERP.U8.Store
{
get
{
return $"{AppDomain.CurrentDomain.BaseDirectory}XMLDOM\\XMLDomBody{this.voucherID}.xml";
return $"{AppDomain.CurrentDomain.BaseDirectory}\\XMLDOM\\XMLDomBody{this.voucherID}.xml";
}
}
@@ -28,7 +28,7 @@ namespace NX.ERP.U8.Store
get
{
return $"{AppDomain.CurrentDomain.BaseDirectory}XMLDOM\\XMLDomHead{this.voucherID}.xml";
return $"{AppDomain.CurrentDomain.BaseDirectory}\\XMLDOM\\XMLDomHead{this.voucherID}.xml";
}
}
protected string LoadUrl
@@ -265,7 +265,7 @@ namespace NX.ERP.U8.Store
{
if (!Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + "XMLDOM"))
{
Directory.CreateDirectory(AppDomain.CurrentDomain.RelativeSearchPath + "XMLDOM");
Directory.CreateDirectory(AppDomain.CurrentDomain.BaseDirectory + "XMLDOM");
}
rdVoucherParameter = new VoucherParameter
{

View 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);
// }
//}
//}
}
}

View 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>();
}
}

View 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; }
}
}

View 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>

View 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")]

View 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
}
}

View File

@@ -0,0 +1,29 @@
using NX.ERP.BLL.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store
{
public class StoreController : ApiController
{
[Route("api/Store/StoreIn")]
[HttpPost]
public StoreResult StoreIn(NX.ERP.BLL.Model.Inbound Params)
{
var bll = new NX.ERP.BLL.Store.SotreIn();
return bll.AddVoucher(Params);
}
[Route("api/Store/StoreOut")]
[HttpPost]
public StoreResult StoreOut(NX.ERP.BLL.Model.OutBound Params)
{
var bll = new NX.ERP.BLL.Store.SotreOut();
return bll.AddVoucher(Params);
}
}
}

View File

@@ -164,6 +164,7 @@
<Compile Include="Controllers\Store\ProductStoreInController.cs" />
<Compile Include="Controllers\Store\PuStoreInController.cs" />
<Compile Include="Controllers\Store\SaleStoreOutController.cs" />
<Compile Include="Controllers\Store\StoreController.cs" />
<Compile Include="Filters\ApiResultAttribute.cs" />
<Compile Include="Filters\ExceptionFilter.cs" />
<Compile Include="Global.asax.cs">
@@ -190,6 +191,10 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NX.ERP.BLL\NX.ERP.BLL.csproj">
<Project>{c1ffe393-1879-4fc1-a99e-695f2882553d}</Project>
<Name>NX.ERP.BLL</Name>
</ProjectReference>
<ProjectReference Include="..\NX.ERP.Model\NX.ERP.Model.csproj">
<Project>{5d012e0a-afed-474e-81a9-5820890b1b29}</Project>
<Name>NX.ERP.Model</Name>

View File

@@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX.ERP.U8", "NX.ERP.U8\NX.E
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX.ERP.U8.App", "NX.ERP.U8.App\NX.ERP.U8.App.csproj", "{8A6603B0-444A-49C7-80C9-195638129068}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX.ERP.BLL", "NX.ERP.BLL\NX.ERP.BLL.csproj", "{C1FFE393-1879-4FC1-A99E-695F2882553D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -67,6 +69,18 @@ Global
{8A6603B0-444A-49C7-80C9-195638129068}.Release|x64.Build.0 = Release|Any CPU
{8A6603B0-444A-49C7-80C9-195638129068}.Release|x86.ActiveCfg = Release|Any CPU
{8A6603B0-444A-49C7-80C9-195638129068}.Release|x86.Build.0 = Release|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Debug|x64.ActiveCfg = Debug|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Debug|x64.Build.0 = Debug|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Debug|x86.ActiveCfg = Debug|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Debug|x86.Build.0 = Debug|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Release|Any CPU.Build.0 = Release|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Release|x64.ActiveCfg = Release|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Release|x64.Build.0 = Release|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Release|x86.ActiveCfg = Release|Any CPU
{C1FFE393-1879-4FC1-A99E-695F2882553D}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE