增加付款单

This commit is contained in:
gongxh
2021-05-11 19:35:30 +08:00
parent c691407395
commit d53a7b5917
15 changed files with 423 additions and 45 deletions

View File

@@ -88,14 +88,14 @@ namespace U8AppMain
// BtnReadExcel
//
this.BtnReadExcel.Name = "BtnReadExcel";
this.BtnReadExcel.Size = new System.Drawing.Size(139, 22);
this.BtnReadExcel.Size = new System.Drawing.Size(180, 22);
this.BtnReadExcel.Text = "读取Excel";
this.BtnReadExcel.Click += new System.EventHandler(this.BtnReadExcel_Click);
//
// 登录ToolStripMenuItem
//
this.登录ToolStripMenuItem.Name = "登录ToolStripMenuItem";
this.登录ToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.登录ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.登录ToolStripMenuItem.Text = "登录";
this.登录ToolStripMenuItem.Visible = false;
this.登录ToolStripMenuItem.Click += new System.EventHandler(this.登录ToolStripMenuItem_Click);
@@ -103,7 +103,7 @@ namespace U8AppMain
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(139, 22);
this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22);
this.toolStripMenuItem2.Text = "采购入库单";
this.toolStripMenuItem2.Visible = false;
this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
@@ -111,7 +111,7 @@ namespace U8AppMain
// 材料出库单ToolStripMenuItem
//
this.材料出库单ToolStripMenuItem.Name = "材料出库单ToolStripMenuItem";
this.材料出库单ToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.材料出库单ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.材料出库单ToolStripMenuItem.Text = "材料出库单";
this.材料出库单ToolStripMenuItem.Visible = false;
this.材料出库单ToolStripMenuItem.Click += new System.EventHandler(this.材料出库单ToolStripMenuItem_Click);
@@ -119,7 +119,7 @@ namespace U8AppMain
// 其他入库ToolStripMenuItem
//
this.其他入库ToolStripMenuItem.Name = "其他入库ToolStripMenuItem";
this.其他入库ToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.其他入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.其他入库ToolStripMenuItem.Text = "其他入库";
this.其他入库ToolStripMenuItem.Visible = false;
this.其他入库ToolStripMenuItem.Click += new System.EventHandler(this.其他入库ToolStripMenuItem_Click);
@@ -127,7 +127,7 @@ namespace U8AppMain
// 其他出库ToolStripMenuItem
//
this.其他出库ToolStripMenuItem.Name = "其他出库ToolStripMenuItem";
this.其他出库ToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.其他出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.其他出库ToolStripMenuItem.Text = "其他出库";
this.其他出库ToolStripMenuItem.Visible = false;
this.其他出库ToolStripMenuItem.Click += new System.EventHandler(this.其他出库ToolStripMenuItem_Click);
@@ -135,7 +135,7 @@ namespace U8AppMain
// 销售出库ToolStripMenuItem
//
this.销售出库ToolStripMenuItem.Name = "销售出库ToolStripMenuItem";
this.销售出库ToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.销售出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.销售出库ToolStripMenuItem.Text = "销售出库";
this.销售出库ToolStripMenuItem.Visible = false;
this.销售出库ToolStripMenuItem.Click += new System.EventHandler(this.销售出库ToolStripMenuItem_Click);
@@ -143,9 +143,8 @@ namespace U8AppMain
// 成品入库ToolStripMenuItem
//
this.成品入库ToolStripMenuItem.Name = "成品入库ToolStripMenuItem";
this.成品入库ToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.成品入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.成品入库ToolStripMenuItem.Text = "成品入库";
this.成品入库ToolStripMenuItem.Visible = false;
this.成品入库ToolStripMenuItem.Click += new System.EventHandler(this.成品入库ToolStripMenuItem_Click);
//
// 导入ToolStripMenuItem
@@ -161,21 +160,21 @@ namespace U8AppMain
// ImportBom
//
this.ImportBom.Name = "ImportBom";
this.ImportBom.Size = new System.Drawing.Size(113, 22);
this.ImportBom.Size = new System.Drawing.Size(180, 22);
this.ImportBom.Text = "BOM";
this.ImportBom.Click += new System.EventHandler(this.ImportBom_Click);
//
// BtnPurchaseImport
//
this.BtnPurchaseImport.Name = "BtnPurchaseImport";
this.BtnPurchaseImport.Size = new System.Drawing.Size(113, 22);
this.BtnPurchaseImport.Size = new System.Drawing.Size(180, 22);
this.BtnPurchaseImport.Text = "请购单";
this.BtnPurchaseImport.Click += new System.EventHandler(this.BtnPurchaseImport_Click);
//
// 领料单ToolStripMenuItem
//
this.领料单ToolStripMenuItem.Name = "领料单ToolStripMenuItem";
this.领料单ToolStripMenuItem.Size = new System.Drawing.Size(113, 22);
this.领料单ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.领料单ToolStripMenuItem.Text = "领料单";
this.领料单ToolStripMenuItem.Click += new System.EventHandler(this.领料单ToolStripMenuItem_Click);
//

