盛宇--办公管理--五项管理日志
1、ABC分类:文本框,可输入下拉框,手工输入,调用历史单据中该字段存在字段值显示。
<input-field name="abc" table="d" caption="ABC分类" datatype="varchar" type="combox" lookup="fivemang_abc" notnull="1"/>
<lookup-beans>
<!--abc取值-->
<lookup-bean name="fivemang_abc" scope="request" statement="select * from oa_fivemang_d"
orderbys="fivemangid" keys="abc" captions="abc" type="list">
</lookup-bean>
</lookup-beans>
2、今日事项要事第一: 文本框,手工输入 |
(A类最重要 B类重要 C类次重要) |
<input-field name="todayinfo" table="d" caption="今日事项 要事第一 <br>(A类最重要 B类重要 C类次重要)" datatype="varchar" type="text" width="200" maxlength="4" notnull="1"/>
3、每日心态管理:文本框,只读显示,一行高度,三个字段宽度 固定文字:“以下每项做到评10分,未做到评0分”
<input-field name="daily_psychology" caption="每日心态管理" type="memo" datatype="varchar" colspan="4" rowspan="1" initvalue="以下每项做到评10分,未做到评0分" readonly="1"/>
4、今日学习:文本框,手工输入,双击输入框,弹出放大编辑框,进行编辑
放大编辑框页面,有两个按钮,确定和返回按钮,点击返回则关闭页面,返回单据
编辑界面,点击确定按钮,则可保存当前页面数据。该功能类似“周工作计划(总结)管理”
编辑框,请参照开发。
今日反省,改进方法:两个字段同上。
<template name="center"><![CDATA[
<script language="javascript">
document.getElementById("today_study").ondblclick = function () { showFixedQuery(this,'today_study'); };
document.getElementById("today_reflection").ondblclick = function () { showFixedQuery(this,'today_reflection'); };
document.getElementById("impro_methon").ondblclick = function () { showFixedQuery(this,'impro_methon'); };
function showFixedQuery(obj,name){
var bz = obj.value;
if(name == '')
return;
document.all['showTitle'].innerHTML ='五项管理日志'+'---'+ obj.msg;
setObjectValue(document.all['showname'],name);
setObjectValue(document.all['showbz'],bz);
showFrame('fixedQuery',true,"",true);
document.all['showbz'].focus();
};
</script>
]]></template> <include path="/jsp/oa/plan/oa_fivemang_link.jsp"/> //后面导入这个页面
上面的jsp文件:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="friends.util.StringUtils, friends.web.struts.Globals,friends.common.LoginBean"%>
<INPUT TYPE="HIDDEN" NAME="operate" VALUE="">
<DIV class="queryPop" id="fixedQuery" name="fixedQuery">
<div class="queryTitleBox" align="right"><A onClick="hideFrame('fixedQuery')" href="#"><img src="<%=request.getContextPath()%>/images/closewin.gif" border=0></A></div>
<table align="center" width="600" border="0" cellspacing="0" cellpadding="0" class="toolbar">
<tr>
<td width="8" height="25"><img src="<%=request.getContextPath()%>/images/bar-left.jpg" width="8" height="25"></td>
<td background="<%=request.getContextPath()%>/images/bar-middle.jpg">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="font: bold 13px" nowrap id="showTitle">五项管理日志</td>
<td width="*" align="right" nowrap>
<%--按钮列表--%>
<table id="tbcontrol" border="0" cellspacing="1" cellpadding="0">
<tr>
<td nowrap οnmοuseοver="chgBtnBorder(this, 1)" οnmοusedοwn="chgBtnBorder(this, -1)" οnmοuseοut="chgBtnBorder(this)"
οnmοuseup="chgBtnBorder(this)">
<input id="bt_chg" type='button' class='barButton' accessKey="c" onClick="chgVal()" value="确定(C)" style="width:82"></td>
<td nowrap οnmοuseοver="chgBtnBorder(this, 1)" οnmοusedοwn="chgBtnBorder(this, -1)" οnmοuseοut="chgBtnBorder(this)"
οnmοuseup="chgBtnBorder(this)">
<input id="bt_hide" type='button' class='barButton' accessKey="b" onClick="hideFrame('fixedQuery')" value="返回(B)" style="width:60"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="9" height="25"><img src="<%=request.getContextPath()%>/images/bar-right.jpg" width="9" height="25"></td>
</tr>
</table>
<table align="center" BORDER="0" CELLPADDING="1" CELLSPACING="0" width="600">
<tr valign="top">
<td width="16" height="25"><INPUT TYPE="HIDDEN" NAME="showname" VALUE=""></td>
<td noWrap class="td"><textarea name="showbz" rows="35" style="word-wrap:break-word;width:566" ></textarea></td>
<td width="18" height="25"></td>
</tr>
</table>
</DIV>
<script language='javascript'>
function chgVal(){
var showname = getObjectValue(document.all['showname']);
if(showname == '')
return ;
var showbz = getObjectValue(document.all['showbz']);
//alert(strlen(showbz));
var obj = document.all[showname];
setObjectValue(obj, showbz);
hideFrame('fixedQuery');
}
</script>