|
@ -12,10 +12,10 @@ |
|
|
if (Type == '1' || Type == '2' || Type == '3' || Type == '4' || Type == '5' || Type == '6' || Type == '9') { |
|
|
if (Type == '1' || Type == '2' || Type == '3' || Type == '4' || Type == '5' || Type == '6' || Type == '9') { |
|
|
$(".HideItems").css('display', 'none'); |
|
|
$(".HideItems").css('display', 'none'); |
|
|
} |
|
|
} |
|
|
if (Type=='1') { |
|
|
|
|
|
|
|
|
if (Type == '1') { |
|
|
gridList(); |
|
|
gridList(); |
|
|
} |
|
|
} |
|
|
if (Type=='2') { |
|
|
|
|
|
|
|
|
if (Type == '2') { |
|
|
gridList2(); |
|
|
gridList2(); |
|
|
} |
|
|
} |
|
|
if (Type == '3') { |
|
|
if (Type == '3') { |
|
@ -162,7 +162,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -204,7 +204,7 @@ |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
//colModel: ColModelMain, |
|
|
//colModel: ColModelMain, |
|
@ -271,7 +271,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -305,29 +305,29 @@ |
|
|
{ label: '工单行号', name: 'Sequence', width: 50, align: 'left' }, |
|
|
{ label: '工单行号', name: 'Sequence', width: 50, align: 'left' }, |
|
|
{ label: '已入库数量', name: 'RCVQuantity', hidden: true, }, |
|
|
{ label: '已入库数量', name: 'RCVQuantity', hidden: true, }, |
|
|
{ label: '料品编码', name: 'InvCode', width: 100, align: 'left' }, |
|
|
{ label: '料品编码', name: 'InvCode', width: 100, align: 'left' }, |
|
|
{ label: '料品名称', name: 'InvName', width: 60, align: 'left', }, |
|
|
|
|
|
|
|
|
{ label: '料品名称', name: 'InvName', width: 60, align: 'left', }, |
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
{ label: '辅计量数量', name: 'Amount', width: 150, align: 'left' }, |
|
|
{ label: '辅计量数量', name: 'Amount', width: 150, align: 'left' }, |
|
|
{ |
|
|
|
|
|
label: "状态", name: "MOStatus", width: 60, align: "left", |
|
|
|
|
|
formatter: function (cellvalue) { |
|
|
|
|
|
if (cellvalue == "1") { |
|
|
|
|
|
return "初始"; |
|
|
|
|
|
} else if (cellvalue == "2") { |
|
|
|
|
|
return "下发"; |
|
|
|
|
|
} |
|
|
|
|
|
else if (cellvalue == "3") { |
|
|
|
|
|
return "关单"; |
|
|
|
|
|
} |
|
|
|
|
|
else { return ""; } |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: "状态", name: "MOStatus", width: 60, align: "left", |
|
|
|
|
|
formatter: function (cellvalue) { |
|
|
|
|
|
if (cellvalue == "1") { |
|
|
|
|
|
return "初始"; |
|
|
|
|
|
} else if (cellvalue == "2") { |
|
|
|
|
|
return "下发"; |
|
|
|
|
|
} |
|
|
|
|
|
else if (cellvalue == "3") { |
|
|
|
|
|
return "关单"; |
|
|
|
|
|
} |
|
|
|
|
|
else { return ""; } |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
{ label: '规格型号', name: 'InvStd', width: 60, align: 'left', }, |
|
|
{ label: '规格型号', name: 'InvStd', width: 60, align: 'left', }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelMain, |
|
|
//colModel: ColModelMain, |
|
|
width: "100%", |
|
|
width: "100%", |
|
@ -435,20 +435,20 @@ |
|
|
{ label: '料品名称', name: 'InvName', width: 60, align: 'left', }, |
|
|
{ label: '料品名称', name: 'InvName', width: 60, align: 'left', }, |
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
{ label: '辅计量数量', name: 'Amount', width: 150, align: 'left' }, |
|
|
{ label: '辅计量数量', name: 'Amount', width: 150, align: 'left' }, |
|
|
{ |
|
|
|
|
|
label: "状态", name: "Status", width: 60, align: "left", |
|
|
|
|
|
formatter: function (cellvalue) { |
|
|
|
|
|
if (cellvalue == "1") { |
|
|
|
|
|
return "开立"; |
|
|
|
|
|
} else if (cellvalue == "2") { |
|
|
|
|
|
return "审核"; |
|
|
|
|
|
} |
|
|
|
|
|
else if (cellvalue == "3") { |
|
|
|
|
|
return "关闭"; |
|
|
|
|
|
} |
|
|
|
|
|
else { return ""; } |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: "状态", name: "Status", width: 60, align: "left", |
|
|
|
|
|
formatter: function (cellvalue) { |
|
|
|
|
|
if (cellvalue == "1") { |
|
|
|
|
|
return "开立"; |
|
|
|
|
|
} else if (cellvalue == "2") { |
|
|
|
|
|
return "审核"; |
|
|
|
|
|
} |
|
|
|
|
|
else if (cellvalue == "3") { |
|
|
|
|
|
return "关闭"; |
|
|
|
|
|
} |
|
|
|
|
|
else { return ""; } |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ label: '规格型号', name: 'InvStd', width: 60, align: 'left', }, |
|
|
{ label: '规格型号', name: 'InvStd', width: 60, align: 'left', }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
@ -632,7 +632,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -1018,7 +1018,7 @@ |
|
|
{ label: '料品型号', name: 'InvStd', width: 150, align: 'left' }, |
|
|
{ label: '料品型号', name: 'InvStd', width: 150, align: 'left' }, |
|
|
{ label: '料品单位', name: 'InvStd', width: 50, align: 'left' }, |
|
|
{ label: '料品单位', name: 'InvStd', width: 50, align: 'left' }, |
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' }, |
|
|
{ label: '辅计量数量', name: 'Amount', width: 150, align: 'left' }, |
|
|
{ label: '辅计量数量', name: 'Amount', width: 150, align: 'left' }, |
|
|
{ label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', }, |
|
|
{ label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', }, |
|
@ -1088,7 +1088,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -1429,7 +1429,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -1536,7 +1536,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -1579,7 +1579,7 @@ |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
//colModel: ColModelMain, |
|
|
//colModel: ColModelMain, |
|
@ -1646,7 +1646,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -1688,7 +1688,7 @@ |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '单位', name: 'InvUnit', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', }, |
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '批次', name: 'BatchCode', width: 100, align: 'left' }, |
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
//colModel: ColModelMain, |
|
|
//colModel: ColModelMain, |
|
@ -1755,7 +1755,7 @@ |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码', name: 'LotNo', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '条码数量', name: 'Quantity', width: 200, align: 'left' }, |
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
|
|
|
|
|
|
{ label: '操作人', name: 'MUSERName', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
{ label: '操作时间', name: 'MTIME', width: 200, align: 'left' }, |
|
|
], |
|
|
], |
|
|
//colModel: ColModelSub, |
|
|
//colModel: ColModelSub, |
|
@ -1807,7 +1807,7 @@ |
|
|
} |
|
|
} |
|
|
var POCode = ""; |
|
|
var POCode = ""; |
|
|
var PORow = ""; |
|
|
var PORow = ""; |
|
|
if (Type=='1') { |
|
|
|
|
|
|
|
|
if (Type == '1') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
ApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode; |
|
|
ApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1822,8 +1822,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '2') { |
|
|
|
|
|
|
|
|
} else if (Type == '2') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
OApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode; |
|
|
OApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1838,8 +1837,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '3') { |
|
|
|
|
|
|
|
|
} else if (Type == '3') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
MOCode = $("#gridList").jqGrid('getRowData', ids[i]).MOCode; |
|
|
MOCode = $("#gridList").jqGrid('getRowData', ids[i]).MOCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1854,8 +1852,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '4') { |
|
|
|
|
|
|
|
|
} else if (Type == '4') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
SDNCode = $("#gridList").jqGrid('getRowData', ids[i]).SDNCode; |
|
|
SDNCode = $("#gridList").jqGrid('getRowData', ids[i]).SDNCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1870,8 +1867,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '5') { |
|
|
|
|
|
|
|
|
} else if (Type == '5') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
InCode = $("#gridList").jqGrid('getRowData', ids[i]).InCode; |
|
|
InCode = $("#gridList").jqGrid('getRowData', ids[i]).InCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1886,8 +1882,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '6') { |
|
|
|
|
|
|
|
|
} else if (Type == '6') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
ReturnCode = $("#gridList").jqGrid('getRowData', ids[i]).ReturnCode; |
|
|
ReturnCode = $("#gridList").jqGrid('getRowData', ids[i]).ReturnCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1902,8 +1897,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '7') { |
|
|
|
|
|
|
|
|
} else if (Type == '7') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
DNCode = $("#gridList").jqGrid('getRowData', ids[i]).DNCode; |
|
|
DNCode = $("#gridList").jqGrid('getRowData', ids[i]).DNCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1918,8 +1912,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '8') { |
|
|
|
|
|
|
|
|
} else if (Type == '8') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
ODNCode = $("#gridList").jqGrid('getRowData', ids[i]).ODNCode; |
|
|
ODNCode = $("#gridList").jqGrid('getRowData', ids[i]).ODNCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1934,8 +1927,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '9') { |
|
|
|
|
|
|
|
|
} else if (Type == '9') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
RCVCode = $("#gridList").jqGrid('getRowData', ids[i]).RCVCode; |
|
|
RCVCode = $("#gridList").jqGrid('getRowData', ids[i]).RCVCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1950,9 +1942,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Type == '10') { |
|
|
|
|
|
|
|
|
} else if (Type == '10') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
DNCode = $("#gridList").jqGrid('getRowData', ids[i]).DNCode; |
|
|
DNCode = $("#gridList").jqGrid('getRowData', ids[i]).DNCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -1967,13 +1957,10 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Type == '11') { |
|
|
|
|
|
|
|
|
} else if (Type == '11') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
ODNCode = $("#gridList").jqGrid('getRowData', ids[i]).ODNCode; |
|
|
|
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
|
|
|
|
|
|
ODNCode = $("#gridList").jqGrid('getRowData', ids[i]).OOCode; |
|
|
|
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).OOSequence; |
|
|
} |
|
|
} |
|
|
$.modalOpen({ |
|
|
$.modalOpen({ |
|
|
id: "FormAddItemLot", |
|
|
id: "FormAddItemLot", |
|
@ -1985,9 +1972,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Type == '12') { |
|
|
|
|
|
|
|
|
} else if (Type == '12') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
LLApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode; |
|
|
LLApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -2002,8 +1987,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '13') { |
|
|
|
|
|
|
|
|
} else if (Type == '13') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
CLApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode; |
|
|
CLApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -2018,9 +2002,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Type == '14') { |
|
|
|
|
|
|
|
|
} else if (Type == '14') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
WWLLOApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode; |
|
|
WWLLOApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -2035,8 +2017,7 @@ |
|
|
top.frames[iframeId].submitForm(); |
|
|
top.frames[iframeId].submitForm(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
if (Type == '15') { |
|
|
|
|
|
|
|
|
} else if (Type == '15') { |
|
|
for (var i in ids) { |
|
|
for (var i in ids) { |
|
|
WWCLOApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode; |
|
|
WWCLOApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
|
Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence; |
|
@ -2094,23 +2075,23 @@ |
|
|
if (Type == '15') { mold = '00015'; }//委外材料出库退料 |
|
|
if (Type == '15') { mold = '00015'; }//委外材料出库退料 |
|
|
var objArr = ''; |
|
|
var objArr = ''; |
|
|
var arr = []; |
|
|
var arr = []; |
|
|
var obj = $("#gridList").jqGrid("getRowData"); |
|
|
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
|
|
} |
|
|
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
|
|
objArr = ""+objArr+"|"; |
|
|
|
|
|
arr.push(objArr); |
|
|
|
|
|
|
|
|
var obj = $("#gridList").jqGrid("getRowData"); |
|
|
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
} |
|
|
} |
|
|
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
|
|
arr.push(objArr); |
|
|
} |
|
|
} |
|
|
if (objArr == "") { |
|
|
|
|
|
$.modalAlert("请选择子表数据打印!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (objArr == "") { |
|
|
|
|
|
$.modalAlert("请选择子表数据打印!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
$.modalOpen({ |
|
|
$.modalOpen({ |
|
|
id: "PrintLot", |
|
|
id: "PrintLot", |
|
|
title: "打印", |
|
|
title: "打印", |
|
@ -2223,7 +2204,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
<td class="HideItems" style="text-align:right;" ><label class="lglabel HideItems" for="txt_VenName"> 供应商名称</label>:</td> |
|
|
|
|
|
|
|
|
<td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_VenName"> 供应商名称</label>:</td> |
|
|
<td class="HideItems"> |
|
|
<td class="HideItems"> |
|
|
<div class="input-group HideItems"> |
|
|
<div class="input-group HideItems"> |
|
|
<input id="txt_VenName" type="text" class="form-control HideItems" style="width: 100px;"> |
|
|
<input id="txt_VenName" type="text" class="form-control HideItems" style="width: 100px;"> |
|
|