You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
5.5 KiB
146 lines
5.5 KiB
|
|
|
|
@{
|
|
ViewBag.Title = "SeachInventory";
|
|
Layout = "~/Views/Shared/_Index.cshtml";
|
|
}
|
|
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
|
|
<link href="~/Content/js/dialog/dialog.css" rel="stylesheet" />
|
|
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
|
|
<script src="~/Content/js/select2/select2.min.js"></script>
|
|
<script>
|
|
var _Clos = new Array();
|
|
var WorkPoint = $.request("workpoint");
|
|
var InvCode = $.request("InvCode");
|
|
$(function () {
|
|
SetCols();
|
|
Init();
|
|
})
|
|
function SetCols() {
|
|
$.ajax({
|
|
url: "/Print/SelectColumnName?" + Math.random(),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
var cols = new Array();
|
|
|
|
var collast = { label: 'ID', name: 'ID', width: 100, align: 'left' };
|
|
cols.push(collast);
|
|
var collast = { label: '仓库', name: 'WHCode', width: 100, align: 'left' };
|
|
cols.push(collast);
|
|
var collast = { label: '工单号', name: 'MOCode', width: 100, align: 'left' };
|
|
cols.push(collast);
|
|
var collast = { label: '行号', name: 'Sequence', width: 100, align: 'left' };
|
|
cols.push(collast);
|
|
var collast = { label: '子件行', name: 'ZJHH', width: 100, align: 'left' };
|
|
cols.push(collast);
|
|
var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
|
|
cols.push(collast);
|
|
var collast = { label: '数量', name: 'Quantity', hidden: true };
|
|
cols.push(collast);
|
|
var collast = { label: '辅计量数量', name: 'Amount', hidden: true };
|
|
cols.push(collast);
|
|
var collast = { label: 'ExtensionID', name: 'ExtensionID', hidden: true };
|
|
cols.push(collast);
|
|
|
|
if (data != null && data.length > 0) {
|
|
DateList = data;
|
|
for (var i = 0; i < data.length; i++) {
|
|
var ColName = data[i].ColName;
|
|
var ColCode = data[i].ColCode;
|
|
var obj = new Array();
|
|
obj = {
|
|
label: ColName,
|
|
name: ColCode,
|
|
width: 80,
|
|
align: "left"
|
|
}
|
|
cols.push(obj);
|
|
}
|
|
}
|
|
_Clos = cols;
|
|
}
|
|
});
|
|
}
|
|
function Init() {
|
|
document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid
|
|
var invcode = $("#txt_Invcode").val();
|
|
$("#gridList").dataGrid({
|
|
url: "/WMS/ProductionIssue/GetICSMOPickLog" + "?invcode=" + InvCode + "&workpoint=" + WorkPoint + "&" + Math.random(),
|
|
height: $(window).height() - 20,
|
|
width: $(window).width() - 300,
|
|
colModel: _Clos,
|
|
// colModel: [
|
|
// { label: 'ID', name: 'ID', width: 100, align: 'left' },
|
|
// { label: '仓库', name: 'WHCode', width: 100, align: 'left' },
|
|
// { label: '工单号', name: 'MOCode', width: 100, align: 'left' },
|
|
// { label: '行号', name: 'Sequence', width: 100, align: 'left' },
|
|
// { label: '子件行', name: 'ZJHH', width: 100, align: 'left' },
|
|
// { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
|
|
// { label: '数量', name: 'Quantity', hidden: true },
|
|
// { label: '辅计量数量', name: 'Amount', hidden: true },
|
|
|
|
//],
|
|
pager: "#gridPager",
|
|
sortorder: "desc",
|
|
sortname: 'InvCode',
|
|
viewrecords: true,
|
|
multiselect: true,
|
|
gridComplete: function () {
|
|
}
|
|
})
|
|
}
|
|
function submitForm() {
|
|
var rows = $("#gridList").jqGrid('getGridParam', 'selarrrow');
|
|
if (rows.length != 1) {
|
|
$.modalAlertNew("WMS00079");
|
|
return;
|
|
}
|
|
var rowdata = $("#gridList").jqGrid("getRowData", rows[0]);
|
|
|
|
var obj = {
|
|
ID: rowdata.ID,
|
|
MOCode: rowdata.MOCode,
|
|
Sequence: rowdata.Sequence,
|
|
ZJHH: rowdata.ZJHH,
|
|
BatchCode: rowdata.BatchCode,
|
|
Quantity: rowdata.Quantity,
|
|
Amount: rowdata.Amount,
|
|
}
|
|
return obj;
|
|
}
|
|
function Close() {
|
|
$.modalClose();
|
|
}
|
|
function reloadData() {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
<div class="topPanel" style="height:50px">
|
|
@*<div class="search">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<label>物料编码:</label>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input id="txt_Invcode" type="text" class="form-control" placeholder="物料编码" style="width: 120px;">
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<a id="Search" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="Init()"><i class="fa fa-pencil-square-o"></i>查询</a>
|
|
</td>
|
|
</tr>
|
|
<tr></tr>
|
|
</table>
|
|
</div>*@
|
|
</div>
|
|
<div class="gridPanel" id="gridPanel">
|
|
<table id="gridList"></table>
|
|
<div id="gridPager"></div>
|
|
</div>
|