优化库存状况报表

This commit is contained in:
季圣华
2017-01-12 18:22:00 +08:00
parent 039053b869
commit eb1fa7f3c9
3 changed files with 1 additions and 58 deletions

View File

@@ -5,7 +5,7 @@
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/> <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/> <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath> </classpath>

View File

@@ -53,68 +53,11 @@
//初始化界面 //初始化界面
$(function() $(function()
{ {
//初始化系统基础信息
initSystemData();
initSelectInfo();
initTableData(); initTableData();
ininPager(); ininPager();
initForm();
exportExcel(); exportExcel();
}); });
//初始化系统基础信息
function initSystemData()
{
$.ajax({
type:"post",
url: "<%=path%>/depot/getBasicData.action",
//设置为同步
async:false,
dataType: "json",
success: function (systemInfo)
{
depotList = systemInfo.showModel.map.depotList;
var msgTip = systemInfo.showModel.msgTip;
if(msgTip == "exceptoin")
{
$.messager.alert('提示','查找系统基础信息异常,请与管理员联系!','error');
return;
}
}
});
}
//初始化页面选项卡
function initSelectInfo()
{
var options = "";
if(depotList !=null)
{
options = "";
for(var i = 0 ;i < depotList.length;i ++)
{
var depot = depotList[i];
if(0 == i)
{
depotID = depot.id;
}
options += '<option value="' + depot.id + '">' + depot.name + '</option>';
}
$("#ProjectId").empty().append(options);
$("#searchProjectId").empty().append('<option value="">全部</option>').append(options);
}
}
//防止表单提交重复
function initForm()
{
$('#personFM').form({
onSubmit: function(){
return false;
}
});
}
//导出EXCEL //导出EXCEL
function exportExcel() { function exportExcel() {
$("#exprotBtn").off("click").on("click",function(){ $("#exprotBtn").off("click").on("click",function(){