|
@ -693,65 +693,97 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//打印库位 |
|
|
|
|
|
function btn_Print() { |
|
|
|
|
|
|
|
|
////打印库位 |
|
|
|
|
|
//function btn_Print() { |
|
|
|
|
|
// debugger; |
|
|
|
|
|
// var objArr = ''; |
|
|
|
|
|
// var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
|
|
// //if (objList.length != 1) { |
|
|
|
|
|
// // $.modalAlert("一次只能打印一个送货单!"); |
|
|
|
|
|
// // return; |
|
|
|
|
|
// //} |
|
|
|
|
|
// for (var i = 0; i < objList.length; i++) { |
|
|
|
|
|
// var rowId = objList[i]; |
|
|
|
|
|
// var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
|
|
|
// objArr += "'" + rowData.ID + "',"; |
|
|
|
|
|
// } |
|
|
|
|
|
// var strPrintData; |
|
|
|
|
|
// var bIsInstallPrintControl; |
|
|
|
|
|
// var strPrintControlCookie; |
|
|
|
|
|
// $.ajax({ |
|
|
|
|
|
// url: "/WMS/BasicSettings/PrintStack", |
|
|
|
|
|
// type: "post", |
|
|
|
|
|
// data: { keyValue: JSON.stringify(objArr) }, |
|
|
|
|
|
// dataType: "json", |
|
|
|
|
|
// async: false, |
|
|
|
|
|
// success: function (data) { |
|
|
|
|
|
// strPrintData = data.strPrintData_1; |
|
|
|
|
|
// bIsInstallPrintControl = data.bIsInstallPrintControl_1; |
|
|
|
|
|
// strPrintControlCookie = data.strPrintControlCookie_1; |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// if (strPrintData != '') { |
|
|
|
|
|
// var test = "ChuLinPrint:" + strPrintData; |
|
|
|
|
|
// $("#ifrm")[0].src = "ChuLinPrint:" + strPrintData; |
|
|
|
|
|
// } |
|
|
|
|
|
// if (bIsInstallPrintControl == 'False') { |
|
|
|
|
|
// if (confirm("检测到打印控件未安装,您是否下载安装?")) { |
|
|
|
|
|
// $("#downPrintControl").click(); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// if (bIsInstallPrintControl == 'True') { |
|
|
|
|
|
// var strPrintControlCookie = strPrintControlCookie; |
|
|
|
|
|
// if (strPrintControlCookie != '') { //延时3秒后再次检测打印控件是否安装 |
|
|
|
|
|
// setTimeout("checkPrintControlInstall()", 8000); |
|
|
|
|
|
// function checkPrintControlInstall() { |
|
|
|
|
|
// $.ajax({ |
|
|
|
|
|
// url: "/SRM/ASNManage/IsCheckInstall?checkInstall=" + strPrintControlCookie, |
|
|
|
|
|
// dataType: "json", |
|
|
|
|
|
// async: false, |
|
|
|
|
|
// success: function (strResult) { |
|
|
|
|
|
// if (strResult.indexOf("PrintControlInstall") == -1) { |
|
|
|
|
|
// if (confirm("检测到打印控件未安装,您是否下载安装?")) { |
|
|
|
|
|
// $("#downPrintControl").click(); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// $("#btn_search").click(); |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
function btnPrint() { |
|
|
debugger; |
|
|
debugger; |
|
|
|
|
|
var mold = 'QC0001'; //条码打印 |
|
|
var objArr = ''; |
|
|
var objArr = ''; |
|
|
|
|
|
var arr = []; |
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
//if (objList.length != 1) { |
|
|
|
|
|
// $.modalAlert("一次只能打印一个送货单!"); |
|
|
|
|
|
// return; |
|
|
|
|
|
//} |
|
|
|
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
var rowId = objList[i]; |
|
|
var rowId = objList[i]; |
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
objArr += "'" + rowData.ID + "',"; |
|
|
|
|
|
} |
|
|
|
|
|
var strPrintData; |
|
|
|
|
|
var bIsInstallPrintControl; |
|
|
|
|
|
var strPrintControlCookie; |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: "/WMS/BasicSettings/PrintStack", |
|
|
|
|
|
type: "post", |
|
|
|
|
|
data: { keyValue: JSON.stringify(objArr) }, |
|
|
|
|
|
dataType: "json", |
|
|
|
|
|
async: false, |
|
|
|
|
|
success: function (data) { |
|
|
|
|
|
strPrintData = data.strPrintData_1; |
|
|
|
|
|
bIsInstallPrintControl = data.bIsInstallPrintControl_1; |
|
|
|
|
|
strPrintControlCookie = data.strPrintControlCookie_1; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
if (strPrintData != '') { |
|
|
|
|
|
var test = "ChuLinPrint:" + strPrintData; |
|
|
|
|
|
$("#ifrm")[0].src = "ChuLinPrint:" + strPrintData; |
|
|
|
|
|
|
|
|
objArr += "'" + rowData.LotNoID + "',"; |
|
|
} |
|
|
} |
|
|
if (bIsInstallPrintControl == 'False') { |
|
|
|
|
|
if (confirm("检测到打印控件未安装,您是否下载安装?")) { |
|
|
|
|
|
$("#downPrintControl").click(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
|
|
if (objArr == "") { |
|
|
|
|
|
$.modalAlertNew("WMS00110"); |
|
|
|
|
|
return; |
|
|
} |
|
|
} |
|
|
if (bIsInstallPrintControl == 'True') { |
|
|
|
|
|
var strPrintControlCookie = strPrintControlCookie; |
|
|
|
|
|
if (strPrintControlCookie != '') { //延时3秒后再次检测打印控件是否安装 |
|
|
|
|
|
setTimeout("checkPrintControlInstall()", 8000); |
|
|
|
|
|
function checkPrintControlInstall() { |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: "/SRM/ASNManage/IsCheckInstall?checkInstall=" + strPrintControlCookie, |
|
|
|
|
|
dataType: "json", |
|
|
|
|
|
async: false, |
|
|
|
|
|
success: function (strResult) { |
|
|
|
|
|
if (strResult.indexOf("PrintControlInstall") == -1) { |
|
|
|
|
|
if (confirm("检测到打印控件未安装,您是否下载安装?")) { |
|
|
|
|
|
$("#downPrintControl").click(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
|
|
arr.push(objArr); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.modalOpen({ |
|
|
|
|
|
id: "PrintLot", |
|
|
|
|
|
title: "打印", |
|
|
|
|
|
url: "/WMS/Print/PrintView?Arguments=" + encodeURI(encodeURI(arr)) + "&mold=" + mold + "&" + Math.random(), |
|
|
|
|
|
width: "550px", |
|
|
|
|
|
height: "1000px", |
|
|
|
|
|
callBack: function (iframeId) { |
|
|
|
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
$("#btn_search").click(); |
|
|
|
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
//导入 |
|
|
//导入 |
|
|
function btn_Introduction() { |
|
|
function btn_Introduction() { |
|
@ -825,11 +857,12 @@ |
|
|
<a id="NF-Delete" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Delete()"><i class="fa fa-pencil-square-o"></i>删除</a> |
|
|
<a id="NF-Delete" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Delete()"><i class="fa fa-pencil-square-o"></i>删除</a> |
|
|
<a id="NF-Update" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Update()"><i class="fa fa-pencil-square-o"></i>修改</a> |
|
|
<a id="NF-Update" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Update()"><i class="fa fa-pencil-square-o"></i>修改</a> |
|
|
<a id="NF-ExportAll" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_ExportAll()"><i class="fa fa-download"></i>全部导出</a> |
|
|
<a id="NF-ExportAll" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_ExportAll()"><i class="fa fa-download"></i>全部导出</a> |
|
|
<a id="NF-Print" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Print()"><i class="fa fa-print"></i>打印</a> |
|
|
|
|
|
|
|
|
@*<a id="NF-Print" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Print()"><i class="fa fa-print"></i>打印</a>*@ |
|
|
|
|
|
<a id="NF-Print" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnPrint()"><i class="fa fa-pencil-square-o"></i>打印</a> |
|
|
<a href="~/File/Stack/库位资料导入模板.xlsx" id="NF-IntroductionMould" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_IntroductionMould()"><i class="fa fa-file-excel-o"></i>导入模板下载</a> |
|
|
<a href="~/File/Stack/库位资料导入模板.xlsx" id="NF-IntroductionMould" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_IntroductionMould()"><i class="fa fa-file-excel-o"></i>导入模板下载</a> |
|
|
<a id="NF-Introduction" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Introduction()">导入</a> |
|
|
<a id="NF-Introduction" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Introduction()">导入</a> |
|
|
<a id="NF-Clike" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Clike()"><i class="fa fa-eject"></i>...</a> |
|
|
<a id="NF-Clike" authorize="yes" class="btn btn-primary dropdown-text" onclick="btn_Clike()"><i class="fa fa-eject"></i>...</a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="operates"> |
|
|
<div class="operates"> |
|
|
<ul class="nav nav-pills"> |
|
|
<ul class="nav nav-pills"> |
|
|