?? service_add.jsp
字號:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="/WEB-INF/jb-common.tld" prefix="jb"%>
<script src="validate.js"></script>
<script src="icommon.js"></script>
<html:errors />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>新建客戶服務(wù)</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script>
function doDel(id){
if ( window.confirm("確定刪除?") ){
window.location.href = "?o=doDel&id=" + id;
}
}
</script>
</head>
<body class="main">
<html:form action="service" method="post">
<html:hidden property="o" value="doAdd" />
<html:hidden property="item.svrStatus" value="新創(chuàng)建" />
<span class="page_title">新建客戶服務(wù)</span>
<div class="button_bar">
<button class="common_button" onclick="javascript:history.go(-1);">返回</button>
<button class="common_button" onclick="javascript:doSubmit('doAdd');">保存</button>
</div>
<table class="query_form_table" border="0" cellPadding="3"
cellSpacing="0">
<tr>
<th>編號</th>
<td><html:text property="item.svrId" readonly="true" /></td>
<th>服務(wù)類型</th>
<td><html:select property="item.svrType">
<html:option value="">未指定</html:option>
<html:optionsCollection name="DICTS_OPTIONS_服務(wù)類型" label="dictItem"
value="dictValue" />
</html:select><span class="red_star">*</span></td>
</tr>
<tr>
<th>概要</th>
<td colspan="3"><html:text property="item.svrTitle" size="50" /><span
class="red_star">*</span></td>
</tr>
<tr>
<th>客戶</th>
<td><html:text property="item.svrCustName" /><span
class="red_star">*</span></td>
<th>狀態(tài)</th>
<td>新創(chuàng)建</td>
</tr>
<tr> <th>服務(wù)請求</th>
<td colspan="3"><html:textarea property="item.svrRequest" rows="6" cols="50"></html:textarea><span
class="red_star">*</span></td>
</tr>
<tr>
<th>創(chuàng)建人</th>
<td><html:text property="item.svrCreateBy" value="${sessionScope.USER.usrName }" readonly="true" /><span class="red_star">*</span>
<html:hidden property="item.svrCreateId" value="${sessionScope.USER.usrId } " />
</td>
<th>創(chuàng)建時間</th>
<td><input name="svrCreateDate" readonly="true" /><span class="red_star">*</span></td>
</tr>
</table>
<br />
<table disabled class="query_form_table">
<tr>
<th>分配給</th>
<td>
<html:select property="item.svrDueId" onchange="setLabel(this,'item.svrDueTo');">
<html:option value="0">未指定</html:option>
<html:optionsCollection name="USERS_OPTIONS" label="usrName" value="usrId" />
</html:select>
<html:hidden property="item.svrDueTo" />
</td>
<th>分配時間</th>
<td><html:text property="item.svrDueDate" /></td>
</tr>
</table>
<br />
<table disabled class="query_form_table">
<tr>
<th>服務(wù)處理</th>
<td colspan="3"><html:textarea property="item.svrDeal" rows="6" cols="50"></html:textarea></td>
</tr>
<tr>
<th>處理人</th>
<td><html:text property="item.svrDealBy" value="${sessionScope.USER.usrName }" readonly="true" /><html:hidden property="item.svrDealId" value="${sessionScope.USER.usrId }" /></td>
<th>處理時間</th>
<td><html:text property="item.svrDealDate" /></td>
</tr>
</table>
<br />
<table disabled class="query_form_table">
<tr>
<th>處理結(jié)果</th>
<td><html:text property="item.svrResult" /></td>
<th>滿意度</th>
<td><html:text property="item.svrSatisfy" /></td>
</tr>
</table>
<script>
//build_validate("item.svrId","編號不能為空","Limit","1","8");
build_validate("item.svrType","服務(wù)類型不能為空","Limit","1","20");
build_validate("item.svrTitle","概要不能為空","Limit","1","500");
build_validate("item.svrCustName","客戶不能為空","Limit","1","100");
//build_validate("item.svrStatus","狀態(tài)不能為空","Limit","1","10");
build_validate("item.svrRequest","服務(wù)請求不能為空","Limit","1","3000");
build_validate("item.svrCreateId","創(chuàng)建人不能為空","Limit","1","8");
build_validate("item.svrCreateBy","創(chuàng)建人不能為空","Limit","1","50"); //build_validate("svrCreateDate","創(chuàng)建時間不能為空","Limit","1","50"); //build_validate("item.svrDueId","分配給不能為空","Limit","1","8"); //build_validate("item.svrDueTo","分配給不能為空","Limit","1","8"); //build_validate("item.svrDueDate","分配時間不能為空","Limit","1","8"); //build_validate("item.svrDeal","服務(wù)處理不能為空","Limit","1","3000"); //build_validate("item.svrDealId","處理人不能為空","Limit","1","8"); //build_validate("item.svrDealBy","處理人不能為空","Limit","1","50"); //build_validate("item.svrDealDate","處理時間不能為空","Limit","1","8");
//build_validate("item.svrResult","處理結(jié)果不能為空","Limit","1","500"); //build_validate("item.svrSatisfy","滿意度不能為空","Limit","1","4"); setCurTime('svrCreateDate');
setCurTime('item.svrDealDate');
</script>
</html:form>
</body>
</html:html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -