本文整理汇总了C#中TreeListNode.GetDisplayText方法的典型用法代码示例。如果您正苦于以下问题:C# TreeListNode.GetDisplayText方法的具体用法?C# TreeListNode.GetDisplayText怎么用?C# TreeListNode.GetDisplayText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TreeListNode
的用法示例。
在下文中一共展示了TreeListNode.GetDisplayText方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsNodeMatchFilter
private static bool IsNodeMatchFilter(TreeListNode node, TreeListColumn column)
{
var filterValue = column.FilterInfo.AutoFilterRowValue.ToString();
if (node.GetDisplayText(column)
.ToLower()
.Contains(filterValue.ToLower()))
{
return true;
}
foreach (TreeListNode n in node.Nodes)
{
if (IsNodeMatchFilter(n, column))
{
return true;
}
}
return false;
}
示例2: IsNodeMatchFilter
bool IsNodeMatchFilter(TreeListNode node, TreeListColumn column)
{
string filterValue = treeListViTri.FindFilterText;
if (StringHelper.CoDauThanhKhongDau(node.GetDisplayText(column)).ToUpper().Contains(StringHelper.CoDauThanhKhongDau(filterValue).ToUpper())) return true;
foreach (TreeListNode n in node.Nodes)
if (IsNodeMatchFilter(n, column)) return true;
return false;
}
示例3: IsNodeMatchFilter
bool IsNodeMatchFilter(TreeListNode node, TreeListColumn column)
{
string filterValue = getValue(treeListLookUpDonViTreeList.FilterPanelText);
if (StringHelper.CoDauThanhKhongDau(node.GetDisplayText(column).ToUpper()).Contains(StringHelper.CoDauThanhKhongDau(filterValue.ToUpper()))) return true;
foreach (TreeListNode n in node.Nodes)
if (IsNodeMatchFilter(n, column)) return true;
return false;
}
示例4: IsNodeMatchFilter
bool IsNodeMatchFilter(TreeListNode node, TreeListColumn column)
{
string filterValue = treeListPhong.FindFilterText;
if (node.GetDisplayText(column).ToUpper().Contains(filterValue.ToUpper())) return true;
foreach (TreeListNode n in node.Nodes)
if (IsNodeMatchFilter(n, column)) return true;
return false;
}
示例5: InsertNodeToTree
private bool InsertNodeToTree(TreeListNode node, TreeListNode targetNode)
{
TreeListNode parentNode = (targetNode.ImageIndex == FORMICON) ? targetNode.ParentNode : targetNode;
int treeseq = parentNode.Nodes.Count;
if (treeseq == 999)
{
MessageBox.Show("节点数量超过系统上限!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}
EI.EIInfo inBlock = new EI.EIInfo();
EI.EIInfo outBlock;
inBlock.SetColName(1, 1, "fname");
inBlock.SetColName(1, 2, "name");
inBlock.SetColName(1, 3, "resname");
inBlock.SetColName(1, 4, "description");
inBlock.SetColName(1, 5, "shortcut");
inBlock.SetColName(1, 6, "treeno");
inBlock.SetColName(1, 7, "treeseq");
inBlock.SetColName(1, 8, "userid");
//string nodeName = node.Tag.ToString();
string nodeText = node.GetDisplayText(treeListColumn1);
string nodeResName = nodeText.Substring(nodeText.IndexOf('(') + 1, nodeText.Length - 1 - nodeText.IndexOf('(') -1);
string nodeDesc = nodeText.Substring(0, nodeText.IndexOf('('));
int nodeSeq = parentNode.Nodes.Count ;
string parentNodeName = "";
parentNodeName = (parentNode.ImageIndex == FORMICON) ? parentNode.ParentNode.Tag.ToString() : parentNode.Tag.ToString();
inBlock.SetColVal(1, 1, "name", parentNodeName + nodeResName);
inBlock.SetColVal(1, 1, "fname", parentNodeName);
inBlock.SetColVal(1, 1, "description", nodeDesc);
inBlock.SetColVal(1, 1, "shortcut", " ");
inBlock.SetColVal(1, 1, "resname", nodeResName);
inBlock.SetColVal(1, 1, "treeno", "0");
inBlock.SetColVal(1, 1, "treeseq", nodeSeq.ToString("d3"));
inBlock.AddNewBlock();
inBlock.SetColName(1, "NAME");
inBlock.SetColVal(2, 1, 1, parentNodeName);
inBlock.SetColName(2, "cursystem");
inBlock.SetColVal(2, 1, 2, comboApp.EditValue.ToString().Split(':')[0]);
outBlock = EI.EITuxedo.CallService("epestree_insb", inBlock);
if (outBlock.sys_info.flag != 0)
{
ShowReturnMsg(outBlock);
return false;
}
return true;
}
示例6: RefreshResList
private void RefreshResList(TreeListNode node)
{
if (IsChanged())
{
DialogResult rst = EFMessageBox.Show(EP.EPES.EPESC0000089/*已修改群组资源权限,是否保存?*/, EP.EPES.EPESC0000024, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (rst == DialogResult.Yes)
{
SaveAuth();
}
}
listFormGrant.Clear();
listFormRevok.Clear();
listButtGrant.Clear();
listButtRevok.Clear();
subjType = GetSubjType(node);
if (node.Tag != null)
{
subjEname = node.Tag.ToString();
}
else
{
subjEname = treeListUser.FocusedNode.GetValue("ID").ToString();
}
subjDescript = node.GetDisplayText(2) == null ? "" : node.GetDisplayText(2);
if (treeListForm.Nodes.Count == 0)
{
QryAuthForm();
}
else
{
RefreshFormList();
}
}