103 lines
4.8 KiB
Plaintext
103 lines
4.8 KiB
Plaintext
|
|
@{
|
|
/**/
|
|
|
|
ViewBag.Title = "wzkcQuery";
|
|
}
|
|
|
|
<div style="width:100%">
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" style="width:70px">仓库:</td>
|
|
<td class="rtd" style="width:150px">@Html.DropDownList("sign", ViewBag.kD as SelectList, "----请选择----", new { @class = "l-text" })</td>
|
|
<td class="ltd" style="width:120px">物资分类:</td>
|
|
<td class="rtd" style="width:120px">@Html.DropDownList("wzlb", ViewBag.wzlbD as SelectList, "----请选择----", new { @class = "l-text" })</td>
|
|
<td class="ltd" style="width:120px">物资名称:</td>
|
|
<td class="rtd" style="width:120px"><input id="key" class="l-text" /></td>
|
|
<td class="rtd"><input type="button" id="search" class="l-button" value="查询" /><input type="button" id="ylpdb" class="l-button" style="margin-left:5px" value="预览盘点表" /><input style="margin-left:5px" type="button" id="dypdb" class="l-button" value="打印盘点表" /></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="maingrid"></div>
|
|
<div class="dispReport">
|
|
<object classid="clsid:F6A015E2-092A-4006-93DA-4CBDE3AFF4B8" id="window.top.Formium.external.Print" width="300" height="50"></object>
|
|
</div>
|
|
|
|
@using Newtonsoft.Json;
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
function init() {
|
|
liger.get("maingrid").reload();
|
|
openf.close();
|
|
}
|
|
$(function () {
|
|
$("#search").click(function () {
|
|
liger.get("maingrid").set("parms", { key: $("#key").val(), lb: $("#wzlb").val(), kcid: $("#sign").val() });
|
|
liger.get("maingrid").changePage("first");
|
|
liger.get("maingrid").reload();
|
|
})
|
|
$("#ylpdb").click(function () {
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "kcpdd.frx")) {
|
|
window.top.Formium.external.Print.PrintKCPDD($("#sign").val(), $("#wzlb").val(), $("#key").val(), "预览");
|
|
}
|
|
});
|
|
$("#dypdb").click(function () {
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "kcpdd.frx")) {
|
|
window.top.Formium.external.Print.PrintKCPDD($("#sign").val(), $("#wzlb").val(), $("#key").val(), "打印");
|
|
}
|
|
});
|
|
$("#maingrid").ligerGrid({
|
|
height: '100%',
|
|
columns: [
|
|
{ display: '编号', name: 'id', align: 'left', width: 60 },
|
|
{ display: '编码', name: 'bm', align: 'left', width: 80 },
|
|
{ display: '物资名称', name: 'mc', align: 'left', width: 150 },
|
|
{ display: '规格型号', name: 'ggxh', align: 'left', width: 80 },
|
|
{ display: '生产厂家', name: 'sccj', align: 'left', width: 80 },
|
|
{ display: '计量单位', name: 'jldw', align: 'left', width: 80 },
|
|
{ display: '单价', name: 'dj', width: 60 ,align:"right"},
|
|
{ display: '警戒值', name: 'kcsx', width: 100, render: function (r, i, v) { return v + "-" + r.kcxx } },
|
|
{ display: '库存', name: 'sl', width: 60, align: "right" },
|
|
{
|
|
display: '仓库', name: 'sign', align: 'left', width: 60,
|
|
render: function (r, i, v) {
|
|
if (v) {
|
|
var json =@Html.Raw(JsonConvert.SerializeObject(ViewBag.kD));
|
|
for (i in json) {
|
|
if (json[i]["Value"] == v)
|
|
return json[i]["Text"];
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
display: '金额', width: 100, align: "right", render: function (r, i, v) {
|
|
return (parseFloat(r.dj) * parseFloat(r.sl)).toFixed(2);
|
|
}
|
|
},
|
|
{
|
|
display: '状态', name: 'zt', width: 80, render: function (r, i, v) {
|
|
if (v == 1)
|
|
return "正常";
|
|
else
|
|
return "禁用";
|
|
}
|
|
}
|
|
],
|
|
url: "@Url.Action("getWZKC")",
|
|
pageSize: 10,
|
|
rownumbers: true,
|
|
usePager: false,
|
|
heightDiff: -20,
|
|
});
|
|
});
|
|
</script>
|
|
}
|
|
|
|
|
|
|
|
|