DesignerBillLog.aspx.cs 879 B

12345678910111213141516171819202122232425262728293031
  1. using SiteCore;
  2. using SQLData;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Web;
  9. using System.Web.UI;
  10. using System.Web.UI.WebControls;
  11. using Utils.Serialization;
  12. public partial class EFinance_DesignerBillLog : BasePage
  13. {
  14. protected override void OnPreInit(EventArgs e)
  15. {
  16. _selfCheckPermission = true;
  17. }
  18. protected void Page_Load(object sender, EventArgs e)
  19. {
  20. if (!IsPostBack)
  21. {
  22. string ctid = GetString("ctid");
  23. StringBuilder sql = new StringBuilder();
  24. sql.AppendFormat("select * from CE_ErpDesignerBillLog where tid='{0}' order by id;", ctid);
  25. DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString());
  26. AppendScript("logData=" + JsonString.DataTable2AjaxJson(ds.Tables[0]) + ";");
  27. }
  28. }
  29. }