OffLineList.aspx.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 EOrder_OffLineList : BasePage
  13. {
  14. protected override void OnPreInit(EventArgs e)
  15. {
  16. _repTitle = "线下单列表";
  17. PmTag = "offlinelist";
  18. //_selfCheckPermission = true;
  19. _filterItem = "order,shop,wang,fukuan,moeny,memo,cus,des,state";
  20. _keyFilterVisible = false;
  21. _addVisible = false;
  22. }
  23. protected void Page_Load(object sender, EventArgs e)
  24. {
  25. if (!IsPostBack)
  26. {
  27. string sData = GetString("sData");
  28. if (sData != "") AppendScript("openPageData=" + sData + ";");
  29. AppendScript("viewUrl='" + webConfig.ltFileSiteUrl + "/d/fx';uploadUrl ='" + webConfig.ltSimUploadUrl + "?ut=fx';");
  30. //string ctid = GetString("ctid");
  31. //string tid = GetString("tid");
  32. //StringBuilder sql = new StringBuilder();
  33. //sql.AppendFormat("select * from view_erptradecell where ctid={0};",ctid);
  34. //sql.AppendFormat("select * from ce_erpBill where tid={0};",0);
  35. //sql.AppendFormat("select * from ce_ErpReturnCash where tid={0};",0);
  36. //sql.AppendFormat("select * from ce_erptradorder where tid={0};",0);
  37. //sql.AppendFormat("select * from ce_erptradeLog where AfterSaleState>=0 and ctid={0};",0);
  38. //DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString());
  39. //AppendScript("tradeData=" + JsonString.DataTable2AjaxJson(ds.Tables[0]) + ";");
  40. //AppendScript("billData=" + JsonString.DataTable2AjaxJson(ds.Tables[1]) + ";");
  41. //AppendScript("cashData=" + JsonString.DataTable2AjaxJson(ds.Tables[2]) + ";");
  42. //AppendScript("orderData=" + JsonString.DataTable2AjaxJson(ds.Tables[3]) + ";");
  43. //selType.DataSource = dt;
  44. //selType.DataValueField = "ID";
  45. //selType.DataTextField = "Name";
  46. //selType.DataBind();
  47. }
  48. //foreach (DataRow dr in dt.Rows)
  49. //{
  50. //}
  51. }
  52. }