Order_Log.aspx.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using BizCom;
  2. using Castle.ActiveRecord;
  3. using SQLData;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Data;
  7. using System.Text;
  8. using System.Web;
  9. using System.Web.UI;
  10. using System.Web.UI.WebControls;
  11. using Utils;
  12. using SiteCore;
  13. using Utils.Serialization;
  14. public partial class EOrder_Order_Log : BasePage
  15. {
  16. protected override void OnPreInit(EventArgs e)
  17. {
  18. _selfCheckPermission = true;
  19. }
  20. protected void Page_Load(object sender, EventArgs e)
  21. {
  22. if (!IsPostBack)
  23. {
  24. string ctid = GetString("ctid");
  25. StringBuilder sql = new StringBuilder();
  26. sql.AppendFormat("select * from view_erptradelog where tid='{0}' order by id;", ctid);
  27. DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString());
  28. AppendScript("logData=" + JsonString.DataTable2AjaxJson(ds.Tables[0]) + ";");
  29. AppendScript("ctid='" + ctid + "';");
  30. //string tid = ctid;
  31. //if (tid.IndexOf("C") != -1)
  32. //{
  33. // int idxC = tid.IndexOf("C");
  34. // tid = tid.Substring(idxC + 3, tid.Length - idxC - 3);
  35. // StringBuilder sql2 = new StringBuilder();
  36. // sql2.AppendFormat("select * from view_erptradelog where tid like '%{0}' order by id;", tid);
  37. // DataSet ds2 = DbHelper.DbConn.ExecuteDataset(sql2.ToString());
  38. // AppendScript("logDataTotal=" + JsonString.DataTable2AjaxJson(ds2.Tables[0]) + ";");
  39. //}
  40. }
  41. //foreach (DataRow dr in dt.Rows)
  42. //{
  43. //}
  44. }
  45. }