SVN-Revision: r258
This commit is contained in:
cyf
2025-02-08 06:34:46 +00:00
parent e910b8b55b
commit e776f3bd62
21 changed files with 2607 additions and 393 deletions
+41 -3
View File
@@ -1411,7 +1411,7 @@ namespace Lskj.Control
//Tips = "条件判断错误:\r\n" + Tips;
//string Message = ErrorMessage.PromptErrorMessage(ex, "", Tips);
////MessageUtil.Show("条件判断错误:\r\n" + Tips);
LogHelper.Instance.WriteError(ex);
if(!ex.Message.Equals("该字符串未被识别为有效的布尔值。")) LogHelper.Instance.WriteError(ex);
}
return result;
}
@@ -3233,7 +3233,7 @@ namespace Lskj.Control
{
this.SysModel = sysModel;
this.Model = model;
this.gcMain.DisableFieldSources = this.SysModel.DisableFieldSources;
//if (this.Model is DynamicModuleDetailModelInfo)
//{
// DynamicModuleDetailModelInfo dynamic = this.Model as DynamicModuleDetailModelInfo;
@@ -5063,4 +5063,42 @@ namespace Lskj.Control
int focusedRowHandle = this.gcMain.GridView.FocusedRowHandle;
GridColumn[] Columns = this.gcMain.GridView.GetSelectedCells(focusedRowHandle);//当前选中的单元格
//判断是否为最后一行,最后一列
if (Columns.Length > 0 && Columns[0].VisibleIndex == this.gcMain.GridView.Columns.
if (Columns.Length > 0 && Columns[0].VisibleIndex == this.gcMain.GridView.Columns.Count - 1 && focusedRowHandle == this.gcMain.GridView.RowCount - 1)
{
this.AddGridViewRecord();
}
//判断表格是否为空
if (this.gcMain.GridView.RowCount == 0)
{
this.AddGridViewRecord();
}
}
}
}
catch (Exception ex)
{
}
}
#endregion
/// <summary>
/// 切换时保存(作为明细页签被切换时)
/// </summary>
/// <returns></returns>
public bool SaveWhenSwitching()
{
this.SaveResults = false;
if (this.pl_buttom.Visible && this.btnSave.Visible && this.btnSave.Enabled)
{
this.SaveGridRecord(false);
}
return SaveResults;
}
}
}