SVN r282
SVN-Revision: r282
This commit is contained in:
@@ -1217,40 +1217,4 @@ namespace Lskj.Control
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否有未保存的数据,并保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool VerificationInterface()
|
||||
{
|
||||
if (SystemInfo.Instance.EfficientVerification)
|
||||
{
|
||||
//页签验证
|
||||
if (!this.TcButtom.CheckIfSaved())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
//主表验证
|
||||
if (this.ModuleGridObj.GridControlObj.IsDataNotSaved())
|
||||
{
|
||||
DialogResult dialog = MessageUtil.Show("主表有数据未保存,是否保存", MessageBoxButtons.YesNo);
|
||||
if (dialog == DialogResult.Yes)
|
||||
{
|
||||
bool SaveResults = this.ModuleGridObj.SaveWhenSwitching();
|
||||
if (!SaveResults) return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user