|
|
@ -556,7 +556,12 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 销售退货单
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="queryJson"></param>
|
|
|
|
/// <param name="jqgridparam"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public DataTable GetGridJsonXiaoShou(string queryJson, ref Pagination jqgridparam) |
|
|
|
{ |
|
|
|
DataTable dt = new DataTable(); |
|
|
@ -1988,7 +1993,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu |
|
|
|
#region [SQL]
|
|
|
|
string sql = @"
|
|
|
|
select a.ID,a.ApplyNegCode,a.Sequence,a.SourceDetailID,a.InvCode,b.InvName,b.InvDesc,b.InvStd,b.InvUnit, |
|
|
|
CAST(a.Quantity AS DECIMAL(18,{0})) as Quantity |
|
|
|
CAST(a.Quantity AS DECIMAL(18,{0})) as Quantity, |
|
|
|
CAST(a.Amount AS DECIMAL(18,{0})) as Amount,CAST(a.IssueNegQuantity AS DECIMAL(18,{0})) as IssueNegQuantity ,a.ExtensionID,a.MUSERName,a.MTIME ,CAST(c.LOTQTY AS DECIMAL(18,{0})) as LOTQTY |
|
|
|
,f.Colspan ,f.ProjectCode ,f.BatchCode ,f.Version ,f.Brand ,f.cFree1 ,f.cFree2 ,f.cFree3 ,f.cFree4 |
|
|
|
,f.cFree5 ,f.cFree6 ,f.cFree7 ,f.cFree8 ,f.cFree9 ,f.cFree10 |
|
|
|