📄 addtestresultinfo.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="com.saas.biz.relationccMgr.RelationCcInfo"%>
<%
String cust_id = "",str1="";
HttpSession logsession = request.getSession();
if (logsession.getAttribute("SESSION_CUST_ID") != null) {
cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
}
String channels_type=bean.getSelectItems("64");
String pay_type=bean.getSelectItems("83");
RelationCcInfo area = new RelationCcInfo();
ArrayList tableList =area.getCoustomerById(cust_id);
if (tableList != null && tableList.size() > 0) {
for (int i = 0; i < tableList.size(); i++) {
HashMap map1 = (HashMap) tableList.get(i);
if (map1.get("cust_name") != null) {
String id = map1.get("cust_id").toString();
String name = map1.get("cust_name").toString();
str1 = str1 + "<option value=" + id + ">"+ name + "</option>";
}
}
}
Calendar cal = Calendar.getInstance();
String start_Date = new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime());
String end_Date = new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime());
%>
<html>
<head>
<title>XSaaS-考核信息录入</title>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css" />
<script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext/ext-all.js"></script>
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="../ext/build/locale/ext-lang-zh_CN.js"></script>
<script language="javascript" src="/js/Calendar_Ly.js"></script>
<script type="text/javascript" src="/salesFormMgr/userGird.js"></script>
<style type="text/css" media="screen">
form {padding:0px; margin:0px;}
.line6 {width:72spx; width:70spx!important;border:#ffcb99 1px solid; background-color:#fff8ee; text-align:left; padding-left: 20px;padding-top: 10px;padding-bottom: 10px; color:#000000; margin-top:13px; margin-bottom:13px;} /*横栏样式6---- 头部提醒1*/
.line6 .img{width:53px; height:53px; float:left; margin-right:20px;}
.line6 .title {font-size:14px; font-weight:bold; color:#ff5400;}
.line1 {border-left:#ff7300 3px solid; background-color:#e2e2e2; color:#333333;text-align:left; font-size:12px;} /*横栏样式1*/
.user-Img {
background-image:url(/img/customer.png) !important;
}
.cust-Img {
background-image:url(/img/home.png) !important;
}
</style>
<script type="text/javascript">
//空值判断
function Check_Value(){
if(document.getElementById("channels_type").value=="" ||document.getElementById("channels_type").value==null){
alert("请选择渠道!");
return false;
}
if(document.getElementById("obj_cust_id").value=="" ||document.getElementById("obj_cust_id").value==null){
alert("请选择经销商!");
return false;
}
if(document.getElementById("test_value").value=="" ||document.getElementById("test_value").value==null){
alert("请填写考核值!");
return false;
}
if(document.getElementById("test_month").value=="" ||document.getElementById("test_month").value==null){
alert("请选择日期!");
return false;
}
return true;
}
</script>
</head>
<body>
<form name=resumeForm action=/doTradeReg.do method=post target="_self">
<table width=100% border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width="15%">
渠道类型:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left colspan="3" width="85%">
<div class="ping">
<select name="channels_type" id="channels_type">
<option value="">
请选择..
</option>
<%=channels_type%>
</select>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width=15%>
经销商:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width=35%>
<div class="ping">
<select name="obj_cust_id" id="obj_cust_id">
<option value="">
请选择..
</option>
<%=str1%>
</select>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width=15%>
考核值:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width=35%>
<div class="ping">
<input name="test_value" type="text" id="test_value" size=20 maxlength=20>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width=15%>
考核年月:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width=35%>
<div class="ping">
<input name="test_month" type="text" id="test_month" size="10" maxlength="10" onfocus="setday(this);" value="<%=start_Date%>">
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width=15%>
考核计算时间:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width=35%>
<div class="ping1">
<input name="test_date" type="text" id="test_date" size="10" maxlength="10" onfocus="setday(this);" value="<%=end_Date%>">
<span style="color: red">(yyyy-MM-dd)</span>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right>
考核描述:
</td>
<td align="left" bgcolor="#FFFFFF" colspan="3">
<div class="ping1">
<textarea name="test_desc" id="test_desc" cols="50" rows="6"></textarea>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right width=15%>
是否有效:
</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width=35%>
<div class="ping1">
<select name="enable_tag" id="enable_tag">
<option value="0">有效</option>
<option value="1">无效</option>
</select>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;text-align:right" align=right>
备注:
</td>
<td align="left" bgcolor="#FFFFFF" colspan="3">
<div class="ping1">
<input name="remark" id="remark" type="text" size=52 maxlength="50">
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;padding-top:10px;padding-bottom:10px;text-align:center;" align="center" colspan=4>
<input name="comit" type="submit" value="" onclick="return Check_Value()" style="background-image: url('/images/tj.gif');width:70px;height: 26px;border:0;cursor:hand;text-align:center;">
</td>
</tr>
<input name="trade_type_code" id="trade_type_code" type="hidden" value="1250">
<input name="cust_id" id="cust_id" type="hidden" value="<%=cust_id%>">
<input name="in_date" id="in_date" type="hidden" value="">
<input name="oper_user_id" id="oper_user_id" type="hidden" value="">
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -