修正引用错误
This commit is contained in:
@@ -5,8 +5,17 @@ using System.Text;
|
||||
using Dapper;
|
||||
namespace NX.ERP.U8.Mom
|
||||
{
|
||||
/// <summary>
|
||||
/// BOM
|
||||
/// </summary>
|
||||
public class BomDAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取BOM清单
|
||||
/// </summary>
|
||||
/// <param name="strWhere"></param>
|
||||
/// <param name="Params"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<NX.ERP.Model.Response.MOM.Bom> GetList(string strWhere="", object Params = null)
|
||||
{
|
||||
var strSQL = @"select a.BomId,a.Version, a.VersionDesc,a.BomType,c.InvCode as ParentCode ,' ' as id ,d.BomId, d.SortSeq,
|
||||
|
||||
@@ -5,10 +5,13 @@ using System.Text;
|
||||
using Dapper;
|
||||
namespace NX.ERP.U8.Mom
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产订单
|
||||
/// </summary>
|
||||
public class MomOrderDAL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// 获取生产订单明细
|
||||
/// </summary>
|
||||
/// <param name="strWhere"></param>
|
||||
/// <param name="param"></param>
|
||||
@@ -67,7 +70,11 @@ namespace NX.ERP.U8.Mom
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="Params"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.MOM.MomOrder> GetList(NX.ERP.Model.Request.MomOrder Params)
|
||||
{
|
||||
if (Params == null)
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<Compile Include="Sale\DispatchListDAL.cs" />
|
||||
<Compile Include="Store\BaseBill.cs" />
|
||||
<Compile Include="Store\BinChangeDAL.cs" />
|
||||
<Compile Include="Store\MaterialAppVoucher.cs" />
|
||||
<Compile Include="Store\MaterialAppVoucherDAL.cs" />
|
||||
<Compile Include="Store\MaterielStoreOutDAL.cs" />
|
||||
<Compile Include="Store\OtherStoreInDAL.cs" />
|
||||
<Compile Include="Store\OtherStoreOutDAL.cs" />
|
||||
@@ -94,22 +94,25 @@
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.XML" />
|
||||
<Reference Include="UFIDA.U8.MomServiceCommon">
|
||||
<HintPath>D:\U8SOFT\UFMOM\U8APIFramework\UFIDA.U8.MomServiceCommon.dll</HintPath>
|
||||
<Reference Include="UFIDA.U8.MomServiceCommon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=79a4e7ad54eeabca, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>lib\UFIDA.U8.MomServiceCommon.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UFIDA.U8.U8APIFramework">
|
||||
<HintPath>D:\U8SOFT\UFMOM\U8APIFramework\UFIDA.U8.U8APIFramework.dll</HintPath>
|
||||
<Reference Include="UFIDA.U8.U8APIFramework, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>lib\UFIDA.U8.U8APIFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UFIDA.U8.U8MOMAPIFramework">
|
||||
<HintPath>D:\U8SOFT\UFMOM\U8APIFramework\UFIDA.U8.U8MOMAPIFramework.dll</HintPath>
|
||||
<Reference Include="UFIDA.U8.U8MOMAPIFramework, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>lib\UFIDA.U8.U8MOMAPIFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UFSoft.U8.Framework.Login.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=19a34671517e8c56, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>D:\U8SOFT\Framework\UFSoft.U8.Framework.Login.UI.dll</HintPath>
|
||||
<HintPath>lib\UFSoft.U8.Framework.Login.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UFSoft.U8.Framework.LoginContext, Version=1.0.0.0, Culture=neutral, PublicKeyToken=90e57cffdf9d854d, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>E:\U8SOFT\Framework\UFSoft.U8.Framework.LoginContext.dll</HintPath>
|
||||
<HintPath>lib\UFSoft.U8.Framework.LoginContext.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -6,9 +6,12 @@ using System.Text;
|
||||
using Dapper;
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class MaterialAppVoucher : VoucherBase
|
||||
/// <summary>
|
||||
/// 领料申请
|
||||
/// </summary>
|
||||
public class MaterialAppVoucherDAL : VoucherBase
|
||||
{
|
||||
public MaterialAppVoucher() : base("64", "U8API/AppVouchs")
|
||||
public MaterialAppVoucherDAL() : base("64", "U8API/AppVouchs")
|
||||
{
|
||||
|
||||
}
|
||||
@@ -11,18 +11,28 @@ using UFIDA.U8.U8MOMAPIFramework;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
/// <summary>
|
||||
/// 材料出库单
|
||||
/// </summary>
|
||||
public class MaterialStoreOutDAL : VoucherBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public MaterialStoreOutDAL() : base("11", "U8API/MaterialOut")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 按领料单出库
|
||||
/// </summary>
|
||||
/// <param name="storeOut"></param>
|
||||
/// <param name="headXml"></param>
|
||||
/// <param name="domBody"></param>
|
||||
private void ByMaterialApp(Model.Request.MaterialStoreOut storeOut, IXMLDOMElement headXml, DOMDocument domBody)
|
||||
{
|
||||
var metailApp = new U8.Store.MaterialAppVoucher().GetModel(storeOut.SourceCode);
|
||||
var metailApp = new U8.Store.MaterialAppVoucherDAL().GetModel(storeOut.SourceCode);
|
||||
if (metailApp == null)
|
||||
{
|
||||
throw new Exception("未知的领料申请单");
|
||||
@@ -30,14 +40,24 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
|
||||
headXml.setAttribute("cbustype", "领料");
|
||||
headXml.setAttribute("cbuscode", metailApp.Code);
|
||||
string lastProductNo = null;
|
||||
headXml.setAttribute("crdname", "材料出库");
|
||||
|
||||
IXMLDOMElement bodyXml;
|
||||
for (var n = 0; n < storeOut.Details.Count(); n++)
|
||||
{
|
||||
|
||||
var item = storeOut.Details[n];
|
||||
var detail = metailApp.MaterialAppVouchsLst.FirstOrDefault(m => m.AllocateId==item.SorceDetailId);
|
||||
if (detail==null)
|
||||
{
|
||||
throw new Exception("未知明细");
|
||||
}
|
||||
|
||||
|
||||
bodyXml = domBody.createElement("z:row");
|
||||
bodyXml.setAttribute("inquantity", "");
|
||||
bodyXml.setAttribute("inquantity",detail.Quantit-detail.OutQuantity);
|
||||
bodyXml.setAttribute("iquantity",item.Quantity);
|
||||
bodyXml.setAttribute("cposition", item.Position);
|
||||
bodyXml.setAttribute("innum", "");
|
||||
bodyXml.setAttribute("imaids","");
|
||||
bodyXml.setAttribute("imoseq","");
|
||||
@@ -45,7 +65,7 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml.setAttribute("iOMoMID", "");
|
||||
bodyXml.setAttribute("iopseq", "");
|
||||
bodyXml.setAttribute("copdesc", "");
|
||||
bodyXml.setAttribute("invcode", "");
|
||||
bodyXml.setAttribute("invcode", item.InvCode);
|
||||
bodyXml.setAttribute("cMoLotCode", "");
|
||||
bodyXml.setAttribute("cmocode", "");
|
||||
bodyXml.setAttribute("iMPoIds", "");
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
public IEnumerable<Model.Response.Store.MaterialApp> Lsit()
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
||||
return dal.GetList();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
public IEnumerable<Model.Response.Store.MaterialApp> GetPendingList()
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
||||
return dal.GetPendingList();
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
public Model.Response.Store.MaterialApp GetModel(string Code)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
||||
return dal.GetModel(Code);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
public IEnumerable<Model.Response.Store.MaterialApp> GetList(string MoCode, int MoDetailId)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
||||
return dal.GetListByMoCode(MoCode, MoDetailId);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
public IEnumerable<Model.Response.Store.MaterialAppDetail> GetDetail(string MoCode, int MoDetailId)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
||||
return dal.GetDetailByMoCode(MoCode, MoDetailId);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
public bool Provide([FromBody]NX.ERP.Model.Request.MaterialAppProvide provide)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
||||
dal.Provide(provide);
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user