|
@ -447,12 +447,13 @@ |
|
|
|
|
|
|
|
|
function btnMaterial() { |
|
|
function btnMaterial() { |
|
|
debugger; |
|
|
debugger; |
|
|
var objArr = ''; |
|
|
|
|
|
|
|
|
|
|
|
var arr = []; |
|
|
var arr = []; |
|
|
mark = '拣料'; |
|
|
mark = '拣料'; |
|
|
flag = '1'; |
|
|
flag = '1'; |
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
|
|
|
var objArr = ''; |
|
|
var rowId = objList[i]; |
|
|
var rowId = objList[i]; |
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
if (rowData.IsNew == "已合并") { |
|
|
if (rowData.IsNew == "已合并") { |
|
@ -557,7 +558,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (mark == '合并拣料') { |
|
|
if (mark == '合并拣料') { |
|
|
var objArr = ''; |
|
|
|
|
|
|
|
|
|
|
|
var arr = []; |
|
|
var arr = []; |
|
|
var obj_Item1 = $("#gridList2"); |
|
|
var obj_Item1 = $("#gridList2"); |
|
|
var rowIds_Item1 = obj_Item1.getDataIDs(); |
|
|
var rowIds_Item1 = obj_Item1.getDataIDs(); |
|
@ -566,18 +567,31 @@ |
|
|
if (rowIds_Item1.length > 0) { |
|
|
if (rowIds_Item1.length > 0) { |
|
|
debugger; |
|
|
debugger; |
|
|
for (var i = 0; i < rowIds_Item1.length; i++) { |
|
|
for (var i = 0; i < rowIds_Item1.length; i++) { |
|
|
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[0]); |
|
|
|
|
|
|
|
|
var objArr = ''; |
|
|
|
|
|
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[i]); |
|
|
objArr += "'" + RowData_Item1.MergeID + "',"; |
|
|
objArr += "'" + RowData_Item1.MergeID + "',"; |
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
objArr = "" + objArr + "|"; |
|
|
objArr = "" + objArr + "|"; |
|
|
arr.push(objArr); |
|
|
arr.push(objArr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//var arr = []; |
|
|
|
|
|
//var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
|
|
//for (var i = 0; i < objList.length; i++) { |
|
|
|
|
|
// var objArr = ''; |
|
|
|
|
|
// var rowId = objList[i]; |
|
|
|
|
|
// var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
|
|
|
// objArr += "'" + rowData.Code + "',"; |
|
|
|
|
|
// objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
|
|
// objArr = "" + objArr + "|"; |
|
|
|
|
|
// arr.push(objArr); |
|
|
|
|
|
//} |
|
|
Arguments = arr; |
|
|
Arguments = arr; |
|
|
mold = 'HBJL00001'; |
|
|
mold = 'HBJL00001'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (mark == '拣料') { |
|
|
if (mark == '拣料') { |
|
|
var objArr = ''; |
|
|
|
|
|
|
|
|
|
|
|
var arr = []; |
|
|
var arr = []; |
|
|
var obj_Item1 = $("#gridList2"); |
|
|
var obj_Item1 = $("#gridList2"); |
|
|
var rowIds_Item1 = obj_Item1.getDataIDs(); |
|
|
var rowIds_Item1 = obj_Item1.getDataIDs(); |
|
@ -586,12 +600,25 @@ |
|
|
if (rowIds_Item1.length > 0) { |
|
|
if (rowIds_Item1.length > 0) { |
|
|
debugger; |
|
|
debugger; |
|
|
for (var i = 0; i < rowIds_Item1.length; i++) { |
|
|
for (var i = 0; i < rowIds_Item1.length; i++) { |
|
|
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[0]); |
|
|
|
|
|
|
|
|
var objArr = ''; |
|
|
|
|
|
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[i]); |
|
|
objArr += "'" + RowData_Item1.Code + "',"; |
|
|
objArr += "'" + RowData_Item1.Code + "',"; |
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
objArr = "" + objArr + "|"; |
|
|
objArr = "" + objArr + "|"; |
|
|
arr.push(objArr); |
|
|
arr.push(objArr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//var arr = []; |
|
|
|
|
|
//var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
|
|
//for (var i = 0; i < objList.length; i++) { |
|
|
|
|
|
// var objArr = ''; |
|
|
|
|
|
// var rowId = objList[i]; |
|
|
|
|
|
// var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
|
|
|
// objArr += "'" + rowData.Code + "',"; |
|
|
|
|
|
// objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
|
|
// objArr = "" + objArr + "|"; |
|
|
|
|
|
// arr.push(objArr); |
|
|
|
|
|
//} |
|
|
Arguments = arr; |
|
|
Arguments = arr; |
|
|
mold = 'JL00001'; |
|
|
mold = 'JL00001'; |
|
|
} |
|
|
} |
|
|