摘要:
///<summary>///根据DataTable生成Json树结构調用GetTreeJsonByTable(datatable,"MENUID","MENUNAME","PARENTID","0");///</summary>///<paramname="tabel">数据源</param>///<paramname="idCol">ID列</param>///<paramname="
阅读全文
posted @ 2013-02-05 15:40
liang--liang
阅读(4065)
推荐(2)
编辑
摘要:
publicstaticstringDataTable2Json(System.Data.DataTabledt){System.Text.StringBuilderjsonBuilder=newSystem.Text.StringBuilder();jsonBuilder.Append("{");jsonBuilder.AppendFormat("\"total\":{0},",dt.Rows.Count);jsonBuilder.Append("\"rows\":[");for(inti=0
阅读全文
posted @ 2013-02-05 15:33
liang--liang
阅读(4845)
推荐(0)
编辑
摘要:
protectedvoidExportExcel(DataTabledt){if(dt==null||dt.Rows.Count==0){return;}Microsoft.Office.Interop.Excel.ApplicationxlApp=newMicrosoft.Office.Interop.Excel.Application(); if(xlApp==null){return;}System.Globalization.CultureInfoCurrentCI=System.Threading.Thread.CurrentThread.CurrentCulture;System.
阅读全文
posted @ 2013-02-05 15:27
liang--liang
阅读(1481)
推荐(0)
编辑