@ -1581,16 +1581,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
"isnull([150],0) RETQty,\n" +
"isnull([200],0) CANQty,\n" +
"isnull([800],0) NOTQty,\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)=0 then ISNULL([100],0)\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)=0 then ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([20 0],0)\n" +
"when ISNULL([10], 0) + isnull([20], 0) + isnull([100], 0) + ISNULL([150], 0) - ISNULL([200], 0) = ISNULL([10], 0) + isnull([20], 0) + isnull([100], 0) + ISNULL([150], 0) then 0\n" +
"ELSE 0 END SE_SA_CAN_QTY,\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([800],0)=0 then ISNULL([100],0)\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([800],0)=0 then ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([15 0],0)\n" +
"when ISNULL([10], 0) + isnull([20], 0) + isnull([100], 0) + ISNULL([150], 0) - ISNULL([800], 0) = ISNULL([10], 0) + isnull([20], 0) + isnull([100], 0) + ISNULL([150], 0) then 0\n" +
"ELSE 0 END SE_SA_NOT_QTY,\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)-ISNULL([800],0)>0 then ISNULL([100],0)\n" +
"ElSE 0 END SE_SA_DIFF_QTY,\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)-ISNULL([800],0)=isnull([100],0)+ISNULL([150],0) then \n" +
"ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)-ISNULL([800],0) \n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)-ISNULL([800],0)=ISNULL([10],0)+isnull([20],0)+ isnull([100],0)+ISNULL([150],0) then \n" +
"ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)\n" +
"ElSE 0 END ONLY_SE_QTY,\n" +
"case when ISNULL([10],0)+isnull([20],0)+isnull([100],0)+ISNULL([150],0)-ISNULL([200],0)-ISNULL([800],0)=-ISNULL([200],0)-ISNULL([800],0) then \n" +
"ISNULL([200],0)+ISNULL([800],0) \n" +
@ -1780,14 +1780,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
public async Task < string > GetReceiveShipSum ( RequestDto input )
{
var sebegin = input . Filters . Any ( p = > p . Column = = "sebegin" ) ? input . Filters . FirstOrDefault ( p = > p . Column = = "sebegin" ) . Value : "" ;
var seend = input . Filters . Any ( p = > p . Column = = "seend" ) ? input . Filters . FirstOrDefault ( p = > p . Column = = "seend" ) . Value : "" ;
var sabegin = input . Filters . Any ( p = > p . Column = = "sabegin" ) ? input . Filters . FirstOrDefault ( p = > p . Column = = "sabegin" ) . Value : "" ;
var saend = input . Filters . Any ( p = > p . Column = = "saend" ) ? input . Filters . FirstOrDefault ( p = > p . Column = = "saend" ) . Value : "" ;
var parcode = input . Filters . Any ( p = > p . Column = = "partCode" ) ? input . Filters . FirstOrDefault ( p = > p . Column = = "partCode" ) . Value : "" ;
List < EnumBusinessType > list = new List < EnumBusinessType > ( ) ;
list . Add ( EnumBusinessType . JisBBAC ) ;
list . Add ( EnumBusinessType . JisHBPO ) ;
@ -1820,14 +1817,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
{
entities = entities . Where ( p = > p . PartCode = = parcode ) . ToList ( ) ;
}
await _ recRepository . DbContext . BulkInsertAsync ( entities ) . ConfigureAwait ( false ) ;
IExporter _ csv = new CsvExporter ( ) ;
IExporter _ excel = new ExcelExporter ( ) ;
byte [ ] result = null ;