FunctionModule.aspx.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. namespace LYFZ.WeixinServers.WeiXinAPP
  9. {
  10. public partial class FunctionModule : System.Web.UI.Page
  11. {
  12. public System.Text.StringBuilder FunctionModuleListHtmlTb = new System.Text.StringBuilder();
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. CommonHandler.CheckLoginJump(this);
  16. for (int i = 0; i < Global.FunctionListDaTable.Rows.Count; i++)
  17. {
  18. DataRow row = Global.FunctionListDaTable.Rows[i];
  19. FunctionModuleListHtmlTb.Append("<tr>"
  20. + " <td>" + (i + 1).ToString() + "</td>"
  21. + " <td>" + row["FunctionName"].ToString() + "</td>"
  22. + " <td>" + row["FunctionCode"].ToString() + "</td>"
  23. + "<td>" + Convert.ToDateTime(row["CreateTime"]).ToString("yyyy-MM-dd HH:mm") + "</td>"
  24. + " <td>"
  25. + "<a href=\"CustomerList.aspx?eid=" + row["id"].ToString() + "\" style=\"margin-right:10px;\"><i class=\"icon-pencil\"></i></a>"
  26. + "<a href=\"#myModal\" role=\"button\" onclick=\"setModalValue('" + row["id"].ToString() + "@" + "')\" data-toggle=\"modal\"><i class=\"icon-remove\"></i></a>"
  27. + "</td>"
  28. + " </tr>");
  29. }
  30. }
  31. }
  32. }