非常完整的Java开发的网络办公系统
源代码在线查看: regulation_home.jsp
function createRegulation()
{
myform.action= "/mainctrl/commoninfo/regulation/createRegulation";
myform.submit();
}
function removeRegulations()
{
if(document.myform.regulationIds==null)
{
alert("没有要删除的规章制度。");
return false;
}
if( !isChecked(document.myform.regulationIds) )
{
alert("请选择要删除的规章制度。");
return false;
}
if(!confirm("是否确定删除?"))
{
return false;
}
myform.action= "/mainctrl/commoninfo/regulation/removeRegulationSuccess";
myform.submit();
}
function modifyRegulation()
{
if( !isCheckedOne(document.myform.regulationIds) )
{
alert("请选择一个要修改的规章制度。");
return false;
}
myform.action= "/mainctrl/commoninfo/regulation/modifyRegulation";
myform.submit();
}
function CheckAll(form)
{
for (var i=0;i {
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
首页>>办公室管理>>规章制度
选择
名称
发布部门
发布时间
Collection coll = regulationProxy.getRegulationList();
RegulationValueBean rvb = null;
int start = 1;
if ( request.getParameter("start") !=null )
{
start = Integer.parseInt( request.getParameter("start") );
}
int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
int size = coll.size();
String action = "/mainctrl/commoninfo/regulation/getRegulationList?";
String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
int i = 0;
if(coll != null && coll.size() != 0)
{
Iterator it = coll.iterator();
int flag = 0;
String bgcolor = null;
while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
{
i++;
rvb = (RegulationValueBean)it.next();
if ( i < start ) continue;
if( flag%2==0 )
{
bgcolor = "#e0e0e0";
}
else
{
bgcolor = "#fafafa";
}
%>
flag++;
}
}
%>
if(size!=0)
{
%>
全选
}
%>