SVN-Revision: r816
This commit is contained in:
cyf
2025-07-01 09:30:57 +00:00
parent 6a5c4a3290
commit fd1c1b8a3f
3 changed files with 32 additions and 3 deletions
@@ -3798,6 +3798,23 @@ namespace Lskj.PubBillSpecial
private bool BillSave(int comfirm = 0, bool canTipMsg = true)
{
bool saveResult = false;
if (this.gridEx != null)
{
DataRow[] modifiedRows = (this.gridEx.GridControlObj.GridControl.DataSource as DataTable)
.Rows
.Cast<DataRow>()
.Where(x => x.RowState == DataRowState.Modified || x.RowState == DataRowState.Added)
.ToArray();
if (modifiedRows != null && modifiedRows.Length >0)
{
this.gridEx.isSuccessfullySaved = false;
this.gridEx.BtnSave.PerformClick();
if (!this.gridEx.isSuccessfullySaved) return false;
}
}
if (this.ControlObj.VerifyNull())
{
//保存前执行某个右键
@@ -6618,6 +6635,11 @@ namespace Lskj.PubBillSpecial
}
}
}
else
{
MessageUtil.Show("扫码配置错误");
return;
}
break;
}