SVN r591
SVN-Revision: r591
This commit is contained in:
@@ -121,6 +121,10 @@ namespace Lskj.Control
|
||||
/// 完整数据源(输入框为空时查询出来的数据源)
|
||||
/// </summary>
|
||||
public DataTable CompleteData;
|
||||
/// <summary>
|
||||
/// 多选时返回全部(多选时,不是根节点是否能被选中)
|
||||
/// </summary>
|
||||
public bool SelectAll=false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -262,6 +266,7 @@ namespace Lskj.Control
|
||||
}
|
||||
else
|
||||
{
|
||||
this.EditValue = "";
|
||||
this.Text = "";
|
||||
}
|
||||
}
|
||||
@@ -537,7 +542,15 @@ namespace Lskj.Control
|
||||
string ids = "";
|
||||
if (this.isMultiClick)
|
||||
{
|
||||
ids = Model.TreeCheckModel.Equals("1") ? this._popup.TreeViewExObj.GetCheckValues(true) : this._popup.TreeViewExObj.GetCheckValues();
|
||||
//ids = Model.TreeCheckModel.Equals("1") ? this._popup.TreeViewExObj.GetCheckValues(true) : this._popup.TreeViewExObj.GetCheckValues();
|
||||
|
||||
/*2025-05-13日改
|
||||
TreeCheckModel是设置选择模式的,为1的情况下,选中父节点后会自动选中所有子节点。直接根据TreeCheckModel控制是否只选择根节点感觉有问题
|
||||
并且GetCheckValues(true)和GetCheckValues()效果相同(GetCheckValues有个不带参数的方法,里面默认为ture)
|
||||
工具中和bs里 132-135都是只能选末级,136-139可以全选
|
||||
true返回全部,false只返回根节点
|
||||
*/
|
||||
ids = this.SelectAll ? this._popup.TreeViewExObj.GetCheckValues(true) : this._popup.TreeViewExObj.GetCheckValues(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user