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.
210 lines
7.1 KiB
Plaintext
210 lines
7.1 KiB
Plaintext
2 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InGoods.aspx.cs" Inherits="TradeManage.CangKu.InGoods" %>
|
||
|
|
||
|
<!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/uploadify.css" />
|
||
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.easyui.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/Global.js" type="text/javascript"></script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
$(document).ready(function () {
|
||
|
WindowLoadModel.ApplicationPath = "../";
|
||
|
WindowLoadModel.ControlID = "WindowLoad";
|
||
|
WindowLoadModel.Isbgiframe = true;
|
||
|
WindowLoadModel.Load();
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
$("#text_sku").focus();
|
||
|
|
||
|
GetRecord();
|
||
|
$("#select_scan").bind("change", function () {
|
||
|
|
||
|
GetModel();
|
||
|
});
|
||
|
|
||
|
});
|
||
|
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 = 3;
|
||
|
|
||
|
$.ajax({
|
||
|
url: "CangKuServer.asmx/GetScanImportRecord",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
if (data.d != null) {
|
||
|
$(data.d).each(function () {
|
||
|
$("#select_scan").append("<option value='" + this.Id + "'>" + this.Title + "</option>");
|
||
|
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
function Clear()
|
||
|
{
|
||
|
|
||
|
$("#text_sku").val("");
|
||
|
|
||
|
|
||
|
}
|
||
|
function Save() {
|
||
|
|
||
|
if ($("#text_sku").val() == "") {
|
||
|
alert("请扫描内容");
|
||
|
return;
|
||
|
}
|
||
|
WindowLoadModel.Show();
|
||
|
$("#btn_Save2").attr("disabled", "disabled");
|
||
|
var param = new Object();
|
||
|
param.SKUS = $("#text_sku").val();
|
||
|
|
||
|
$.ajax({
|
||
|
url: "CangKuServer.asmx/UpdateSKUPostionForTM2",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
dataType: "json",
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != "")
|
||
|
{
|
||
|
|
||
|
alert(data.d);
|
||
|
$("#btn_Save2").removeAttr("disabled");
|
||
|
return;
|
||
|
}
|
||
|
GetRecord();
|
||
|
|
||
|
alert("导入成功");
|
||
|
$("#btn_Save2").removeAttr("disabled");
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
</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>
|
||
|
<input id="btn_Clear" class="btnClass btnClassSave" onclick="Save();" type="button" value="提交" /> <input id="btn_Save1" class="btnClass btnClassDel" onclick="Clear();" type="button" value="清空" /></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();"/></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|