请问如何获取指定的view
金蝶云社区-云小爱
云小爱
0人赞赏了该文章 2,395次浏览 未经作者许可,禁止转载编辑于2014年10月23日 09:37:31

//打开view
BillShowParameter showParam = new BillShowParameter();
showParam.FormId = formId;
showParam.OpenStyle.ShowType = Kingdee.BOS.Core.DynamicForm.ShowType.InContainer;
showParam.OpenStyle.TagetKey = "FPanelNew";
showParam.PageId = this.View.PageId + "_" + strId;
showParam.Status = showStatus;
showParam.CustomComplexParams.Add("FUREC", rec);
if (showStatus != OperationStatus.ADDNEW)
showParam.PKey = strPKey;
this.View.ShowForm(showParam);

//关闭以前
IDynamicFormView view = this.View.GetView(this.View.PageId + "_" + strId); //**为何获取不到打开的view? pageid是对的
if (view != null)
{
view.Close();
this.View.SendDynamicFormAction(view);
}
1.如何获取指定打开的view
2.是否有方法遍历所有的view呢?