修改代码

This commit is contained in:
gongxh
2021-05-19 13:55:55 +08:00
parent 8ebbb1e0f8
commit 0e1f347014
7 changed files with 62 additions and 16 deletions

View File

@@ -37,11 +37,9 @@ namespace NX.ERP.U8.Store
public IEnumerable<Model.Response.Store.MaterialApp> GetList(string strWhere = "", object Params = null)
{
var strSQL = @"select a.ID ,a.cCode as Code,a.dDate as Date,a.cMaker as PreparedBy,b.AutoID as id,b.AutoID as MaterialAppDtlId,
b.ID as MaterialAppId,b.cInvCode as MaterialCode,b.iQuantity as Qty, b.imoseq as Pesodid,b.cmocode as MoCode,b.iMpoIds as AllocateId from MaterialAppVouch a
left join
MaterialAppVouchs b on a.id=b.ID
";
b.ID as MaterialAppId,b.cInvCode as MaterialCode,b.iQuantity as Quantit, b.imoseq as Pesodid,b.cmocode as MoCode,b.iMpoIds as AllocateId,b.fOutQuantity as OutQuantity from MaterialAppVouch a
left join
MaterialAppVouchs b on a.id=b.ID";
if (!string.IsNullOrEmpty(strWhere))
{
strSQL += $" where {strWhere} ";
@@ -69,7 +67,21 @@ left join
/// <summary>
///
/// 查询等待未完成可出库的单子
/// </summary>
/// <returns></returns>
public IEnumerable<Model.Response.Store.MaterialApp> GetPendingList()
{
return this.GetList(" b.cDefine22='是' and iQuantity<>ISNULL( fOutQuantity,0)");
}
/// <summary>
/// 获取
/// </summary>
/// <param name="Code"></param>
/// <returns></returns>
@@ -149,8 +161,8 @@ left join
conn.Execute(strSql, new
{
DueDate = provide.IssueDate,
SN = "",
DueDate = provide.DueDate,
SN ="",
WorkCenter = provide.WorkCenter,
MoCode = provide.OrderCode,
OrderDetailId = provide.OrderDetailId