摘要:
private void DataTable2Excel(System.Data.DataTable dtData) ...{ System.Web.UI.WebControls.DataGrid dgExport = null; System.Web.HttpContext curContext = System.Web.HttpContext.Current; System.IO.StringWriter strWriter = null; System.Web.UI.HtmlTextWriter htmlWriter = null; if (dtData != null) ...{ c 阅读全文
摘要:
根据月份算这个月的天数。C# code DateTime d = new DateTime(2008,8,8); System.Globalization.Calendar c = new System.Globalization.GregorianCalendar(); int daysInAugust = c.GetDaysInMonth(d.Year, d.Month); // 31法定节假日that is a bit difficult, you might:C# code DateTime[] m_Holidays = new DateTime[] { new DateTime(20 阅读全文