SVN r694
SVN-Revision: r694
This commit is contained in:
@@ -619,6 +619,29 @@ namespace Lskj.Control
|
||||
}
|
||||
GridDetailModel model = this.tcButtom.GetGridDetailModel(tabPage);
|
||||
DataRow rowItem = this.ModuleGridObj.GridControlObj.GetViewFocusedDataRow();
|
||||
if (!string.IsNullOrEmpty(SysModel.PageVisbleCond) )
|
||||
{
|
||||
string condSql= ReplaceHelper.ReplaceRowParam(rowItem, ReplaceHelper.ReplaceUserInfo(SysModel.PageVisbleCond)).Replace("''", "'");
|
||||
// 形如 "1,2,3" 的返回值
|
||||
string numberList = MainImpl.GetResult(condSql) + "";
|
||||
|
||||
// ---------- 判断当前 orderid 是否在列表中 ----------
|
||||
string orderIdStr = model.Orderid.ToString(); // 统一转成字符串
|
||||
string[] idArr = numberList.Split(new[] { ',' },
|
||||
StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
if (!idArr.Contains(orderIdStr))
|
||||
{
|
||||
tabPage.PageVisible = false;
|
||||
return; // 不包含当前 orderid,直接退出
|
||||
}
|
||||
else
|
||||
{
|
||||
tabPage.PageVisible = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (IsDynamicDetailType)
|
||||
{
|
||||
//string mainModuleCode = model.ParentModuleCode;
|
||||
|
||||
Reference in New Issue
Block a user