| 1234567891011121314151617181920212223242526272829303132333435 |
- using SiteCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using Utils;
- public partial class waybillPrintPage : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string valuestr = CommonHelper.GetString("value");
- 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=\"59\" height=\"5\" left=\"5655550\" top=\"20000\" style=\"zIndex:1;font-size:18px;font-weight:bold;\">");
- str.AppendLine(" <text style=\"fontFamily:SimHei;fontSize:10;align:center;\">");
- str.AppendLine(" <![CDATA[" + valuestr + "]]>");
- 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();
- }
- }
|