This commit is contained in:
liqionghai
2025-08-21 16:54:17 +08:00
parent 838cd44862
commit 64b8abf342
3 changed files with 7 additions and 2 deletions

View File

@@ -354,9 +354,9 @@ namespace Pilot.Report.Exploitation.AccountsReceivable
n++;
//根据订单号分组合并单元格
if(list[i]["CONTRACTNUMBER"].ToString() != GroupCONTRACTNUMBER || i == list.Count-2)
if(list[i]["CONTRACTNUMBER"].ToString() != GroupCONTRACTNUMBER || i == list.Count-3)
{
int k = (i == list.Count - 2 && list[i]["CONTRACTNUMBER"].ToString() == GroupCONTRACTNUMBER) ? 0 : 1;
int k = (i == list.Count - 3 && list[i]["CONTRACTNUMBER"].ToString() == GroupCONTRACTNUMBER) ? 0 : 1;
if (GroupCount > 1 || k == 0)
{
// 创建CellRangeAddress对象