Merge branch 'master' of http://36.153.118.214:10080/nx.wms/u8-import
This commit is contained in:
@@ -14,5 +14,8 @@ namespace NX.ERP.Model.Request
|
|||||||
public string SupplierCode { get => supplierCode; set => supplierCode = value; }
|
public string SupplierCode { get => supplierCode; set => supplierCode = value; }
|
||||||
public string SupplierName { get => supplierName; set => supplierName = value; }
|
public string SupplierName { get => supplierName; set => supplierName = value; }
|
||||||
|
|
||||||
|
public DateTime? ModifyDate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,5 +20,8 @@ namespace NX.ERP.Model
|
|||||||
public string Contract { get => contract; set => contract = value; }
|
public string Contract { get => contract; set => contract = value; }
|
||||||
|
|
||||||
public string ContractPhone { get; set; }
|
public string ContractPhone { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public DateTime ModifyDate { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
namespace NX.ERP.U8.Plugin
|
namespace NX.ERP.U8.Plugin
|
||||||
@@ -17,7 +17,8 @@ namespace NX.ERP.U8.Plugin
|
|||||||
public bool AfterSave(ref MSXML2.IXMLDOMDocument2 head,ref MSXML2.IXMLDOMDocument2 body,out string ErrMsg )
|
public bool AfterSave(ref MSXML2.IXMLDOMDocument2 head,ref MSXML2.IXMLDOMDocument2 body,out string ErrMsg )
|
||||||
{
|
{
|
||||||
|
|
||||||
MessageBox.Show("结束保存");
|
MessageBox.Show(body.xml);
|
||||||
|
|
||||||
ErrMsg = "";
|
ErrMsg = "";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,10 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>NX.ERP.U8.Plugin</RootNamespace>
|
<RootNamespace>NX.ERP.U8.Plugin</RootNamespace>
|
||||||
<AssemblyName>NX.ERP.U8.Plugin</AssemblyName>
|
<AssemblyName>NX.ERP.U8.Plugin</AssemblyName>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ namespace NX.ERP.U8
|
|||||||
|
|
||||||
if (Material.ModifyDate != null)
|
if (Material.ModifyDate != null)
|
||||||
{
|
{
|
||||||
where.Add(" dModifyDate >= @ModifyDate ");
|
where.Add(" ISNULL(dModifyDate,dVenCreateDatetime) >= @ModifyDate ");
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ namespace NX.ERP.U8
|
|||||||
cVenPostCode AS PostalCode,
|
cVenPostCode AS PostalCode,
|
||||||
cVenAddress AS Address,
|
cVenAddress AS Address,
|
||||||
cVenPhone as ContractPhone,
|
cVenPhone as ContractPhone,
|
||||||
|
ISNULL(dModifyDate,dVenCreateDatetime) as ModifyDate,
|
||||||
cVenPerson AS Contract from Vendor ";
|
cVenPerson AS Contract from Vendor ";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
@@ -45,10 +46,16 @@ namespace NX.ERP.U8
|
|||||||
where.Add(" cVenName like @SupplierName ");
|
where.Add(" cVenName like @SupplierName ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (Params.ModifyDate != null)
|
||||||
|
{
|
||||||
|
where.Add(" ISNULL(dModifyDate,dVenCreateDatetime) >= @ModifyDate ");
|
||||||
|
}
|
||||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
SupplierCode = $"%{Params.SupplierCode}%",
|
SupplierCode = $"%{Params.SupplierCode}%",
|
||||||
SupplierName = $"%{Params.SupplierName}%"
|
SupplierName = $"%{Params.SupplierName}%",
|
||||||
|
Params.ModifyDate
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace NX.ERP.U8.Store
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class MaterialAppDAL : VoucherBase
|
public class MaterialAppDAL : VoucherBase
|
||||||
{
|
{
|
||||||
public MaterialAppDAL() : base("64", "U8API/AppVouchs")
|
public MaterialAppDAL() : base("64", "U8API/MaterialApp")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ using System.Web.Http;
|
|||||||
|
|
||||||
namespace NX.ERP.WebAPi.Controllers.AP
|
namespace NX.ERP.WebAPi.Controllers.AP
|
||||||
{
|
{
|
||||||
public class APController : ApiController
|
public class ApVouchController : ApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
[Route("api/ap/add")]
|
[Route("api/ApVouch/Add")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public string AddVoucher(NX.ERP.Model.Request.ApVouch ApVouch)
|
public string AddVoucher(NX.ERP.Model.Request.ApVouch ApVouch)
|
||||||
{
|
{
|
||||||
@@ -76,6 +76,15 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Route("api/MaterialApp/Add")]
|
||||||
|
[HttpGet]
|
||||||
|
|
||||||
|
public string Add()
|
||||||
|
{
|
||||||
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
|
return dal.AddVoucher(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
<Compile Include="App_Start\RouteConfig.cs" />
|
<Compile Include="App_Start\RouteConfig.cs" />
|
||||||
<Compile Include="App_Start\SwaggerConfig.cs" />
|
<Compile Include="App_Start\SwaggerConfig.cs" />
|
||||||
<Compile Include="App_Start\WebApiConfig.cs" />
|
<Compile Include="App_Start\WebApiConfig.cs" />
|
||||||
<Compile Include="Controllers\AP\APController.cs" />
|
<Compile Include="Controllers\AP\ApVouchController.cs" />
|
||||||
<Compile Include="Controllers\MOM\BomController.cs" />
|
<Compile Include="Controllers\MOM\BomController.cs" />
|
||||||
<Compile Include="Controllers\MOM\MomOrderController.cs" />
|
<Compile Include="Controllers\MOM\MomOrderController.cs" />
|
||||||
<Compile Include="Controllers\Pmc\PurchaseController.cs" />
|
<Compile Include="Controllers\Pmc\PurchaseController.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user