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.
450 lines
15 KiB
Plaintext
450 lines
15 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CK_GoodsMoveCheck.aspx.cs" Inherits="TradeManageNew.CangKu.CK_GoodsMoveCheck" %>
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="referrer" content="no-referrer">
|
|
<title>移库审核</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css2/icon.css">
|
|
<link rel="stylesheet" type="text/css" href="../css2/DataGrid.css" />
|
|
<link href="../css2/gray/easyui.css" rel="stylesheet" type="text/css" />
|
|
<link rel="stylesheet" href="../font-awesome/css/font-awesome.min.css" />
|
|
<link href="../css2/New.css?a=1" rel="stylesheet" type="text/css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/uploadify.css" />
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.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/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global2.js?t=1" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/My97DatePicker/WdatePicker.js?t=1"></script>
|
|
<link href="../Scripts/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" />
|
|
<script src="../Scripts/fancybox/jquery.fancybox-1.3.4.js" type="text/javascript"></script>
|
|
<script src="../Scripts/MaskedTextBox.js?t=1" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
|
var UserId = "<%=Session["UserId"]%>";
|
|
var WindowLoadModel = new WindowLoad();
|
|
var Model = null;
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
CreateDataGrid();
|
|
|
|
ReadData();
|
|
|
|
if (UserId == 1) {
|
|
$("#btn_ty,#btn_bh,#btnspqx").show();
|
|
} else {
|
|
$("#btn_ty,#btn_bh").hide();
|
|
$("#btnspqx").show();
|
|
}
|
|
|
|
$("#btn_sch").bind("click", function () {
|
|
ReadData();
|
|
|
|
});
|
|
|
|
$("#btn_wsp").bind("click", function () {
|
|
if (UserId == 1) {
|
|
$("#btn_ty,#btn_bh,#btnspqx").show();
|
|
}
|
|
else {
|
|
$("#btnspqx").show();
|
|
}
|
|
checkstate = 0;
|
|
ReadData();
|
|
|
|
});
|
|
$("#btn_sptg").bind("click", function () {
|
|
$("#btn_ty,#btn_bh,#btnspqx").hide();
|
|
checkstate = 1;
|
|
ReadData();
|
|
|
|
});
|
|
$("#btn_spbh").bind("click", function () {
|
|
$("#btn_ty,#btn_bh,#btnspqx").hide();
|
|
checkstate = 2;
|
|
ReadData();
|
|
});
|
|
|
|
$("#btn_spqx").bind("click", function () {
|
|
$("#btn_ty,#btn_bh,#btnspqx").hide();
|
|
checkstate = 3;
|
|
ReadData();
|
|
});
|
|
|
|
|
|
// $("#" + datagrid1.TableID + " input[CommandName='cmdCopy']").live("click", function () {
|
|
// var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
|
|
// var model = datagrid1.Get_Model(RowIndex);
|
|
//var Url2=document.getElementById("txt_"+model.id);
|
|
|
|
//Url2.select(); // 选择对象
|
|
|
|
//document.execCommand("Copy"); // 执行浏览器复制命令
|
|
|
|
//alert("已复制到粘贴板,可粘贴。");
|
|
|
|
// });
|
|
|
|
|
|
});
|
|
|
|
//#region 外链
|
|
function SaveWebLink() {
|
|
var list = datagrid1.GetSelectListModel();
|
|
if (list == null || list.length == 0) {
|
|
alert("请选择要生成外链的相册");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
param.list = list;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "EBookService.asmx/Save_BookWebLink",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != "") {
|
|
$("#a_link").html("http://60.12.218.120:8080/EBOOK/EBook_OutList.aspx?code="+data.d);
|
|
$("#a_link").attr("href","http://60.12.218.120:8080/EBOOK/EBook_OutList.aspx?code="+data.d);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
//#region 删除
|
|
function Delete(Id) {
|
|
if (window.confirm("确定要删除吗?") == false) return;
|
|
var param = new Object();
|
|
param.id = Id;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "EBookService.asmx/Delete_BookList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d == false) { alert("已经使用过,无法删除"); return; }
|
|
ReadData(); //刷新DataGrid
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
var checkstate = 0;
|
|
function ReadData() {
|
|
|
|
var param = new Object();
|
|
param.StartDate = $("#txt_SDate").val();
|
|
param.StopDate = $("#txt_EDate").val();
|
|
param.sku = $("#txt_sku").val();
|
|
param.checkstate =checkstate;
|
|
|
|
param.PageSize = datagrid1.Get_PageSize();
|
|
param.PageIndex = datagrid1.Get_PageIndex();
|
|
param.sort ="a.id desc";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../CangKuServerNew.asmx/GetListGoodsMoveCheck",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
var good_id = 0;
|
|
function fopen() {
|
|
$("#_fixTableHeader").hide();
|
|
$.fancybox({
|
|
'scrolling': 'no',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test',
|
|
'onClosed': function () {
|
|
|
|
}
|
|
}, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//#region 初始化DataGrid
|
|
function CreateDataGrid() {
|
|
|
|
var
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "审批状态";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<a style='color:red'>{Bind checkstatename}</a>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "编号SKU";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<span>{Bind SKU1}</span>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "库存数";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<span>{Bind kcnum}</span>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "原库位";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<span>{Bind oldpostiondesc}</span>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "调入库位";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<span>{Bind newpostiondesc}</span>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "调入数量";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<span>{Bind movenum}</span>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "出库数量";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<span>{Bind outnum}</span>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "提交人";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<div>{Bind inname}</div>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "提交日期";
|
|
//CommandName='cmdLook'
|
|
col.CellTemplate = "<div>{Bind indate,yyyy-MM-dd HH:mm}</div>";
|
|
col.SortExpression = "";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
datagrid1.SortExpression = "";
|
|
datagrid1.ViewSortDirection = "";
|
|
datagrid1.IsFixHeader = false;
|
|
// datagrid1.Height = $(document).height() - 330;
|
|
datagrid1.ShowIndexColumn = false;
|
|
datagrid1.AllowPaging = true;
|
|
datagrid1.Width = "100%";
|
|
datagrid1.IsFixHeader = false;
|
|
|
|
// datagrid1.Height = $(document).height() - 300;
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.CheckBox;
|
|
datagrid1.Init();
|
|
datagrid1.Sorting(function () {
|
|
|
|
ReadData();
|
|
});
|
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
|
|
}
|
|
function AddCheck(state) {
|
|
var list = datagrid1.GetSelectListModel();
|
|
if (list == null || list.length==0) {
|
|
alert("请选择要审批的记录");
|
|
return;
|
|
}
|
|
if (state == 1) {
|
|
if (window.confirm('确定要审批通过吗?') == false) return;
|
|
}
|
|
else if (state == 2) {
|
|
if (window.confirm('确定要驳回吗?') == false) return;
|
|
}
|
|
else if (state == 3) {
|
|
if (window.confirm('确定要取消吗?') == false) return;
|
|
}
|
|
var param = new Object();
|
|
|
|
param.list =list;
|
|
param.checkstate = state;
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../CangKuServerNew.asmx/CheckPostionGoods",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
alert(data.d);
|
|
ReadData();
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.td_f1 {
|
|
font-size: 11pt;
|
|
text-align: center;
|
|
}
|
|
.auto-style1 {
|
|
height: 34px;
|
|
}
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body class="headbody">
|
|
<div style="display: none">
|
|
<div id="test" title="货物图片" style="width: 400px; height: 300px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
<tr>
|
|
|
|
<td align="center" class="td_f1" width="40%">
|
|
平台
|
|
</td> <td>
|
|
<select id="select_plat2" class="selectClass" style="width: 99%;" name="D8">
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td align="center" class="td_f1">
|
|
店铺
|
|
</td> <td>
|
|
<select id="select_shop2" class="selectClass" style="width: 99%;" name="D8">
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td align="center" class="td_f1">
|
|
引用刊登包模板
|
|
</td> <td>
|
|
<select id="select_shop3" class="selectClass" style="width: 99%;" name="D8">
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="2">
|
|
<input type="button" value="刊登发布" class="layui-btn" onclick="SaveOrderLJ();" />
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<table class="tableAll" style="width: 100%;">
|
|
<tr>
|
|
|
|
<td width="100%" valign="top">
|
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
|
<tr>
|
|
<td colspan="5">
|
|
<input id="btn_wsp" class="layui-btngray" type="button" value="未审批" />
|
|
<input id="btn_sptg" class="layui-btn" type="button" value="审批通过" /> <input id="btn_spbh" class="layui-btn" type="button" value="驳回" />
|
|
<input id="btn_spqx" class="layui-btn" type="button" value="取消" />
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="td_f1" width="10%">
|
|
编号</td>
|
|
<td width="20%">
|
|
<input id="txt_sku" class="editTextbox" style="width: 220px;" type="text" /> </td>
|
|
<td class="td_f1" width="10%">
|
|
提交日期</td>
|
|
<td><input id="txt_SDate" class="editTextbox" onfocus="WdatePicker()" style="width: 80px;" type="text" />-<input id="txt_EDate" class="editTextbox" onfocus="WdatePicker()" style="width: 80px;" type="text" />
|
|
</td>
|
|
|
|
<td><input id="btn_sch" class="layui-btnblue" type ="button" value="查询" /></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="5"><input id="btn_ty" class="layui-btnblue" type="button" value="同意" onclick="AddCheck(1)" /> <input id="btn_bh" class="layui-btnblue" type="button" value="驳回" onclick="AddCheck(2)"/> <input id="btnspqx" class="layui-btnblue" type="button" value="取消" onclick="AddCheck(3)"/></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
<td valign="top" colspan="7" class="auto-style1">
|
|
|
|
<div id="DataGrid1" class="DataGridStyle" ></div>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|