12 2011 档案
摘要:<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Ma
阅读全文
摘要:if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Cells[6].Text = Server.HtmlDecode(e.Row.Cells[6].Text); e.Row.Cells[7].Text = Server.HtmlDecode(e.Row.Cells[7].Text); e.Row.Cells[8].Text = Server.HtmlDecode(e.Row.Cells[8].Text); e.Row.Cells[9].Text = Server.HtmlDecode(e.Row.Cells[9].Text);//
阅读全文
摘要:var linqbitem = from wip in dt_onwip.AsEnumerable() join bitem in dt_cos_bitem.AsEnumerable() on wip.Field<string>("item_no").Trim() equals bitem.Field<string>("item_no").Trim() into s from t in s.DefaultIfEmpty() select new { item_no = wip.Field<string>("i
阅读全文
摘要:/// <summary> /// 匯出到Excel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnExport_Click(object sender, EventArgs e) { ExportGridViewToExcel(Response, GridView_trdord, "Tracing"); } //到出e
阅读全文
摘要://动态创建DataTable用来绑定到GridView。DataTable dt_per = new DataTable(); DataColumn column_per; column_per = new DataColumn(); column_per.DataType = System.Type.GetType("System.String"); column_per.ColumnName = "ord_nbr"; column_per.ReadOnly = true; column_per.Unique = true; dt_per.Colum
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=big5
阅读全文
