SVN r816
SVN-Revision: r816
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user