<% string id = Shop.Tools.RequestTool.RequestSafeString("id"); int loop = Shop.Tools.RequestTool.RequestInt("loop",0); string where = ""; int Count = 1; if (!id.Contains(",")){ where = "id = lbsql{"+id+"}"; }else{ string[] ids = id.Split(','); Count = ids.Count(); if (ids[loop] != "") { where = "id = lbsql{"+ ids[loop] +"}"; } } Lebi_Order model = B_Lebi_Order.GetModel(where); if (model == null) { model = new Lebi_Order(); } List pros = B_Lebi_Order_Product.GetList("Order_id=" + model.id + "", ""); List comms = B_Lebi_Comment.GetList("TableName='Order' and Keyid=" + model.id + " and User_id = "+ model.User_id +" and Admin_id = 0", "id desc"); %> <%=Tag("装箱单")%>-<%=Tag("单据打印")%>-<%=site.title%> <%if ((loop+1) < Count){ %> <%} %>
WWW.MOJOII.COM
Packing Slip
Ship To: <%=model.T_Name %> Ship From: MojoII
http://www.mojoii.com
Address: <%=model.T_Address %> <%=model.T_Postalcode %>
<%=Shop.Bussiness.EX_Area.GetAreaNameDesc(model.T_Area_id,999)%>
Address: PO BOX 13616
Mill Creek,WA 98082
United States
Email: <%=model.T_Email %> Email: mojoii@live.com
<%int totalqty = 0;decimal totalnetweight = 0;decimal totalweight = 0;decimal totalvolume = 0; foreach (Shop.Model.Lebi_Order_Product pro in pros) { %> <%totalqty += pro.Count;totalnetweight += pro.NetWeight;totalweight += pro.Weight;totalvolume += pro.Volume;; } %>
Transaction ID:<%=model.Code %>
Item # Item Title Qty Price Subtotal
<%=pro.Product_Number%>  <%=Shop.Bussiness.Language.Content(pro.Product_Name, CurrentLanguage)%><%if (pro.ProPerty134!=""){ %>  <%=pro.ProPerty134%><%} %> <%=pro.Count%> <%=FormatMoney(pro.Price)%> <%=FormatMoney(pro.Money)%>
Shipping & Handling: <%=FormatMoney(model.Money_Transport)%>
Shipping Insurance: <%=FormatMoney(0)%>
Total: <%=FormatMoney(model.Money_Order)%>