You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
258 lines
9.4 KiB
Plaintext
258 lines
9.4 KiB
Plaintext
2 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CK_GoodsCompare.aspx.cs" Inherits="TradeManage.CangKu.CK_GoodsCompare" %>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head id="Head1">
|
||
|
<title>sku导入</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
||
|
<link href="../themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
||
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DateBox.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript" src="../Scripts/uploadify/jquery.uploadify.js"></script>
|
||
|
<script src="../Scripts/ajaxfileupload.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css"
|
||
|
media="screen" />
|
||
|
|
||
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
||
|
|
||
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
$(document).ready(function () {
|
||
|
WindowLoadModel.ApplicationPath = "../";
|
||
|
WindowLoadModel.ControlID = "WindowLoad";
|
||
|
WindowLoadModel.Isbgiframe = true;
|
||
|
WindowLoadModel.Load();
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
CreateDataGrid();
|
||
|
$("#text_sku").focus();
|
||
|
GetRecord();
|
||
|
$("#select_scan").bind("change", function () {
|
||
|
|
||
|
GetModel();
|
||
|
});
|
||
|
|
||
|
});
|
||
|
function CreateDataGrid() {
|
||
|
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "库位编号";
|
||
|
col.CellTemplate = "<a>{Bind PostionCode}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "货物编码";
|
||
|
col.CellTemplate = "<span>{Bind GoodsCode}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "货物名称/描述";
|
||
|
col.CellTemplate = "<a>{Bind GoodsName}【{Bind TypeDesc}】</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "扫描数量";
|
||
|
col.CellTemplate = "<span>{Bind GoodsNum}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "系统库存数量";
|
||
|
col.CellTemplate = "<span>{Bind KCNum}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "系统库存匹配锁定";
|
||
|
col.CellTemplate = "<span>{Bind LockNum}</span>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
datagrid1.ShowIndexColumn = false;
|
||
|
datagrid1.AllowPaging = false;
|
||
|
datagrid1.Width = "100%";
|
||
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
||
|
datagrid1.Init();
|
||
|
|
||
|
|
||
|
}
|
||
|
function GetModel() {
|
||
|
if ($("#select_scan").val() == "0")
|
||
|
return;
|
||
|
var param = new Object();
|
||
|
param.Id = $("#select_scan").val();
|
||
|
|
||
|
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "CangKuServer.asmx/GetScanImportRecordModel",
|
||
|
async: false,
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != null) {
|
||
|
$("#text_sku").val(data.d.ScanContent);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function GetStore() {
|
||
|
|
||
|
|
||
|
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "CangKuServer.asmx/GetUseStoreHouse",
|
||
|
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != null) {
|
||
|
$(data.d).each(function () {
|
||
|
|
||
|
$("#select_ck").append("<option value='" + this.StoreId + "'>" + this.StoreName + "</option>");
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
function GetRecord() {
|
||
|
|
||
|
$("#select_scan").empty();
|
||
|
|
||
|
$("#select_scan").append("<option value='0'>-记录-</option>");
|
||
|
var param = new Object();
|
||
|
param.Type = 2;
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "CangKuServer.asmx/GetScanImportRecord",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != null) {
|
||
|
$(data.d).each(function () {
|
||
|
$("#select_scan").append("<option value='" + this.Id + "'>" + this.Title + "</option>");
|
||
|
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
function Clear()
|
||
|
{
|
||
|
|
||
|
$("#text_sku").val("");
|
||
|
datagrid1.DataBind(null);
|
||
|
GetRecord();
|
||
|
|
||
|
}
|
||
|
function Save() {
|
||
|
|
||
|
var param = new Object();
|
||
|
param.SKUS = $("#text_sku").val();
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "CangKuServer.asmx/SKUCompare",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
dataType: "json",
|
||
|
success: function (data) {
|
||
|
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != null && data.d.length > 0) {
|
||
|
alert("导入成功,请查看下面差异数据");
|
||
|
datagrid1.DataBind(data.d);
|
||
|
}
|
||
|
else {
|
||
|
alert("没发现扫描与系统库存的差异数据");
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body class="headbody">
|
||
|
<div class="title_ico">
|
||
|
货物盘库</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<table border="1" cellpadding="0" cellspacing="0" style="width: 95%"
|
||
|
class="tableAll">
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
|
||
|
<td colspan="2">
|
||
|
<font color="red">注:先扫描库位条码,再扫描货物条码,然后点击保存
|
||
|
</font>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
<td class="f1" width="10%">扫描记录:</td>
|
||
|
<td>
|
||
|
<select id="select_scan" class="selectClass" name="D4" style="width:200px;">
|
||
|
|
||
|
</select></td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
<td class="f1" width="10%">扫描内容:</td>
|
||
|
<td>
|
||
|
<textarea id="text_sku" cols="50" rows="20" style="width: 100%; overflow: auto; height: 550px"></textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
|
||
|
<td align="center" colspan="2">
|
||
|
<input id="btn_Save2" class="btnClass btnClassSave" type="button" value="提交" onclick="Save();"/> <input id="btn_Save1" class="btnClass btnClassDel" onclick="Clear();" type="button" value="清空" /> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="f1" width="10%">比较结果:</td>
|
||
|
<td>
|
||
|
<div id="DataGrid1" class="DataGridStyle">
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|