Order_Log.aspx.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. //string tid = ctid;
  30. //if (tid.IndexOf("C") != -1)
  31. //{
  32. // int idxC = tid.IndexOf("C");
  33. // tid = tid.Substring(idxC + 3, tid.Length - idxC - 3);
  34. // StringBuilder sql2 = new StringBuilder();
  35. // sql2.AppendFormat("select * from view_erptradelog where tid like '%{0}' order by id;", tid);
  36. // DataSet ds2 = DbHelper.DbConn.ExecuteDataset(sql2.ToString());
  37. // AppendScript("logDataTotal=" + JsonString.DataTable2AjaxJson(ds2.Tables[0]) + ";");
  38. //}
  39. }
  40. //foreach (DataRow dr in dt.Rows)
  41. //{
  42. //}
  43. }
  44. }