📄 applyalter.jsp
字号:
<jsp:include page="/include/global.jsp"/>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page import="com.cmmi2pms.sa.user.Employee,com.cmmi2pms.common.Constants" %>
<%
Employee user = new Employee();
if (request.getSession().getAttribute(Constants.USER_KEY)!=null)
user = (Employee) request.getSession().getAttribute(Constants.USER_KEY);
%>
<%@ page contentType="text/html; charset=GBK" %>
<html:html>
<head>
<title>
CMMI2PMSv0.00
</title>
<base target="_self">
<meta http-equiv="Pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="../../common/olstyle.css">
<script language="JavaScript" src="../../common/meizzDate.js"></script>
<script type="text/javascript" src="../../common/CommonFunc.js"></script>
<script type="text/javascript" src="../../common/dialog.js"></script>
<html:javascript formName="ConfigAlterForm" dynamicJavascript="true" staticJavascript="false"/>
<script language="Javascript1.1" src="../../staticJavascript.jsp"></script>
<script>
function checkForm(){
var frm = document.forms[0];
var errors = "";
<logic:equal name="ConfigAlterForm" property="act" value="addNewAlter">
if(frm.alteritem.value==""){
errors += "请输入变更标题!";
}
if(frm.requisttype.value==""){
errors += "请输入变更类型!";
}
if(frm.content.value==""){
errors += "请输入变更内容,变更理由和影响分析!";
}
</logic:equal>
if(errors!=""){
alert(errors);
return false;
}
return true;
}
function selectCmChangeType(obj) {
ret = showModalDialog("cmctypeSelectIndex.jsp",null,'status:no;scroll:yes;help:no;dialogWidth:300px;dialogHeight:300px');
if (ret!=null) obj.value=ret;
}
</script>
</head>
<body>
<logic:equal name="ConfigAlterForm" property="act" value="applySuccess">
<script language="JavaScript">
top.close();
</script>
</logic:equal>
<html:form action="/pages/CM/ConfigAlter" onsubmit="return checkForm();">
<html:hidden property="alterapplyid" />
<table width="90%" align="center">
<tr>
<td align="center" valign="top">
</td>
</tr>
<tr>
<td>
<logic:equal name="ConfigAlterForm" property="act" value="addNewAlter">
<table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#669999"><div align="center"><font color="#FFFF99">变更申请</font></div></td>
</tr>
</table>
<table class="dialog" width="100%">
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 变更标题 </td>
<td><html:text property="alteritem" style="width:280"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 变更类型 </td>
<td>
<html:select property="requisttype" style="width:160" size="1">
<html:option value="">------请选择-------</html:option>
<html:option value="需求变更">------需求变更-------</html:option>
<html:option value="设计变更">------设计变更-------</html:option>
<html:option value="计划变更">------计划变更-------</html:option>
</html:select>
</td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 变更原因 </td>
<td><html:textarea property="reason" style="width:280" rows="8"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 变更内容 </td>
<td><html:textarea property="content" style="width:280" rows="10"/></td>
</tr>
</table>
</logic:equal>
<logic:equal name="ConfigAlterForm" property="act" value="approveAlter">
<table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#669999"><div align="center"><font color="#FFFF99">变更审批</font></div></td>
</tr>
</table>
<table class="dialog" width="100%">
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 审 批 者 </td>
<td><html:text name="ConfigAlterForm" property="approver" value= "<%=user.getName()%>" disabled="true"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 审批结论 </td>
<td>
<html:select property="status" style="width:160" size="1">
<html:option value="">批准申请</html:option>
<html:option value="">不批准申请</html:option>
</html:select>
</td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 审批分析 </td>
<td>
<html:textarea property="approvereport" style="width:300" rows="10"/>
</td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 指定验证者 </td>
<td> <html:select property="validator" style="width:160" size="1">
<html:option value="">--------请选择---------</html:option>
<jsp:include page="/getcategories?type=projectMember"/>
<html:options collection="employees" property="userID" labelProperty="name"/>
</html:select>
</td>
</tr>
</table>
</logic:equal>
<logic:equal name="ConfigAlterForm" property="act" value="executeAlter">
<table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#669999"><div align="center"><font color="#FFFF99">变更执行情况</font></div></td>
</tr>
</table>
<table class="dialog" width="100%">
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 变更执行者 </td>
<td><html:text name="ConfigAlterForm" property="validator" value= "<%=user.getName()%>" disabled="true"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 执行结束日期 </td>
<td><html:text name="ConfigAlterForm" property="closedate" maxlength="10" titleKey="global.tip.dateFormat" styleClass="inputDate" style="width:160" onclick="setday(this)"/>
</td>
</tr>
<tr class="inputRow">
<td align="right" width="100">
<bean:message key="global.red_asterisk"/> 变更执行情况
</td>
<td><html:textarea name="ConfigAlterForm" property="alterreport" style="width:100%" rows="9"> </html:textarea></td>
</tr>
</table>
</logic:equal>
<logic:equal name="ConfigAlterForm" property="act" value="analyseAlter">
<table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#669999"><div align="center"><font color="#FFFF99">跟踪分析</font></div></td>
</tr>
</table>
<table class="dialog" width="100%">
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 跟踪分析者 </td>
<td><bean:write name="ConfigAlterForm" property="analyser"/> </td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 跟踪分析结论 </td>
<td>
<html:text name="ConfigAlterForm" property="analysisreport"/>
</td>
</tr>
</table>
</logic:equal>
<hr>
<jsp:include page="../../include/savebuttons.jsp"/>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -