You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
336 lines
16 KiB
Plaintext
336 lines
16 KiB
Plaintext
3 years ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CRMClientQuotationInfo.aspx.cs" Inherits="DSWeb.CRM.CRMClientQuotationInfo" %>
|
||
|
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||
|
<head runat="server">
|
||
|
<title>报价单费用</title>
|
||
|
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
|
||
|
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxmenu.css"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/progressbar.css" />
|
||
|
<link href="../Css/right.css" rel="stylesheet" type="text/css" />
|
||
|
<script language="javascript" type="text/javascript" src="../js/date/jsDateFormat.js"></script>
|
||
|
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
|
||
|
<script language="javascript" type="text/javascript" src="../js/date/jsDateFM.js"></script>
|
||
|
<style type="text/css">
|
||
|
html,body{font-size:12px;margin:0px;height:100%;}
|
||
|
.mesWindow{border:#666 1px solid;background:#fff;}
|
||
|
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
|
||
|
.mesWindowContent{margin:4px;font-size:12px;}
|
||
|
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
|
||
|
.btn
|
||
|
{
|
||
|
width:100px;
|
||
|
BORDER-RIGHT: #2C59AA 1px solid;
|
||
|
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
|
||
|
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
|
||
|
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
|
||
|
BORDER-BOTTOM: #2C59AA 1px solid
|
||
|
}
|
||
|
</style>
|
||
|
<!--Grid-->
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
|
||
|
<script type="text/javascript" src="../js/dhtmlxcommon.js"></script>
|
||
|
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
|
||
|
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
|
||
|
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgrid_drag.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxmenu.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxmenu_ext.js" type="text/javascript"></script>
|
||
|
<script src="../js/json2.js" type="text/javascript"></script>
|
||
|
<script src="../js/jsGridCRMClientQuotationInfo.js" type="text/javascript"></script>
|
||
|
|
||
|
<!--自定义下拉框-->
|
||
|
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
|
||
|
<script type="text/javascript">
|
||
|
window.dhx_globalImgPath = "../images/";
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
//两端去空格函数
|
||
|
String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); }
|
||
|
|
||
|
function $(id) {
|
||
|
return document.getElementById(id);
|
||
|
}
|
||
|
|
||
|
function reloadParent(strBSNO, strHandle) {
|
||
|
//alert("strBSNO="+strBSNO);
|
||
|
var parentObj = window.parent.location;
|
||
|
var oldUrl = parentObj.href;
|
||
|
//
|
||
|
var newUrl = "";
|
||
|
var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
|
||
|
newUrl = oldUrl.substring(0, handleIndex);
|
||
|
window.parent.opener.location.href = window.parent.opener.location.href;
|
||
|
parentObj.href = newUrl + "handle=edit&id=" + strBSNO;
|
||
|
// if (strHandle == "add") {
|
||
|
// var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
|
||
|
// newUrl = oldUrl.substring(0, handleIndex);
|
||
|
// window.parent.opener.location.href = window.parent.opener.location.href;
|
||
|
// parentObj.href = newUrl + "handle=edit&id=" + strBSNO;
|
||
|
// }
|
||
|
// else if (strHandle == "addfull") {
|
||
|
// var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
|
||
|
// newUrl = oldUrl.substring(0, handleIndex);
|
||
|
// window.parent.opener.location.href = window.parent.opener.location.href;
|
||
|
// parentObj.href = newUrl + "handle=edit&id=" + strBSNO;
|
||
|
// }
|
||
|
// else if (strHandle == "edit") {
|
||
|
// //newUrl = oldUrl.substring(0,idIndex+4);//alert(oldUrl.substring(0,idIndex));
|
||
|
// window.parent.opener.location.href = window.parent.opener.location.href;
|
||
|
// //parentObj.href = newUrl+strBSNO;
|
||
|
// }
|
||
|
//
|
||
|
//alert("成功提交!");
|
||
|
}
|
||
|
//是否为数字,且数值格式是否正确
|
||
|
function IsNumFormat(val) {
|
||
|
var re = /^[-\+]?\d+(\.\d+)?$/;
|
||
|
if (!re.test(val)) {
|
||
|
return false;
|
||
|
}
|
||
|
else {
|
||
|
if (val.toString().indexOf(".") > 0) {
|
||
|
val.toString().replace("-", "");
|
||
|
val.toString().replace("+", "");
|
||
|
if (val.toString().substr(0, 1) == "0" && val.toString().substr(0, 2) != "0.") {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
var re1 = /^[-\+]+[1-9]+[0-9]*]*$/;
|
||
|
if (!re1.test(val)) {
|
||
|
re1 = /^[1-9]+[0-9]*]*$/;
|
||
|
if (!re1.test(val)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
//
|
||
|
function getIsNum(x) {
|
||
|
var str = x.value.trim();
|
||
|
if (str == "0") {
|
||
|
return;
|
||
|
}
|
||
|
else if (str == "") {
|
||
|
str = 0;
|
||
|
x.value = 0;
|
||
|
}
|
||
|
else {
|
||
|
var bl = IsNumFormat(str);
|
||
|
if (!bl) {
|
||
|
alert("数值格式错误!");
|
||
|
x.focus();
|
||
|
x.select();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function document.onkeydown() {
|
||
|
if (event.keyCode == 8) {
|
||
|
if (document.selection) {
|
||
|
var range = document.selection.createRange(); ;
|
||
|
|
||
|
if (range.parentElement().name == null) {
|
||
|
return false; 0
|
||
|
|
||
|
} else {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
function initLoading() {
|
||
|
$("progressBar").style.display = "";
|
||
|
}
|
||
|
|
||
|
function finishLoading() {
|
||
|
$("progressBar").style.display = "none";
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="initGrid();initDownFeeName();getonload();" style="background-color: #ECF2FF;width:100%; height:100%; overflow-y:auto;">
|
||
|
<form id="form1" runat="server">
|
||
|
<div class="btn-content">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn-img" onclick="saveAction()" id="Div2" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="printAction()" id="Div6" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/print.gif" width="16px" title="打印"/></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px">客户简称:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlSHORTNAME" name="ddlSHORTNAME" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="80px">客户联系人:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlCONTACTNAME" name="ddlCONTACTNAME" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="50px">销售:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlSALE" name="ddlSALE" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="60px">报价日期:</td>
|
||
|
<td width="120px">
|
||
|
<asp:TextBox ID="tbQUOTATIONDATE" runat="server" onclick="WdatePicker()" MaxLength="10" CssClass="txtTab" style="width:100px; height:17px;"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px">船公司:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlCARRIER" runat="server" class="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="80px">启运港:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlPORTLOAD" name="ddlPORTLOAD" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="50px">目的港:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlPORTDISCHARGE" name="ddlPORTDISCHARGE" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="60px">中转港:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlENTREPORT" name="ddlENTREPORT" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px">航线:</td>
|
||
|
<td width="120px">
|
||
|
<select id="ddlLANE" runat="server" CssClass="txtTab" style="width:103px;"></select>
|
||
|
</td>
|
||
|
<td width="80px">航程:</td>
|
||
|
<td width="120px">
|
||
|
<asp:TextBox ID="tbTT" runat="server" CssClass="txtTab" MaxLength="50" style="width:100px; height:17px;"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="50px">品名:</td>
|
||
|
<td width="120px">
|
||
|
<asp:TextBox ID="tbGOODSNAME" runat="server" CssClass="txtTab" MaxLength="30" style="width:100px; height:17px;"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="60px">有效期:</td>
|
||
|
<td width="120px">
|
||
|
<asp:TextBox ID="tbVALIDDATE" runat="server" onclick="WdatePicker()" MaxLength="10" CssClass="txtTab" style="width:100px; height:17px;"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px">开船日期:</td>
|
||
|
<td width="120px">
|
||
|
<asp:TextBox ID="tbETD" runat="server" onclick="WdatePicker();" onfocus="setWEEK();" onblur="setWEEK();" MaxLength="10" CssClass="txtTab" style="width:100px; height:17px;"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="80px">
|
||
|
<input id="lbWEEK" runat=server type="text" class="txtTab"
|
||
|
style="width:60px; height:17px;" readonly="readonly" onfocus="setWEEK();" onblur="setWEEK();" />
|
||
|
</td>
|
||
|
<td width="120px">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px">备注:</td>
|
||
|
<td colspan="7">
|
||
|
<asp:TextBox ID="tbREMARK" runat="server" CssClass="txtTab" MaxLength="1024" Width="698px"
|
||
|
Height=70px TextMode="MultiLine" style="overflow-y:auto;height:70px;"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="btn-content">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn-img" style="width:110px; text-align:left;">
|
||
|
<div class="btnimg" style="width:100px;">海运费及附加费</div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="addRecvRow()" id="btn_recvadd" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加海运费及附加费"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="saveAction()" id="btn_recvsave" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="deleteRecvRow()" id="btn_recvdel" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除费用"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="refreshRecv()" id="btn_recvrefresh" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div style="width:98%; overflow-x:scroll; position:relative;"><div id="mygrid_container_recv" style="width:800px; height:160px;" runat="server"></div></div>
|
||
|
<div class="btn-content">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn-img" style="width:110px; text-align:left;">
|
||
|
<div class="btnimg" style="width:100px;">人民币杂费</div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="addPayRow()" id="btn_payadd" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加人民币费用"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="saveAction()" id="btn_paysave" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="deletePayRow()" id="btn_paydel" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除费用"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="refreshPay()" id="btn_payrefresh" runat=server>
|
||
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-none" id="payMenuObj" style="width:60px;">
|
||
|
<div class="btntxt">引入费用</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div style="width:98%; overflow-x:scroll; position:relative;"><div id="mygrid_container_pay" style="width:800px; height:160px;" runat="server"></div></div>
|
||
|
|
||
|
<div id="allDoc"></div>
|
||
|
<div>
|
||
|
<input type="hidden" id="addCache" />
|
||
|
<input type="hidden" id="h_cachename" runat="server" />
|
||
|
<input type="hidden" id="h_cachetemplate" runat="server" />
|
||
|
<input type="hidden" id="h_importtype" runat="server" />
|
||
|
<input type="hidden" id="h_authority" runat="server" />
|
||
|
<input type="hidden" id="h_recvauthority" runat="server" />
|
||
|
<input type="hidden" id="h_payauthority" runat="server" />
|
||
|
<input type="hidden" id="h_custcache" runat="server" />
|
||
|
<input type="hidden" id="h_cachehistory" runat="server" />
|
||
|
<input type="hidden" id="h_historytype" runat="server" />
|
||
|
<input type="hidden" id="h_historycachename" runat="server" />
|
||
|
<input type="hidden" id="h_historyoptype" runat="server" />
|
||
|
|
||
|
<input type="hidden" id="h_IsFeeGain" runat="server" />
|
||
|
<input type="hidden" id="payContainer" runat="server" />
|
||
|
<input type="hidden" id="recvContainer" runat="server" />
|
||
|
<input type="hidden" id="h_post" runat="server" />
|
||
|
|
||
|
<input type="hidden" id="h_feecache" runat="server" />
|
||
|
<input type="hidden" id="hd_comboSHORTNAME" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboSALE" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboPORTLOAD" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboPORTDISCHARGE" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboENTREPORT" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboCARRIER" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboLANE" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboCONTACTNAME" runat="server"/>
|
||
|
|
||
|
<input type="hidden" id="hdGID" runat="server"/>
|
||
|
<input type="hidden" id="hdEnabled" runat="server"/>
|
||
|
<input type="hidden" id="hdHandle" runat="server"/>
|
||
|
<input type="hidden" id="hdCLIENTGID" runat="server"/>
|
||
|
<input type="hidden" id="hdISCLIENTGID" runat="server"/>
|
||
|
</div>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|