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.

144 lines
5.2 KiB
Plaintext

2 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CK_GoodsPostion.aspx.cs" Inherits="TradeManage.CangKu.CK_GoodsPostion" %>
<!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);
$("#txt_Postion").focus();
$(document).keyup(function (event) {
if (event.keyCode == 13) {
if ($("#txt_Postion").is(":focus") == true) {
$("#text_sku").focus();
}
}
});
});
function Save() {
if ($("#txt_Postion").val() == "")
{
alert("请输入库位编码");
return;
}
if ($("#text_sku").val() == "") {
alert("请输入sku编码");
return;
}
var param = new Object();
param.SKUS = $("#text_sku").val();
param.PostionCode = $("#txt_Postion").val();
$.ajax({
url: "CangKuServer.asmx/UpdateSKUPostion",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
dataType: "json",
success: function (data) {
if (data.d != "库位编号不存在" && data.d != "保存成功")
{
$("#text_sku").val(data.d);
alert(data.d + "sku不存在");
return;
}
else if (data.d == "保存成功")
{
$("#text_sku").val("");
$("#txt_Postion").val("");
}
alert(data.d);
}
});
}
</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">注:这边针对已经入库但未对应库位的货物才有效<br />
先扫描库位条码,再扫描货物条码,然后点击保存
</font>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input id="btn_Save1" class="btnClass btnClassSave" type="button" value="确定保存" onclick="Save();"/></td>
</tr>
<tr>
<td class="f1" width="10%">库位编码:</td>
<td>
<input id="txt_Postion" class="editTextbox" style="width:120px;" type="text" /></td>
</tr>
<tr>
<td class="f1" width="10%">货物SKU</td>
<td>
<textarea id="text_sku" cols="50" rows="20" style="width: 100%; overflow: auto; height: 350px"></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>