View File

@@ -438,25 +438,28 @@ namespace U8AppMain
private void 成品入库ToolStripMenuItem_Click(object sender, EventArgs e)
{
var dal = new NX.ERP.U8.Store.ProductInDAL();
dal.AddVoucher(new NX.ERP.Model.Request.ProductStoreIn()
{
Source = "生产订单",
SourceCode = "SCDD200900013",
Date = DateTime.Today,
WhCode = "1",
Details = new List<NX.ERP.Model.Request.ProductStoreInDetail>() {
new NX.ERP.Model.Request.ProductStoreInDetail()
{
Batch="",
InvCode="904005",
SourceDetailId=1000003338,
Quantity=1,
Position=""
}
}
}); ;
var ap = new NX.ERP.U8.AP.APVouch();
ap.AddVocher();
//var dal = new NX.ERP.U8.Store.ProductInDAL();
//dal.AddVoucher(new NX.ERP.Model.Request.ProductStoreIn()
//{
// Source = "生产订单",
// SourceCode = "SCDD200900013",
// Date = DateTime.Today,
// WhCode = "1",
// Details = new List<NX.ERP.Model.Request.ProductStoreInDetail>() {
// new NX.ERP.Model.Request.ProductStoreInDetail()
// {
// Batch="",
// InvCode="904005",
// SourceDetailId=1000003338,
// Quantity=1,
// Position=""
// }
// }
//}); ;
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)

View File

@@ -56,6 +56,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Accessibility" />
<Reference Include="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\NX.ERP.U8\lib\ADODB.dll</HintPath>
</Reference>
<Reference Include="ComponentFactory.Krypton.Design, Version=4.5.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
<HintPath>..\packages\Krypton.Components.Suite.4.5.9\lib\net20\ComponentFactory.Krypton.Design.dll</HintPath>
</Reference>

228
NX.ERP.U8/AP/APVouch.cs Normal file
View File

