220 lines
8.0 KiB
Plaintext
220 lines
8.0 KiB
Plaintext
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Scheduling_Form.aspx.cs" Inherits="Scheduling_Form" %>
|
||
|
|
||
|
<!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">
|
||
|
<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(Scheduling_Form);
|
||
|
$("#ycdaochu").click(function () {
|
||
|
var selectid = "";
|
||
|
$(".xz").each(function () {
|
||
|
if ($(this).is(":checked")) {
|
||
|
selectid += $(this).parent().parent().attr("tag") + ',';
|
||
|
}
|
||
|
})
|
||
|
$("#selectid").val(selectid);
|
||
|
})
|
||
|
|
||
|
})
|
||
|
//调用导出方法
|
||
|
function wddcfont() {
|
||
|
$("#<%=ycdaochu.ClientID%>").click();
|
||
|
}
|
||
|
function savesort() {
|
||
|
if ((confirm("确认保存排序吗?"))) {
|
||
|
var rows = [];
|
||
|
$("#tbl_list").children().each(function () {
|
||
|
rows.push($(this).attr("tag"));
|
||
|
})
|
||
|
var issuccess = Scheduling_Form.savesort(rows).value;
|
||
|
if (issuccess) {
|
||
|
window.location = "Scheduling_list.aspx";
|
||
|
} else {
|
||
|
alert("保存失败");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
<script src="../Js/scpcedit.js" type="text/javascript"></script>
|
||
|
</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-dh" id="div_listdaohang"><h4>生产排产排序主页</h4>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td >
|
||
|
<div class="right-top-an">
|
||
|
<ul id="ul_gongju" class="ulgongju" >
|
||
|
<li runat="server" id="sousuo"><a href="#button" class="button icon search" onclick="gjzk('search')" >查询</a> </li>
|
||
|
<li runat=server id="xiazai" visible=false><a href="#button" id="btn_daochu" onclick="wddcfont()" class="button icon arrowdown">导出</a> </li>
|
||
|
<li runat=server id="leiset" visible=false><a href="#button" id="li_liepeizhi" class="button icon settings">配置</a></li>
|
||
|
<li runat=server id="li1"><a href="#button" class="button icon favorite" onclick="setshoucang()" >收藏</a></li>
|
||
|
<li runat=server id="baocunpc"><a href="#button" id="bt_tj" onclick="savesort()" class="button icon log">保存</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">
|
||
|
<table width="100%" height="100%">
|
||
|
<tr height="80px">
|
||
|
<td >
|
||
|
<div id="gjxnr" class="right-gjxnr">
|
||
|
</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()">
|
||
|
<table id="tbl_main">
|
||
|
<tbody class="hovertable" id="tbl_list">
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<%--数据汇总--%>
|
||
|
<div id="div_huizong" onscroll="listscroll()">
|
||
|
<table border="0" id="huizong" >
|
||
|
<tr class="tr_bottom"> </tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%--列配置--%>
|
||
|
<div id="dialog-modal" title="列配置" style="overflow:hidden; display:none;" >
|
||
|
<table style="width:90%">
|
||
|
<tr style=" font-weight:bold;"> <td style="width:30%">顺序</td> <td style="width:30%">列名</td> <td style="width:35%">显示</td> </tr>
|
||
|
</table>
|
||
|
<div style="width:90%;float:left;overflow-x: hidden;overflow-y: scroll;height:125px">
|
||
|
<table style="width:100%" id="tbl_peizhi">
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="lpzdiv" >
|
||
|
<ul>
|
||
|
<li>
|
||
|
<img src="../Images_Folder/Button/upbt.png" id="btn_up" />
|
||
|
</li>
|
||
|
<li>
|
||
|
<img src="../Images_Folder/Button/down.png" id="btn_down"/>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<span style=" display:none"> <asp:Button ID="ycdaochu" runat="server" onclick="DownLoad" /></span>
|
||
|
<asp:HiddenField ID="hiddenid" runat=server />
|
||
|
<asp:HiddenField ID="Hiddenname" runat=server />
|
||
|
<input type=hidden id="pagename" value="scpcedit" />
|
||
|
<asp:HiddenField ID="selectid" runat=server />
|
||
|
<asp:HiddenField ID="strwhere" runat=server />
|
||
|
<asp:HiddenField ID="hiddenhuizong" runat=server value="订单数量,提取库存数量,生产数量"/>
|
||
|
</form>
|
||
|
<script>
|
||
|
$(function () {
|
||
|
$("#tbl_list").sortable();
|
||
|
$("#tbl_list").disableSelection();
|
||
|
paixu();
|
||
|
|
||
|
$("#drp_zt").change(function () {
|
||
|
var fanhui = "";
|
||
|
var item = "";
|
||
|
var sumitem = 0;
|
||
|
var tj = " jt='" + $(this).find("option:selected").text() + "'";
|
||
|
fanhui = Scheduling_Form.page_change("order by gen asc", tj + " and ").value;
|
||
|
sumitem = Scheduling_Form.sumitem(" where " + tj).value;
|
||
|
$("#tbl_list").html(fanhui);
|
||
|
$("#span_sumitem").html(sumitem);
|
||
|
huizong();
|
||
|
paixu();
|
||
|
})
|
||
|
|
||
|
});
|
||
|
function paixu() {
|
||
|
var trigger = null;
|
||
|
$("#tbl_list").find("tr").mouseup(function () {
|
||
|
trigger = setTimeout(function () {
|
||
|
$("#tbl_list").find("tr").each(function (i) {
|
||
|
$(this).find("td").eq(1).text(i + 1);
|
||
|
})
|
||
|
}, 200);
|
||
|
|
||
|
})
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
<style>
|
||
|
#tbl_list tr:hover
|
||
|
{
|
||
|
background-color:#eeeceb;
|
||
|
}
|
||
|
</style>
|
||
|
<script src="../Js/messageshow.js" type="text/javascript"></script>
|
||
|
</body>
|
||
|
</html>
|