📄 updatequote.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.text.SimpleDateFormat"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.custMgr.Custinfo"%>
<%@ page import="com.saas.biz.goodsMgr.GoodsInfo"%>
<%@ page import="com.saas.biz.quoteMgr.QuoteInfo"%>
<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" />
<%
HttpSession logsession = request.getSession();
String selectStr="",cust_id="",query_id="";
if(request.getParameter("query_id")!=null){
query_id=request.getParameter("query_id");
}
if (logsession.getAttribute("SESSION_CUST_ID") != null)
{
cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
}
String prep_id="",form_id="";
if(request.getParameter("prep_id")!=null){
prep_id=request.getParameter("prep_id");
}
if(request.getParameter("form_id")!=null){
form_id=request.getParameter("form_id");
}
QuoteInfo quoteInfo = new QuoteInfo();
ArrayList quoteList = new ArrayList();
quoteList = quoteInfo.getOneQuote(cust_id,prep_id,form_id);
String prep_name="",obj_cust_id="",prep_obj_id="",contact_man="",contact="",give_date="",cust_name="";
String give_addr="",ship_type1="",currency_code1="",off_count="",off_rate="",ship_fee="",goods_name="";
String tax="",all_fee="",prep_count="",part_delivery_tag="",remark2="",currency_code2="",ship_type2="";
if(quoteList!=null && quoteList.size()>0){
HashMap quoteMap = (HashMap)quoteList.get(0);
if(quoteMap.get("prep_name")!=null){prep_name = quoteMap.get("prep_name").toString();}
if(quoteMap.get("obj_cust_id")!=null){
obj_cust_id=quoteMap.get("obj_cust_id").toString();
Custinfo cust = new Custinfo();
ArrayList custList = new ArrayList();
custList = cust.genSpecCustInfo(obj_cust_id);
if(custList!=null && custList.size()>0){
HashMap mapp1 = (HashMap)custList.get(0);
cust_name = mapp1.get("cust_name").toString();
}
}
if(quoteMap.get("prep_obj_id")!=null){
prep_obj_id=quoteMap.get("prep_obj_id").toString();
GoodsInfo goods = new GoodsInfo();
HashMap mapp = goods.getOneGoods(cust_id,prep_obj_id);
goods_name = mapp.get("goods_name").toString();
}
if(quoteMap.get("contact_man")!=null){contact_man = quoteMap.get("contact_man").toString();}
if(quoteMap.get("contact")!=null){contact = quoteMap.get("contact").toString();}
if(quoteMap.get("give_date")!=null){give_date = quoteMap.get("give_date").toString();}
if(quoteMap.get("give_addr")!=null){give_addr = quoteMap.get("give_addr").toString();}
if(quoteMap.get("ship_type")!=null){
ship_type2 = quoteMap.get("ship_type").toString();
ship_type1=bean.getParaCode2ByParaCode1("63",ship_type2);
}
if(quoteMap.get("currency_code")!=null){
currency_code2 = quoteMap.get("currency_code").toString();
currency_code1=bean.getParaCode2ByParaCode1("62",currency_code2);
}
if(quoteMap.get("off_count")!=null){off_count = quoteMap.get("off_count").toString();}
if(quoteMap.get("off_rate")!=null){off_rate = quoteMap.get("off_rate").toString();}
if(quoteMap.get("ship_fee")!=null){ship_fee = quoteMap.get("ship_fee").toString();}
if(quoteMap.get("tax")!=null){tax = quoteMap.get("tax").toString();}
if(quoteMap.get("all_fee")!=null){all_fee = quoteMap.get("all_fee").toString();}
if(quoteMap.get("prep_count")!=null){prep_count = quoteMap.get("prep_count").toString();}
if(quoteMap.get("part_delivery_tag")!=null){part_delivery_tag = quoteMap.get("part_delivery_tag").toString();}
if(quoteMap.get("remark2")!=null){remark2 = quoteMap.get("remark2").toString();}
}
GoodsInfo goodsInfo = new GoodsInfo();
String goodsSelect = goodsInfo.getGoodsName(cust_id);
Calendar cal = Calendar.getInstance();
String start_Date = new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime());
String currency_code=bean.getSelectItems("62");
String ship_type=bean.getSelectItems("63");
selectStr=formBean.getTemplateSelect(cust_id,"3");
String menu_id="";
if(request.getParameter("menu_id")!=null){
menu_id=request.getParameter("menu_id");
}
%>
<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; 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>
<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="../ext/build/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/prototype.js"></script>
<script language="javascript" src="/js/Calendar_Ly.js"></script>
<script type="text/javascript" src="customer.js"></script>
<script type="text/javascript" src="contact.js"></script>
<script type="text/javascript" src="userGird.js"></script>
<script language="JavaScript">
function confirmsub(){
if(document.getElementById("prep_name").value=="" ||document.getElementById("prep_name").value==null){
Ext.MessageBox.alert("XSaaS 提示","请填写报价单名称!");
return false;
}
if(document.getElementById("obj_cust_name").value=="" ||document.getElementById("obj_cust_name").value==null){
Ext.MessageBox.alert("XSaaS 提示","请选择报价客户!");
return false;
}
if(document.getElementById("prep_obj_id").value=="" || document.getElementById("prep_obj_id").value==null){
Ext.MessageBox.alert("XSaaS 提示","请选择报价对象!");
return false;
}
if(document.getElementById("contact_man").value=="" ||document.getElementById("contact_man").value==null){
Ext.MessageBox.alert("XSaaS 提示","请填选择联系人!");
return false;
}
return true;
}
Ext.onReady(function(){
Ext.QuickTips.init();
});
//生成自定义订单
function selectForm(val){
if(val!="0"){
var prep_id=document.getElementById("prep_id").value;
window.open ("addSaleOrder.jsp?form_id="+val+"&quo_id="+prep_id);
}
}
</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 style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;" align=right>
报价单名称:
</td>
<td align=left bgcolor="#FFFFFF">
<div class="ping">
<input type="text" name="prep_name" id="prep_name" value="<%=prep_name %>" size="25" maxlength="50">
</div>
</td>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;" align=right>
报价客户:
</td>
<td align=left bgcolor="#FFFFFF">
<div class="ping">
<input type="text" name="obj_cust_name" id="obj_cust_name" value="<%=cust_name %>" size="15" maxlength="50" readonly><input type="button" name="bnt" id="bnt" value="选择" onclick="showWindow()"><div id="grid3"></div>
<input type="hidden" name="obj_cust_id" id="obj_cust_id" size="25" maxlength="100" value="<%=obj_cust_id %>">
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -