flow_predefine_action_modify_getfieldtitle.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8" %>
- <%@ page import="cn.js.fan.util.*" %>
- <%@ page import="com.redmoon.oa.person.*" %>
- <%@ page import="com.redmoon.oa.dept.*" %>
- <%@ page import="com.redmoon.oa.flow.*" %>
- <%
- String flowTypeCode = ParamUtil.get(request, "flowTypeCode");
- if (flowTypeCode.equals(""))
- return;
- Leaf lf = new Leaf();
- lf = lf.getLeaf(flowTypeCode);
- String formCode = lf.getFormCode();
- String fieldWrite = ParamUtil.get(request, "fieldWrite");
- String[] fieldAry = null;
- String fieldText = "";
- if (fieldWrite!=null && !fieldWrite.equals("")) {
- fieldAry = fieldWrite.split(",");
- FormDb fd = new FormDb();
- fd = fd.getFormDb(formCode);
- int len = fieldAry.length;
- for (int i=0; i<len; i++) {
- if (fieldText.equals(""))
- fieldText = fd.getFieldTitle(fieldAry[i]);
- else
- fieldText += "," + fd.getFieldTitle(fieldAry[i]);
- }
- %>
- <script>
- window.parent.setFieldWriteText("<%=fieldText%>");
- </script>
- <%}%>
- <%
- String dept = ParamUtil.get(request, "dept");
- String deptName = "";
- if (!dept.equals("")) {
- String[] deptAry = StrUtil.split(dept, ",");
- int len = 0;
- if (deptAry!=null)
- len = deptAry.length;
- com.redmoon.oa.dept.DeptMgr dm = new com.redmoon.oa.dept.DeptMgr();
- for (int i=0; i<len; i++) {
- if (deptName.equals(""))
- deptName = dm.getDeptDb(deptAry[i]).getName();
- else
- deptName += "," + dm.getDeptDb(deptAry[i]).getName();
- }
- }
- else
- return;
- // System.out.println("ddd flowTypeCode=" + flowTypeCode);
- // System.out.println("fieldWrite=" + fieldWrite);
- // System.out.println("fieldText=" + fieldText);
- %>
- <script>
- window.parent.setDeptName("<%=deptName%>");
- </script>