| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using SiteCore;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- public partial class test2 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- //http://xy.ifireant.com/Handler/taobaopush.ashx 同步地址
- //string sql = string.Format("select * from X_LOG where USERID=1 AND CONVERT(varchar,MSG)<>'' ORDER BY ID DESC");
- //DataTable dt = SqlHelper.ExecuteDataSet(sql).Tables[0];
- //return dt;
- //StringBuilder str = new StringBuilder();
- //str.AppendLine("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
- //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\">");
- //str.AppendLine("<layout editor:_for_=\"1511229542957739\" id=\"1511229542958131\" width=\"80\" height=\"5\" left=\"5\" top=\"2\" style=\"zIndex:1;\">");
- //str.AppendLine(" <text style=\"fontFamily:SimHei;\">");
- //str.AppendLine(" <![CDATA[222222222区文本123]]>");
- //str.AppendLine(" </text>");
- //str.AppendLine("</layout>");
- ////str.AppendLine("<layout editor:_for_=\"1514858446271723\" id=\"1514858446272424\" width=\"66.4\" height=\"99.6\" left=\"43.6\" top=\"60.4\" style=\"zIndex:2;\">");
- ////str.AppendLine(" <image src=\"http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/ca18230e391b7a29b3a90b9d73f572d2.jpg\" />");
- ////str.AppendLine("</layout>");
- ////str.AppendLine("<layout editor:_for_=\"1516348625422440\" id=\"1516348625428321\" width=\"40\" height=\"24\" left=\"44.66\" top=\"9.74\" style=\"zIndex:3;\">");
- ////str.AppendLine(" <barcode type=\"code128\" style=\"opacity:1;hideText:true;rotation:90\" ratioMode=\"keepRatio\"><![CDATA[]]></barcode>");
- ////str.AppendLine("</layout>");
- //str.AppendLine("</layout>");
- //Response.Clear();
- //Response.Write(str.ToString());
- //Response.End();
- }
- }
|