|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HW_GoodsNumCount.aspx.cs" Inherits="TradeManageNew.Huowu.HW_GoodsNumCount" %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
<title>货物信息</title>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.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/FixTable.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 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>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox2.1/source/jquery.fancybox.css?v=2.1.5"
|
|
|
|
|
media="screen" />
|
|
|
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/lib/jquery.mousewheel-3.0.6.pack.js"></script>
|
|
|
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/source/jquery.fancybox.js?v=2.1.5"></script>
|
|
|
|
|
|
|
|
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var Name = '<%= Session["Name"].ToString() %>';
|
|
|
|
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
|
|
|
|
|
|
|
|
|
var WindowLoadModel = new WindowLoad();
|
|
|
|
|
var storename = 0;
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
|
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
|
|
|
WindowLoadModel.Isbgiframe = true;
|
|
|
|
|
WindowLoadModel.Load();
|
|
|
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
|
storename = $.url.param("storename");
|
|
|
|
|
if (storename == undefined) {
|
|
|
|
|
storename = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetStore();
|
|
|
|
|
//$("#txt_YJName").val(Name);
|
|
|
|
|
CreateDataGrid();
|
|
|
|
|
$("#btn_sch").bind("click", function () {
|
|
|
|
|
|
|
|
|
|
ReadData();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//CreateDataGrid2();
|
|
|
|
|
//CreateDataGrid3();
|
|
|
|
|
//CreateDataGrid4();
|
|
|
|
|
ReadData();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function UpdateYC(DId, IsYC) {
|
|
|
|
|
if (DId <= 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.Id = DId;
|
|
|
|
|
param.IsYC = IsYC;
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../HuoWuServiceNew.asmx/Update_GoodsShow",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
alert("成功");
|
|
|
|
|
// ReadData();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
var DDId = 0;
|
|
|
|
|
var CGObj;
|
|
|
|
|
function SaveCGNum() {
|
|
|
|
|
if ($("#txt_CGNum").val() == "") {
|
|
|
|
|
alert("请输入采购数量");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.DetailId = DDId;
|
|
|
|
|
param.Num = $("#txt_CGNum").val();
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../HuoWuServiceNew.asmx/Update_CGGoodsNum",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
CGObj.html($("#txt_CGNum").val());
|
|
|
|
|
alert("成功");
|
|
|
|
|
$.fancybox.close();
|
|
|
|
|
// ReadData();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var sortname = "";
|
|
|
|
|
function GetStore() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $("#select_ck").append("<option value='0'>全部</option>");
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../CangKu/CangKuServer.asmx/GetUseStoreHouse",
|
|
|
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.d != null) {
|
|
|
|
|
$(data.d).each(function () {
|
|
|
|
|
if (storename != "" && storename == this.StoreName)
|
|
|
|
|
$("#select_ck").append("<option value='" + this.StoreId + "' selected='selected'>" + this.StoreName + "</option>");
|
|
|
|
|
else
|
|
|
|
|
$("#select_ck").append("<option value='" + this.StoreId + "'>" + this.StoreName + "</option>");
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function UpdateGoodsNum2() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../HuoWuServiceNew.asmx/UpdateGoodsOutNum",
|
|
|
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function UpdateGoodsNum(GoodsId) {
|
|
|
|
|
if (GoodsId <= 0)
|
|
|
|
|
return;
|
|
|
|
|
GetGoodsFee();
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.GoodsId = GoodsId;
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../HuoWuServiceNew.asmx/UpdateGoodsNumNew",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
alert("成功");
|
|
|
|
|
ReadData();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function GetGoodsFee() {
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../DD_OrderServiceNew.asmx/GetGoodsFee",
|
|
|
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function updateNoGoods(Ids) {
|
|
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.GoodIds = Ids;
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/updateNoGoods",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
ReadData();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function updateCancelNoGoods(Ids) {
|
|
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.GoodIds = Ids;
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/UpdateCancelNoGoods",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
ReadData();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//function AddTr() {
|
|
|
|
|
|
|
|
|
|
// $("#" + datagrid1.TableID + " tr").each(function (i) {
|
|
|
|
|
// if (i > 0) {
|
|
|
|
|
// var shtmls = "<tr><td width='30px'><td colspan='12'>";
|
|
|
|
|
|
|
|
|
|
// var index = $(this).attr("index");
|
|
|
|
|
// var md = datagrid1.Get_Model(index);
|
|
|
|
|
// if (md.GoodsList != null) {
|
|
|
|
|
// $(md.GoodsList).each(function () {
|
|
|
|
|
|
|
|
|
|
// shtmls += "<table width='90%' style='border:solid #add9c0; border-width:2px 0px 0px 2px;'><tr><td width='45%'><font color='blue'>明细编号:</font><span>" + this.TypeCode + "</span> <font color='blue'>SKU1:</font><span>" + this.SKU1 + "</span> <font color='blue'>型号描述:</font>" + this.TypeDesc + "</td><td width='15%'><font color='blue'>库存:</font>" + this.GoodsNum + "</td><td width='15%'><font color='blue'>订单需求:</font>" + this.GoodsPlanNum + "</td><td width='15%'><font color='blue'>采购途中:</font>" + this.GoodsInNum + "</td><td width='15%'><font color='blue'>参考:</font>" + this.LeftNum + "</td></tr></table>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// shtmls += "</td><tr>";
|
|
|
|
|
// $(this).after(shtmls);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
//#region 读取分类
|
|
|
|
|
|
|
|
|
|
var ListSort = null;
|
|
|
|
|
|
|
|
|
|
function ReadSortList() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListSort = new Array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/GetGoodsSortList",
|
|
|
|
|
//data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
async: true,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
ListSort = data.d;
|
|
|
|
|
|
|
|
|
|
BindTreeView();
|
|
|
|
|
|
|
|
|
|
ReadSortTree();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
//#region 绑定
|
|
|
|
|
|
|
|
|
|
var TreeSource;
|
|
|
|
|
function BindTreeView() {
|
|
|
|
|
TreeSource = new Array();
|
|
|
|
|
// Treehtml = new Sys.StringBuilder();
|
|
|
|
|
var Sortslist = GetListSort(null);
|
|
|
|
|
$(Sortslist).each(function () {
|
|
|
|
|
|
|
|
|
|
var childNode = new Array();
|
|
|
|
|
var model = new Array();
|
|
|
|
|
model.id = this.SortId;
|
|
|
|
|
model.text = this.SortName;
|
|
|
|
|
model.state = "closed";
|
|
|
|
|
model.checked = false;
|
|
|
|
|
model.iconCls = ".icon-addfolder";
|
|
|
|
|
model.children = childNode;
|
|
|
|
|
|
|
|
|
|
Array.add(TreeSource, model);
|
|
|
|
|
|
|
|
|
|
BindTreeChildNode(model.children, this.SortId);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
//#region 绑定
|
|
|
|
|
|
|
|
|
|
function BindTreeChildNode(PrevNode, ParentItemId) {
|
|
|
|
|
|
|
|
|
|
var Sortslist = GetListSort(ParentItemId);
|
|
|
|
|
|
|
|
|
|
$(Sortslist).each(function () {
|
|
|
|
|
var atr = new Object();
|
|
|
|
|
var childNode = new Array();
|
|
|
|
|
var model = new Array();
|
|
|
|
|
model.id = this.SortId;
|
|
|
|
|
model.text = this.SortName;
|
|
|
|
|
|
|
|
|
|
model.iconCls = "icon-Tree";
|
|
|
|
|
model.state = "closed";
|
|
|
|
|
model.checked = false;
|
|
|
|
|
|
|
|
|
|
model.children = childNode;
|
|
|
|
|
|
|
|
|
|
Array.add(PrevNode, model);
|
|
|
|
|
|
|
|
|
|
BindTreeChildNode(model.children, this.SortId);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
//#region 返回指定级菜单
|
|
|
|
|
function GetListSort(ParentItemId) {
|
|
|
|
|
var Sortslist = new Array();
|
|
|
|
|
$(ListSort).each(function () {
|
|
|
|
|
if (this.ParentId == ParentItemId) {
|
|
|
|
|
var model = new Object();
|
|
|
|
|
model.SortId = this.SortId;
|
|
|
|
|
model.ParentId = this.ParentId;
|
|
|
|
|
model.SortName = this.SortName;
|
|
|
|
|
|
|
|
|
|
Array.add(Sortslist, model);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return Sortslist;
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
var SortName = "";
|
|
|
|
|
var SortId = 0;
|
|
|
|
|
function ReadSortTree() {
|
|
|
|
|
|
|
|
|
|
var model = new Array();
|
|
|
|
|
model.id = 0;
|
|
|
|
|
model.text = "-全部-";
|
|
|
|
|
model.state = "closed";
|
|
|
|
|
model.checked = false;
|
|
|
|
|
model.iconCls = ".icon-addfolder";
|
|
|
|
|
model.children = null;
|
|
|
|
|
|
|
|
|
|
Array.insert(TreeSource, 0, model);
|
|
|
|
|
$("#txtSortId").combotree({
|
|
|
|
|
data: TreeSource,
|
|
|
|
|
onSelect: function (node) {
|
|
|
|
|
// var node = $("#txtSortId").tree("getSelected");
|
|
|
|
|
|
|
|
|
|
SortId = node.id;
|
|
|
|
|
if (node.children.length > 0) {
|
|
|
|
|
SortName = node.text;
|
|
|
|
|
SortId = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function GetImage(Ids) {
|
|
|
|
|
|
|
|
|
|
$("#div_img").empty();
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.Ids = Ids;
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
|
|
url: "../BaseData.asmx/GetResourceList",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.d != null) {
|
|
|
|
|
$("#img_1").attr("src", '../' + data.d[0].FileUrl);
|
|
|
|
|
$(data.d).each(function () {
|
|
|
|
|
$("#div_img").append("<img src='../" + this.FileUrl + "' width='100px' height='80px' style='margin-right:5px'/>");
|
|
|
|
|
});
|
|
|
|
|
fopen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function fopen() {
|
|
|
|
|
|
|
|
|
|
$.fancybox({
|
|
|
|
|
'width': '40%',
|
|
|
|
|
'height': '40%',
|
|
|
|
|
'autoScale': false,
|
|
|
|
|
'transitionIn': 'elastic',
|
|
|
|
|
'transitionOut': 'elastic',
|
|
|
|
|
'href': '#test',
|
|
|
|
|
'onComplete': function () {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function fopen2() {
|
|
|
|
|
|
|
|
|
|
$.fancybox({
|
|
|
|
|
'width': '40%',
|
|
|
|
|
'height': '40%',
|
|
|
|
|
'autoScale': false,
|
|
|
|
|
'transitionIn': 'elastic',
|
|
|
|
|
'transitionOut': 'elastic',
|
|
|
|
|
'href': '#test2',
|
|
|
|
|
'onComplete': function () {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function fopen3() {
|
|
|
|
|
|
|
|
|
|
$.fancybox({
|
|
|
|
|
'width': '40%',
|
|
|
|
|
'height': '40%',
|
|
|
|
|
'autoScale': false,
|
|
|
|
|
'transitionIn': 'elastic',
|
|
|
|
|
'transitionOut': 'elastic',
|
|
|
|
|
'href': '#test3',
|
|
|
|
|
'onComplete': function () {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function fopen4() {
|
|
|
|
|
|
|
|
|
|
$.fancybox({
|
|
|
|
|
'width': '40%',
|
|
|
|
|
'height': '40%',
|
|
|
|
|
'autoScale': false,
|
|
|
|
|
'transitionIn': 'elastic',
|
|
|
|
|
'transitionOut': 'elastic',
|
|
|
|
|
'href': '#test4',
|
|
|
|
|
'onComplete': function () {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function fopen5() {
|
|
|
|
|
|
|
|
|
|
$.fancybox({
|
|
|
|
|
'width': '40%',
|
|
|
|
|
'height': '40%',
|
|
|
|
|
'autoScale': false,
|
|
|
|
|
'transitionIn': 'elastic',
|
|
|
|
|
'transitionOut': 'elastic',
|
|
|
|
|
'href': '#test5',
|
|
|
|
|
'onComplete': function () {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
//#region 初始化DataGrid
|
|
|
|
|
function CreateDataGrid() {
|
|
|
|
|
Array.clear(datagrid1.Columns);
|
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "缩略图";
|
|
|
|
|
col.CellTemplate = "<a CommandName='cmdImg' class='linka'><img src='{Bind FirstImgUrl}' alt='' width='50px' height='50px'/></a>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "货物SKU";
|
|
|
|
|
// col.Width = "180px";
|
|
|
|
|
// col.Align = "left";
|
|
|
|
|
col.CellTemplate = "<span>{Bind GoodsCode}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "库存数";
|
|
|
|
|
// col.Width = "90px";
|
|
|
|
|
col.CellTemplate = "<span kc='1'>{Bind KCNum}</span>";
|
|
|
|
|
//col.SortExpression = "b.GoodsNum";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "单个体积";
|
|
|
|
|
// col.Width = "90px";
|
|
|
|
|
col.CellTemplate = "<span>{Bind Solid}</span>";
|
|
|
|
|
//col.SortExpression = "b.GoodsNum";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "合计体积";
|
|
|
|
|
// col.Width = "90px";
|
|
|
|
|
col.CellTemplate = "<span tj='1'>{Bind TJSolid}</span>";
|
|
|
|
|
//col.SortExpression = "b.GoodsNum";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "单个价格";
|
|
|
|
|
// col.Width = "90px";
|
|
|
|
|
col.CellTemplate = "<span>{Bind InPrice}</span>";
|
|
|
|
|
//col.SortExpression = "b.GoodsNum";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "合计价格";
|
|
|
|
|
// col.Width = "90px";
|
|
|
|
|
col.CellTemplate = "<span jg='1'>{Bind TJPrice}</span>";
|
|
|
|
|
//col.SortExpression = "b.GoodsNum";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
datagrid1.SetPageSize(20);
|
|
|
|
|
datagrid1.SetPageIndex(1);
|
|
|
|
|
// datagrid1.SortExpression = "b.GoodsCode,b.Indate";
|
|
|
|
|
// datagrid1.ViewSortDirection = "ASC";
|
|
|
|
|
datagrid1.IsFixHeader = true;
|
|
|
|
|
datagrid1.Height = $(document).height() - 230;
|
|
|
|
|
datagrid1.ShowIndexColumn = false;
|
|
|
|
|
datagrid1.AllowPaging = false;
|
|
|
|
|
datagrid1.Width = "100%";
|
|
|
|
|
//datagrid1.Sorting(function () {
|
|
|
|
|
|
|
|
|
|
// ReadData();
|
|
|
|
|
//});
|
|
|
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
|
|
|
|
datagrid1.Init();
|
|
|
|
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function AddTr() {
|
|
|
|
|
var hjkc = 0;
|
|
|
|
|
$("span[kc=1]").each(function () {
|
|
|
|
|
var num = $(this).html();
|
|
|
|
|
if (num != '') {
|
|
|
|
|
hjkc += parseInt(num)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$("#kc").html(hjkc);
|
|
|
|
|
var hjlf = 0;
|
|
|
|
|
$("span[tj=1]").each(function () {
|
|
|
|
|
var lf = $(this).html();
|
|
|
|
|
if (lf != '') {
|
|
|
|
|
hjlf += parseFloat(lf)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$("#lf").html(hjlf.toFixed(2));
|
|
|
|
|
var hjje = 0;
|
|
|
|
|
$("span[jg=1]").each(function () {
|
|
|
|
|
var je = $(this).html();
|
|
|
|
|
if (je != '') {
|
|
|
|
|
hjje += parseFloat(je)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$("#je").html(hjje.toFixed(2));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateDataGrid2() {
|
|
|
|
|
|
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "型号";
|
|
|
|
|
col.CellTemplate = "<a>{Bind TypeCode}</a>";
|
|
|
|
|
Array.add(datagrid2.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "描述";
|
|
|
|
|
col.CellTemplate = "<a>{Bind TypeDesc}</a>";
|
|
|
|
|
Array.add(datagrid2.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "备货数量";
|
|
|
|
|
col.CellTemplate = "<input type='text' min='0' max='10000000' precision='0' style='width:50px;' class='editTextbox' ColName='SafeNum' value='{Bind SafeNum}'/>";
|
|
|
|
|
Array.add(datagrid2.Columns, col);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
datagrid2.IsFixHeader = false;
|
|
|
|
|
datagrid2.ShowIndexColumn = false;
|
|
|
|
|
datagrid2.AllowPaging = false;
|
|
|
|
|
datagrid2.Width = "100%";
|
|
|
|
|
datagrid2.SelectMode = nblf.ui.SelectMode.None;
|
|
|
|
|
datagrid2.Init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateDataGrid3() {
|
|
|
|
|
|
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "型号";
|
|
|
|
|
col.CellTemplate = "<a>{Bind TypeCode}</a>";
|
|
|
|
|
Array.add(datagrid3.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "描述";
|
|
|
|
|
col.CellTemplate = "<a>{Bind TypeDesc}</a>";
|
|
|
|
|
Array.add(datagrid3.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "近期最低价";
|
|
|
|
|
col.CellTemplate = "<a>{Bind LowPrice}</a>";
|
|
|
|
|
Array.add(datagrid3.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "压价金额";
|
|
|
|
|
col.CellTemplate = "<input type='text' min='0' max='10000000' precision='3' style='width:50px;' class='editTextbox' ColName='Price' value='{Bind Price}'/>";
|
|
|
|
|
Array.add(datagrid3.Columns, col);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
datagrid3.IsFixHeader = false;
|
|
|
|
|
datagrid3.ShowIndexColumn = false;
|
|
|
|
|
datagrid3.AllowPaging = false;
|
|
|
|
|
datagrid3.Width = "100%";
|
|
|
|
|
datagrid3.SelectMode = nblf.ui.SelectMode.None;
|
|
|
|
|
datagrid3.Init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function CreateDataGrid4() {
|
|
|
|
|
|
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "选品名称";
|
|
|
|
|
col.CellTemplate = "<a CommandName='cmdLook' class='linka' >{Bind GoodsName}</a>";
|
|
|
|
|
col.Width = "150px";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "分类";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SortName}</span>";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "商品链接";
|
|
|
|
|
col.CellTemplate = "<div style='width:200px;word-wrap:break-word'><a target='_blank' href='{Bind LinkUrl}' class='linka' >{Bind LinkUrl}</a></div>";
|
|
|
|
|
col.Width = "200px";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "备注";
|
|
|
|
|
col.CellTemplate = "<div style='width:100px;word-wrap:break-word'><a>{Bind Remark}</a></div>";
|
|
|
|
|
col.Width = "100px";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "选品人";
|
|
|
|
|
col.CellTemplate = "<span>{Bind InName}</span>";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "操作人";
|
|
|
|
|
col.CellTemplate = "<span>{Bind DoName}</span>";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "分配店铺";
|
|
|
|
|
col.CellTemplate = "<span>{Bind ShopName}</span>";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "是否新增编号";
|
|
|
|
|
col.CellTemplate = "<span>{Bind IsAddState}{Bind GoodsCode}</span>";
|
|
|
|
|
Array.add(datagrid4.Columns, col);
|
|
|
|
|
datagrid4.SetPageSize(5);
|
|
|
|
|
datagrid4.SetPageIndex(1);
|
|
|
|
|
datagrid4.IsFixHeader = false;
|
|
|
|
|
datagrid4.ShowIndexColumn = false;
|
|
|
|
|
datagrid4.AllowPaging = true;
|
|
|
|
|
datagrid4.Width = "100%";
|
|
|
|
|
datagrid4.SelectMode = nblf.ui.SelectMode.RadioButton;
|
|
|
|
|
datagrid4.Init();
|
|
|
|
|
datagrid4.add_PageIndexChanged(function () { GetXPData(); });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function GetXPData() {
|
|
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
|
|
//Type,string InName,int SortId,DateTime? SDate,DateTime? EDate,int CheckState1,int CheckState2,int IsAdd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
param.IsAdd = 0;
|
|
|
|
|
if ($("#chk_IsAdd").is(":checked") == true)
|
|
|
|
|
param.IsAdd = 1;
|
|
|
|
|
param.Name = $("#txt_XPName").val();
|
|
|
|
|
param.InName = $("#txt_XPInName").val();
|
|
|
|
|
param.DoName = $("#txt_XPDoName").val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
param.PageSize = datagrid4.Get_PageSize();
|
|
|
|
|
param.PageIndex = datagrid4.Get_PageIndex();
|
|
|
|
|
param.Sort = "a.GoodsHJNum2 desc";
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../BaseData.asmx/GetXPSelectList",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
datagrid4.Set_RowCount(data.d.RowCount);
|
|
|
|
|
datagrid4.DataBind(data.d.DataSource);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function ReadBH() {
|
|
|
|
|
var param = new Object();
|
|
|
|
|
param.GoodsId = GoodsId;
|
|
|
|
|
param.TypeCode = $("#txt_typecode").val();
|
|
|
|
|
param.IsBH = 0;
|
|
|
|
|
if ($("#chk_isBH2").is(":checked") == true)
|
|
|
|
|
param.IsBH = 1;
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/GetSafeNumList",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
datagrid2.DataBind(data.d);
|
|
|
|
|
$("input[ColName='SafeNum']").MaskedTextBox();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ReadYJ() {
|
|
|
|
|
var param = new Object();
|
|
|
|
|
param.InDate = $("#txt_OffDate").val();
|
|
|
|
|
param.GoodsId = GoodsId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/GetLowPriceList",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
datagrid3.DataBind(data.d);
|
|
|
|
|
$("input[ColName='Price']").MaskedTextBox();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
//#region 读取数据
|
|
|
|
|
var StoreId = 0;
|
|
|
|
|
function ReadData() {
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
param.sku = $("#txt_Name").val();
|
|
|
|
|
|
|
|
|
|
param.storeId = $("#select_ck").val();
|
|
|
|
|
|
|
|
|
|
// WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../HuoWuServiceNew.asmx/GetListGoodsStoreCount",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
// WindowLoadModel.Hide();
|
|
|
|
|
// datagrid1.Set_RowCount(data.d.RowCount);
|
|
|
|
|
datagrid1.DataBind(data.d);
|
|
|
|
|
if (data.d != null) {
|
|
|
|
|
$("#kc").html(data.d[0].HJKCNum);
|
|
|
|
|
$("#lf").html(data.d[0].HJSolid.toFixed(2));
|
|
|
|
|
$("#je").html(data.d[0].HJPrice.toFixed(2));
|
|
|
|
|
}
|
|
|
|
|
// AddTr();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
//#region 删除
|
|
|
|
|
function DelCol(obj) {
|
|
|
|
|
if (window.confirm('确定要删除吗?') == false) return;
|
|
|
|
|
var rowindex = $(obj).parent().parent().attr("index");
|
|
|
|
|
var param = new Object();
|
|
|
|
|
var model = datagrid1.Get_Model(rowindex);
|
|
|
|
|
param.GoodsId = model.GoodsId;
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/DeleteGoodsInfo",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.d == 0) {
|
|
|
|
|
alert("删除成功");
|
|
|
|
|
ReadData();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
alert("该货物有库存或者有订单匹配或者有采购单匹配,无法删除");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function UpdateGoodsSafeNum() {
|
|
|
|
|
|
|
|
|
|
datagrid2.UpdateDataSource();
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.list = datagrid2.DataSource;
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/UpdateGoodsSafeNum",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
alert("备货成功");
|
|
|
|
|
ReadData();
|
|
|
|
|
|
|
|
|
|
$.fancybox.close();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function SaveLowPrice() {
|
|
|
|
|
if ($("#txt_YJDate").val() == "") {
|
|
|
|
|
alert("请填写压价日期");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
datagrid3.UpdateDataSource();
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
param.list = datagrid3.DataSource;
|
|
|
|
|
param.InName = $("#txt_YJName").val();
|
|
|
|
|
param.YJDate = $("#txt_YJDate").val();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "HuoWuService.asmx/SaveLowPrice",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
alert(data.d);
|
|
|
|
|
|
|
|
|
|
if (data.d == "保存成功")
|
|
|
|
|
$.fancybox.close();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//#region 导出
|
|
|
|
|
function ExportData() {
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
param.sku = $("#txt_Name").val();
|
|
|
|
|
|
|
|
|
|
param.storeId = $("#select_ck").val();
|
|
|
|
|
var dd = new Date();
|
|
|
|
|
var fname = "库存数据(" + dd.getFullYear() + "." + (dd.getMonth() + 1) + "." + dd.getDate() + ").xls";
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../HuoWuServiceNew.asmx/GetListGoodsStoreCountExcel",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
params = { FilePath: data.d, FileName: fname };
|
|
|
|
|
|
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
function SaveXP() {
|
|
|
|
|
var list = datagrid4.GetSelectListModel();
|
|
|
|
|
if (list == null || list.length == 0) {
|
|
|
|
|
alert("请选择一个货物");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (list[0].IsAdd == 1) {
|
|
|
|
|
alert("该选品货物已经添加过编号,不能新增");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
window.parent.addTab("货物编辑", "HuoWu/HW_GoodsAddForTM.aspx?Title=货物信息&GoodsId=0&XPId=" + list[0].Id + "&LinkUrl=" + list[0].LinkUrl, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function DeleteXP() {
|
|
|
|
|
var list = datagrid4.GetSelectListModel();
|
|
|
|
|
if (list == null || list.length == 0) {
|
|
|
|
|
alert("请选择一个货物");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (window.confirm('确定要删除该记录吗?') == false) return;
|
|
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
|
|
param.Id = list[0].Id;
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../BaseData.asmx/DeleteXP",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
alert("删除成功");
|
|
|
|
|
ReadData();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function SyncPrice() {
|
|
|
|
|
var price = 0;
|
|
|
|
|
$("input[ColName='Price']").each(function () {
|
|
|
|
|
if (price == 0 && $(this).val() != "")
|
|
|
|
|
price = $(this).val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
if (price > 0)
|
|
|
|
|
$("input[ColName='Price']").val(price);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body class="headbody">
|
|
|
|
|
<div class="title_ico">
|
|
|
|
|
库存</div>
|
|
|
|
|
<div style="display: none">
|
|
|
|
|
<div id="test" title="货物图片" style="width: 600px; height: 400px;">
|
|
|
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td colspan="2" align="center">
|
|
|
|
|
<img src="../attached/images/1.jpg" width="280px" height="250px" id="img_1" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="width: 80px;" class="f1">图片:
|
|
|
|
|
</td>
|
|
|
|
|
<td align="left">
|
|
|
|
|
<div id="div_img">
|
|
|
|
|
<img src="../attached/images/1.jpg" width="100px" height="80px" />
|
|
|
|
|
<img src="../attached/images/2.jpg" width="100px" height="80px" />
|
|
|
|
|
<img src="../attached/images/3.jpg" width="100px" height="80px" />
|
|
|
|
|
<img src="../attached/images/4.jpg" width="100px" height="80px" />
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
|
<input
|
|
|
|
|
id="btn_Cancel1" type="button" class="btnClass btnClassClose" value="关闭" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="test2" title="备货" style="width: 550px; height: 400px;">
|
|
|
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="f1" width="15%">型号:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input id="txt_typecode" class="editTextbox" style="width: 120px;" type="text" /> <input id="chk_isBH2" type="checkbox" /><label for="chk_isBH2">只显示有备货</label>
|
|
|
|
|
<input id="btn_Sure" type="button" class="btnClass btnClassFind" value="查询" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
<div id="DataGrid2" class="DataGridStyle" style="overflow: auto; height: 300px"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
|
<input id="btn_Save3" type="button" class="btnClass btnClassSave" value="确 定" onclick="UpdateGoodsSafeNum();" /> <input
|
|
|
|
|
id="btn_Cancel3" type="button" class="btnClass btnClassDel" value="取 消" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="test3" title="压价" style="width: 550px; height: 400px;">
|
|
|
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="f1" width="15%">日期:</td>
|
|
|
|
|
<td colspan="3">
|
|
|
|
|
<input id="txt_OffDate" onfocus="WdatePicker()" class="editTextbox" style="width: 120px;" type="text" />
|
|
|
|
|
<input id="btn_Sure2" type="button" class="btnClass btnClassFind" value="查询" /> <input id="btn_sync" type="button" class="btnClass btnClassEdit" value="同步价格" onclick="SyncPrice();" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td colspan="4">
|
|
|
|
|
<div id="DataGrid3" class="DataGridStyle" style="overflow: auto; height: 300px"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="f1" width="15%">压价人:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input id="txt_YJName" class="editTextbox" style="width: 120px;" type="text" />
|
|
|
|
|
</td> <td class="f1" width="15%">压价日期:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input id="txt_YJDate" class="editTextbox" onfocus="WdatePicker()" style="width: 120px;" type="text" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" colspan="4">
|
|
|
|
|
<input id="btn_Save4" type="button" class="btnClass btnClassSave" value="确 定" onclick="SaveLowPrice();" /> <input
|
|
|
|
|
id="btn_Cancel4" type="button" class="btnClass btnClassDel" value="取 消" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="test4" title="选品" style="width: 900px; height: 400px;">
|
|
|
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td colspan="2">选品信息:<input id="txt_XPName" class="editTextbox" style="width: 120px;" type="text" />选品人:<input id="txt_XPInName" class="editTextbox" style="width: 100px;" type="text" /> 操作人:<input id="txt_XPDoName" class="editTextbox" style="width: 100px;" type="text" />
|
|
|
|
|
<input id="btn_Sch" type="button" class="btnClass btnClassFind" value="查询" onclick="GetXPData()" /><input id="chk_IsAdd" type="checkbox"/>已经添加编号的选品<font color="red">这边只列出审核通过的选品货物</font>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
<div id="DataGrid4" class="DataGridStyle" style="overflow: auto; height: 300px"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
|
<input id="btn_Save5" type="button" class="btnClass btnClassSave" value="确 定" onclick="SaveXP();" /> <input
|
|
|
|
|
id="btn_Cancel5" type="button" class="btnClass btnClassDel" value="取 消" />
|
|
|
|
|
<input id="btn_Delete5" type="button" class="btnClass btnClassSave" value="删 除" onclick="DeleteXP();" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="test5" title="选品" style="width: 300px; height: 200px;">
|
|
|
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td colspan="2">编号:<span id="sp_code"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
采购数量: <input id="txt_CGNum" class="editTextbox" style="width: 80px;" type="text" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
|
<input id="Button2" type="button" class="btnClass btnClassSave" value="提 交" onclick="SaveCGNum();" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="f1" width="130px">
|
|
|
|
|
仓库:</td>
|
|
|
|
|
<td colspan="4"> <select id="select_ck" class="selectClass" style="width: 100px" name="D1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="f1" >
|
|
|
|
|
|
|
|
|
|
货物编号</td>
|
|
|
|
|
<td >
|
|
|
|
|
<input id="txt_Name" class="editTextbox" style="width: 120px;" type="text" />
|
|
|
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" />
|
|
|
|
|
<input id="btn_add" class="btnClass btnClassExcelTemplate"
|
|
|
|
|
onclick="ExportData();" type="button" value="导出Excel" /></td>
|
|
|
|
|
<td class="f1" > </td>
|
|
|
|
|
<td >
|
|
|
|
|
</td>
|
|
|
|
|
<td style="width: 10%;">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="f1" >
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="4">合计库存:<span id='kc' style='font:12pt;color:Red'></span>合计立方:<span id='lf' style='font:12pt;color:Red'></span>合计金额:<span id='je' style='font:12pt;color:Red'></span>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" colspan="5">
|
|
|
|
|
<div id="DataGrid1" class="DataGridStyle" style="-webkit-overflow-scrolling:touch;overflow:auto;"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|