2024-05-18 15:28:29 +08:00
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Materiel_list.aspx.cs" Inherits="Materiel_list" %>
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head runat="server">
|
|
|
|
<title></title>
|
|
|
|
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="../Jquery-ui/js/jquery-1.10.2.js" type="text/javascript"></script>
|
|
|
|
<link href="../Css/right.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="../Jquery-ui/js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
|
|
|
|
<link href="../Jquery-ui/css/pepper-grinder/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="../Js/Calendar3.js" type="text/javascript"></script>
|
|
|
|
<script src="../Js/ToolTip.js" type="text/javascript"></script>
|
|
|
|
<link rel="stylesheet" href="../Css/gh-buttons.css" type="text/css"/>
|
|
|
|
<link rel="stylesheet" href="../Css/prettify.css"/>
|
|
|
|
<script src="../Js/prettify.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
spasefuzhi(Materiel_list);
|
|
|
|
|
|
|
|
$("#drp_zt").change(function () {
|
|
|
|
var fanhui = "";
|
|
|
|
|
|
|
|
fanhui = Materiel_list.page_change(0, $("#drp_pageitem").val(), funpaixu(), pxtiaojian()).value;
|
|
|
|
$(".kh").css("display", "none");
|
|
|
|
|
|
|
|
$("#tbl_list").html(fanhui);
|
|
|
|
var nowp = Materiel_list.sumitem(" where " + pxtiaojian() + " 1=1 ").value
|
|
|
|
$("#span_sumitem").text(nowp);
|
|
|
|
pagecount = $("#span_sumpage").text() - 1;
|
|
|
|
})
|
|
|
|
var pagename = $("body", parent.document).find('#pagename').val();
|
|
|
|
if (pagename == "sg") {
|
|
|
|
$("#drp_zt").find("option:last").remove();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
function select(obj) {
|
|
|
|
$(".wlxz").attr("src", "../Images_Folder/checkOff1.png");
|
|
|
|
$(obj).children("td:first").children().attr("src", "../Images_Folder/checkOn1.png");
|
|
|
|
|
|
|
|
}
|
|
|
|
function check(id) {
|
|
|
|
var kh_fhcode = Materiel_list.wuliaoxinxi(id).value;
|
|
|
|
var wlzu = kh_fhcode.split(',');
|
|
|
|
var rowval = $("body", parent.document).find('#dialog-wuliao').attr("tag");
|
|
|
|
var pagename = $("body", parent.document).find('#pagename').val();
|
|
|
|
if (pagename == 'dd') {
|
|
|
|
$("body", parent.document).find('#wbianhao' + rowval).val(wlzu[0]);
|
|
|
|
$("body", parent.document).find('#wmingcheng' + rowval).val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#wlguige' + rowval).val(wlzu[10]);
|
|
|
|
$("body", parent.document).find('#wpinpai' + rowval).val(wlzu[4]);
|
|
|
|
$("body", parent.document).find('#wdanwei' + rowval).val(wlzu[5]);
|
|
|
|
$("body", parent.document).find('#kufang' + rowval).val(wlzu[8]);
|
|
|
|
} else if (pagename == "sg") {
|
|
|
|
$("body", parent.document).find('#txt_wlbianhao').val(wlzu[0]);
|
|
|
|
$("body", parent.document).find('#txt_wlpinpai').val(wlzu[4]);
|
|
|
|
$("body", parent.document).find('#txt_wlmingcheng').val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#txt_wlguige').val(wlzu[10]);
|
|
|
|
$("body", parent.document).find('#txt_danwei').val(wlzu[5]);
|
|
|
|
$("body", parent.document).find('#txt_kucun').val(wlzu[6]);
|
|
|
|
$("body", parent.document).find('#wlidhidden').val(id);
|
|
|
|
var dzs = Materiel_list.getscdmxdzs(id,$("body", parent.document).find('#txt_shengchandan').val()).value;
|
|
|
|
$("body", parent.document).find('#txt_qxshuliang').val(dzs);
|
|
|
|
}else if (pagename == "qtrk") {
|
|
|
|
$("body", parent.document).find('#cangku').val(wlzu[8]);
|
|
|
|
$("body", parent.document).find('#wlbh').val(wlzu[0]);
|
|
|
|
$("body", parent.document).find('#wlmc').val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#wlpp').val(wlzu[4]);
|
|
|
|
$("body", parent.document).find('#danwei').val(wlzu[5]);
|
|
|
|
$("body", parent.document).find('#wlzl').val(wlzu[7]);
|
|
|
|
$("body", parent.document).find('#guige').val(wlzu[10]);
|
|
|
|
var selzt = $("#drp_zt").val();
|
|
|
|
var rklx = $("body", parent.document).find('#rklx').val();
|
|
|
|
if (rklx != '客户来料') {
|
|
|
|
if (selzt == "客户纸库") {
|
|
|
|
$("body", parent.document).find('#khc').css("display", "");
|
|
|
|
} else {
|
|
|
|
$("body", parent.document).find('#khc').css("display", "none");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
fanhui = Materiel_list.page_change(0, $("#drp_pageitem").val(), funpaixu(), pxtiaojian()).value;
|
|
|
|
$(".kh").css("display", "");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (pagename == "qtck") {
|
|
|
|
$("body", parent.document).find('#wlbh').val(wlzu[0]);
|
|
|
|
$("body", parent.document).find('#wlmc').val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#wlpp').val(wlzu[4]);
|
|
|
|
$("body", parent.document).find('#danwei').val(wlzu[5]);
|
|
|
|
$("body", parent.document).find('#cangku').val(wlzu[8]);
|
|
|
|
$("body", parent.document).find('#sl').val(wlzu[6]);
|
|
|
|
$("body", parent.document).find('#dj').val(wlzu[9]);
|
|
|
|
$("body", parent.document).find('#guige').val(wlzu[10]);
|
|
|
|
$("body", parent.document).find('#jine').val(wlzu[9] * $("body", parent.document).find('#sl').val());
|
|
|
|
|
|
|
|
} else if (pagename == "scdlck") {
|
|
|
|
$("body", parent.document).find('#wlbh').val(wlzu[0]);
|
|
|
|
$("body", parent.document).find('#wlmc').val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#kf').val(wlzu[8]);
|
|
|
|
$("body", parent.document).find('#zhonglei').val(wlzu[7]);
|
|
|
|
$("body", parent.document).find('#pinpai').val(wlzu[4]);
|
|
|
|
$("body", parent.document).find('#guige').val(wlzu[10]);
|
|
|
|
$("body", parent.document).find('#danwei').val(wlzu[5]);
|
|
|
|
|
|
|
|
} else if (pagename == "clth") {
|
|
|
|
$("body", parent.document).find('#wlbh').val(wlzu[0]);
|
|
|
|
$("body", parent.document).find('#wlmc').val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#kufang').val(wlzu[8]);
|
|
|
|
$("body", parent.document).find('#zhonglei').val(wlzu[7]);
|
|
|
|
$("body", parent.document).find('#pinpai').val(wlzu[4]);
|
|
|
|
$("body", parent.document).find('#guige').val(wlzu[10]);
|
|
|
|
$("body", parent.document).find('#danwei').val(wlzu[5]);
|
|
|
|
} else if (pagename == "ypzldj") {
|
|
|
|
$("body", parent.document).find('#' + rowval).attr('name', wlzu[0]);
|
|
|
|
$("body", parent.document).find('#' + rowval).val(wlzu[1]);
|
|
|
|
} else if (pagename == "cpkc") {
|
2024-05-20 17:40:13 +08:00
|
|
|
;
|
2024-05-18 15:28:29 +08:00
|
|
|
if ($("body", parent.document).find('#wlmc' + rowval).length > 0) {
|
|
|
|
$("body", parent.document).find('#wlmc' + rowval).val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#wlbh' + rowval).val(wlzu[0]);
|
|
|
|
} else {
|
|
|
|
$("body", parent.document).find('#wuliao' + rowval).val(wlzu[1]);
|
|
|
|
$("body", parent.document).find('#wuliao' + rowval).attr('name', wlzu[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("body", parent.document).find('#btn_wlclose').click();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<script src="../Js/common.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
gjzk('search');
|
|
|
|
$("#txt_tiaojian").focus();
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
|
|
.wlxz{width:20px}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form id="form" runat="server">
|
|
|
|
<div class="rtbjdiv" >
|
|
|
|
<div class="right-top">
|
|
|
|
<table width="100%" height="100%">
|
|
|
|
<tr>
|
|
|
|
<td >
|
|
|
|
<div class="right-top-an" style=" width:400px;">
|
|
|
|
<ul id="ul_gongju" class="ulgongju">
|
|
|
|
<li runat="server" id="sousuo"><a href="#button" class="button icon search" onclick="gjzk('search')" >查询</a> </li>
|
|
|
|
<li style="width: 60px"><select id="drp_zt" class="drpdownstyle"><option value="">全部</option><option value="主料库">主料库</option><option value="辅料库">辅料库</option></select> </li>
|
|
|
|
<li runat=server id="li_add" visible=false><a href="Materiel_Form.aspx" class="button icon add">添加</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td >
|
|
|
|
<div id="div_page" >
|
|
|
|
<table id="tbl_pagebottom" height="20" border="0" cellpadding="0" cellspacing="0" >
|
|
|
|
<tr>
|
|
|
|
<td>共<span id="span_sumitem"></span>条数据</td>
|
|
|
|
<td class="pagestyle" id="td_first" title="首页">
|
|
|
|
<img src="../Images_Folder/pagination_icons_01.png" width="16" height="16" alt="">
|
|
|
|
</td>
|
|
|
|
<td class="pagestyle" id="td_up" title="上一页">
|
|
|
|
<img src="../Images_Folder/pagination_icons_02.png" width="16" height="16" alt="">
|
|
|
|
</td>
|
|
|
|
<td><span>第</span></td>
|
|
|
|
<td>
|
|
|
|
<span><input id="txt_nowpage" type="text" class="ui-pg-input" value="1"/></span>
|
|
|
|
</td>
|
|
|
|
<td><span>页/共</span></td>
|
|
|
|
|
|
|
|
<td ><span id="span_sumpage" ></span>页</td>
|
|
|
|
<td class="pagestyle" id="td_next" title="下一页">
|
|
|
|
<img src="../Images_Folder/pagination_icons_03.png" width="16" height="16" alt="">
|
|
|
|
</td>
|
|
|
|
<td class="pagestyle" id="td_endpage" title="尾页">
|
|
|
|
<img src="../Images_Folder/pagination_icons_04.png" width="16" height="16" alt="">
|
|
|
|
</td>
|
|
|
|
<td class="pagestyle" id="td_go" title="跳页"><img src="../Images_Folder/ty.png" style="margin-top:5px" width="16" height="16" alt=""></td>
|
|
|
|
<td title="显示条数">
|
|
|
|
<span>
|
|
|
|
<select id="drp_pageitem">
|
|
|
|
<option value="20">20</option>
|
|
|
|
<option value="30">30</option>
|
|
|
|
<option value="40">40</option>
|
|
|
|
<option value="50">50</option>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<%-- 工具箱--%>
|
|
|
|
<div id="Gjx" class="Gjxzhu" runat=server>
|
|
|
|
<table width="100%" height="100%">
|
|
|
|
<tr height="80px">
|
|
|
|
<td >
|
|
|
|
<div id="gjxnr" class="right-gjxnr" runat=server>
|
|
|
|
<div id="div_daoru" style=" width:400px; padding-top:30px; float:left; padding-left:400px;" runat=server>
|
|
|
|
<asp:FileUpload ID="file_lujing" runat="server" Width="200px" />  
|
|
|
|
|
|
|
|
<asp:Label ID="lbl_zerror" runat="server" Text="" ForeColor="Red"></asp:Label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="ycsjgddiv">
|
|
|
|
<%-- 数据表头--%>
|
|
|
|
<div class="shujutou" id="div_title">
|
|
|
|
<table border="0" class="tbl_titie" id="biaotou">
|
|
|
|
<tr class="tr_titile" id="tr_biaotou">
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<%-- 数据列表--%>
|
|
|
|
<div class="shuju" id="t_r_content" onscroll="scrolltow()" style="overflow:scroll" >
|
|
|
|
<table class="hovertable" id="tbl_list">
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<%--数据汇总--%>
|
|
|
|
<div id="div_huizong" onscroll="listscroll()">
|
|
|
|
<table border="0" id="huizong" >
|
|
|
|
<tr class="tr_bottom">
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<asp:HiddenField ID="hiddenid" runat=server />
|
|
|
|
<asp:HiddenField ID="Hiddenname" runat=server />
|
|
|
|
<input type=hidden id="pagename" value="wl" />
|
|
|
|
<asp:HiddenField ID="selectid" runat=server />
|
|
|
|
<asp:HiddenField ID="strwhere" runat=server />
|
|
|
|
<input type="hidden" id="showselect"/>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|