SVN r1246

SVN-Revision: r1246
This commit is contained in:
cyf
2026-06-30 02:08:04 +00:00
parent ff57fcd508
commit 4ee191a023
2 changed files with 20 additions and 5 deletions
+17 -2
View File
@@ -4031,7 +4031,8 @@ namespace Lskj.Control.Model
if (item is BaseUserControl)
{
BaseUserControl baseUser = item as BaseUserControl;
condition += string.Format("{0}={1} ", baseUser.LabelText, baseUser.EditText);
condition += string.Format("{0}:{1} ", baseUser.LabelText, baseUser.EditText);
}
}
@@ -4068,15 +4069,29 @@ namespace Lskj.Control.Model
// 第一行的索引
int newRowNum = sheet.FirstRowNum;
int filterLastColumnIndex = NumberOfColumns > 0 ? NumberOfColumns - 1 : 0;
IRow originalHeaderRow = sheet.GetRow(newRowNum);
if (originalHeaderRow != null && originalHeaderRow.LastCellNum > 0)
{
filterLastColumnIndex = originalHeaderRow.LastCellNum - 1;
}
// 向下移动所有行(包括第一行),为新行腾出空间
sheet.ShiftRows(newRowNum, sheet.LastRowNum, InsertRows);
// 设置筛选器位置(多表头不用设置)
if (!isBanded)
{
int lastRowNum = sheet.LastRowNum;
var range = new CellRangeAddress(InsertRows, lastRowNum, 0, sheet.GetRow(1).LastCellNum - 1);//设置到第二行
IRow headerRow = sheet.GetRow(newRowNum + InsertRows);
if (headerRow != null && headerRow.LastCellNum > 0)
{
filterLastColumnIndex = headerRow.LastCellNum - 1;
}
if (lastRowNum >= newRowNum + InsertRows)
{
var range = new CellRangeAddress(newRowNum + InsertRows, lastRowNum, 0, filterLastColumnIndex);
sheet.SetAutoFilter(range); // 设置新的筛选器范围
}
}
for (int i = 0; i < InsertRows; i++)
{
+1 -1
View File
@@ -353,7 +353,7 @@ namespace Lskj.Control
this.InitializePrintFile();
// 常用工具
this.InitializeCommonTool();
if (!BaseModuleImpl.HasStepFlow(this.Model.ModuleCode))
if (!BaseModuleImpl.HasStepFlow(this.Model.ModuleCode)|| this.SysModel.HideReviewBut)
{
this.btnApply.Visible = false;
this.btnAdd.Location = this.btnUpdate.Location;