摘要:
//准备序化列对象 XmlSerializer xs = new XmlSerializer(obj.GetType()); MemoryStream ms = new MemoryStream(); //设置序序化XML格式 XmlWriterSettings xws = new XmlWriterSettings(); xws.Indent = true; xws.OmitXml... 阅读全文
摘要:
$(function(){ $("#treeTaocan2").treegrid({ idField:'id', treeField:'text', nowrap: false, rownumbers: true, checkbox: true, lines: false, dnd: true, onlyLeafCheck: true, animate: true, collapsible: true, singleSelect: true, columns:[[ {title:... 阅读全文
摘要:
function searchTreeNode() { var searchText = $("#searchDept").val(); if (searchText == "") return; clearTreeNodeSearch(); //获取根结点 var root = $("#deptedit").tree("getRoot"); var nodes = $("#deptedit").tree("getChildren", root.target); f... 阅读全文
摘要:
ListItem li = null; if (value != null) { //判断下拉框是否存在该value li = drp_hplxrRole.Items.FindByValue(value.ToString()); if (li != null) { drp_hplxrRole.SelectedValue = li.Value; ... 阅读全文
摘要:
select i.name,[Type]=case when i.is_unique=1 and is_primary_key=1 then '主键' when i.is_unique=1 and is_primary_key=0 then '唯一键' else '索引' end,TypeRemark=i.type_desc from sys.indexes i where i.[object_id]=object_id('表名') and i.name is not null unio... 阅读全文