test2.aspx.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using SiteCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Web;
  8. using System.Web.UI;
  9. using System.Web.UI.WebControls;
  10. public partial class test2 : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. //http://xy.ifireant.com/Handler/taobaopush.ashx 同步地址
  15. //string sql = string.Format("select * from X_LOG where USERID=1 AND CONVERT(varchar,MSG)<>'' ORDER BY ID DESC");
  16. //DataTable dt = SqlHelper.ExecuteDataSet(sql).Tables[0];
  17. //return dt;
  18. //StringBuilder str = new StringBuilder();
  19. //str.AppendLine("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  20. //str.AppendLine("<layout xmlns=\"http://cloudprint.cainiao.com/print\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://cloudprint.cainiao.com/print http://cloudprint-docs-resource.oss-cn-shanghai.aliyuncs.com/lpml_schema.xsd\" xmlns:editor=\"http://cloudprint.cainiao.com/schema/editor\" id=\"CUSTOM_AREA\" width=\"100\" height=\"40\" left=\"0\" top=\"140\">");
  21. //str.AppendLine("<layout editor:_for_=\"1511229542957739\" id=\"1511229542958131\" width=\"80\" height=\"5\" left=\"5\" top=\"2\" style=\"zIndex:1;\">");
  22. //str.AppendLine(" <text style=\"fontFamily:SimHei;\">");
  23. //str.AppendLine(" <![CDATA[222222222区文本123]]>");
  24. //str.AppendLine(" </text>");
  25. //str.AppendLine("</layout>");
  26. ////str.AppendLine("<layout editor:_for_=\"1514858446271723\" id=\"1514858446272424\" width=\"66.4\" height=\"99.6\" left=\"43.6\" top=\"60.4\" style=\"zIndex:2;\">");
  27. ////str.AppendLine(" <image src=\"http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/ca18230e391b7a29b3a90b9d73f572d2.jpg\" />");
  28. ////str.AppendLine("</layout>");
  29. ////str.AppendLine("<layout editor:_for_=\"1516348625422440\" id=\"1516348625428321\" width=\"40\" height=\"24\" left=\"44.66\" top=\"9.74\" style=\"zIndex:3;\">");
  30. ////str.AppendLine(" <barcode type=\"code128\" style=\"opacity:1;hideText:true;rotation:90\" ratioMode=\"keepRatio\"><![CDATA[]]></barcode>");
  31. ////str.AppendLine("</layout>");
  32. //str.AppendLine("</layout>");
  33. //Response.Clear();
  34. //Response.Write(str.ToString());
  35. //Response.End();
  36. }
  37. }