void ytTreeView1_FormatText(YtWinContrl.com.events.TextFormatEvent e) { //显示所有信息 //e.FmtText = e.row["KINDNAME"].ToString() + " |上级编码=" + e.row["SUPERCODE"] + " |类别名称=" + e.row["KINDCODE"] + " |拼音码=" + e.row["PYCODE"] + " |五笔码=" + e.row["WBCODE"] + " |是否末节点=" + e.row["IFEND"] + " |是否使用=" + e.row["IFUSE"] + " |操作员ID=" + e.row["USERID"] + " |操作员姓名=" + e.row["USERNAME"] + " |修改时间=" + e.row["RECDATE"] + " |医疗机构编码=" + e.row["CHOSCODE"]; e.FmtText = e.row["KINDNAME"].ToString(); }
void ytTreeView1_FormatText(YtWinContrl.com.events.TextFormatEvent e)//函数 { if (e.row["KINDNAME"] != null) { toolStripButton1.Enabled = false; } //显示所有信息 //e.FmtText = e.row["KINDNAME"].ToString() + " |上级编码=" + e.row["SUPERCODE"] + " |类别名称=" + e.row["KINDCODE"] + " |拼音码=" + e.row["PYCODE"] + " |五笔码=" + e.row["WBCODE"] + " |是否末节点=" + e.row["IFEND"] + " |是否使用=" + e.row["IFUSE"] + " |操作员ID=" + e.row["USERID"] + " |操作员姓名=" + e.row["USERNAME"] + " |修改时间=" + e.row["RECDATE"] + " |医疗机构编码=" + e.row["CHOSCODE"]; if (e.row["IFUSE"].ToString() == "1") { a = "启用"; } if (e.row["IFUSE"].ToString() == "0") { a = "停用"; } e.FmtText = e.row["KINDNAME"].ToString() + " |" + a; }
void ytTreeView1_FormatText(YtWinContrl.com.events.TextFormatEvent e) { string a = ""; string b = ""; if (e.row["IFUSE"].ToString() == "1") { a = "启用"; } if (e.row["IFUSE"].ToString() == "0") { a = "停用"; } if (e.row["IFEND"].ToString() == "1") { b = "末节点"; } else { b = "非末节点"; } e.FmtText = e.row["COUNTNAME"].ToString() + " |" + a;// +" |" + b; }
void EQKind_ytTreeView_FormatText(YtWinContrl.com.events.TextFormatEvent e) { e.FmtText = e.row["KINDNAME"].ToString(); }
void UseStatus_ytTreeView_FormatText(YtWinContrl.com.events.TextFormatEvent e) { e.FmtText = "[" + e.row["STATUSCODE"].ToString() + "]" + e.row["STATUSNAME"].ToString(); }
void ytTreeView1_FormatText(YtWinContrl.com.events.TextFormatEvent e)//显示节点 { e.FmtText = e.row["KINDNAME"].ToString(); }