You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2169 lines
105 KiB
Plaintext
2169 lines
105 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_OrderPrint.aspx.cs" Inherits="TradeManage.DingDan.DD_OrderPrint" %>
|
|
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>订单打印</title>
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css"
|
|
media="screen" />
|
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
<%-- <script src="../Scripts/LodopFuncs.js" type="text/javascript"></script>--%>
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
<script src="../Scripts/JSLINQ.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
|
var WindowLoadModel = new WindowLoad();
|
|
var OrderId = 0;
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
|
|
CreateDataGrid();
|
|
$("#txt_KWCode").focus();
|
|
$(document).keyup(function (event) {
|
|
if (event.keyCode == 13&&$("#txt_KWCode").is(":focus") == true) {
|
|
GetModel();
|
|
|
|
}
|
|
|
|
|
|
});
|
|
//GetModel();
|
|
$("#" + datagrid1.TableID + " a[CommandName='cmdLook']").live("click", function () {
|
|
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
|
|
var model = datagrid1.Get_Model(RowIndex);
|
|
// window.location.href = "DD_OrderLook.aspx?OrderId=" + model.OrderId;
|
|
// window.parent.addTab("订单查看", "DingDan/DD_OrderLook.aspx?Title=订单打印&OrderId=" + model.OrderId, true);
|
|
window.parent.addTab("订单修改", "DingDan/DD_OrderGoodsMateForTM.aspx?Title=订单查询&OrderId=" + model.OrderId, true);
|
|
|
|
});
|
|
$("#" + datagrid1.TableID + " input[CommandName='cmdEdit']").live("click", function () {
|
|
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
|
|
var model = datagrid1.Get_Model(RowIndex);
|
|
if (model.State != 1) {
|
|
alert("该订单已经发货或者取消,不能拆分");
|
|
return;
|
|
}
|
|
if (model.IsSpare == 0)
|
|
window.parent.addTab("拆分发包", "DingDan/DD_OrderSpare.aspx?Title=订单打印&OrderId=" + model.OrderId, true);
|
|
else
|
|
CancelOrderSpare(model.OrderId);
|
|
});
|
|
$("#" + datagrid1.TableID + " input[type='checkbox']").live("click", function () {
|
|
var num = $("#" + datagrid1.TableID + " input[type='checkbox']:checked").length;
|
|
if ($("#" + datagrid1.TableID + "_SelectAll").is(":checked") == true)
|
|
num = num - 1;
|
|
$("#a_select").html("已选中" + num + "条");
|
|
});
|
|
|
|
$("#cmdAdd").bind("click", function () {
|
|
var SelectListModels = datagrid1.GetSelectListModel();
|
|
if (SelectListModels == null || $(SelectListModels).length == 0) {
|
|
alert("请选择要开启或者关闭的评价");
|
|
return;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//var myDate = new Date();
|
|
//var day = myDate.getDate();
|
|
//var month = myDate.getMonth();
|
|
|
|
$("#btn_PrintFP").bind("click", function () {
|
|
|
|
PrintFP();
|
|
|
|
});
|
|
|
|
$("#cmdSavePrint").click(function () {
|
|
|
|
|
|
Print();
|
|
});
|
|
GetOrderPostion();
|
|
GetOrderPostion2();
|
|
});
|
|
function fopen() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function Print() {
|
|
|
|
var param = new Object();
|
|
orderids = OrderId;
|
|
//window.parent.addTab("打印", "PrintTemplate/OrderPrint.aspx?Title=订单打印&orderid=" + orderids + "&printType=0", true);
|
|
window.open("../PrintTemplate/OrderPrint.aspx?Title=订单打印&orderid=" + orderids + "&printType=0");
|
|
|
|
|
|
|
|
}
|
|
|
|
function PrintFP() {
|
|
|
|
window.open("../Tongji/Bill.aspx?OrderIds=" + OrderId);
|
|
|
|
|
|
|
|
}
|
|
|
|
function PdfPrint() {
|
|
var list = datagrid1.GetSelectListModel();
|
|
if (list == null || list.length == 0) {
|
|
alert("请选择订单");
|
|
return;
|
|
}
|
|
var error = "";
|
|
var PostId = 0;
|
|
$(list).each(function () {
|
|
if (this.TrackCode == null || this.TrackCode == "") {
|
|
error = "有的订单没有跟踪码,无法打印";
|
|
}
|
|
if (SId > 0 && SId != this.ShopId && error == "") {
|
|
error = "不同店铺的订单不能一起打印";
|
|
|
|
}
|
|
PostId = this.Post;
|
|
});
|
|
if (error != "") {
|
|
alert(error);
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
param.list = list;
|
|
param.PostId = this.Post;
|
|
WindowLoadModel.Show();
|
|
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/OnewordGetPdf",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: true,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != "") {
|
|
window.parent.addTab("打印", "DingDan/DD_DoneOrderListNew.aspx?url=" + data.d, true);
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function DonePrint() {
|
|
var list = datagrid1.GetSelectListModel();
|
|
if (list == null || list.length == 0) {
|
|
alert("请选择要标记打印的订单");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
|
|
var printlist = new Array();
|
|
|
|
$(list).each(function () {
|
|
var md = new Object();
|
|
|
|
md.OrderId = this.OrderId;
|
|
md.PrintState = this.PrintState;
|
|
md.JoinOrderCode = this.JoinOrderCode;
|
|
Array.add(printlist, md);
|
|
});
|
|
param.state = -1;
|
|
if ($("#Rad_2").is(":checked") == true)
|
|
param.state = 1;
|
|
else if ($("#Rad_3").is(":checked") == true)
|
|
param.state = 0;
|
|
|
|
param.list = printlist;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderDonePrintForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
alert("标记成功");
|
|
ReadData();
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
function DoneBillPrint() {
|
|
var list = datagrid1.GetSelectListModel();
|
|
if (list == null || list.length == 0) {
|
|
alert("请选择要标记打印发票的订单");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
var printlist = new Array();
|
|
var ids = "";
|
|
$(list).each(function () {
|
|
|
|
ids += this.OrderId + ",";
|
|
|
|
});
|
|
|
|
|
|
param.OrderIds = ids;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderBillPrintForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
alert("标记成功");
|
|
ReadData();
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
function PrintJHD() {
|
|
var list = datagrid1.GetSelectListModel();
|
|
if (list == null || list.length == 0) {
|
|
alert("请选择要打印的订单");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
var printlist = new Array();
|
|
|
|
$(list).each(function () {
|
|
var md = new Object();
|
|
|
|
md.OrderId = this.OrderId;
|
|
|
|
Array.add(printlist, md);
|
|
});
|
|
|
|
|
|
param.list = printlist;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderJHDPrint",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
|
|
LODOP.PRINT_INIT("ExpressOrder");
|
|
LODOP.SET_PRINT_PAGESIZE(1, "100mm", "100mm", "CreateCustomPage");
|
|
|
|
$(data.d).each(function (i) {
|
|
var Model = this;
|
|
if (i > 0) LODOP.NewPage();
|
|
Print_JHD(Model);
|
|
|
|
});
|
|
LODOP.PREVIEWB();
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
//#region 检测是否安装过打印机控件
|
|
function CheckIsInstall() {
|
|
try {
|
|
LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
|
|
if (LODOP != null) { return true; }
|
|
else { return false; }
|
|
} catch (err) {
|
|
//alert("Error:本机未安装或需要升级!");
|
|
return false;
|
|
}
|
|
}
|
|
//#region 读取打印模板
|
|
function ReadPrintTemplate(name, fileName) {
|
|
$.ajax({
|
|
type: "GET",
|
|
url: "../PrintTemplate/" + fileName,
|
|
contentType: "",
|
|
dataType: "",
|
|
async: false,
|
|
dataFilter: function (data, dataType) {
|
|
return data;
|
|
},
|
|
success: function (data) {
|
|
$("#DataGrid1").data(name, data);
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
//#region 获取模板
|
|
function GetTemplate(name, fileName) {
|
|
var Template2 = $("#DataGrid1").data(name);
|
|
if (Template2 == undefined) {
|
|
ReadPrintTemplate(name, fileName);
|
|
Template2 = $("#DataGrid1").data(name);
|
|
}
|
|
var Template = $(Template2).clone();
|
|
ReplaceImg(Template);
|
|
return Template;
|
|
}
|
|
//#endregion
|
|
//#region 替换图片
|
|
function ReplaceImg(Template) {
|
|
//$("img", Template).each(function () {
|
|
// var src = $(this).attr("src");
|
|
// var top = $(this).css("top");
|
|
// var left = $(this).css("left");
|
|
// var width = $(this).width();
|
|
// var height = $(this).height();
|
|
// LODOP.ADD_PRINT_IMAGE(0, 0, "100%", "100%", "<img src='" + src + "' />");
|
|
// LODOP.SET_PRINT_STYLEA(0,"Stretch", 1);//缩放模式
|
|
//});
|
|
//$("img", Template).remove();
|
|
//$("span", Template).each(function () {
|
|
// var src = $(this).text()
|
|
// var top = $(this).css("top");
|
|
// var left = $(this).css("left");
|
|
// var width = $(this).width();
|
|
// var height = $(this).height();
|
|
// var fontsize = $(this).css("font-size");
|
|
// LODOP.ADD_PRINT_TEXT(top, left, width, height, src);
|
|
// LODOP.SET_PRINT_STYLE("FontSize", fontsize.replace("px",""));
|
|
//});
|
|
//$("table", Template).each(function () {
|
|
// var src = $(this).prop("outerHTML")
|
|
// var top = $(this).css("top");
|
|
// var left = $(this).css("left");
|
|
// var width = $(this).width();
|
|
// var height = $(this).height();
|
|
// LODOP.ADD_PRINT_TABLE(top, left, width, height, src);
|
|
//});
|
|
//$("span", Template).remove();
|
|
}
|
|
//#endregion
|
|
|
|
function Print_JHD(model) {
|
|
var Template = GetTemplate(name, "JHD.txt");
|
|
$("#txt_cgdh", Template).html("捡货单");
|
|
$("#txt_ddrq", Template).html("跟踪码:" + model.BarCode);
|
|
$("#txt_sjdz", Template).html("国家:" + model.RevCountry);
|
|
$("#txt_shop", Template).html("店铺:" + model.ShopName);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function () {
|
|
|
|
var desc = this.GoodsName + "【" + this.GoodsCode + "】 " + this.GoodsSku + "【" + this.TypeDesc + "】";
|
|
|
|
|
|
if (this.PostionDesc != null && this.PostionDesc != "")
|
|
desc += " 库位:【" + this.PostionDesc + "】(" + this.GoodsNum + "件)";
|
|
else
|
|
desc += " 库位:【无】(" + this.GoodsNum + "件)";
|
|
html.append("<tr>");
|
|
html.append("<td>" + desc + "</td>");
|
|
|
|
html.append("</tr>");
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(6, 180, 160, 30, "128Auto", model.OrderCode);
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 5);
|
|
LODOP.ADD_PRINT_RECT(49, 10, 360, 330, 0, 1);
|
|
}
|
|
|
|
|
|
//#endregion
|
|
//#region EUB2打印
|
|
//#region EUB打印
|
|
function Print_EUB(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("PHONE:" + model.SendPhone);
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson + "<br/>" + model.RevAddress);
|
|
$("#txtRevAddress", Template).html("");
|
|
$("#txtRevPhone", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html(model.CountGoodsWeight);
|
|
$("#txtCountGoodsPrice", Template).html(model.CountGoodsPrice);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:15px;'>" + (ii + 1) + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:28px;' >...</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:163px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:32px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:42px;' >...</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:65px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:15px;'>" + (ii + 1) + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:28px;' >" + this.GoodsNum + "</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:163px;' >" + this.GoodsName + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:32px;' >" + this.GoodsWeight + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:42px;' >" + this.GoodsPrice + "</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:65px;' >" + this.GoodsOrigin + "</td>");
|
|
html.append("</tr>");
|
|
}
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
//$("#div1").html(Template.prop("outerHTML"));
|
|
|
|
//LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);//缩放模式
|
|
ReplaceImg(Template);
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_LINE(169, 10, 170, 177, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(180, 10, 181, 177, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 29, 190, 30, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(189, 52, 336, 53, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(191, 230, 336, 231, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(191, 258, 336, 259, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(191, 299, 336, 300, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(85, 179, 86, 359, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(189, 178, 84, 179, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(191, 10, 190, 390, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(204, 10, 205, 390, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(320, 10, 319, 390, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 10, 336, 390, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(51, 137, 29, 30, 0, 1);
|
|
LODOP.ADD_PRINT_IMAGE(6, 23, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);// 1可变形缩放2不可变形缩放
|
|
LODOP.ADD_PRINT_BARCODE(9, 170, 197, 60, "128Auto", model.BarCode);
|
|
}
|
|
//#endregion
|
|
//#region EUB2打印
|
|
function Print_EUB2(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html(model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtRevPerson", Template).html(model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
$("#txtPCode", Template).html("(420)" + model.RevZip);
|
|
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_LINE(117, 26, 116, 366, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(197, 26, 196, 366, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(270, 26, 271, 366, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(50, 118, 49, 238, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(37, 264, 66, 43, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(38, 25, 57, 64, 0, 1);
|
|
LODOP.ADD_PRINT_IMAGE(19, 126, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(52, 110, 126, 38, "<img src='../PrintImage/logo2.jpg' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(278, 270, 15, 15, "<img src='../PrintImage/R.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(129, 221, 110, 54, "<img src='" + model.RevZipBarCode + "' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);//(可变形)扩展缩放模式
|
|
LODOP.ADD_PRINT_BARCODE(298, 38, 299, 66, "128Auto", model.BarCode);
|
|
}
|
|
//#endregion
|
|
//#region 宁波小包打印
|
|
function Print_NB(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("PHONE:" + model.SendPhone);
|
|
$("#txtOrderCode", Template).html("Fancy:" + model.OrderCode);
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
$("#txtRevPhone", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile);
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtRevCountry", Template).html(model.CountryName);
|
|
$("#txtRevZip", Template).html("zip:" + model.RevZip);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html("0.3");
|
|
$("#txtCountGoodsPrice", Template).html("10");
|
|
$("#txtShopName", Template).html(model.ShopName);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >" + this.GoodsSimpleName + "【" + this.GoodsNum + "件】</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >0.3</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >10</td>");
|
|
html.append("</tr>");
|
|
}
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(10, 155, 210, 60, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_IMAGE(5, 30, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(79, 150, 78, 365, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(149, 149, 78, 150, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(150, 10, 149, 149, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(170, 10, 169, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(184, 10, 183, 345, 0, 1);
|
|
|
|
LODOP.ADD_PRINT_LINE(316, 10, 315, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(335, 10, 334, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(334, 228, 169, 229, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(334, 288, 169, 289, 0, 1);
|
|
LODOP.ADD_PRINT_TEXT(243, 375, 51, 30, "宁波");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontName", "Arial");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 15);
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 270);
|
|
LODOP.ADD_PRINT_LINE(238, 352, 237, 377, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(292, 352, 291, 377, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(237, 351, 292, 352, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(42, 72, 35, 20, 0, 1);
|
|
|
|
}
|
|
//#endregion
|
|
//#region 甬沪小包打印
|
|
function Print_YH(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("PHONE:" + model.SendPhone);
|
|
$("#txtOrderCode", Template).html("Fancy:" + model.OrderCode);
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
$("#txtRevPhone", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile);
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtRevCountry", Template).html(model.CountryName);
|
|
$("#txtRevZip", Template).html("zip:" + model.RevZip);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html(model.CountGoodsWeight);
|
|
$("#txtShopName", Template).html(model.ShopName);
|
|
$("#txtRevZip", Template).html("zip:" + model.RevZip);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;' >" + this.GoodsSimpleName + "【" + this.GoodsNum + "件】</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;' >" + this.GoodsWeight + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;' >" + this.GoodsPrice + "</td>");
|
|
html.append("</tr>");
|
|
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(10, 155, 210, 60, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_IMAGE(5, 30, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(79, 150, 78, 365, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(149, 149, 78, 150, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(150, 10, 149, 149, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(170, 10, 169, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(184, 10, 183, 345, 0, 1);
|
|
|
|
LODOP.ADD_PRINT_LINE(316, 10, 315, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(335, 10, 334, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(334, 228, 169, 229, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(334, 288, 169, 289, 0, 1);
|
|
LODOP.ADD_PRINT_TEXT(243, 375, 51, 30, "甬沪");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontName", "Arial");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 15);
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 270);
|
|
LODOP.ADD_PRINT_LINE(238, 352, 237, 377, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(292, 352, 291, 377, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(237, 351, 292, 352, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(42, 72, 35, 20, 0, 1);
|
|
}
|
|
//#endregion
|
|
//#region 上海小包打印
|
|
function Print_SH(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html("");
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendAddress);
|
|
$("#txtSendAddress", Template).html("退件机构:上海市邮政公司函件广告局");
|
|
$("#txtSendPhone", Template).html("Tel:" + model.SendPhone + " " + model.SendPerson);
|
|
$("#txtOrderCode", Template).html("客户代码: Ref No:52028944");
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson + "<Br/>" + model.RevAddress);
|
|
$("#txtTrackCode", Template).html(model.BarCode);
|
|
$("#txtRevAddress", Template).html("");
|
|
$("#txtRevPhone", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile);
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtRevCountry", Template).html(model.CountryName + " " + model.AreaSerial);
|
|
$("#txtRevZip", Template).html("zip:" + model.RevZip);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html("0.3");
|
|
$("#txtCountGoodsPrice", Template).html("$10");
|
|
$("#txtShopName", Template).html("");
|
|
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >" + this.GoodsSimpleName + "【" + this.GoodsNum + "件】</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >0.3</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' ></td>");
|
|
html.append("</tr>");
|
|
}
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(10, 136, 230, 50, "128Auto", model.BarCode);
|
|
LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
|
|
LODOP.ADD_PRINT_IMAGE(5, 22, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(79, 163, 78, 363, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(149, 162, 78, 163, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(150, 11, 149, 161, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(170, 10, 169, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(184, 10, 183, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(316, 10, 315, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(335, 10, 334, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(198, 10, 197, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(197, 288, 169, 289, 0, 1);
|
|
LODOP.ADD_PRINT_TEXT(243, 375, 51, 30, "上海");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontName", "Arial");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 15);
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 270);
|
|
LODOP.ADD_PRINT_LINE(238, 352, 237, 377, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(292, 352, 291, 377, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(237, 351, 292, 352, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(44, 50, 55, 20, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(197, 232, 169, 233, 0, 1);
|
|
|
|
}
|
|
|
|
|
|
//#region 南京小包打印
|
|
function Print_NJXB(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("");
|
|
$("#txtSendAddress", Template).html("");
|
|
$("#txtSendPhone", Template).html("");
|
|
$("#txtOrderCode", Template).html("");
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
$("#txtRevPhone", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile);
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtRevCountry", Template).html(model.CountryName);
|
|
$("#txtRevZip", Template).html("zip:" + model.RevZip);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html(model.CountGoodsWeight);
|
|
$("#txtCountGoodsPrice", Template).html(model.CountGoodsPrice);
|
|
$("#txtShopName", Template).html("");
|
|
//if (model.BarCode != null && model.BarCode.length>4)
|
|
$("#txtTrackCode", Template).html(model.OrderCode);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >" + this.GoodsSimpleName + "【" + this.GoodsNum + "件】</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >" + this.GoodsWeight + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >" + this.GoodsPrice + "</td>");
|
|
html.append("</tr>");
|
|
}
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(10, 135, 240, 50, "Code39", model.OrderCode);
|
|
LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
|
|
LODOP.ADD_PRINT_IMAGE(5, 30, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(79, 150, 78, 365, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(149, 149, 78, 150, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(150, 10, 149, 149, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(170, 10, 169, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(184, 10, 183, 345, 0, 1);
|
|
|
|
LODOP.ADD_PRINT_LINE(316, 10, 315, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(335, 10, 334, 345, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(334, 228, 169, 229, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(334, 288, 169, 289, 0, 1);
|
|
LODOP.ADD_PRINT_TEXT(210, 340, 40, 20, "TM");
|
|
|
|
LODOP.SET_PRINT_STYLEA(0, "FontName", "Arial");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
|
|
LODOP.ADD_PRINT_TEXT(230, 343, 30, 60, "挂号");
|
|
|
|
LODOP.SET_PRINT_STYLEA(0, "FontName", "Arial");
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
|
|
//LODOP.ADD_PRINT_LINE(238, 352, 237, 377, 0, 1);
|
|
//LODOP.ADD_PRINT_LINE(292, 352, 291, 377, 0, 1);
|
|
//LODOP.ADD_PRINT_LINE(237, 351, 292, 352, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(42, 72, 35, 20, 0, 1);
|
|
}
|
|
//#endregion
|
|
//#region 俄邮宝打印
|
|
function Print_eEUB(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("PHONE:" + model.SendPhone);
|
|
$("#txtSendZip", Template).html("CHINA:" + model.SendZip);
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
$("#txtRevPhone", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile);
|
|
$("#txtRevCountry", Template).html(model.RevCountry);
|
|
$("#txtRevZip", Template).html("zip:" + model.RevZip);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html(model.CountGoodsWeight);
|
|
$("#txtCountGoodsPrice", Template).html(model.CountGoodsPrice);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:15px;'>" + (ii + 1) + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:28px;' >...</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:163px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:32px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:42px;' >...</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:65px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:15px;'>" + (ii + 1) + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:28px;' >" + this.GoodsNum + "</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:163px;' >" + this.GoodsName + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:32px;' >" + this.GoodsWeight + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:42px;' >" + this.GoodsPrice + "</td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:65px;' >" + this.GoodsOrigin + "</td>");
|
|
html.append("</tr>");
|
|
}
|
|
|
|
});
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:15px;'></td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:28px;' ></td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:163px;' >" + model.OrderCode + "</td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:32px;' ></td>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:42px;' ></td>");
|
|
html.append("<td style='text-align:left;vertical-align:top;width:65px;' ></td>");
|
|
html.append("</tr>");
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(9, 170, 197, 60, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_IMAGE(19, 30, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(79, 178, 78, 368, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(193, 177, 78, 178, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(170, 10, 169, 177, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(181, 10, 180, 177, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(194, 10, 193, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(207, 10, 206, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(322, 10, 321, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(338, 10, 337, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 222, 193, 223, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 259, 193, 260, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 301, 193, 302, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(45, 93, 59, 23, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(67, 122, 45, 123, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 55, 193, 56, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(337, 32, 193, 33, 0, 1);
|
|
|
|
//LODOP.ADD_PRINT_TEXT(46, 96, 21, 20, "RU");
|
|
//LODOP.ADD_PRINT_TEXT(47, 123, 27, 20, "5");
|
|
|
|
}
|
|
//#endregion
|
|
//#region 俄邮宝2打印
|
|
function Print_eEUB2(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html(model.AreaSerial);
|
|
$("#txtSendPerson", Template).html(model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendZip", Template).html("CHINA:" + model.SendZip);
|
|
$("#txtRevPerson", Template).html(model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(298, 83, 230, 66, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_IMAGE(64, 153, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(124, 292, 65, 70, "<img src='../PrintImage/logo4.jpg' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(297, 316, 48, 65, "<img src='../PrintImage/logo5.jpg' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(293, 20, 48, 70, "<img src='../PrintImage/logo6.jpg' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_RECT(24, 31, 100, 60, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(119, 10, 118, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(201, 10, 200, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(277, 10, 276, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(62, 155, 61, 255, 0, 1);
|
|
}
|
|
function Print_NBPY(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtAreaSerial", Template).html(model.CountryName + " " + model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("Tel:" + model.SendPhone);
|
|
$("#txtRevPerson", Template).html("PHONE:" + model.RevPhone + " Tel:" + model.RevMobile + " zip:" + model.RevZip);
|
|
$("#txtRevAddress", Template).html("SHIP TO:" + model.RevPerson + "<br/>" + model.RevAddress);
|
|
|
|
// $("#txtRevPhone", Template).html("PHONE:" + model.RevPhone);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html("0.3");
|
|
$("#txtCountGoodsWeight1", Template).html("0.3");
|
|
$("#txtCountGoodsPrice", Template).html("10");
|
|
$("#txtCountGoodsPrice1", Template).html("10");
|
|
var html = new Sys.StringBuilder();
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:350px;'>");
|
|
$(model.ListModel).each(function (ii) {
|
|
|
|
html.append("" + this.GoodsName + "【" + this.GoodsNum + "件】<br/>");
|
|
|
|
|
|
});
|
|
html.append("</td></tr>");
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
//$("#div1").html(Template.prop("outerHTML"));
|
|
|
|
//LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);//缩放模式
|
|
ReplaceImg(Template);
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_LINE(23, 145, 22, 350, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(101, 143, 23, 144, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(70, 10, 69, 140, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(85, 10, 84, 140, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(104, 10, 103, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(166, 10, 165, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(182, 10, 181, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(196, 10, 195, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(323, 10, 322, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(338, 10, 337, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(196, 232, 164, 233, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(196, 278, 164, 279, 0, 1);
|
|
LODOP.ADD_PRINT_BARCODE(107, 183, 200, 55, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_IMAGE(6, 23, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);// 1可变形缩放2不可变形缩放
|
|
//LODOP.ADD_PRINT_BARCODE(9, 170, 197, 60, "128Auto", model.BarCode);
|
|
}
|
|
//#endregion
|
|
//#region 顺丰打印
|
|
function Print_SF(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtSendPerson", Template).html(model.SendPerson);
|
|
var CurrentDate = new Date();
|
|
$("#txtSendDate", Template).text(CurrentDate.localeFormat("yyyy-MM-dd"));
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html(model.CountGoodsWeight);
|
|
$("#txtCountGoodsPrice", Template).html(model.CountGoodsPrice);
|
|
$("#txtGoodsWeight", Template).html(model.ListModel[0].GoodsWeight);
|
|
$("#txtGoodsPrice", Template).html(model.ListModel[0].GoodsPrice);
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(314, 14, 190, 49, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_LINE(47, 5, 46, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(65, 5, 64, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(102, 5, 101, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(168, 5, 167, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(230, 5, 229, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(309, 5, 308, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(101, 5, 64, 6, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(102, 30, 64, 31, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(102, 139, 64, 140, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(102, 163, 64, 164, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(84, 6, 83, 30, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(84, 140, 83, 163, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(229, 229, 102, 230, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(229, 315, 102, 316, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(388, 300, 308, 301, 0, 1);
|
|
|
|
|
|
}
|
|
//#endregion
|
|
//#region 比利时邮政打印
|
|
function Print_BLSYZ(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtOrderCode", Template).html("Order Number:" + model.OrderCode);
|
|
$("#txtGoodsSku", Template).html("SKU:" + model.ListModel[0].GoodsSku);
|
|
$("#txtSendAddress", Template).html("FROM:" + model.SendAddress);
|
|
$("#txtRevPerson", Template).html(model.RevPerson);
|
|
$("#txtRevAddress", Template).html(model.RevAddress);
|
|
$("#txtRevPhone", Template).html(model.RevPhone + " Tel:" + model.RevMobile);
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(252, 47, 282, 66, "128Auto", model.BarCode);
|
|
// LODOP.ADD_PRINT_BARCODE(252, 47, 282, 66, "128Auto", "LN729029398CN");
|
|
LODOP.ADD_PRINT_RECT(31, 165, 206, 80, 0, 1);
|
|
LODOP.ADD_PRINT_IMAGE(34, 174, 85, 27, "<img src='../PrintImage/logo7.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_IMAGE(34, 290, 80, 27, "<img src='../PrintImage/logo8.png' />");
|
|
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
}
|
|
function Print_HZXB(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html("");
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("");
|
|
$("#txtOrderCode", Template).html("untracked:" + model.OrderCode);
|
|
var phone = "";
|
|
if (model.RevPhone != null && model.RevPhone != "")
|
|
phone = model.RevPhone;
|
|
if (model.RevMobile != null && model.RevMobile != "")
|
|
phone += " " + model.RevMobile;
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson + "," + model.RevAddress + "," + model.AreaSerial + " " + model.CountryName + "<br/>ZIP:" + model.RevZip + "<br/>TEL:" + phone);
|
|
$("#txtRevAddress", Template).html("");
|
|
$("#txtRevPhone", Template).html("");
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtRevCountry", Template).html("");
|
|
$("#txtRevZip", Template).html("");
|
|
$("#txtCountGoodsNum", Template).html("");
|
|
$("#txtCountGoodsWeight", Template).html("");
|
|
$("#txtCountGoodsPrice", Template).html(5);
|
|
$("#txtTrackCode", Template).html(model.BarCode);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='vertical-align:middle;width: 218px;height: 17px;' >" + this.GoodsSimpleName + "(" + this.GoodsNum + ")</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' ></td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' ></td>");
|
|
html.append("</tr>");
|
|
}
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(21, 135, 240, 40, "128Auto", model.BarCode);
|
|
LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
|
|
LODOP.SET_PRINT_STYLEA(0, "Horient", 3);
|
|
LODOP.ADD_PRINT_IMAGE(14, 13, 110, 32, "<img src='../PrintImage/logo12.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(83, 12, 82, 366, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(202, 153, 82, 154, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(182, 11, 181, 153, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(218, 10, 217, 358, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(204, 10, 203, 358, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(307, 10, 306, 358, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(322, 10, 321, 358, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(321, 220, 203, 221, 0, 1);
|
|
LODOP.ADD_PRINT_RECT(62, 41, 52, 13, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(159, 10, 158, 152, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(344, 10, 343, 360, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(204, 290, 322, 291, 0, 1);
|
|
|
|
}
|
|
function Print_HZPY(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtAreaSerial", Template).html("");
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson + "<br/>" + model.SendAddress);
|
|
$("#txtSendAddress", Template).html("");
|
|
$("#txtSendPhone", Template).html("");
|
|
$("#txtOrderCode", Template).html("自编号:" + model.OrderCode);
|
|
var phone = "";
|
|
if (model.RevPhone != null && model.RevPhone != "")
|
|
phone = model.RevPhone;
|
|
if (model.RevMobile != null && model.RevMobile != "")
|
|
phone += " " + model.RevMobile;
|
|
$("#txtRevPerson", Template).html("SHIP TO:" + model.RevPerson + "," + model.RevAddress + "," + model.AreaSerial + " " + model.CountryName + "<br/>ZIP:" + model.RevZip + "<br/>Phone:" + phone);
|
|
$("#txtRevAddress", Template).html("");
|
|
|
|
$("#txtRevPhone", Template).html("");
|
|
$("#txtCountry", Template).html(model.CountryCode + " " + model.AreaSerial2);
|
|
$("#txtRevCountry", Template).html("");
|
|
$("#txtRevZip", Template).html("");
|
|
$("#txtCountGoodsNum", Template).html("");
|
|
$("#txtCountGoodsWeight", Template).html("");
|
|
$("#txtCountGoodsPrice", Template).html(5);
|
|
$("#txtTrackCode", Template).html(model.BarCode);
|
|
var html = new Sys.StringBuilder();
|
|
$(model.ListModel).each(function (ii) {
|
|
if (ii == 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 218px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' >...</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' >...</td>");
|
|
html.append("</tr>");
|
|
}
|
|
else if (ii < 7) {
|
|
html.append("<tr>");
|
|
html.append("<td style='vertical-align:middle;width: 218px;height: 17px;' >" + this.GoodsSimpleName + "(" + this.GoodsNum + ")</td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;width: 50px;height: 17px;' ></td>");
|
|
html.append("<td style='text-align:center;vertical-align:middle;height: 17px;' ></td>");
|
|
html.append("</tr>");
|
|
}
|
|
});
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.ADD_PRINT_BARCODE(155, 180, 210, 32, "128Auto", model.BarCode);
|
|
LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
|
|
LODOP.SET_PRINT_STYLEA(0, "Horient", 3);
|
|
LODOP.ADD_PRINT_IMAGE(10, 16, 110, 37, "<img src='../PrintImage/logo12.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_LINE(49, 10, 48, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(147, 153, 47, 154, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(149, 10, 148, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(201, 10, 200, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(216, 10, 215, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(312, 11, 311, 371, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(327, 9, 326, 369, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(328, 220, 200, 221, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(129, 10, 128, 152, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(349, 10, 348, 370, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(327, 290, 199, 291, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(106, 10, 105, 152, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(48, 267, 11, 268, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(48, 320, 11, 321, 0, 1);
|
|
}
|
|
//#endregion
|
|
//#endregion
|
|
function GetBasePlat() {
|
|
|
|
$("#select_plat").append("<option value='0'>全部</option>");
|
|
var param = new Object();
|
|
param.CompanyID = 0;
|
|
param.KeyName = "ptlx";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../UserService.asmx/GetPlatBaseCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
$("#select_plat").append("<option value='" + this.SortNo + "'>" + this.Name + "</option>");
|
|
});
|
|
GetShopList();
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function Print_YWSHPY(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
|
|
$("#txtCountry", Template).html(model.CountryCode);
|
|
$("#txtAreaSerial", Template).html(model.CountryName + " " + model.AreaSerial);
|
|
$("#txtSendPerson", Template).html("FROM:" + model.SendPerson);
|
|
$("#txtSendAddress", Template).html(model.SendAddress);
|
|
$("#txtSendPhone", Template).html("Tel:" + model.SendPhone);
|
|
$("#txtRevPerson", Template).html("PHONE:" + model.SendPhone + " Tel:" + model.RevMobile + " zip:" + model.SendZip);
|
|
$("#txtRevAddress", Template).html("SHIP TO:" + model.RevPerson);
|
|
// $("#txtRevPhone", Template).html("PHONE:" + model.RevPhone);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtCountGoodsWeight", Template).html(model.CountGoodsWeight);
|
|
$("#txtCountGoodsWeight1", Template).html(model.CountGoodsWeight);
|
|
$("#txtCountGoodsPrice", Template).html(model.CountGoodsPrice);
|
|
$("#txtCountGoodsPrice1", Template).html(model.CountGoodsPrice);
|
|
//var html = new Sys.StringBuilder();
|
|
//html.append("<tr>");
|
|
//html.append("<td style='text-align:center;vertical-align:top;width:350px;'>");
|
|
//$(model.ListModel).each(function (ii) {
|
|
|
|
// html.append("" + this.GoodsName + "【" + this.GoodsNum + "件】<br/>");
|
|
|
|
|
|
//});
|
|
//html.append("</td></tr>");
|
|
//$("#tb_Detail", Template).html(html.toString());
|
|
//$("#div1").html(Template.prop("outerHTML"));
|
|
|
|
//LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);//缩放模式
|
|
ReplaceImg(Template);
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_RECT(2, 2, 373, 373, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(38, 2, 37, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(146, 2, 145, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(231, 2, 230, 374, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(250, 2, 251, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(304, 2, 303, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(325, 2, 324, 375, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(144, 135, 37, 136, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(101, 2, 100, 132, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(121, 2, 120, 134, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(37, 283, 2, 284, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(37, 332, 2, 333, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(324, 244, 230, 245, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(324, 291, 230, 292, 0, 1);
|
|
|
|
LODOP.ADD_PRINT_BARCODE(155, 170, 200, 55, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_IMAGE(6, 23, 100, 30, "<img src='../PrintImage/logo.png' />");
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);// 1可变形缩放2不可变形缩放
|
|
//LODOP.ADD_PRINT_BARCODE(9, 170, 197, 60, "128Auto", model.BarCode);
|
|
}
|
|
function Print_YWSHPY2(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
$("#txtOrderCode", Template).html("Order Number:" + model.OrderCode);
|
|
$("#txtTrackCode", Template).html("TrackCode:" + model.BarCode);
|
|
$("#txtError", Template).html("");
|
|
var html = new Sys.StringBuilder();
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:350px;'>");
|
|
$(model.ListModel).each(function (ii) {
|
|
|
|
html.append("" + this.GoodsName + "【" + this.GoodsNum + "件】<br/>");
|
|
|
|
|
|
});
|
|
html.append("</td></tr>");
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
|
|
}
|
|
|
|
function Print_YYB(model, name, fileName) {
|
|
var Template = GetTemplate(name, fileName);
|
|
|
|
$("#txtCountry", Template).html("Y-POST-" + model.CountryName);
|
|
$("#txtCountry1", Template).html(model.CountryName);
|
|
$("#txtArea", Template).html(model.AreaSerial);
|
|
$("#txtOrderCode", Template).html("OrderNo" + model.OrderCode);
|
|
$("#txtRevPerson", Template).html("PHONE:" + model.SendPhone + " Tel:" + model.RevMobile + " zip:" + model.SendZip);
|
|
$("#txtRevAddress", Template).html("SHIP TO:" + model.RevPerson);
|
|
// $("#txtRevPhone", Template).html("PHONE:" + model.RevPhone);
|
|
$("#txtCountGoodsNum", Template).html(model.CountGoodsNum);
|
|
$("#txtDate", Template).html(model.OrderDate);
|
|
$("#txtDate1", Template).html(model.OrderDate);
|
|
var html = new Sys.StringBuilder();
|
|
html.append("<tr>");
|
|
html.append("<td style='text-align:center;vertical-align:top;width:350px;'>Saler Note:");
|
|
$(model.ListModel).each(function (ii) {
|
|
|
|
html.append("" + this.GoodsName + "【" + this.GoodsNum + "件】<br/>");
|
|
|
|
|
|
});
|
|
html.append("</td></tr>");
|
|
$("#tb_Detail", Template).html(html.toString());
|
|
//$("#div1").html(Template.prop("outerHTML"));
|
|
|
|
//LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);//缩放模式
|
|
ReplaceImg(Template);
|
|
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Template.prop("outerHTML"));
|
|
LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
|
|
LODOP.ADD_PRINT_BARCODE(33, 85, 200, 55, "128Auto", model.BarCode);
|
|
LODOP.ADD_PRINT_LINE(104, 1, 103, 377, 0, 2);
|
|
LODOP.ADD_PRINT_LINE(125, 1, 126, 377, 0, 2);
|
|
LODOP.ADD_PRINT_RECT(243, 242, 30, 45, 0, 1);
|
|
LODOP.ADD_PRINT_LINE(262, 242, 261, 272, 0, 1);
|
|
LODOP.ADD_PRINT_BARCODE(227, 7, 220, 60, "128Auto", model.OrderCode);
|
|
|
|
|
|
|
|
//LODOP.ADD_PRINT_BARCODE(9, 170, 197, 60, "128Auto", model.BarCode);
|
|
}
|
|
function GetShopList() {
|
|
$("#select_shop").empty();
|
|
$("#select_shop").append("<option value='0'>全部</option>");
|
|
var param = new Object();
|
|
|
|
param.PlatType = $("#select_plat").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetShopList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function (i) {
|
|
$("#select_shop").append("<option value='" + this.ShopId + "'>" + this.ShopName + "</option>");
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function AddTr() {
|
|
|
|
$("#" + datagrid1.TableID + " tr").each(function (i) {
|
|
if (i > 0) {
|
|
var index = $(this).attr("index");
|
|
var md = datagrid1.Get_Model(index);
|
|
var shtmls = "";
|
|
|
|
shtmls = "<tr><td colspan='14'><table width='90%' class='trTable'><tr><td style='font-weight:normal;'>";
|
|
if (md.GoodsList != null) {
|
|
$(md.GoodsList).each(function () {
|
|
var oldtypedec = "";
|
|
if (this.OldTypeDesc != null && this.OldTypeDesc != "")
|
|
oldtypedec = "<font color='red'>改" + this.OldTypeDesc + "发</font>";
|
|
shtmls += "<a style='cursor: pointer; text-decoration: underline; color: Blue;font-weight:normal;' onclick='LinkGoods(" + this.GoodsId + ")'>" + this.GoodsCode + "--" + this.GoodsOldCode + this.GoodsName + " " + this.TypeDesc + " " + this.TypeCode + oldtypedec + "</a> 数量:</font>" + this.GoodsNum + "【" + this.PostionCode + "】<br/>";
|
|
|
|
});
|
|
|
|
}
|
|
shtmls += "</table></td><tr>";
|
|
$(this).after(shtmls);
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function LinkGoods(GId) {
|
|
window.parent.addTab("货物编辑", "HuoWu/HW_GoodsAddForTM.aspx?Title=订单查询&GoodsId=" + GId, true);
|
|
}
|
|
|
|
//#endregion
|
|
//#region 初始化DataGrid
|
|
|
|
function CreateDataGrid() {
|
|
var col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "图片";
|
|
|
|
col.CellTemplate = "<a CommandName='cmdImg' class='linka'><img src='{Bind productImgUrl}' alt='' width='70px' height='70px'/></a>";
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "货物名称";
|
|
|
|
col.CellTemplate = "<a style='cursor: pointer; text-decoration: underline; color: Blue;font-weight:normal;' gid='{Bind GoodsId}'>{Bind GoodsName}</a>";
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "编号";
|
|
|
|
col.CellTemplate = "<a>{Bind GoodsCode}</a>";
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "型号";
|
|
|
|
col.CellTemplate = "<a>{Bind TypeCode}</a>";
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "描述";
|
|
col.CellTemplate = "<a>{Bind TypeDesc}</a><a style='color:red'>{Bind OldTypeDesc}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "购买数量";
|
|
col.Width = "60px";
|
|
col.CellTemplate = "<a>{Bind GoodsNum}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "匹配数量";
|
|
col.CellTemplate = "<a style='color:red'>{Bind LockNum}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "匹配库位";
|
|
col.CellTemplate = "<a>{Bind PostionCode}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
datagrid1.IsFixHeader = false;
|
|
datagrid1.ShowIndexColumn = false;
|
|
datagrid1.AllowPaging = false;
|
|
//datagrid1.Height = "260px";
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
|
datagrid1.Init();
|
|
|
|
|
|
|
|
}
|
|
//#endregion
|
|
//#region 读取数据
|
|
function ReadData() {
|
|
var param = new Object();
|
|
|
|
param.IsFP = $("#select_bill").val();
|
|
|
|
param.IsDetail = 0;
|
|
if ($("#chk_pp").is(':checked') == true)
|
|
param.IsDetail = 1;
|
|
if ($("#select_plat").find("option").length > 0)
|
|
param.PlatType = $("#select_plat").val();
|
|
else
|
|
param.PlatType = 0;
|
|
if ($("#select_shop").find("option").length > 0)
|
|
param.ShopId = $("#select_shop").val();
|
|
else
|
|
param.ShopId = 0;
|
|
if ($("#select_post option").length == 0)
|
|
param.PostId = 0;
|
|
else
|
|
param.PostId = $("#select_post").val();
|
|
if ($("#txt_days").val() != "")
|
|
param.OutDays = $("#txt_days").val();
|
|
else
|
|
param.OutDays = 0;
|
|
param.DateType = $("#select_rqlx").val();
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val();
|
|
param.IsWeight = $("#select_zl").val();
|
|
param.TjType = $("#select_tj").val();
|
|
param.Name = $("#txt_Name").val();
|
|
param.PrintState = -1;
|
|
if ($("#Rad_2").is(":checked") == true)
|
|
param.PrintState = 1;
|
|
else if ($("#Rad_3").is(":checked") == true)
|
|
param.PrintState = 0;
|
|
param.State = 1;
|
|
param.IsSku = 0;
|
|
//if ($("#chk_sku").is(':checked') == true)
|
|
// param.IsSku = 1;
|
|
param.IsError = $("#select_yc").val();
|
|
//if ($("#chk_yc").is(':checked') == true)
|
|
// param.IsError = 1;
|
|
//param.IsError = $("#select_yc").val();
|
|
|
|
param.HBOrder = 0;
|
|
if ($("#chk_hb").is(':checked') == true)
|
|
param.HBOrder = 1;
|
|
// if ($("#select_postaddr0 option").length == 0)
|
|
param.IsAddr = -1;
|
|
// else
|
|
// param.IsAddr = $("#select_postaddr0").val();
|
|
param.KWCode = $("#txt_KWCode").val();
|
|
param.GoodsInfo = $("#txt_GoodsInfo").val();
|
|
param.TrackState = $("#select_trackstate").val();
|
|
param.FHState = $("#select_fhzt").val();
|
|
param.GM = $("#select_gm").val();
|
|
param.PageSize = datagrid1.Get_PageSize();
|
|
param.PageIndex = datagrid1.Get_PageIndex();
|
|
param.Sort = datagrid1.SortExpression + " " + datagrid1.ViewSortDirection;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetListOrderPrintForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
if (param.IsDetail == 1)
|
|
AddTr();
|
|
$("#a_select").html("");
|
|
//$("input[sp='1']").each(function () {
|
|
|
|
|
|
// $(this).val("取消拆分");
|
|
|
|
|
|
|
|
//});
|
|
}
|
|
});
|
|
}
|
|
|
|
function GetModel() {
|
|
if ($("#txt_KWCode").val() == "")
|
|
return;
|
|
if ($("#txt_Code").val() == "")
|
|
{
|
|
alert("请输入入库库位");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
//436828-663010-001
|
|
param.Code = $("#txt_KWCode").val();
|
|
|
|
param.PostionCode = $("#txt_Code").val();
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/Get_ScanMateOrder",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
$("#f_ts").html("");
|
|
if (data.d.Error == "该条码找不到可以匹配的单子") {
|
|
$("#f_ts").html(data.d.Error);
|
|
return;
|
|
|
|
}
|
|
else if (data.d.Error == "该条码已经扫描匹配过订单") {
|
|
if (data.d.MateState < 2) {
|
|
$("#f_ts").html("该条码已经扫描匹配过订单,该订单是购物车订单还没有完全匹配,你也可以删除匹配,重新扫描匹配");
|
|
$("#f_mess").html("该条码已经扫描匹配过订单,该订单是购物车订单还没有完全匹配,你也可以删除匹配,重新扫描匹配");
|
|
return;
|
|
}
|
|
else {
|
|
$("#f_ts").html(data.d.Error);
|
|
$("#f_mess").html("该条码已经扫描匹配过订单,可以重新打印,或者删除匹配");
|
|
}
|
|
|
|
}
|
|
else
|
|
if (data.d.Error!=null&&data.d.Error != "") {
|
|
$("#f_ts").html(data.d.Error);
|
|
return;
|
|
|
|
}
|
|
else if (data.d.MateState == 1) {
|
|
$("#f_ts").html("购物车订单,还没有完全匹配完成,请先放到" + data.d.PotionCode + "货架上");
|
|
GetOrderPostion();
|
|
GetOrderPostion2();
|
|
return;
|
|
}
|
|
else if (data.d.MateState == 2) {
|
|
if (data.d.PotionCode != null && data.d.PotionCode != "") {
|
|
$("#f_mess").html("匹配完成,可以打印,之前匹配的放在" + data.d.PotionCode + "货架上");
|
|
GetOrderPostion();
|
|
GetOrderPostion2();
|
|
}
|
|
else
|
|
$("#f_mess").html("匹配完成,可以打印");
|
|
fopen();
|
|
}
|
|
else if (data.d.MateState == 4) {
|
|
$("#f_mess").html("匹配完成,可以打印,但有衣服需要去库存中找,先放到" + data.d.PotionCode + "货架上");
|
|
fopen();
|
|
GetOrderPostion();
|
|
GetOrderPostion2();
|
|
}
|
|
else if (data.d.MateState == 3) {
|
|
$("#f_mess").html("购物车订单,且有衣服需要去库存中找,还没有完全匹配完成,先放到" + data.d.PotionCode + "货架上");
|
|
GetOrderPostion();
|
|
GetOrderPostion2();
|
|
return;
|
|
}
|
|
OrderId = data.d.OrderId;
|
|
$("#txtPlatOrderCode").html(data.d.PlatOrderCode);
|
|
if (data.d.JoinOrderCode != null && data.d.JoinOrderCode != "")
|
|
$("#txtJoinOrderCode").html("合并:" + data.d.JoinOrderCode);
|
|
else
|
|
$("#txtJoinOrderCode").html("");
|
|
|
|
|
|
if (data.d.OrderDate != null)
|
|
$("#txtOrderDate").html(data.d.OrderDate.localeFormat("yyyy-MM-dd"));
|
|
if (data.d.InDate != null)
|
|
$("#txtInDate").html(data.d.InDate.localeFormat("yyyy-MM-dd"));
|
|
|
|
|
|
$("#txtShopName").html(data.d.ShopName);
|
|
$("#txtCountryName").html(data.d.CountryName);
|
|
if (data.d.PostState == 2)
|
|
$("#txtPostState").html("<font color='red'>不允许发货</font>");
|
|
else
|
|
$("#txtPostState").html("允许发货");
|
|
|
|
|
|
$("#txtOrderLevel").html(data.d.OrderLevel);
|
|
|
|
var error = "";
|
|
if (data.d.ErrorInfo != null)
|
|
error = data.d.ErrorInfo;
|
|
if (data.d.PostError != null && data.d.PostError != "")
|
|
error += data.d.PostError;
|
|
|
|
$("#txtErrorInfo").html(error);
|
|
|
|
datagrid1.DataBind(data.d.GoodsList);
|
|
// $("#cmdSavePrint").focus();
|
|
|
|
fopen();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
//#region 删除
|
|
function DelCol(obj) {
|
|
if (window.confirm('确定要删除吗?') == false) return;
|
|
var rowindex = $(obj).parent().parent().attr("index");
|
|
var param = new Object();
|
|
var model = datagrid1.Get_Model(rowindex);
|
|
param.Id = model.Id;
|
|
|
|
$.ajax({
|
|
url: "YY_Service.asmx/DeleteFoodList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
alert("删除成功");
|
|
|
|
|
|
}
|
|
});
|
|
|
|
ReadData();
|
|
}
|
|
function GetOrderPostion() {
|
|
|
|
$("#div1").empty();
|
|
//var param = new Object();
|
|
|
|
|
|
//param.list = Addrlist;
|
|
//param.AddrId = $("#select_postaddr").val();// $("#div_postinfo input:checked").first().attr("no");
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostion",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.d != null)
|
|
{
|
|
var html = new Sys.StringBuilder();
|
|
$(data.d).each(function ()
|
|
{
|
|
html.append("<div title='' style='border: 1px solid blue; width: 150px; height: 120px; text-align: left; float: left;'>");
|
|
html.append(" ");
|
|
html.append("<input type='checkbox' ocode='" + this.OrderCode + "' />选中 <a style='font-weight: bolder; font-size: larger; color: red'> " + this.PostionCode + "</a><br />");
|
|
html.append("<a style='font-weight: bolder; color: blue'>"+this.OrderCode+"</a><br />");
|
|
var glist =this.GoodsList;
|
|
$(glist).each(function () {
|
|
|
|
if (this.GoodsLeftNum == 0)
|
|
html.append(this.GoodsCode + "-"+this.TypeCode + " " + this.GoodsNum + "件 匹配<font>" + this.LockNum + "</font><br />");
|
|
else
|
|
html.append(this.GoodsCode + "-" + this.TypeCode + " " + this.GoodsNum + "件 匹配<font color='red'>" + this.LockNum + "</font><br />");
|
|
|
|
});
|
|
|
|
html.append("</div>");
|
|
|
|
});
|
|
$("#div1").html(html.toString());
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
function GetOrderPostion2() {
|
|
|
|
$("#div2").empty();
|
|
//var param = new Object();
|
|
|
|
|
|
//param.list = Addrlist;
|
|
//param.AddrId = $("#select_postaddr").val();// $("#div_postinfo input:checked").first().attr("no");
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/GetOrderPostion2",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
var html = new Sys.StringBuilder();
|
|
$(data.d).each(function () {
|
|
html.append("<div title='' style='border: 1px solid red; width: 150px; height: 120px; text-align: left; float: left;'>");
|
|
html.append(" ");
|
|
html.append("<input type='checkbox' ocode='" + this.OrderCode + "' mstate='" + this.MateState + "'/>选中 <a style='font-weight: bolder; font-size: larger; color: red'> " + this.PostionCode + "</a><a></a><br />");
|
|
if (this.MateState == 2)
|
|
html.append("<a style='font-weight: bolder; color: blue'>" + this.OrderCode + "[匹配完成]</a><br />");
|
|
else
|
|
html.append("<a style='font-weight: bolder; color: blue'>" + this.OrderCode + "</a><br />");
|
|
var glist = this.GoodsList;
|
|
$(glist).each(function () {
|
|
|
|
if (this.GoodsLeftNum == 0)
|
|
html.append(this.GoodsCode + "-" + this.TypeCode + " " + this.GoodsNum + "件 匹配<font>" + this.LockNum + "</font><br />");
|
|
else
|
|
html.append(this.GoodsCode + "-" + this.TypeCode + " " + this.GoodsNum + "件 匹配<font color='red'>" + this.LockNum + "</font><br />");
|
|
|
|
});
|
|
|
|
html.append("</div>");
|
|
|
|
});
|
|
$("#div2").html(html.toString());
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
//#endregion
|
|
</script>
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
ajaxInit(null);
|
|
|
|
|
|
|
|
|
|
$("#a_dy").click(function () {
|
|
|
|
$("#IconImg_CrystalReportViewer1_toptoolbar_print").click();
|
|
|
|
});
|
|
$("#a_dy2").click(function () {
|
|
|
|
$("#IconImg_CrystalReportViewer1_toptoolbar_print").click();
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
|
|
|
|
</head>
|
|
|
|
<body class="headbody">
|
|
<form id="form1" runat="server">
|
|
<div>
|
|
<div id="test" title="" style="width: 800px; height: 550px;">
|
|
<table border="0" cellpadding="0" cellspacing="0" style="width: 97%;" align="center" class="tableAll">
|
|
|
|
|
|
<tr>
|
|
<td style="width: 120px" class="f1">订单号:
|
|
</td>
|
|
<td width="35%">
|
|
<a id="txtPlatOrderCode" style="cursor: pointer; text-decoration: underline; color: blue;"></a><a id="txtJoinOrderCode"></a>
|
|
</td>
|
|
<td style="width: 120px" class="f1">平台店铺:</td>
|
|
<td width="35%">
|
|
|
|
|
|
<a id="txtShopName"></a></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="width: 120px" class="f1">订单日期:</td>
|
|
<td width="35%">
|
|
<a id="txtOrderDate"></a></td>
|
|
<td style="width: 120px" class="f1">导入日期:
|
|
</td>
|
|
<td width="35%">
|
|
<a id="txtInDate"></a></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="width: 120px" class="f1">订单状态:</td>
|
|
<td>
|
|
<a id="txtState"></a></td>
|
|
<td style="width: 120px" class="f1">发货级别:</td>
|
|
|
|
<td>
|
|
<a id="txtOrderLevel"></a>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 120px" class="f1">打印日期:</td>
|
|
<td>
|
|
<a id="txtPrintDate"></a></td>
|
|
<td style="width: 120px" class="f1">国家:
|
|
</td>
|
|
|
|
<td>
|
|
<a id="txtCountryName"></a>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 120px" class="f1">是否允许发货:</td>
|
|
<td>
|
|
<a id="txtPostState"></a>
|
|
</td>
|
|
<td class="f1">物流选择:</td>
|
|
<td><a style="color: red" id="a_state"></a></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr style="display: none">
|
|
<td style="width: 120px" class="f1">异常备注:</td>
|
|
<td colspan="3">
|
|
<div id="txtErrorInfo"></div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="width: 120px" class="f1">货物分配:</td>
|
|
<td colspan="3">
|
|
<div id="DataGrid1" class="DataGridStyle"></div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="4" align="center">
|
|
<input id="cmdSavePrint" type="button" value="打印" class="btnClass btnClassSave" />
|
|
<input id="btn_PrintFP" class="btnClass btnClassFind" type="button" value="打印发票" />
|
|
<input id="btn_DelPP" class="btnClass btnClassDel" type="button" value="删除匹配" style="display:none"/></td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
<div style="height:100px">
|
|
<font style="font-size:15pt;color:red" id="f_mess"></font>
|
|
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"
|
|
EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ReportSourceID="CrystalReportSource1"
|
|
ToolPanelView="None" HasDrilldownTabs="False" HasDrillUpButton="False" HasToggleGroupTreeButton="False"
|
|
HasToggleParameterPanelButton="False" />
|
|
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
|
|
<Report FileName="../PrintTemplate/EUBUS.rpt">
|
|
</Report>
|
|
</CR:CrystalReportSource>
|
|
<asp:ObjectDataSource ID="ObjectDataSourcedata" runat="server" OldValuesParameterFormatString="original_{0}"
|
|
SelectMethod="GetData" TypeName="wgptDataSetTableAdapters.ordersTableAdapter">
|
|
<SelectParameters>
|
|
<asp:Parameter Name="id" Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="title_ico">
|
|
订单打印
|
|
</div>
|
|
|
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="2">扫描条码:<input id="txt_KWCode" class="editTextbox" style="width: 150px;height:30px" type="text" /> 临时库位:<input id="txt_Code" class="editTextbox" style="width: 100px;height:30px" type="text" /></td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="2">
|
|
<font style="font-size:15pt;color:red" id="f_ts"></font>
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
<td valign="top" width="50%">购物车未匹配完的订单:<input id="cmdQX" type="button" value="清理货架,取消未匹配完的订单" class="btnClass btnClassEdit" onclick="" />
|
|
<div style="width: 700px;overflow-y:auto;height:600px" id="div1">
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
|
|
<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid blue; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余<font color="red">1</font><br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
</div> </td> <td valign="top" width="50%"> 需要去库存配货的订单:
|
|
<input id="cmdQX1" type="button" value="清理匹配完的货架" class="btnClass btnClassEdit" onclick="" /> <input id="cmdQX0" type="button" value="取消未匹配完的订单" class="btnClass btnClassEdit" onclick="" /><div style="width: 700px;overflow-y:auto;height:600px" id="div2">
|
|
|
|
<div style="width: 700px" id="">
|
|
<div title="" style="border: 1px solid red; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余1<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid red; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余1<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid red; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余1<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
<div title="" style="border: 1px solid red; border-image: none; width: 150px; height: 120px; text-align: left; float: left;" onclick="Edit(0,1)">
|
|
<a style="font-weight: bolder; color: blue">6710111122929</a><br />
|
|
存放架号:<a style="font-weight: bolder; font-size: larger; color: red"> 01</a><br />
|
|
已匹配:<br />
|
|
xwx1201-003 1件 剩余1<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0<br />
|
|
xwx1201-004 1件 剩余0
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|