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.
DS7/DSWebMobile/Scripts/ConsignationInfo.js

701 lines
40 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

var u = "";
var w = "";
var bsno = "";
var gid = "";
var companyid = "";
var pageCount = 20; //每页计数
var UrlParam = "";
var cacheKey = "";
var gid = "";
var companyid = "";
var pageTotalCount = 0;
var totalCount = 0;
var url = "";
var pageNum = 0;
var itemContainHeight = 0;
var rdoAuditing = "";
var pageNum = 0;
var oplb = "op_seae";
var auditingStatusIsAll = "1";
var expenseStatusIsAll = "1";
var auditingIsAll = "";
var expenseIsAll = "";
var operateDataType = "";
var operateUserGID = "";
var operateItemGID = "";
var operateOplbValue = "";
var operateBsnoValue = "";
var operateFeeStatus = "";
var operateFeeStatusCtrl = "";
var strSelGID = "";
var drCount = 0;
var crCount = 0;
var drDisplay = false;
var crDisplay = false;
var changeFeeName = "";
var changeCustomerName = "";
var changeUnit = "";
var changeUnitPrice = "";
var changeTaxRate = "";
var changeTaxUnitPrice = "";
var changeQuantity = "";
var changeNoTaxAmount = "";
var changeAmount = "";
var changeCurrency = "";
var changeExChangerate = "";
var changeAccTaxRate = "";
var isDrAuditing = 0; //是否未审核过
var isCrAuditing = 0; //是否未审核过
var isRejectSign = false; //是否驳回
var isSettlementDrSign = false; //是否结算
var isInvoiceDrSign = false; //是否开出发票
var isOrderAmountDrSign = false; //是否申请费用
var isOrderInvoiceDrSign = false; //是否申请开票
var isSettlementCrSign = false; //是否结算
var isInvoiceCrSign = false; //是否开出发票
var isOrderAmountCrSign = false; //是否申请费用
var isOrderInvoiceCrSign = false; //是否申请开票
var _auditingDrSign = new Array; //已审核费用
var _SettlementDrSign = new Array; //已结算费用
var _InvoiceDrSign = new Array; //已开出发票费用
var _OrderAmountDrSign = new Array; //已申请费用费用
var _OrderInvoiceDrSign = new Array; //已申请开票费用
var _auditingCrSign = new Array; //已审核费用
var _SettlementCrSign = new Array; //已结算费用
var _InvoiceCrSign = new Array; //已开出发票费用
var _OrderAmountCrSign = new Array; //已申请费用费用
var _OrderInvoiceCrSign = new Array; //已申请开票费用
var _auditingDrAmount = 0 //已审核费用数量
var _settlementDrAmount = 0; //已结算费用数量
var _invoiceDrAmount = 0; //已开出发票费用数量
var _orderAmountDrAmount = 0; //已申请费用费用数量
var _orderInvoiceDrAmount = 0; //已申请开票费用数量
var _auditingCrAmount = 0 //已审核费用数量
var _settlementCrAmount = 0; //已结算费用数量
var _invoiceCrAmount = 0; //已开出发票费用数量
var _orderAmountCrAmount = 0; //已申请费用费用数量
var _orderInvoiceCrAmount = 0; //已申请开票费用数量
var isModule = 0; //判断点击的是哪个分支模块 0-利润审核1-应收利润 2-应付利润
var auditingArr = new Array();
var auditingAmount = 0;
var _rejectOpt = -1;
var feeStatus = ""; //费用状态
var feeName = ""; //费用名称
var feeDescription = ""; //英文名称
var customerType = ""; //客户类别
var customerName = ""; //结算对象
var unit = ""; //单位标准
var unitPrice = ""; //单价
var taxUnitPrice = ""; //含税单价
var quantity = ""; //数量
var taxRate = ""; //税率
var noTaxAmount = ""; //不含税金额
var amount = ""; //金额
var currency = ""; //币别
var exchangeRate = ""; //汇率
var accTaxRate = ""; //进项税率
var rmark = ""; //备注
var isAdvancedpay = ""; //是否垫付
var isInvoice = ""; //不开发票
var feeFrt = ""; //FRT
var commissionRate = ""; //佣金比率
var opName = ""; //录入人
var enterDate = ""; //录入日期
var settlement = ""; //结算金额
var invoice = ""; //已开票金额
var invoiceNum = ""; //发票号码
$(function () {
$.ajaxSetup({ async: false });
var winWidth = document.documentElement.clientWidth;
var winHeight = document.documentElement.clientHeight;
itemContainHeight = winHeight / 16 - 8.125;
$(".itemContain").css("height", itemContainHeight + "em");
bsno = UrlParm.parm("b");
u = UrlParm.parm("u");
w = UrlParm.parm("w");
fnBaseInfo();
fnContainerInfo();
});
function fnShowBaseInfo() {
$(".itemContain").css("display", "none");
$("#baseInfo").css("display", "block");
}
function fnShowContainerInfo() {
$(".itemContain").css("display", "none");
$("#containerInfo").css("display", "block");
}
function fnBaseInfo() {
$.ajaxSetup({ async: false });
var strInfo = "";
var BSSTATUSREF = ""; //业务锁定
var FEESTATUSREF = ""; //费用锁定
var ACCDATE = ""; //会计期间
var BLTYPE = ""; //装运方式
var CUSTOMERNAME = ""; //委托单位
var BSSOURCE = ""; //业务来源
var BSSOURCEDETAIL = ""; //来源明细
var SALEDEPT = ""; //所属部门
var OP = ""; //操作员
var SALE = ""; //揽货人
var DOC = ""; //单证
var CUSTSERVICE = ""; //客服员
var CUSTNO = ""; //委托编号
var ORDERNO = ""; //订舱编号
var MBLNO = ""; //主提单号
var HBLNO = ""; //分提单号
//服务项目
var ISFUMIGATION = ""; //熏蒸
var ISSTORAGE = ""; //仓储
var ISLAND = ""; //陆运
var ISCUSTOMS = ""; //报关
var ISINSPECTION = ""; //报检
var ISBOOKING = ""; //订舱
var ISAGENT = ""; //使用代理
var ISHBLNO = ""; //分单签单
var STLNAME = ""; //结算方式
var STLDATE = ""; //结算时间
var CONTRACTNO = ""; //服务合同号
var OPERATORCODE = ""; //客户操作代码
var OPERATOR = ""; //客户操作名称
var FINANCIALSTAFFCODE = ""; //客户财务代码
var FINANCIALSTAFF = ""; //客户财务名称
var OPERATOREMAIL = ""; //操作电子邮箱
var OPERATORTEL = ""; //操作电话
var OPERATORFAX = ""; //操作传真
var FINANCIALSTAFFEMAIL = ""; //财务电子邮箱
var FINANCIALSTAFFTEL = ""; //财务电话
var FINANCIALSTAFFFAX = ""; //财务传真
var BSNO = ""; //业务编号
var ORDERTYPE = ""; //委托方式
var MASTERNO = ""; //主编号
var BSSTATUS = ""; //业务状态
var FEESTATUS = ""; //费用状态
var BSSTATUSREF = ""; //业务状态
var FEESTATUSREF = ""; //费用状态
var MANIFESTSTATUSREF = ""; //舱单状态
var OPSTATUS = ""; //费用状态
var BSDATE = ""; //接单日期
var INPUTBY = ""; //录入人
var CORPID = ""; //分公司代码
var CREATETIME = ""; //创建时间
var VESSEL = ""; //船名
var VOYNO = ""; //航次
var ETD = ""; //到港日期
var PORTLOADID = ""; //装货港代码
var PORTLOAD = ""; //装货港
var PORTDISCHARGEID = ""; //卸货港代码
var PORTDISCHARGE = ""; //卸货港
var CNTRNO = ""; //集装箱大写
var CNTR1 = ""; //箱型1
var CNTR2 = ""; //箱型2
var CNTR3 = ""; //箱型3
var CNTR4 = ""; //箱型4
var CNTR5 = ""; //箱型5
var CNTR6 = ""; //箱型6
var CNTR7 = ""; //箱型7
var CNTR8 = ""; //箱型8
var CNTR9 = ""; //箱型9
var CNTR10 = ""; //箱型10
var OTCNTR = ""; //其他箱型
var TEU = ""; //箱TEU
var CNTRTOTAL = ""; //集装箱全部内容
var GOODSNAME = ""; //品名
var KGS = ""; //毛重
var CUSTOMSER = ""; //报关行
var PKGS = ""; //件数
var ISVOU = ""; //是否生成凭证
var VOUNO = ""; //凭证号
var KINDPKGS = ""; //件数包装
var REMARK = ""; //备注
var YARD = ""; //场站 靠泊码头
var CBM = ""; //立方数/尺码
var CNTRSEALNO = ""; //箱号封号
var CARRIER = ""; //船公司
var SHIPAGENCY = ""; //船代
var TRUCKER = ""; //承运车队
var CUSTOMSNUM = ""; //报关票数
var NOPKGS = ""; //件数包装
var GROSSWEIGHT = ""; //货物毛重
var MEASUREMENT = ""; //货物尺码
var DESCRIPTION = ""; //货物描述
var TOTALNO = ""; //件数大写
var TRANSNO = ""; //运单号
var SHIPPERID = ""; //发货人
var CONSIGNEEID = ""; //收货人
var NOTIFYPARTYID = ""; //通知人
var SHIPPER = ""; //发货人内容
var CONSIGNEE = ""; //收货人内容
var NOTIFYPARTY = ""; //通知人内容
var AGENTID = ""; //国外代理
var AGENT = ""; //国外代理内容
var CLOSINGDATE = ""; //截港日期
var ETA = ""; //预抵日期
var PlACERECEIPT = ""; //收货地
var PLACEDELIVERYID = ""; //交货地代码
var PLACEDELIVERY = ""; //交货地
var DESTINATIONID = ""; //目的地代码
var DESTINATION = ""; //目的地
var NOBILL = ""; //提单份数
var ISSUETYPE = ""; //签单方式
var ISSUEDATE = ""; //预抵日期
var ISSUEPLACE = ""; //签单地点
var BLFRT = ""; //付费方式
var PREPARDAT = ""; //预付地点
var PAYABLEAT = ""; //到付地点
var SERVICE = ""; //运输条款
var MARKS = ""; //唛头
var LANE = ""; //航线
var FORWARDER = ""; //订舱公司
var INVNO = ""; //发票号
var CARGOID = ""; //货物标识
var DCLASS = ""; //危险品分类/等级
var DUNNO = ""; //危险品编号
var REEFERF = ""; //冷藏通风量
var TEMPID = ""; //温度单位
var TEMPSET = ""; //设置温度
var TEMPMAX = ""; //最高温度
var TEMPMIN = ""; //最低温度
var ORDTYPE = ""; //订舱类型
var INSURANCEER = ""; //保险人
var INSURANCENO = ""; //保险单号
var INAMOUT = ""; //保险金额
var STATUS1 = ""; //状态1
var STATUS2 = ""; //状态2
var STATUS3 = ""; //状态3
var STATUS4 = ""; //状态4
var STATUS5 = ""; //状态5
var SERVICE9 = ""; //服务项目9
var SERVICE10 = ""; //服务项目10
var PACKINGTYPE = ""; //装箱类型
var WAREHOUSE = ""; //仓库
var CLOSEDOCDATE = ""; //截单日期
var INTOPORTDATE = ""; //集港日期
var MBLFRT = ""; //MBL付费方式
var SOURCECODE = ""; //集装箱(器)来源代码
var ISCONTAINERSOC = ""; //货主箱标志,是否自有箱
var DPAGE = ""; //危险品页号
var DLABEL = ""; //危险品标签
var LINKMAN = ""; //危险品联系人
var VESSELID = ""; //船舶呼号
var ISSUEPLACEID = ""; //提单签发地代码
var HSCODE = ""; //HS编码
var TRANSTATUS = ""; //出运状态
var EDIREMARK = ""; //EDI备注
var SERVICECONTRACTNO = ""; //EDI备注
var rmb = "";
var usd = "";
var otr = "";
var ttl = "";
UrlParam = "&b=" + escape(jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), bsno)); //" + PageIndex + "
url = "../../Handler/Consignation.ashx?action=1&u=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), decrypt(u, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"))) + "&w=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), decrypt(w, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"))) + UrlParam;
$.ajax({
type: "post",
dataType: "json",
data: UrlParam,
url: url,
cache: false,
success: function (msg) {
strInfo = "";
$.each(msg, function (i, item) {
if (item.BSNO != "" && item.BSNO != undefined && item.BSNO != null) {
//订单
BSSTATUSREF = item.BSSTATUSREF; //业务锁定
FEESTATUSREF = item.FEESTATUSREF; //费用锁定
ACCDATE = item.ACCDATE; //会计期间
BLTYPE = item.BLTYPE; //装运方式
CUSTOMERNAME = item.CUSTOMERNAME; //委托单位
BSSOURCE = item.BSSOURCE; //业务来源
BSSOURCEDETAIL = item.BSSOURCEDETAIL; //来源明细
SALEDEPT = item.SALEDEPT; //所属部门
OP = item.OP; //操作员
SALE = item.SALE; //揽货人
DOC = item.DOC; //单证
CUSTSERVICE = item.CUSTSERVICE; //客服员
CUSTNO = item.CUSTNO; //委托编号
ORDERNO = item.ORDERNO; //订舱编号
MBLNO = item.MBLNO; //主提单号
HBLNO = item.HBLNO; //分提单号
//
ISFUMIGATION = item.ISFUMIGATION; //熏蒸:服务项目
ISSTORAGE = item.ISSTORAGE; //仓储:服务项目
ISLAND = item.ISLAND; //陆运:服务项目
ISCUSTOMS = item.ISCUSTOMS; //报关:服务项目
ISINSPECTION = item.ISINSPECTION; //报检:服务项目
ISBOOKING = item.ISBOOKING; //订舱:服务项目
ISAGENT = item.ISAGENT; //使用代理:服务项目
ISHBLNO = item.ISHBLNO; //分单签单:服务项目
//
STLNAME = item.STLNAME; //结算方式
STLDATE = item.STLDATE; //结算时间
CONTRACTNO = item.CONTRACTNO; //服务合同号
OPERATORCODE = item.OPERATORCODE; //客户操作代码
OPERATOR = item.OPERATOR; //客户操作名称
FINANCIALSTAFFCODE = item.FINANCIALSTAFFCODE; //客户财务代码
FINANCIALSTAFF = item.FINANCIALSTAFF; //客户财务名称
OPERATOREMAIL = item.OPERATOREMAIL; //操作电子邮箱
OPERATORTEL = item.OPERATORTEL; //操作电话
OPERATORFAX = item.OPERATORFAX; //操作传真
FINANCIALSTAFFEMAIL = item.FINANCIALSTAFFEMAIL; //财务电子邮箱
FINANCIALSTAFFTEL = item.FINANCIALSTAFFTEL; //财务电话
FINANCIALSTAFFFAX = item.FINANCIALSTAFFFAX; //财务传真
//货物
MANIFESTSTATUSREF = item.MANIFESTSTATUSREF; //舱单状态
OPSTATUS = item.OPSTATUS; //费用状态
BSDATE = item.BSDATE; //接单日期
INPUTBY = item.INPUTBY; //录入人
CORPID = item.CORPID; //分公司代码
VESSEL = item.VESSEL; //船名
VOYNO = item.VOYNO; //航次
ETD = item.ETD; //到港日期
PORTLOAD = item.PORTLOAD; //装货港
PORTDISCHARGE = item.PORTDISCHARGE; //卸货港
CNTRNO = item.CNTRNO; //集装箱大写
TEU = item.TEU; //箱TEU
CNTRTOTAL = item.CNTRTOTAL; //集装箱全部内容
GOODSNAME = item.GOODSNAME; //品名
KGS = item.KGS; //毛重
CUSTOMSER = item.CUSTOMSER; //报关行
PKGS = item.PKGS; //件数
KINDPKGS = item.KINDPKGS; //件数包装
REMARK = item.REMARK; //备注
YARD = item.YARD; //场站 靠泊码头
CBM = item.CBM; //立方数/尺码
SHIPAGENCY = item.SHIPAGENCY; //船代
CARRIER = item.CARRIER; //船公司
TRUCKER = item.TRUCKER; //承运车队
CUSTOMSNUM = item.CUSTOMSNUM; //报关票数
NOPKGS = item.NOPKGS; //件数包装
GROSSWEIGHT = item.GROSSWEIGHT; //货物毛重
MEASUREMENT = item.MEASUREMENT; //货物尺码
DESCRIPTION = item.DESCRIPTION; //货物描述
TOTALNO = item.TOTALNO; //件数大写
TRANSNO = item.TRANSNO; //运单号
SHIPPERID = item.SHIPPERID; //发货人
CONSIGNEEID = item.CONSIGNEEID; //收货人
NOTIFYPARTYID = item.NOTIFYPARTYID; //通知人
SHIPPER = item.SHIPPER; //发货人内容
CONSIGNEE = item.CONSIGNEE; //收货人内容
NOTIFYPARTY = item.NOTIFYPARTY; //通知人内容
AGENTID = item.AGENTID; //国外代理
AGENT = item.AGENT; //国外代理内容
//其它
CLOSINGDATE = item.CLOSINGDATE; //截港日期
ETA = item.ETA; //预抵日期
PlACERECEIPT = item.PlACERECEIPT; //收货地
PLACEDELIVERY = item.PLACEDELIVERY; //交货地
DESTINATION = item.DESTINATION; //目的地
NOBILL = item.NOBILL; //提单份数
ISSUETYPE = item.ISSUETYPE; //签单方式
ISSUEDATE = item.ISSUEDATE; //签单日期
ISSUEPLACE = item.ISSUEPLACE; //签单地点
BLFRT = item.BLFRT; //付费方式
PREPARDAT = item.PREPARDAT; //预付地点
PAYABLEAT = item.PAYABLEAT; //到付地点
SERVICE = item.SERVICE; //运输条款
MARKS = item.MARKS; //唛头
LANE = item.LANE; //航线
FORWARDER = item.FORWARDER; //订舱公司
INVNO = item.INVNO; //发票号
CARGOID = item.CARGOID; //货物标识
DCLASS = item.DCLASS; //危险品分类/等级
DUNNO = item.DUNNO; //危险品编号
REEFERF = item.REEFERF; //冷藏通风量
TEMPID = item.TEMPID; //温度单位
TEMPSET = item.TEMPSET; //设置温度
PACKINGTYPE = item.PACKINGTYPE; //装箱类型
WAREHOUSE = item.WAREHOUSE; //仓库
CLOSEDOCDATE = item.CLOSEDOCDATE; //截单日期
INTOPORTDATE = item.INTOPORTDATE; //集港日期
MBLFRT = item.MBLFRT; //MBL付费方式
SOURCECODE = item.SOURCECODE; //集装箱(器)来源代码
DPAGE = item.DPAGE; //危险品页号
DLABEL = item.DLABEL; //危险品标签
LINKMAN = item.LINKMAN; //危险品联系人
VESSELID = item.VESSELID; //船舶呼号
ISSUEPLACEID = item.ISSUEPLACEID; //提单签发地代码
HSCODE = item.HSCODE; //HS编码
strInfo = "<li class=\"itemLI\"><span class=\"itemContent\">主提单号:" + MBLNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">分提单号:" + HBLNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">委托单位:" + CUSTOMERNAME + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">船名:" + VESSEL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">航次:" + VOYNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">开船日期:" + ETD + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">船公司:" + CARRIER + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">船代:" + SHIPAGENCY + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">卸货港:" + PORTDISCHARGE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">集装箱:" + CNTRNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">付费方式:" + BLFRT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">签单方式:" + ISSUETYPE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">场站:" + YARD + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">截单日期:" + CLOSEDOCDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">截港日期:" + CLOSINGDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">操作姓名:" + OPERATOR + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">电子邮箱:" + OPERATOREMAIL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:" + OPERATORTEL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">传&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真:" + OPERATORFAX + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">财务姓名:" + FINANCIALSTAFF + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">电子邮箱:" + FINANCIALSTAFFEMAIL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">电&nbsp;&nbsp;话:" + FINANCIALSTAFFTEL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">传&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真:" + FINANCIALSTAFFFAX + "</span></li>";
strInfo += "<li class=\"itemLI\"><ul style=\"margin:0;padding:0;width:100%;height:100%;list-style:none;\"><li style=\"float:left;margin:0;margin-left:2%;padding:0;width:48%;height:100%;\">";
if (rmb > 0) {
strInfo += "<span id=\"profitRMB\" class=\"itemContent\">利润RMB&nbsp;<span id=\"profitRMB\">" + rmb + "</span></span>";
}
else {
strInfo += "<span class=\"itemContent\">利润RMB&nbsp;<span id=\"profitRMB\" style=\"color:#F00;\">" + rmb + "</span></span>";
}
strInfo += "</li><li style=\"float:left;margin:0;padding:0;width:50%;height:100%;\">";
if (usd > 0) {
strInfo += "<span id=\"profitUSD\" class=\"itemContent\">利润USD&nbsp;<span id=\"profitUSD\">" + usd + "</span></span>";
}
else {
strInfo += "<span class=\"itemContent\">利润USD&nbsp;<span id=\"profitUSD\" style=\"color:#F00;\">" + usd + "</span></span>";
}
strInfo += "</li></ul></li>";
strInfo += "<li class=\"itemLI\"><ul style=\"margin:0;padding:0;width:100%;height:100%;list-style:none;\"><li style=\"float:left;margin:0;margin-left:2%;padding:0;width:48%;height:100%;\">";
if (otr > 0) {
strInfo += "<span id=\"profitOT\" class=\"itemContent\">其它:&nbsp;<span id=\"profitOT\">" + otr + "</span></span>";
}
else {
strInfo += "<span class=\"itemContent\">其它:&nbsp;<span id=\"profitOT\" style=\"color:#F00;\">" + otr + "</span></span>";
}
strInfo += "</li><li style=\"float:left;margin:0;padding:0;width:50%;height:100%;\">";
if (ttl > 0) {
strInfo += "<span id=\"grossProfit\" class=\"itemContent\">毛利润:&nbsp;<span id=\"grossProfit\">" + ttl + "</span></span>";
}
else {
strInfo += "<span class=\"itemContent\">毛利润:&nbsp;<span id=\"grossProfit\" style=\"color:#F00;\">" + ttl + "</span></span>";
}
strInfo += "</li></ul></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">委托编号:" + CUSTNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">订舱编号:" + ORDERNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">业务锁定:" + BSSTATUSREF + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">费用锁定:" + FEESTATUSREF + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">会计期间:" + ACCDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">装运方式:" + BLTYPE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">业务来源:" + BSSOURCE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">所属部门:" + SALEDEPT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">操&nbsp;&nbsp;作&nbsp;&nbsp;员:" + OP + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">揽&nbsp;&nbsp;货&nbsp;&nbsp;人:" + SALE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;证:" + DOC + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">客&nbsp;&nbsp;服&nbsp;&nbsp;员:" + CUSTSERVICE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">结算方式:" + STLNAME + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">结算时间:" + STLDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">服务合同号:" + CONTRACTNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">舱单状态:" + MANIFESTSTATUSREF + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">费用状态:" + OPSTATUS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">接单日期:" + BSDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">录入人:" + INPUTBY + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">装货港:" + PORTLOAD + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">TEU" + TEU + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">品名:" + GOODSNAME + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">毛重:" + KGS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">报关行:" + CUSTOMSER + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">件数:" + PKGS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">件数包装:" + KINDPKGS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">备注:" + REMARK + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">尺码:" + CBM + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">箱号封号:" + CNTRSEALNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">承运车队:" + TRUCKER + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">报关票数:" + CUSTOMSNUM + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">件数包装:" + NOPKGS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">货物毛重:" + GROSSWEIGHT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">货物尺码:" + MEASUREMENT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">货物描述:" + DESCRIPTION + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">件数大写:" + TOTALNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">运单号:" + TRANSNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">发货人:" + SHIPPERID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">内容:" + SHIPPER + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">收货人:" + CONSIGNEEID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">内容:" + CONSIGNEE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">通知人:" + NOTIFYPARTYID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">内容:" + NOTIFYPARTY + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">国外代理:" + AGENTID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">内容:" + AGENT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">预抵日期:" + ETA + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">提单份数:" + NOBILL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">签单日期:" + ISSUEDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">签单地点:" + ISSUEPLACE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">预付地点:" + PREPARDAT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">到付地点:" + PAYABLEAT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">运输条款:" + SERVICE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">唛头:" + MARKS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">航线:" + LANE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">订舱公司:" + FORWARDER + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">发票号:" + INVNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">货物标识:" + CARGOID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">危险品等级:" + DCLASS + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">危险品编号:" + DUNNO + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">冷藏通风量:" + REEFERF + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">温度单位:" + TEMPID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">设置温度:" + TEMPSET + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">装箱类型:" + PACKINGTYPE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">仓库:" + WAREHOUSE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">集港日期:" + INTOPORTDATE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">付费方式:" + MBLFRT + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">来源代码:" + SOURCECODE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">危险品页号:" + DPAGE + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">危险品标签:" + DLABEL + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">危险品联系人:" + LINKMAN + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">船舶呼号:" + VESSELID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">提单签发地代码:" + ISSUEPLACEID + "</span></li>";
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">HS编码" + HSCODE + "</span></li>";
$("#basicUL").html(strInfo);
$("#basicUL").css("height", itemContainHeight - 3.125 + "em");
}
});
},
error: function () {
}
});
UrlParam = "&s=&y=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), "op_seae") + "&t=1&es=3&b=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), bsno); //" + PageIndex + "
url = "../../Handler/Profit.ashx?action=1" + UrlParam;
$.ajax({
type: "post",
dataType: "json",
data: UrlParam,
url: url,
cache: false,
success: function (msg) {
strInfo = "";
$.each(msg, function (i, item) {
feeStatus = item.FeeStatus_Ref;
feeName = item.FeeName; //费用名称
customerName = item.CustomerName; //结算对象
amount = item.Amount + ".00"; //金额
currency = item.Currency; //币别
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">" + customerName + "&nbsp;" + feeName + "&nbsp;" + amount + "&nbsp;" + currency + "</span></li>";
});
$("#drUL").html(strInfo);
$("#drUL").css("height", itemContainHeight - 3.125 + "em");
}
});
UrlParam = "&s=&y=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), "op_seae") + "&t=2&es=3&b=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), bsno); //" + PageIndex + "
url = "../../Handler/Profit.ashx?action=1" + UrlParam;
$.ajax({
type: "post",
dataType: "json",
data: UrlParam,
url: url,
cache: false,
success: function (msg) {
strInfo = "";
$.each(msg, function (i, item) {
feeStatus = item.FeeStatus_Ref;
feeName = item.FeeName; //费用名称
customerName = item.CustomerName; //结算对象
amount = item.Amount + ".00"; //金额
currency = item.Currency; //币别
strInfo += "<li class=\"itemLI\"><span class=\"itemContent\">" + customerName + "&nbsp;" + feeName + "&nbsp;" + amount + "&nbsp;" + currency + "</span></li>";
});
$("#crUL").html(strInfo);
$("#crUL").css("height", itemContainHeight - 3.125 + "em");
}
});
$.ajax({
type: "post",
data: "bo=" + bsno,
dataType: "json",
url: "../../Handler/Profit.ashx?action=10",
cache: false,
success: function (msg) {
$.each(msg, function (i, item) {
if (i == 0) {
$("#profitRMB").html(item.PR);
}
else if (i == 1) {
$("#profitUSD").html(item.PR);
}
else if (i == 2) {
$("#profitOT").html(item.PR);
}
else if (i == 3) {
ttl = item.PR;
$("#grossProfit").html(ttl.substring(0, ttl.length - 5));
}
});
}
});
}
function fnItemSelect(id, containID) {
if ($("#" + id + "UL").css("display") != "block") {
$("[rel='item']").removeClass("itemTitleLIHover");
$("[rel='item']").addClass("itemTitleLI");
$("#" + containID).removeClass("itemTitleLI");
$("#" + containID).addClass("itemTitleLIHover");
$("[rel='UL']").css("display", "none");
$("#" + id + "UL").css("display", "block");
}
else {
$("#" + containID).removeClass("itemTitleLIHover");
$("#" + containID).addClass("itemTitleLI");
$("#" + id + "UL").css("display", "none");
}
}
function fnContainerInfo() {
$.ajaxSetup({ async: false });
}
function fnIndex() {
window.location.href = "/Home/Index?u=" + escape(u) + "&w=" + escape(w);
}
function fnReturn() {
//window.location.href = "/Consignation/ConsignationList?u=" + escape(u) + "&w=" + escape(w);
history.back();
}