修改
This commit is contained in:
@@ -259,11 +259,22 @@ FROM MaterialAppVouch a
|
||||
/// </summary>
|
||||
/// <param name="Code"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.Response.Store.MaterialAppVouchAndPostName> GetModelAndPost(string OrderCode)
|
||||
public IEnumerable<Model.Response.Store.MaterialAppVouchAndPostName> GetModelAndPost(string OrderCode, string invCode)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(OrderCode))
|
||||
if (!string.IsNullOrEmpty(OrderCode) && !string.IsNullOrEmpty(invCode))
|
||||
{
|
||||
return this.GetListAndPost(" MA.cCode=@OrderCode AND MAS.cInvCode = @invCode ", new { OrderCode, invCode });
|
||||
}
|
||||
else
|
||||
if (!string.IsNullOrEmpty(OrderCode))
|
||||
{
|
||||
|
||||
return this.GetListAndPost(" MA.cCode=@OrderCode", new { OrderCode });
|
||||
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(invCode))
|
||||
{
|
||||
return this.GetListAndPost(" MAS.cInvCode = @invCode ", new { invCode });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user