纽威
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.
 
 
 
 
 

151 lines
5.7 KiB

@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index.cshtml";
}
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
<script>
debugger;
var _Clos = new Array();
var Type = $.request("Type");
var ColModelMain = [];
var ColModelSub = [];
var ChosenList = "";
var BatchStockInArea = "";
$(function () {
SetCols();
})
//显示的列内容
function SetCols() {
$.ajax({
url: "/Print/SelectColumnName?" + Math.random(),
dataType: "json",
async: false,
success: function (data) {
var cols = new Array();
var collast = { label: "主键", name: "ID", hidden: true, key: true };
cols.push(collast);
var collast = { label: '单据号', name: 'DNCode', width: 200, align: 'left' };
cols.push(collast);
var collast = { label: '单据行号', name: 'Sequence', width: 200, align: 'left' };
cols.push(collast);
var collast = { label: '物料编码', name: 'InvCode', width: 200, align: 'left' };
cols.push(collast);
var collast = { label: '数量', name: 'Quantity', width: 200, align: 'left' };
cols.push(collast);
var collast = { label: '销售凭证', name: 'ProjectCode', width: 200, align: 'left' };
cols.push(collast);
var collast = { label: '销售凭证项号', name: 'Brand', width: 200, align: 'left' };
cols.push(collast);
var collast = { label: '序列号', name: 'BatchCode', width: 200, align: 'left' };
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 gridList() {
}
function fullscreen() {
var docElm = document.documentElement;
if (docElm.requestFullscreen) {
docElm.requestFullscreen();
} else if (docElm.mozRequestFullScreen) {
docElm.mozRequestFullScreen();
} else if (docElm.webkitRequestFullScreen) {
docElm.webkitRequestFullScreen();
} else if (docElm.msRequestFullscreen) {
docElm.msRequestFullscreen();
}
$(window).bind('resize', function () {
$("#gridList").setGridWidth($(window).width());
}).trigger('resize');
$(window).bind('resize', function () {
$("#gridList").setGridHeight($(window).height());
}).trigger('resize');
}
function btnSyncDNDoc() {
var DocNO = $("#txt_POCode").val();
var StartDate = $("#txt_StartTime").val();
if (DocNO == "" && StartDate == "") {
$.modalAlertNew("WMS00120");
return;
}
$.modalConfirm("确定同步检验合格单吗?", function (r) {
if (r) {
$.submitForm({
url: "/WMS/BasicSettings/SyncDNDoc?DocNO=" + DocNO + "&StartDate=" + StartDate,
async: false,
success: function () {
location.reload();
}
})
}
});
}
</script>
<iframe id="ifrm" src="" width="0" height="0"></iframe>
<script>
</script>
<div class="topPanel" style="height:150px;">
<div class="toolbar">
<div class="btn-group">
<a id="NF-BatchStockIN" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnSyncDNDoc()"><i class="fa fa-pencil-square-o"></i>检验合格单同步</a>
<a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
</div>
<div class="btn-group" style="display:block;padding-left:2px;">
<a class="btn btn-primary" id="downPrintControl" href="~/PrintActivex.exe" style="display:none">点击下载打印组件</a>
</div>
<script>$('.toolbar').authorizeButton()</script>
</div>
<div class="search">
<table>
<tr>
<td style="text-align:right;"><label class="lglabel" for="txt_POCode">&nbsp;&nbsp;&nbsp;&nbsp;检验合格单号</label>:</td>
<td>
<div class="input-group">
<input id="txt_POCode" type="text" class="form-control" style="width: 100px;">
</div>
</td>
<td style="text-align:right;"><label class="lglabel" for="txt_StartTime">&nbsp;&nbsp;&nbsp;&nbsp;同步开始时间</label>:</td>
<td>
<div class="input-group">
@*<input id="txt_StartTime" type="datetime" class="form-control" style="width: 100px;">*@
<input type="text" name="PRODUCTDATE" id="txt_StartTime" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="开始时间" />
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="gridPanel">
<table id="gridList"></table>
<div id="gridPager"></div>
</div>