<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
'各种返回信息
|
SystemMessageType=trim(Request("SystemMessageType"))
|
SMT=trim(Request("SMT"))
|
if SMT="1" then
|
SystemMessageTXT="仓库名称不可以为空!!"
|
elseif SMT="2" then
|
SystemMessageTXT="仓库名称重复!!"
|
elseif SMT="3" then
|
SystemMessageTXT="新增仓库完成!!"
|
elseif SMT="4" then
|
SystemMessageTXT="请选择需要修改的项目!!"
|
elseif SMT="5" then
|
SystemMessageTXT="修改仓库完成!!"
|
elseif SMT="6" then
|
SystemMessageTXT="删除仓库完成!!"
|
end if
|
|
|
searchTXT=trim(Request("searchTXT"))
|
|
page_URL="&searchTXT="&searchTXT
|
|
acc1=clng(request("page"))
|
if acc1=empty then acc1=clng(1)
|
QuantityInt = 20
|
acc2=0
|
acc3=0
|
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
%>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<title><%=LindemanAdmin%></title>
|
<!--#include virtual="/inc/ccs.gds"-->
|
</head>
|
<body onkeydown="xKeyEvent(event)">
|
<!--#INCLUDE FILE="menu_header.gds" -->
|
<!-- content -->
|
<div id="content">
|
<!--#INCLUDE FILE="MRP_menu_left.gds" -->
|
<!-- content / right -->
|
<div id="right">
|
<!-- table -->
|
<div class="box">
|
<!-- box / title -->
|
<div class="title">
|
<h5>仓库设定 <%=searchTXT%></h5>
|
<ul class="links">
|
<li><a onclick="javascript:dictionaryCreate.style.display='block';">新建</a></li>
|
<li><a onClick="form1_dictionary_update()">修改</a></li>
|
<!--<li><a onClick="form1_dictionary_delete()">删除</a></li>-->
|
<div class="search">
|
<form action="?" method="post">
|
<div class="input">
|
<input type="text" id="search" name="searchTXT" value="<%=searchTXT%>" />
|
</div>
|
<div class="button">
|
<input type="submit" name="submit" value="搜索" />
|
</div>
|
</form>
|
</div>
|
</ul>
|
<script LANGUAGE="javascript">
|
//修改字典
|
function form1_dictionary_update(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value="60"
|
form1.submit();
|
}
|
//删除字典
|
function form1_dictionary_delete(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value="62"
|
form1.submit();
|
}
|
//选择修改字典
|
function form1_dictionary_Edit(id){
|
if (document.getElementById('Show_WarehouseName_'+id).style.display=="none")
|
{
|
document.getElementById('Show_WarehouseName_'+id).style.display='';
|
document.getElementById('Edit_WarehouseName_'+id).style.display='none';
|
document.getElementById('Show_WarehouseType_'+id).style.display='';
|
document.getElementById('Edit_WarehouseType_'+id).style.display='none';
|
document.getElementById('Show_WarehouseContact_'+id).style.display='';
|
document.getElementById('Edit_WarehouseContact_'+id).style.display='none';
|
document.getElementById('Show_WarehouseTEL_'+id).style.display='';
|
document.getElementById('Edit_WarehouseTEL_'+id).style.display='none';
|
document.getElementById('Show_WarehouseAddress_'+id).style.display='';
|
document.getElementById('Edit_WarehouseAddress_'+id).style.display='none';
|
document.getElementById('Show_WarehouseRemarks_'+id).style.display='';
|
document.getElementById('Edit_WarehouseRemarks_'+id).style.display='none';
|
}
|
else
|
{
|
document.getElementById('Show_WarehouseName_'+id).style.display='none';
|
document.getElementById('Edit_WarehouseName_'+id).style.display='';
|
document.getElementById('Show_WarehouseType_'+id).style.display='none';
|
document.getElementById('Edit_WarehouseType_'+id).style.display='';
|
document.getElementById('Show_WarehouseContact_'+id).style.display='none';
|
document.getElementById('Edit_WarehouseContact_'+id).style.display='';
|
document.getElementById('Show_WarehouseTEL_'+id).style.display='none';
|
document.getElementById('Edit_WarehouseTEL_'+id).style.display='';
|
document.getElementById('Show_WarehouseAddress_'+id).style.display='none';
|
document.getElementById('Edit_WarehouseAddress_'+id).style.display='';
|
document.getElementById('Show_WarehouseRemarks_'+id).style.display='none';
|
document.getElementById('Edit_WarehouseRemarks_'+id).style.display='';
|
}
|
}
|
//新建字典-关闭上传窗口
|
function JS_dictionaryCreateClose()
|
{
|
dictionaryCreate.style.display="none";
|
}
|
//新建字典-保存
|
function JS_dictionaryCreateSave()
|
{
|
form2.submit();
|
}
|
</script>
|
</div>
|
<div class="dialogJ dialogJfix dialogJshadow" id="dictionaryCreate" style="width: 370px; right: 300px; top: 150px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_dictionaryCreateClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<span class="dialogJtxt" id="EditPhotoTXT">新建仓库</span>
|
</div>
|
<form id="form2" name="form2" action="admin_save.gds" method="post">
|
<input name="admin_save" type="hidden" value="61">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=acc1%>">
|
<div class="dialogJcontent">
|
<div class="dialogJbody" id="dialogJbody" style="height: 210px;">
|
<div class="modify-album-name">
|
<span>仓库名称:</span>
|
<input id="WarehouseName" name="WarehouseName" type="text" value="<%=WarehouseName%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 12px;">联系人:</span>
|
<input id="WarehouseContact" name="WarehouseContact" type="text" value="<%=WarehouseContact%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span>联系电话:</span>
|
<input id="WarehouseTEL" name="WarehouseTEL" type="text" value="<%=WarehouseTEL%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span>仓库地址:</span>
|
<input id="WarehouseAddress" name="WarehouseAddress" type="text" value="<%=WarehouseAddress%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 24px;">备注:</span>
|
<input id="WarehouseRemarks" name="WarehouseRemarks" type="text" value="<%=WarehouseRemarks%>" maxlength="200/">
|
</div>
|
</div>
|
</div>
|
</form>
|
<div class="dialogJanswers">
|
<input type="button" class="dialogJbtn first-child" onclick="JS_dictionaryCreateSave()" value="确定">
|
<input type="button" class="dialogJbtn" onclick="JS_dictionaryCreateClose()" value="取消">
|
</div>
|
</div>
|
<!-- end box / title -->
|
<%' WarehouseContact='OA_Department' and vType>0
|
|
|
if searchTXT<>"" then
|
searchSql="where (WarehouseName like '%"&searchTXT&"%' or WarehouseContact='"&searchTXT&"') "
|
else
|
searchSql=""
|
end If
|
'vtitle,vID,vOrder,id
|
sql="select * from MRP_Warehouse "&searchSql&" order by WarehouseID desc"
|
rs.open sql,objConn,1,1
|
if not rs.eof then
|
rs.pagesize=QuantityInt
|
rs.absolutepage=acc1
|
acc2=rs.pagecount
|
acc3=rs.recordcount
|
else
|
SystemMessageType=2
|
SystemMessageTXT="数据库中相关无数据!"
|
end if
|
%>
|
<!--#include virtual="/inc/SystemMessages.gds" -->
|
<div class="table">
|
<form id="form1" name="form1" action="" method="post">
|
<input name="admin_save" type="hidden" value="60">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=acc1%>">
|
<table>
|
<thead>
|
<tr>
|
<th class="selected"><input type="checkbox" class="checkall" /></th>
|
<th>仓库名称</th>
|
<th>类型</th>
|
<th>联系人</th>
|
<th>联系电话</th>
|
<th>仓库地址</th>
|
<th class="last">备注</th>
|
</tr>
|
</thead>
|
<tbody>
|
|
<%i=1
|
do while not rs.Eof and i<=QuantityInt
|
id = rs("WarehouseID")
|
WarehouseName = rs("WarehouseName")
|
WarehouseContact = rs("WarehouseContact")
|
WarehouseTEL = rs("WarehouseTEL")
|
WarehouseAddress = rs("WarehouseAddress")
|
WarehouseRemarks = rs("WarehouseRemarks")
|
WarehouseType = rs("WarehouseType")
|
i=i+1
|
%>
|
<input name="WarehouseID_<%=id%>" type="hidden" value="<%=WarehouseID%>">
|
<tr>
|
<td class="selected"><input type="checkbox" id="ID_<%=id%>" name="ID" value="<%=id%>" onclick="javascript:form1_dictionary_Edit('<%=id%>')"/></td>
|
<td class="category" id="Show_WarehouseName_<%=id%>"><%=WarehouseName%></td>
|
<td class="category" id="Edit_WarehouseName_<%=id%>" style="display:none;"><input id="WarehouseName_<%=id%>" name="WarehouseName_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=WarehouseName%>" type="text"></td>
|
<td class="category" id="Show_WarehouseType_<%=id%>"><%=WarehouseType%></td>
|
<td class="category" id="Edit_WarehouseType_<%=id%>" style="display:none;"><input id="WarehouseType_<%=id%>" name="WarehouseType_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=WarehouseType%>" type="text"></td>
|
<td class="category" id="Show_WarehouseContact_<%=id%>"><%=WarehouseContact%></td>
|
<td class="category" id="Edit_WarehouseContact_<%=id%>" style="display:none;"><input id="WarehouseContact_<%=id%>" name="WarehouseContact_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=WarehouseContact%>" type="text"></td>
|
<td class="category" id="Show_WarehouseTEL_<%=id%>"><%=WarehouseTEL%></td>
|
<td class="category" id="Edit_WarehouseTEL_<%=id%>" style="display:none;"><input id="WarehouseTEL_<%=id%>" name="WarehouseTEL_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=WarehouseTEL%>" type="text"></td>
|
<td class="category" id="Show_WarehouseAddress_<%=id%>"><%=WarehouseAddress%></td>
|
<td class="category" id="Edit_WarehouseAddress_<%=id%>" style="display:none;"><input id="WarehouseAddress_<%=id%>" name="WarehouseAddress_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=WarehouseAddress%>" type="text"></td>
|
<td class="category last" id="Show_WarehouseRemarks_<%=id%>"><%=WarehouseRemarks%></td>
|
<td class="category last" id="Edit_WarehouseRemarks_<%=id%>" style="display:none;"><input id="WarehouseRemarks_<%=id%>" name="WarehouseRemarks_<%=id%>" class="small" style="width:350px;text-align: center;" value="<%=WarehouseRemarks%>" type="text"></td>
|
</tr>
|
<%rs.movenext
|
loop
|
rs.close()
|
%>
|
<%for j=i to 21%>
|
<tr>
|
<td class="selected"> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td class="last"> </td>
|
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
<!-- pagination -->
|
<div class="pagination pagination-left">
|
<div class="results">
|
<%
|
ShowingLeast = (acc1-1)*QuantityInt+1
|
ShowingMax = QuantityInt*acc1
|
if ShowingMax>acc3 then ShowingMax=acc3
|
%>
|
<span><%="显示 "& ShowingLeast &"-"& ShowingMax &" of "&acc3%></span>
|
</div>
|
<%if acc2>1 then%>
|
<ul class="pager">
|
<%if acc1=1 then%>
|
<li class="disabled">« 上页</li>
|
<%else%>
|
<li><a href="?page=<%=acc1-1%><%=page_URL%>">« 上页</a></li>
|
<%end if%>
|
<%
|
acc4=""
|
for i=1 to acc2
|
if acc2<=9 then
|
acc4=acc4&","&i
|
else
|
if i=1 then
|
acc4=acc4&","&i
|
elseif acc1<=5 and i<=7 then
|
acc4=acc4&","&i
|
elseif acc1>=acc2-4 and i>=acc2-6 then
|
acc4=acc4&","&i
|
elseif i>=acc1-2 and i<=acc1+2 then
|
acc4=acc4&","&i
|
elseif i=acc2 then
|
acc4=acc4&","&i
|
elseif i=2 or i=acc2-1 then
|
acc4=acc4&",0"
|
end if
|
end if
|
next
|
acc4SP=SPLIT(acc4,",")
|
for i = 1 to UBOUND(acc4SP)%>
|
<%if acc4SP(i)="0" then%>
|
<li class="separator">...</li>
|
<%elseif acc1=cint(acc4SP(i)) then%>
|
<li class="current"><%=acc4SP(i)%></li>
|
<%else%>
|
<li><a href="?page=<%=acc4SP(i)%><%=page_URL%>"><%=acc4SP(i)%></a></li>
|
<%end if%>
|
<%next%>
|
<%if acc1>=acc2 then%>
|
<li class="disabled">下页 »</li>
|
<%else%>
|
<li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 »</a></li>
|
<%end if%>
|
</ul>
|
<%end if%>
|
</div>
|
<!-- end pagination -->
|
</form>
|
</div>
|
</div>
|
<!-- end table -->
|
|
|
</div>
|
<!-- end content / right -->
|
</div>
|
<!-- end content -->
|
<!--#include FILE="vicgame.asp"-->
|
</body>
|
</html>
|