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

📄 modieprice.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="com.saas.biz.salePriceMgr.*"%>
<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />
<jsp:useBean id="comm" class="com.saas.biz.commen.commMethodMgr" scope="page" />
<jsp:useBean id="formBean" class="com.saas.biz.templateFormMgr.TempFormInfo" scope="page" />
<%
	String cust_id = "",str1="";
	HttpSession logsession = request.getSession();
	if (logsession.getAttribute("SESSION_CUST_ID") != null) {
		cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
	}
	String price_type = bean.getSelectItems("3");
	String trade_id = comm.GenTradeId();
	Calendar cal = Calendar.getInstance();
	String start_Date = new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime());
	cal.add(Calendar.MONTH, 3);
	String end_Date = new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime());
	SalePriceInfo p = new SalePriceInfo();
	ArrayList tableList = p.getCodeBy(cust_id,"1");
	
	if (tableList != null && tableList.size() > 0) {
		for (int i = 0; i < tableList.size(); i++) {
			HashMap map1 = (HashMap) tableList.get(i);
			if (map1.get("price_code") != null) {
				String price_code = map1.get("price_code").toString();
				str1 = str1 + "<option value=" + price_code + ">" + price_code + "</option>";
			}
		}
	}
%>
<html>
	<head>
		<title>企业信息化服务平台(http://soft.xsaas.com)</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<link href="/style/daohang.css" rel="stylesheet" type="text/css">
		<link href="/style/css.css" rel="stylesheet" type="text/css">
		<link href="/style/manager.css" rel="stylesheet" type="text/css">
		<style type="text/css" media="screen">
form {
	padding: 0px;
	margin: 0px;
}

.line6 {
	width: 72spx;
	width: 70spx !important;
	border: #ffcb99 1px solid; . 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>
		<link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css" />
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/SalePriceInfo.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
		<script language="javascript" src="/js/Calendar_Ly.js"></script>
		<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="../ext/build/locale/ext-lang-zh_CN.js"></script>
		<script language="javascript" src="/js/prototype.js"></script>
		<script language="JavaScript">
		function checkThis(val){
			var size = document.getElementById('size').value;
			var all = '';
			for(var i=0;i<size;i++){
				var obj = 'goods_name'+i;
				if(document.getElementById(obj).checked){
					all = all+document.getElementById(obj).value+'|';
				}
				document.getElementById('allValue').value=all;
			}
		}
		function checkAllGoods(){	
		    var all = '';
			var size = document.getElementById('size').value;
			if(document.getElementById('checkAll').checked){
				for(var i=0;i<size;i++){
					var obj = 'goods_name'+i;
					document.getElementById(obj).checked = true;
					all = all+document.getElementById(obj).value+'|';
				}
				document.getElementById('allValue').value=all;
			}else{
			   for(var i=0;i<size;i++){
					var obj = 'goods_name'+i;
					document.getElementById(obj).checked = false;
				}
				document.getElementById('allValue').value="";
			}
		}
		function confirmsub(){
			if(document.getElementById("price_code").value=="" ||document.getElementById("price_code").value==null){
		     Ext.MessageBox.alert("XSaaS 提示","请填写报价单!");
		     return false;
		   }
		   if(document.getElementById("product_id").value=="" ||document.getElementById("product_id").value==null){
		     Ext.MessageBox.alert("XSaaS 提示","请选择产品!");
		     return false;
		   }
		   if(document.getElementById("price_type").value=="" ||document.getElementById("price_type").value==null){
		     Ext.MessageBox.alert("XSaaS 提示","请填写价格类型!");
		     return false;
		   }
		   if(document.getElementById("price").value=="" || document.getElementById("price").value==null){
		     Ext.MessageBox.alert("XSaaS 提示","请填写价格!");
		     return false;
		   }
		   
		}
		function selectGoods(val){
		   if(val!="0"){
		   	var cust_id =$F('cust_id');
		   	SalePriceInfo.getMoreGoods(cust_id,val,setData);
		  }else{
		  		document.getElementById("goods_name").value='';
			    document.getElementById("price_type").value='';
			    document.getElementById("price").value= '';
			    document.getElementById("start_date").value= '';
			    document.getElementById("ent_date").value= '';
			    document.getElementById("price_desc").value= '';
			    document.getElementById("remark").value= '';
		  }
		}
		function setData(arrayList){
			var goods_name='';
		   for(var i=0;i<arrayList.length;i++){
			    var Map=$H(arrayList[i]);
			    var goods_name1=Map.get('goods_name');
				var price_type=Map.get('price_type');
			   	var price=Map.get('price');
			    var start_date1=Map.get('start_date');
			    var start_date2 = start_date1.getYear()+'-'+(start_date1.getMonth()+1);
			    var start_date  = start_date2 +'-'+start_date1.getDate();
			    var ent_date1=Map.get('ent_date');
			    var ent_date2 =  ent_date1.getYear()+'-'+(ent_date1.getMonth()+1);
			    var ent_date  = ent_date2 +'-'+ent_date1.getDate();
			    var price_desc=Map.get('price_desc');
			    var remark=Map.get('remark');
		
			    document.getElementById("price_type").value=price_type;
			    document.getElementById("price").value= price;
			    document.getElementById("start_date").value= start_date;
			    document.getElementById("ent_date").value= ent_date;
			    document.getElementById("price_desc").value= price_desc;
			    document.getElementById("remark").value= remark;
			    goods_name=goods_name+'┣'+goods_name1+'\n';
		    }
		    
		     document.getElementById("goods_name").value=goods_name;
		}
		
        </script>
		<SCRIPT>WinLIKEerrorpage='/winlike/winman/hlp-error.html';</SCRIPT>
		<SCRIPT SRC="/winlike/winman/wininit.js"></SCRIPT>
		<SCRIPT SRC="/winlike/winman/winman.js"></SCRIPT>
		<SCRIPT>
	            WinLIKE.definewindows=mydefss;
	            function mydefss() {
	            	var j=new WinLIKE.window('', 100, 100, '90%', 'WinLIKE.browsersize().Height -Top-30', 2);
	            	j.Vis=false;
	            	j.Nam='appwin';
	            	WinLIKE.addwindow(j);
	            };
	    </SCRIPT>
	</head>
	<body>
		<form name=resumeForm action=/doTradeReg.do method=post target="_self">
			<table width="750" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="2"></td>
				</tr>
				<tr>
					<td valign="top">
						<table width=727 border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
							<tr>
								<td colspan="4">
									<table width="100%">
										<tr>
											<td width="15%" style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px;" align=right>
												报价单编号:
											</td>
											<td align=left bgcolor="#FFFFFF" width="85%">
												<div class="ping">
													<select name="price_code" id="price_code" onchange="selectGoods(this.value)">
														<option value="0">
															请选择..
														</option>
														<%=str1%>
													</select>
												</div>
											</td>
										</tr>
										<tr>
											<td width="15%" style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px;" align=right>
												产品名称:
											</td>
											<td align=left bgcolor="#FFFFFF" colspan="3" width="85%">
												<div class="ping">
													<textarea id="goods_name" name="goods_name" cols="25" rows="15"></textarea>
												</div>
											</td>
										</tr>
										<tr>
											<td width="15%" style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px;" align=right>
												价格类型:
											</td>
											<td align=left bgcolor="#FFFFFF" colspan="3" width="85%">
												<div class="ping" id="goods_type_aa" style="display: block">
													<select name="price_type" id="price_type">
														<option value="">
															请选择..
														</option>
														<%=price_type%>
													</select>
												</div>
											</td>
										</tr>
										<tr>
											<td width="15%" style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px;" align=right>
												产品定价:
											</td>
											<td align=left bgcolor="#FFFFFF" width="85%">
												<div class="ping">
													<input type="text" name="price" id="price" maxlength="100" size="25" onkeyup="if(isNaN(value))execCommand('undo')">
												</div>
											</td>
										</tr>
										<tr>
											<td style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px;" align=right>
												开始时间:
											</td>
											<td align=left bgcolor="#FFFFFF">
												<div class="ping1">
													<input type="text" name="start_date" id="start_date" maxlength="100" size="25" value="<%=start_Date%>" onfocus="setday(this);">
													<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;" align=right>
												结束时间:
											</td>
											<td align=left bgcolor="#FFFFFF">
												<div class="ping1">
													<input type="text" name="ent_date" id="ent_date" maxlength="100" size="25" value="<%=end_Date%>" onfocus="setday(this);">
													<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;" align=right>
												定价描述:
											</td>
											<td align=left bgcolor="#FFFFFF">
												<div class="ping1">
													<textarea name="price_desc" id="price_desc" rows="6" cols="50"></textarea>
												</div>
											</td>
										</tr>

										<tr>
											<td style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px;" align=right>
												备注:
											</td>
											<td align=left bgcolor="#FFFFFF" colspan="3">
												<div class="ping1">
													<input name="remark" id="remark" size="52" maxlength="50">
												</div>
											</td>
										</tr>
										<input name="fix_type" type="hidden" value="1" />
										<input name="sale_obj_id" type="hidden" value="" />
										<input name="price_code" type="hidden" value="" />
										<input name="trade_id" type="hidden" value="<%=trade_id%>" />
										<input name="trade_type_code" type="hidden" value="1235" />
										<input name="in_date" type="hidden" value="<%=start_Date%>" />
										<input name="cust_id" type="hidden" id="cust_id" value="<%=cust_id%>" />
										<tr>
											<td style="background-color: #f6f6f6; color: #000000; font-weight: bold; font-size: 12px; padding-top: 10px; padding-bottom: 10px;" align="center" colspan=4>
												<input name="comit" type="submit" value="" onclick="return confirmsub()" style="background-image: url('/images/tj.gif'); width: 70px; height: 26px; border: 0; cursor: hand">
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="13"></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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