service_add.jsp

来自「crm系统 有源码 及相关文档sql2005 数据库 客户反馈模块」· JSP 代码 · 共 146 行

JSP
146
字号
<%@ 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>新建客户服务</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="新创建" />
	<span class="page_title">新建客户服务</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>服务类型</th>

			<td><html:select property="item.svrType">
				<html:option value="">未指定</html:option>
				<html:optionsCollection name="DICTS_OPTIONS_服务类型" 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>状态</th>

			<td>新创建</td>
		</tr>
		<tr>	<th>服务请求</th>

			<td colspan="3"><html:textarea property="item.svrRequest" rows="6" cols="50"></html:textarea><span
				class="red_star">*</span></td>
		</tr>
		<tr>
				<th>创建人</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>创建时间</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>服务处理</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>处理结果</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","服务类型不能为空","Limit","1","20");
		build_validate("item.svrTitle","概要不能为空","Limit","1","500");		
		build_validate("item.svrCustName","客户不能为空","Limit","1","100");
		//build_validate("item.svrStatus","状态不能为空","Limit","1","10");
		build_validate("item.svrRequest","服务请求不能为空","Limit","1","3000");
		build_validate("item.svrCreateId","创建人不能为空","Limit","1","8");
		build_validate("item.svrCreateBy","创建人不能为空","Limit","1","50");		//build_validate("svrCreateDate","创建时间不能为空","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","服务处理不能为空","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","处理结果不能为空","Limit","1","500");		//build_validate("item.svrSatisfy","满意度不能为空","Limit","1","4");		setCurTime('svrCreateDate');
		setCurTime('item.svrDealDate');

		</script>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?