@@ -0,0 +1,228 @@
using MSXML2;
using NX.ERP.U8.Store;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UFIDA.U8.U8APIFramework;
using UFIDA.U8.U8MOMAPIFramework;
namespace NX.ERP.U8.AP
{
public class APVouch : VoucherBase
{
public APVouch() : base("应付单", "U8API/APVouch")
{
}
protected override string AddUrl
{
get
{
return $"{BaseUrl}/SaveVouch";
}
}
protected override string LoadUrl
{
get
{
return $"{BaseUrl}/GetVouchData";
}
}
protected override string UpdateUrl
{
get
{
return $"{BaseUrl}/SaveVouch";
}
}
protected override void LoadRdVoucher(VoucherParameter para)
{
try
{
U8EnvContext u8EnvContext = new U8EnvContext();
u8EnvContext.U8Login = U8LoginContext.Instance.ClsLogin;
U8ApiAddress apiAddress = new U8ApiAddress(this.LoadUrl);
U8ApiBroker u8ApiBroker = new U8ApiBroker(apiAddress, u8EnvContext);
u8EnvContext.SetApiContext("VouchType",this.VoucherID);
u8ApiBroker.AssignNormalValue("linkid", "0");
if (!u8ApiBroker.Invoke())
{
Exception exception = u8ApiBroker.GetException();
if (exception != null)
{
if (exception is MomSysException)
{
MomSysException ex = exception as MomSysException;
}
else if (exception is MomBizException)
{
MomBizException ex2 = exception as MomBizException;
}
string exceptionString = u8ApiBroker.GetExceptionString();
if (exceptionString.Length != 0)
{
}
}
para.ReturnValue = false;
u8ApiBroker.Release();
return;
}
DOMDocument dOMDocument = u8ApiBroker.GetResult("ohead") as DOMDocument;
if (dOMDocument != null)
{
para.DomHead = new DOMDocumentClass();
para.DomHead.loadXML(dOMDocument.xml);
}
DOMDocument dOMDocument2 = u8ApiBroker.GetResult("obody") as DOMDocument;
if (dOMDocument2 != null)
{
para.DomBody = new DOMDocumentClass();
para.DomBody.loadXML(dOMDocument2.xml);
}
para.ReturnValue = Convert.ToBoolean(u8ApiBroker.GetReturnValue());
para.ErrMsg = u8ApiBroker.GetResult("xmlmsg") as string;
u8ApiBroker.Release();
}
catch (Exception err)
{
throw err;
}
}
protected override string AddRdVoucher(VoucherParameter para)
{
try
{
U8EnvContext u8EnvContext = new U8EnvContext();
u8EnvContext.U8Login = U8LoginContext.Instance.ClsLogin;
U8ApiAddress apiAddress = new U8ApiAddress(this.AddUrl);
U8ApiBroker u8ApiBroker = new U8ApiBroker(apiAddress, u8EnvContext);
u8EnvContext.SetApiContext("VouchType", this.VoucherID);
u8ApiBroker.AssignNormalValue("ohead", para.DomHead);
u8ApiBroker.AssignNormalValue("obody", para.DomBody);
//给普通参数isadd赋值。此参数的数据类型为System.Boolean,此参数按值传递,表示true新增,false修改
u8ApiBroker.AssignNormalValue("isadd",true);
if (para.DOMMsg != null)
{
u8ApiBroker.AssignNormalValue("xmlmsg", para.DOMMsg);
}
else
{
u8ApiBroker.AssignNormalValue("xmlmsg", new DOMDocumentClass());
}
// u8ApiBroker.AssignNormalValue("bReMote", para.IsReMote);
if (!u8ApiBroker.Invoke())
{
Exception exception = u8ApiBroker.GetException();
if (exception != null)
{
if (exception is MomSysException)
{
MomSysException ex = exception as MomSysException;
}
else if (exception is MomBizException)
{
MomBizException ex2 = exception as MomBizException;
}
string exceptionString = u8ApiBroker.GetExceptionString();
if (exceptionString.Length != 0)
{
}
}
para.ReturnValue = false;
u8ApiBroker.Release();
}
para.ReturnValue = Convert.ToBoolean(u8ApiBroker.GetReturnValue());
para.ErrMsg = u8ApiBroker.GetResult("xmlmsg") as string;
u8ApiBroker.Release();
return "";
}
catch (Exception err)
{
throw err;
}
finally
{
}
}
public string AddVocher()
{
VoucherParameter voucherParameter = new VoucherParameter
{
VoucherType = this.VoucherID,
DomHead = new DOMDocumentClass(),
DomBody = new DOMDocumentClass()
};
DOMDocument domHead = voucherParameter.DomHead;
DOMDocument domBody = voucherParameter.DomBody;
voucherParameter.DomHead.loadXML(HeadTemplate);
voucherParameter.DomBody.loadXML(BodyTemplate);
IXMLDOMElement headXml = domHead.createElement("z:row");
IXMLDOMElement bodyXml;
//for (var n = 0; n < storeIn.details.Count(); n++)
//{
//var detail = storeIn.details[n];
bodyXml = domBody.createElement("z:row");
//}
domHead.selectSingleNode("//rs:data").appendChild(headXml);
var str = voucherParameter.DomBody.xml;
Console.WriteLine(str);
try
{
return AddRdVoucher(voucherParameter);
}
catch (Exception err)
{
throw err;
}
}
}
}

View File

@@ -36,6 +36,7 @@
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
</PropertyGroup>
<ItemGroup>
<Compile Include="AP\APVouch.cs" />
<Compile Include="Base\BinDAL.cs" />
<Compile Include="Base\CustomerDAL.cs" />
<Compile Include="Base\MaterielDAL.cs" />
@@ -70,6 +71,11 @@
<Compile Include="XmlHelper.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="ADODB, Version=2.6.0.0, Culture=neutral, PublicKeyToken=79a4e7ad54eeabca">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>lib\ADODB.dll</HintPath>
</Reference>
<Reference Include="Dapper, Version=1.40.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Dapper.1.42\lib\net35\Dapper.dll</HintPath>
</Reference>

View File

@@ -13,7 +13,6 @@ namespace NX.ERP.U8.Store
}
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
{

View File

@@ -13,7 +13,7 @@ namespace NX.ERP.U8.Store
{
private string voucherID;
private string BaseUrl;
protected string BaseUrl;
private static string BasePath;
@@ -50,7 +50,7 @@ namespace NX.ERP.U8.Store
}
}
protected string LoadUrl
protected virtual string LoadUrl
{
get
{
@@ -58,7 +58,7 @@ namespace NX.ERP.U8.Store
}
}
protected string AddUrl
protected virtual string AddUrl
{
get
{
@@ -66,7 +66,7 @@ namespace NX.ERP.U8.Store
}
}
protected string UpdateUrl
protected virtual string UpdateUrl
{
get
{
@@ -131,7 +131,7 @@ namespace NX.ERP.U8.Store
private void LoadRdVoucher(VoucherParameter para)
protected virtual void LoadRdVoucher(VoucherParameter para)
{
try
{
@@ -286,7 +286,7 @@ namespace NX.ERP.U8.Store
}
protected string AddRdVoucher(VoucherParameter para)
protected virtual string AddRdVoucher(VoucherParameter para)
{
string VoucherId;

Binary file not shown.

View File

@@ -17,9 +17,6 @@ namespace NX.ERP.WebAPi.Controllers.Store
var dal = new NX.ERP.U8.Store.OtherStoreInDAL();
return dal.AddVocher(storeIn);
}
[Route("api/OtherIn/Update")]
[HttpPost]
public bool UpdteVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)

View File

@@ -1,17 +1,14 @@
import axios from 'axios'
export const getInventoryall = (info) => {
return axios.post('/api/Pmc/Inventoryall', info)
}
export const getInventorymom=(info)=>{
return axios.post('/api/Pmc/Inventorymom',info)
}
export const getInventorymonth=(info)=>{
return axios.post('/api/Pmc/Inventorymonth',info)
}
export const getInventorysocode=(info)=>{
return axios.post('/api/Pmc/Inventorysocode',info)
}
}

View File

@@ -17,6 +17,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0AB7F5D9-F8E
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{272C1F7E-66F7-4E92-9777-3A7CB2E9D7CC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "U8Test", "U8Test\U8Test.csproj", "{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -85,6 +87,18 @@ Global
{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
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Debug|x64.ActiveCfg = Debug|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Debug|x64.Build.0 = Debug|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Debug|x86.ActiveCfg = Debug|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Debug|x86.Build.0 = Debug|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Release|Any CPU.Build.0 = Release|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Release|x64.ActiveCfg = Release|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Release|x64.Build.0 = Release|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Release|x86.ActiveCfg = Release|Any CPU
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -95,6 +109,7 @@ Global
{BD673DA9-0606-4BCF-A016-FB5C4E7B5D59} = {0AB7F5D9-F8E9-4EA7-917F-283EF99CF16D}
{8A6603B0-444A-49C7-80C9-195638129068} = {0AB7F5D9-F8E9-4EA7-917F-283EF99CF16D}
{C1FFE393-1879-4FC1-A99E-695F2882553D} = {0AB7F5D9-F8E9-4EA7-917F-283EF99CF16D}
{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0} = {272C1F7E-66F7-4E92-9777-3A7CB2E9D7CC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8C57E044-32E1-444C-B548-E83838110953}

24
U8Test/APVouchTest.cs Normal file
View File

@@ -0,0 +1,24 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace U8Test
{
[TestClass]
public class APVouchTest
{
public APVouchTest()
{
var a= NX.ERP.U8.U8LoginContext.Instance;
}
[TestMethod]
public void APvochAdd()
{
var ap = new NX.ERP.U8.AP.APVouch();
ap.AddVocher();
}
}
}

View File

@@ -0,0 +1,20 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("U8Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("U8Test")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("d5b8553c-ba98-4a52-8bf0-15791f7ef9c0")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

80
U8Test/U8Test.csproj Normal file
View File

@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props')" />
<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>{D5B8553C-BA98-4A52-8BF0-15791F7EF9C0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>U8Test</RootNamespace>
<AssemblyName>U8Test</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</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>
<PlatformTarget>x86</PlatformTarget>
</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="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\NX.ERP.U8\lib\ADODB.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="APVouchTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<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="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props'))" />
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets'))" />
</Target>
<Import Project="..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets')" />
</Project>

5
U8Test/packages.config Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MSTest.TestAdapter" version="2.1.1" targetFramework="net45" />
<package id="MSTest.TestFramework" version="2.1.1" targetFramework="net45" />
</packages>