⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chance_add.jsp

📁 crm系统 有源码 及相关文档sql2005 数据库 客户反馈模块
💻 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>新建销售机会</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="chance" method="post">
  	<html:hidden property="o" value="doAdd" />
  	<html:hidden property="item.chcStatus" value="1" />
  		<span class="page_title">新建销售机会</span>
		<div class="button_bar">
			<button class="common_button" onclick="javascript:help();">帮助</button>
			<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.chcId" readonly="true" /></td>
								<th>机会来源</th>
				<td><html:text property="item.chcSource" /></td>
			</tr>
			<tr>
				<th>客户名称</th>
				<td><html:text property="item.chcCustName" /><span class="red_star">*</span></td>
				<th>成功机率(%)<br />填入数字,0~100</th>

				<td><html:text property="item.chcRate" /><span class="red_star">*</span></td>
			</tr>
			<tr><th>概要</th>
				<td colspan="2"><html:text property="item.chcTitle" size="50" /><span class="red_star">*</span></td>
								
								
			</tr>
			<tr><th>联系人</th>

				<td><html:text property="item.chcLinkman" /></td>
								<th>联系人电话</th>
				<td><html:text property="item.chcTel" /></td>
						
			</tr>
			<tr>
					<th>机会描述</th>
				<td colspan="3"><html:textarea property="item.chcDesc" rows="6" cols="50"></html:textarea><span class="red_star">*</span></td>
			</tr>
			<tr>
								<th>创建人</th>
				<td><html:text property="item.chcCreateBy" value="${sessionScope.USER.usrName }" readonly="true" /><span class="red_star">*</span>
				<html:hidden property="item.chcCreateId" value="${sessionScope.USER.usrId } " />
				</td>
							

								<th>创建时间</th>
				<td><input name="chcCreateDate" readonly="true" /><span class="red_star">*</span></td>
			</tr>
		</table>
		<br />
		<table disabled class="query_form_table" border="0" cellPadding="3" cellSpacing="0">				
			<tr>					<th>指派给</th>
				<td>
					<html:select property="item.chcDueId" onchange="setLabel(this,'item.chcDueTo');">
						<html:option value="0">未指定</html:option>
						<html:optionsCollection name="USERS_OPTIONS" label="usrName" value="usrId" />
					</html:select>					
					<html:hidden property="item.chcDueTo" />
				</td>
			<th>指派时间</th>
				<td><html:text property="item.chcDueDate" /></td>
			</tr>
		</table>
		
		<script>
		//build_validate("item.chcId","编号不能为空","Limit","1","8");
		//build_validate("item.chcSource","机会来源不能为空","Limit","1","50");
		build_validate("item.chcCustName","客户名称不能为空","Limit","1","100");
		build_validate("item.chcTitle","概要不能为空","Limit","1","200");
		build_validate("item.chcRate","成功机率不能为空","Limit","1","4");
		//build_validate("item.chcLinkman","联系人不能为空","Limit","1","50");
		//build_validate("item.chcTel","联系人电话不能为空","Limit","1","50");
		build_validate("item.chcDesc","机会描述不能为空","Limit","1","2000");
		build_validate("item.chcCreateId","创建人不能为空","Limit","1","8");
		//build_validate("item.chcCreateBy","创建人不能为空","Limit","1","50");
		//build_validate("chcCreateDate","创建时间不能为空","Limit","1","50");
		//build_validate("item.chcDueId","指派给不能为空","Limit","1","8");
		//build_validate("item.chcDueTo","指派给不能为空","Limit","1","50");
		//build_validate("item.chcDueDate","指派时间不能为空","Limit","1","8");
		setCurTime('chcCreateDate');
		setCurTime('item.chcDueDate');
		function setLabel(oSrc,tTarName)
		{			
			var oCtl = document.forms[0].elements[tTarName];
			oCtl.value = oSrc.options[oSrc.selectedIndex].text;
		}
		</script>
	</html:form>	
  </body>
</html:html>

⌨️ 快捷键说明

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