|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HW_GoodsOutLook.aspx.cs" Inherits="TradeManage.HuoWu.HW_GoodsOutLook" %>
|
|
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
<head id="Head1">
|
|
|
<title>出库单</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" />
|
|
|
<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.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 src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
|
<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 datagrid2 = new nblf.ui.DataGrid("DataGrid2");
|
|
|
var name = "<%=Session["Name"]%>";
|
|
|
var OutId = 0;
|
|
|
var GoodsId = 0;
|
|
|
var WindowLoadModel = new WindowLoad();
|
|
|
$(document).ready(function () {
|
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
|
WindowLoadModel.Isbgiframe = true;
|
|
|
WindowLoadModel.Load();
|
|
|
ajaxInit(WindowLoadModel);
|
|
|
OutId = $.url.param("OutId");
|
|
|
if (OutId == undefined) {
|
|
|
OutId = 0;
|
|
|
}
|
|
|
|
|
|
CreateDataGrid();
|
|
|
if (OutId > 0) {
|
|
|
GetOutModel();
|
|
|
ReadGoodsDetail();
|
|
|
}
|
|
|
$("#cmdBack").bind("click", function () {
|
|
|
|
|
|
window.location.href = "HW_GoodsOutListForTM.aspx";
|
|
|
});
|
|
|
});
|
|
|
function GetOutModel() {
|
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
param.OutId = OutId;
|
|
|
|
|
|
$.ajax({
|
|
|
url: "HuoWuService.asmx/GetOutCKModel",
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
dataType: "json",
|
|
|
async: false,
|
|
|
success: function (data) {
|
|
|
if (data.d != null) {
|
|
|
$("#txtOutCode").html(data.d.OutCode);
|
|
|
$("#txtOutReason").html(data.d.OutReason);
|
|
|
$("#txtRemark").html(data.d.Remark);
|
|
|
$("#txtInName").html(data.d.InName);
|
|
|
if(data.d.InDate!=null)
|
|
|
$("#txtInDate").html(data.d.InDate.localeFormat("yyyy-MM-dd HH:mm:ss"));
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ReadGoodsDetail() {
|
|
|
|
|
|
var param = new Object();
|
|
|
param.OutId = OutId;
|
|
|
WindowLoadModel.Show();
|
|
|
$.ajax({
|
|
|
url: "HuoWuService.asmx/GetOutCKDetailList",
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
dataType: "json",
|
|
|
async: false,
|
|
|
success: function (data) {
|
|
|
WindowLoadModel.Hide();
|
|
|
datagrid1.DataBind(data.d);
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region 初始化DataGrid
|
|
|
function CreateDataGrid() {
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
|
col.HeaderText = "货物描述";
|
|
|
|
|
|
col.CellTemplate = "<a>{Bind TypeDesc}</a>";
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
col.HeaderText = "货物SKU";
|
|
|
|
|
|
col.CellTemplate = "<a>{Bind SKU1}</a>";
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
col.HeaderText = "出库库位";
|
|
|
|
|
|
col.CellTemplate = "<a>{Bind PostionDesc}</a>";
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
col.HeaderText = "出库数量";
|
|
|
// col.Width = "100px";
|
|
|
col.CellTemplate = "<a>{Bind OutNum}</a>";
|
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
|
|
datagrid1.IsFixHeader = false;
|
|
|
datagrid1.ShowIndexColumn = false;
|
|
|
datagrid1.AllowPaging = false;
|
|
|
//datagrid1.Height = "260px";
|
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
|
|
datagrid1.Init();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
<body class="headbody">
|
|
|
<div style="display: none">
|
|
|
<div id="test" title="出库货物" style="width:680px; height:370px;">
|
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
<tr>
|
|
|
<td style="width: 110px;" class="f1">
|
|
|
货物编号/名称/SKU:
|
|
|
</td>
|
|
|
<td align="left" colspan="3">
|
|
|
<input id="txt_hwbhmc" class="editTextbox" style="width:120px;" type="text" />
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td><input id="Button1" type="button" value="查询" class="btnClass btnClassFind" onclick="AddGoods();"/></td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
<td align="left" colspan="5">
|
|
|
<div id="DataGrid2" style="height:300px;overflow:auto"></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
<td align="center" colspan="5">
|
|
|
<input id="btn_Save" type="button" class="btnClass btnClassSave" value="添 加" /> <input
|
|
|
id="btn_Cancel" type="button" class="btnClass btnClassClose" value="关 闭" />
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
<div class="title_ico">
|
|
|
出库单</div>
|
|
|
|
|
|
<table border="1" cellpadding="0" cellspacing="0" style="width:99%;" align="center" class="tableAll">
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="4" align="center" style="font-size:18pt;font-weight:bolder">
|
|
|
出库单</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td style="width:120px" class="f1">
|
|
|
<font color="red" style="font-weight:bolder">*</font>
|
|
|
出库单号:
|
|
|
</td>
|
|
|
<td>
|
|
|
<a id="txtOutCode"></a>
|
|
|
</td> <td style="width:120px" class="f1">
|
|
|
<font color="red" style="font-weight:bolder">*</font>
|
|
|
出库日期:
|
|
|
</td>
|
|
|
<td> <a id="txtInDate"></a>
|
|
|
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td style="width:120px" class="f1">
|
|
|
出库原因:</td>
|
|
|
<td> <a id="txtOutReason"></a>
|
|
|
</td> <td style="width:120px" class="f1">
|
|
|
出库人:
|
|
|
</td>
|
|
|
|
|
|
<td><a id="txtInName"></a>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
<td style="width:120px" class="f1">
|
|
|
备注信息:</td>
|
|
|
<td colspan="3">
|
|
|
<div id="txtRemark"></div>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td style="width:120px" class="f1">
|
|
|
出库货物:</td>
|
|
|
<td colspan="3">
|
|
|
<div id="DataGrid1" class="DataGridStyle"></div></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td colspan="4" align="center">
|
|
|
|
|
|
<input id="cmdBack" type="button" value="返 回" class="btnClass btnClassBack" />
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
</body>
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|