DataTable dt = costFO.GetQueryTable(projectid, date); var newrow = from x in dt.Rows.Cast().Where(C => C.Field("CostMonthReportItem_Type") != "") select new { type = x.Field("CostMonthReportItem_Type").ToString(), name = x.Field("CostMonthReportItem_PayNext").ToString() }; StringBuilder jsons = new StringBuilder(); JavaScriptSerializer jss = new JavaScriptSerializer(); Dictionary drow = new Dictionary(); newrow.ToList().ForEach(x => { drow.Add(x.type.ToString(), x.name.ToString()); }); context.Response.Write(jss.Serialize(drow));,>,>

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-02-11
  • 2022-12-23
相关资源
相似解决方案