修改
This commit is contained in:
@@ -8,7 +8,7 @@ namespace NX.ERP.Model.Request
|
|||||||
public class MomOrder: BaseModel
|
public class MomOrder: BaseModel
|
||||||
{
|
{
|
||||||
|
|
||||||
public string ProductOrderNo { get; set; }
|
public IEnumerable<string> ProductOrderNo { get; set; }
|
||||||
public string ProductCode { get; set; }
|
public string ProductCode { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ namespace NX.ERP.Model.Request
|
|||||||
{
|
{
|
||||||
public class OtherStoreInOut
|
public class OtherStoreInOut
|
||||||
{
|
{
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
|
|||||||
@@ -101,9 +101,9 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
where.Add(" b.InvCode like @ProductCode");
|
where.Add(" b.InvCode like @ProductCode");
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Params.ProductOrderNo))
|
if (Params.ProductOrderNo!=null)
|
||||||
{
|
{
|
||||||
where.Add(" a.moCode like @ProductOrderNo ");
|
where.Add(" a.moCode in @ProductOrderNo ");
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Params.ProductOrderendID))
|
if (!string.IsNullOrEmpty(Params.ProductOrderendID))
|
||||||
{
|
{
|
||||||
@@ -132,7 +132,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
ProductCode = $"%{Params.ProductCode}%",
|
ProductCode = $"%{Params.ProductCode}%",
|
||||||
ProductOrderNo = $"{Params.ProductOrderNo}",
|
ProductOrderNo =Params.ProductOrderNo,
|
||||||
Params.ProductOrderendID,
|
Params.ProductOrderendID,
|
||||||
Params.ModifyDate,
|
Params.ModifyDate,
|
||||||
Params.Pubufts,
|
Params.Pubufts,
|
||||||
@@ -160,9 +160,9 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
where.Add(" a.InvCode like @ProductCode");
|
where.Add(" a.InvCode like @ProductCode");
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Params.ProductOrderNo))
|
if (Params.ProductOrderNo!=null)
|
||||||
{
|
{
|
||||||
where.Add(" a.moCode like @ProductOrderNo ");
|
where.Add(" a.moCode in @ProductOrderNo ");
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Params.ProductOrderendID))
|
if (!string.IsNullOrEmpty(Params.ProductOrderendID))
|
||||||
{
|
{
|
||||||
@@ -171,7 +171,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
return this.GetOrders(string.Join(" and ", where.ToArray()), new
|
return this.GetOrders(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
ProductCode = $"%{Params.ProductCode}%",
|
ProductCode = $"%{Params.ProductCode}%",
|
||||||
ProductOrderNo = $"{Params.ProductOrderNo}",
|
ProductOrderNo = Params.ProductOrderNo,
|
||||||
ProductOrderendID = $"{Params.ProductOrderendID}"
|
ProductOrderendID = $"{Params.ProductOrderendID}"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -234,9 +234,9 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
where.Add(" b.InvCode like @ProductCode");
|
where.Add(" b.InvCode like @ProductCode");
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Params.ProductOrderNo))
|
if (Params.ProductOrderNo!=null)
|
||||||
{
|
{
|
||||||
where.Add(" b.moCode like @ProductOrderNo ");
|
where.Add(" b.moCode in @ProductOrderNo ");
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Params.ProductOrderendID))
|
if (!string.IsNullOrEmpty(Params.ProductOrderendID))
|
||||||
{
|
{
|
||||||
@@ -245,7 +245,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
return this.GetDetails(string.Join(" and ", where.ToArray()), new
|
return this.GetDetails(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
ProductCode = $"%{Params.ProductCode}%",
|
ProductCode = $"%{Params.ProductCode}%",
|
||||||
ProductOrderNo = $"{Params.ProductOrderNo}",
|
ProductOrderNo =Params.ProductOrderNo,
|
||||||
ProductOrderendID = $"{Params.ProductOrderendID}"
|
ProductOrderendID = $"{Params.ProductOrderendID}"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ namespace NX.ERP.U8.Store
|
|||||||
bodyXml.setAttribute("caposcode", item.DestPostion);
|
bodyXml.setAttribute("caposcode", item.DestPostion);
|
||||||
bodyXml.setAttribute("iquantity", item.Qty);
|
bodyXml.setAttribute("iquantity", item.Qty);
|
||||||
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||||
|
|
||||||
}
|
}
|
||||||
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
||||||
|
|
||||||
|
|||||||
@@ -81,8 +81,7 @@ namespace NX.ERP.U8.Store
|
|||||||
|
|
||||||
}
|
}
|
||||||
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
||||||
var str = voucherParameter.DomBody.xml;
|
|
||||||
Console.WriteLine(str);
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return AddRdVoucher(voucherParameter);
|
return AddRdVoucher(voucherParameter);
|
||||||
|
|||||||
Reference in New Issue
Block a user