var hitColumn; var accdatebgn = ""; var accdateend = ""; Ext.namespace('Shipping'); Shipping.MsRptOpProfitCompareIndex = function (config) { Ext.applyIf(this, config); this.initUIComponents(); window.Shipping.MsRptOpProfitCompareIndex.superclass.constructor.call(this); }; Ext.extend(Shipping.MsRptOpProfitCompareIndex, Ext.Panel, { PageSize: 2000, OprationStatus: null, //仅当弹出界面时使用 SelectedRecord: null, sqlcontext: '1=2', bslistsortfield: '', bslistsortdire: '', salelistsortfield: '', salelistsortdire: '', custlistsortfield: '', custlistsortdire: '', oplistsortfield: '', oplistsortdire: '', bssourcelistsortfield: '', bssourcelistsortdire: '', bssourcedetaillistsortfield: '', bssourcedetaillistsortdire: '', isloadover: false, initUIComponents: function () { this.formname = 'MsRptOpProfitCompareIndex'; this.isquery = false; //定义数据集 this.storeList = Ext.create('Ext.data.Store', { pageSize: this.PageSize, fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'ZL1', type: 'number' } ], remoteSort: true, proxy: { type: 'ajax', url: '/MvcShipping/MsRptOpProfitZou/SumListData', reader: { id: '', root: 'data', totalProperty: 'totalCount' } } }); Ext.define('Ext.grid.column.Actiontextcolumn', { extend: 'Ext.grid.column.Column', alias: ['widget.actiontextcolumn'], defaultRenderer: function (value) { var me = this; prefix = Ext.baseCSSPrefix; scope = me.origScope || me; // if (value == "") { // } // else value = value + ''; // value = ''; return value; }, processEvent: function (type, view, cell, recordIndex, cellIndex, e, record, row) { var me = this; if (type == 'click') { me.handler.call(me.scope || me.origScope || me, view, recordIndex, cellIndex, e, record, row); } } }); //定义Grid this.initgirdcolums = [{ sortable: true, dataIndex: 'MONTHNAME', header: '月份', width: 110 }, { sortable: true, dataIndex: 'MONTHNUM', header: '数据', renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '' + lsValue + ''; } } else { return value; } } catch (e) { return value; } return value; }, summaryType: 'sum', summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { value = usMoney(value, 2, '', true); return value; }, align: 'right', width: 120 } ]; // this.girdcolums = this.initgirdcolums; this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname + 'bs', this.initgirdcolums, 1); this.gridList = new Ext.grid.GridPanel({ store: this.storeList, enableHdMenu: false, region: 'center', loadMask: { msg: "数据加载中,请稍等..." }, trackMouseOver: true, disableSelection: false, features: [{ ftype: 'summary'//Ext.grid.feature.Summary表格汇总特性 }], columns: this.girdcolums, // listeners:{ // 'itemclick':function(view,record,item,index,e){ // var rec = view.getStore().getAt(index); // alert(rec.get('MONTHNAME')); // } // }, // paging bar on the bottom bbar: Ext.create('Ext.PagingToolbar', { store: this.storeList, displayInfo: true, displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录', emptyMsg: "没有数据" }) }); // this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname + 'bs', this.girdcolums, 1); // this.gridList.reconfigure(this.storeList, this.girdcolums); this.gridList.addListener('itemdblclick', function (dataview, record, item, index, e, b) { this.SelectedRecord = record; var month = record.data.MONTHNAME; openNewDiv("layer", "业务走势对比图表分析", 1083, 630, escape(month.substring(0, 4)), escape(month.substring(5)), hitColumn); hitColumn = ""; }, this); _this = this; this.piechart = Ext.create('Ext.chart.Chart', { id: 'chartCmp', xtype: 'chart', style: 'background:#fff', animate: true, shadow: true, store: this.storeList, axes: [{ type: 'Numeric', position: 'left', fields: ['ZL1'], label: { renderer: Ext.util.Format.numberRenderer('0,0') }, title: '数据', grid: true, minimum: 0 }, { type: 'Category', position: 'bottom', fields: ['MONTHNAME'], title: '年度月份' }], series: [{ type: 'column', axis: 'left', highlight: true, tips: { trackMouse: true, width: 140, height: 28, renderer: function (storeItem, item) { this.setTitle(storeItem.get('MONTHNAME') + ': ' + storeItem.get('ZL1')); } }, label: { display: 'insideEnd', 'text-anchor': 'middle', field: 'ZL1', renderer: Ext.util.Format.numberRenderer('0.00'), orientation: 'vertical', color: '#333' }, xField: 'MONTHNAME', yField: 'ZL1' }] }); //#region formSearch //#region formSearch枚举参照相关 _this = this; this.StoreOpLb = Ext.create('DsExt.ux.RefEnumStore', {}); this.StoreOpLb.load({ params: { enumTypeId: 96005} }); this.comboxOpLb = Ext.create('DsExt.ux.RefTableCombox', { id: 'comboxOpLbID', fieldLabel: '业务类型', store: this.StoreOpLb, forceSelection: true, name: 'PS_OPLB', valueField: 'EnumValueName', displayField: 'EnumValueName', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); this.storeBsType = Ext.create('DsExt.ux.RefEnumStore', {}); this.storeBsType.load({ params: { enumTypeId: 96004} }); this.comboxBsType = Ext.create('DsExt.ux.RefTableCombox', { id: 'comboxBsTypeID', fieldLabel: '运输类型', store: this.storeBsType, name: 'PS_BSTYPE', valueField: 'EnumValueName', displayField: 'EnumValueName', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); this.storeSalesCode = Ext.create('DsExt.ux.RefTableStore', { model: 'DsShipping.ux.UserRefModel', proxy: { url: '/CommMng/BasicDataRef/GetUserRefList' } }); this.storeSalesCode.load(); this.comboxSalesCode = Ext.create('DsExt.ux.RefTableCombox', { id: 'comboxSalesCodeID', fieldLabel: '揽货人', store: this.storeSalesCode, forceSelection: true, name: 'PS_SALE', valueField: 'UserName', displayField: 'CodeAndName', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); this.comboxOp = Ext.create('DsExt.ux.RefTableCombox', { fieldLabel: '操 作', store: this.storeSalesCode, forceSelection: true, name: 'PS_OP', valueField: 'UserName', displayField: 'CodeAndName', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', { model: 'DsShipping.ux.CustomRefModel', proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' } }); this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'"} }); this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', { id: 'comboxCustCodeID', fieldLabel: '委托单位', store: this.storeCustCode, forceSelection: true, name: 'PS_CUSTOMERNAME', valueField: 'CustName', displayField: 'CodeAndName', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); //业务来源 this.storeSource = Ext.create('DsExt.ux.RefTableStore', { model: 'DsShipping.ux.SourceModel', proxy: { url: '/CommMng/BasicDataRef/GetSource' } }); this.storeSource.load(); this.storeSourceDetail = Ext.create('DsExt.ux.RefTableStore', { model: 'DsShipping.ux.SourceDetailModel', proxy: { url: '/CommMng/BasicDataRef/GetSourceDetail2' } }); this.comboxBSSOURCE = Ext.create('DsExt.ux.RefTableCombox', { id: 'comboxBSSOURCEID', fieldLabel: '业务来源', store: this.storeSource, forceSelection: true, name: 'BSSOURCE', valueField: 'SourceName', displayField: 'SourceName', listeners: { scope: this, 'select': function (combo, records, eOpts) { if (records.length > 0) { var recs = DsStoreQueryBy(this.storeSource, 'SourceID', records[0].data.SourceID); if (recs.getCount() > 0) { var data = recs.getAt(0).data; var s = "SOURCEID='" + data.SourceID + "'"; this.storeSourceDetail.load({ params: { condition: s} }); } else { var BSSOURCEDETAIL = this.formSearch.getForm().findField('BSSOURCEDETAIL'); BSSOURCEDETAIL.setValue(''); } } } } }); this.storeSourceDetail.load(); this.comboxBSSOURCEDETAIL = Ext.create('DsExt.ux.RefTableCombox', { fieldLabel: '贸易条款', store: this.storeSourceDetail, forceSelection: true, name: 'BSSOURCEDETAIL', valueField: 'SourceDetail', displayField: 'SourceDetail', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); this.storeLANE = Ext.create('DsExt.ux.RefTableStore', { model: 'DsShipping.ux.Lane', proxy: { url: '/CommMng/BasicDataRef/GetCodeLaneList' } }); this.storeLANE.load(); this.comboxLANE = Ext.create('DsExt.ux.RefTableCombox', { id: 'comboxLANEID', fieldLabel: '航线', store: this.storeLANE, // forceSelection: true, name: 'LANE', valueField: 'LANE', displayField: 'LANE', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); Ext.define('SubComp', { extend: 'Ext.data.Model', fields: [ { name: 'GID', type: 'string' }, { name: 'NAME', type: 'string' }, { name: 'ENNAME', type: 'string' } ] }); this.StoreSubComp = Ext.create('DsExt.ux.RefTableStore', { model: 'SubComp', proxy: { url: '/MvcShipping/MsBaseInfo/GetCompanyEN' } }); this.StoreSubComp.load({ params: { condition: ""} }); this.comboxSubComp = Ext.create('DsExt.ux.RefTableCombox', { fieldLabel: '所属公司', store: this.StoreSubComp, name: 'SUBCOMP', valueField: 'GID', displayField: 'NAME', enableKeyEvents: true, listeners: { keyup: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }); //#endregion _this = this; this.formSearch = Ext.widget('form', { frame: true, region: 'center', bodyPadding: 5, fieldDefaults: { margins: '2 2 2 2', labelAlign: 'right', flex: 1, labelWidth: 90, msgTarget: 'qtip' }, items: [ { xtype: 'container', defaultType: 'textfield', layout: 'anchor', defaults: { anchor: '100%' }, items: [{ xtype: 'container', layout: 'hbox', flex: 1, defaultType: 'textfield', items: [{ xtype: 'radiogroup', fieldLabel: '分析对象', id: 'rdOBJNAME', columns: 6, vertical: true, flex: 3, items: [ { id: 'rdoBsSource', boxLabel: '业务来源', name: 'OBJNAME', inputValue: 'B.BSSOURCE' }, { id: 'rdoLane', boxLabel: '航线', name: 'OBJNAME', inputValue: 'B.LANE', checked: true }, { id: 'rdoSale', boxLabel: '揽货人', name: 'OBJNAME', inputValue: 'B.SALE' }, { id: 'rdoBsType', boxLabel: '运输方式', name: 'OBJNAME', inputValue: 'B.BSTYPE' }, { id: 'rdoCustome', boxLabel: '委托单位', name: 'OBJNAME', inputValue: 'B.CUSTOMERNAME' }, { id: 'rdoAmount', boxLabel: '合计', name: 'OBJNAME', inputValue: 'ALL' } ], listeners: { change: function (rd, newValue, oldValue, eOpts) { if (_this.isquery) _this.onRefreshClick(); } } }, { xtype: 'radiogroup', fieldLabel: '分析内容', id: 'rdOBJNUM', columns: 5, flex: 2, vertical: true, items: [ { id: 'rdoGain', boxLabel: '利润', name: 'OBJNUM', inputValue: '利润', checked: true }, { id: 'rdoArrearage', boxLabel: '欠费', name: 'OBJNUM', inputValue: '欠费' }, { id: 'rdoTeu', boxLabel: 'TEU', name: 'OBJNUM', inputValue: 'TEU' }, { id: 'rdoKgs', boxLabel: '毛重', name: 'OBJNUM', inputValue: '毛重' }, { id: 'rdoNetW', boxLabel: '计费重', name: 'OBJNUM', inputValue: '计费重' } ], listeners: { change: function (rd, newValue, oldValue, eOpts) { if (_this.isquery) _this.onRefreshClick(); } } } ] }, { xtype: 'container', layout: 'hbox', defaultType: 'textfield', items: [{ fieldLabel: '从业务日期', format: 'Y-m-d', xtype: 'datefield', name: 'PS_EXPDATEBGN', enableKeyEvents: true, listeners: { specialkey: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }, { fieldLabel: '到业务日期', format: 'Y-m-d', xtype: 'datefield', name: 'PS_EXPDATEEND', flex: 1, enableKeyEvents: true, listeners: { specialkey: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }, this.comboxOpLb, this.comboxBsType, this.comboxSalesCode, this.comboxSubComp ] }, { xtype: 'container', layout: 'hbox', defaultType: 'textfield', items: [{ id: 'comboxACCDATEBGNID', fieldLabel: '从会计期间', xtype: 'monthfield', name: 'PS_ACCDATEBGN', enableKeyEvents: true, listeners: { specialkey: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }, { id: 'comboxACCDATEENDID', fieldLabel: '从会计期间', xtype: 'monthfield', name: 'PS_ACCDATEEND', enableKeyEvents: true, listeners: { specialkey: function (field, e) { if (e.getKey() == e.ENTER) { _this.onRefreshClick(); } } } }, this.comboxCustCode, this.comboxBSSOURCE, this.comboxLANE, { xtype: 'hiddenfield', flex: 1 } ] } ]//end items(fieldset 1) }//end fieldset 1 ]//end root items }); //#endregion formSearch //查询工具条 this.CheckSaveQuery = new Ext.form.Checkbox({ fieldLabel: '记忆查询条件', checked: true, width: 120 }); _this = this; this.SearchBtn = new Ext.Button({ text: '隐藏查询', handler: function () { if (_this.SearchBtn.text == '隐藏查询') { _this.panelSearch.hide(); _this.SearchBtn.setText("显示查询"); } else { _this.panelSearch.show(); _this.SearchBtn.setText("隐藏查询"); } } }); this.panelBtn = new Ext.Panel({ region: "north", tbar: [ { text: "执行查询", iconCls: "btnrefresh", handler: function (button, event) { this.onRefreshClick(button, event); var isvisible = true; var issavevalue = false; if (_this.SearchBtn.text == '隐藏查询') isvisible = true else isvisible = false; if (this.CheckSaveQuery.checked) issavevalue = true saveQuerySetting(this.formname, this.formSearch, isvisible, issavevalue); }, scope: this }, '-', this.SearchBtn, { xtype: 'button', width: 90, text: "清空条件", iconCls: "btnreset", handler: function (button, event) { this.onClearSql(button, event); }, scope: this }, { xtype: 'button', text: "高级查询", iconCls: "btnmore", handler: function (button, event) { var sql = this.getCondition(); var winAccess = new Shipping.DsQuery({ }); winAccess.StoreList = this.storeList; winAccess.formname = this.formname; winAccess.condition = sql; winAccess.show(); return; }, scope: this }, this.CheckSaveQuery ] }); LoadQueryData(this.formname, this.formSearch, this.CheckSaveQuery); this.panelTop = new Ext.Panel({ layout: "border", region: "north", height: 29, items: [this.panelBtn] }); this.panelSearch = new Ext.Panel({ layout: "border", region: "north", height: 96, items: [this.formSearch] }); this.panelBodyChFee = new Ext.Panel({ title: '明细数据', layout: "border", region: 'south', height: 238, margin: '0 0', frame: true, split: true, collapsible: true, items: [this.gridList] }); this.panelchart = new Ext.Panel({ title: '图表', layout: "border", region: 'center', margin: '0 0', frame: true, items: [this.piechart] }); this.panelBody = new Ext.Panel({ layout: "border", region: 'center', margin: '0 0', frame: true, items: [this.panelchart, this.panelBodyChFee] }); // this.tabpanel = new Ext.TabPanel // ({ // activeTab: 0, // autoWidth: true, // border: false, // frame: false, // region: 'center', // id: "TabPanelID", // enableTabScroll: true, // items: // [ // // ] // }); Ext.apply(this, { items: [this.panelTop, this.panelSearch, this.panelBody] }); this.storeList.on('beforeload', function (store) { if (!this.checkSearchCondition()) return; var sql = this.getCondition(); Ext.apply(store.proxy.extraParams, { condition: sql }); }, this); }, //end initUIComponents InitGrid: function (condition, objname, sumfieldtype, startdate, enddate) { _this = this; var zlcolumn = [{ sortable: true, dataIndex: 'MONTHNAME', header: '月份', width: 110 }]; var myfield = [{ name: 'MONTHNAME', type: 'string'}]; var charfield = []; var aseries = []; this.storeList = Ext.create('Ext.data.Store', { pageSize: this.PageSize, fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MONTHNUM', type: 'number' } ], remoteSort: true, proxy: { type: 'ajax', url: '/MvcShipping/MsRptOpProfitZou/SumListData', reader: { id: '', root: 'data', totalProperty: 'totalCount' } } }); var storeMonthData = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MONTHNO', type: 'number' }, { name: 'MONTHFIELDNAME', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetObjListData' } }); _this = this; storeMonthData.load({ params: { condition: condition, objname: objname, sumfieldtype: sumfieldtype }, callback: function (r, options, success) { if (success) { if (r.length != 0) { for (i = 0; i < storeMonthData.getCount(); i += 1) { var itemindex = i + 1; var memberyf = storeMonthData.getAt(i); myfield.push({ name: 'Z' + memberyf.data.MONTHNAME, type: 'number' }); zlcolumn.push({ dataIndex: 'Z' + memberyf.data.MONTHNAME, header: memberyf.data.MONTHNAME, renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '' + lsValue + ''; } } else { return value; } } catch (e) { return value; } return value; }, summaryType: 'sum', summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { value = usMoney(value, 2, '', true); return value; }, align: 'right', xtype: 'actiontextcolumn', width: 80, handler: function (grid, rowIndex, colIndex) { var rec = grid.getStore().getAt(rowIndex); var memberyf = storeMonthData.getAt(colIndex - 1); //alert(memberyf.data.MONTHNAME); hitColumn = memberyf.data.MONTHNAME; } } ); var cfield = 'Z' + memberyf.data.MONTHNAME; charfield.push(cfield); aseries.push({ type: 'line', highlight: { size: 7, radius: 7 }, axis: 'left', smooth: true, fill: true, xField: 'MONTHNAME', yField: 'Z' + memberyf.data.MONTHNAME, listeners: { itemmouseup: function (item) { // alert(item.value[1]); }, itemclick: function () { //alert(item.value[1]); //Ext.getCmp('chartControl').getValue(); //get("MONTHNAME"); } }, tips: { trackMouse: true, width: 80, height: 40, renderer: function (storeItem, item) { this.setTitle(item.value[1]); // this.update(item.value[1]); } }, markerConfig: { type: 'circle', size: 4, radius: 4, 'stroke-width': 0 } }); }; } Ext.define('summodel', { extend: 'Ext.data.Model', fields: myfield }); this.storeList = Ext.create('Ext.data.Store', { pageSize: this.PageSize, model: 'summodel', remoteSort: true, proxy: { type: 'ajax', url: '/MvcShipping/MsRptOpProfitCompare/SumListData', reader: { root: 'data', totalProperty: 'totalCount' } } }); this.gridList.reconfigure(this.storeList, zlcolumn); this.storeList.load({ params: { start: 0, limit: this.PageSize, condition: condition, objname: objname, sumfieldtype: sumfieldtype, startmonth: startdate, endmonth: enddate }, waitMsg: "正在查询数据...", scope: this }); var chart = Ext.create('Ext.chart.Chart', { id: 'chartControl', xtype: 'chart', style: 'background:#fff', animate: true, store: this.storeList, shadow: true, theme: 'Category1', legend: { position: 'right' }, axes: [{ type: 'Numeric', minimum: 0, position: 'left', fields: charfield, title: '数据', minorTickSteps: 1, grid: { odd: { opacity: 1, fill: '#ddd', stroke: '#bbb', 'stroke-width': 0.5 } } }, { type: 'Category', position: 'bottom', fields: ['MONTHNAME'], title: '月份' }], series: aseries }); this.panelchart.removeAll(); this.panelchart.add(chart); this.panelchart.doLayout(); this.storeList.on('beforeload', function (store) { if (!this.checkSearchCondition()) return; var sql = this.sqlcontext; Ext.apply(store.proxy.extraParams, { condition: sql }); }, this); } }, scope: this }); }, onRefreshClick: function (button, event) { if (!this.checkSearchCondition()) return; this.isquery = true; var form = this.formSearch.getForm(); var rdOBJNUM = Ext.getCmp('rdOBJNUM'); var OBJNUM = rdOBJNUM.getValue(); var form = this.formSearch.getForm(); var expDate_Min = form.findField('PS_EXPDATEBGN').getRawValue(); var expDate_Max = form.findField('PS_EXPDATEEND').getRawValue(); if (expDate_Min == '' || expDate_Min == null || expDate_Min == undefined) { Ext.Msg.alert('提示', '开始业务日期不能为空!'); return; } if (expDate_Max == '' || expDate_Max == null || expDate_Max == undefined) { Ext.Msg.alert('提示', '结束业务日期不能为空!'); return; } var expDate_Mindate = form.findField('PS_EXPDATEBGN').getValue(); var expDate_Maxdate = form.findField('PS_EXPDATEEND').getValue(); if (expDate_Mindate > expDate_Maxdate) { Ext.Msg.alert('提示', '业务开始日期不能大于结束日期!'); return; } var rdOBJNAME = Ext.getCmp('rdOBJNAME'); var rdOBJNUM = Ext.getCmp('rdOBJNUM'); var OBJNAME = rdOBJNAME.getValue(); var OBJNUM = rdOBJNUM.getValue(); var sql = this.getCondition(); this.sqlcontext = sql; this.InitGrid(sql, OBJNAME, OBJNUM, expDate_Min, expDate_Max); // this.storeList.load({ // params: { start: 0, limit: this.PageSize, condition: sql, sumfieldtype: OBJNUM, startmonth: expDate_Min, endmonth: expDate_Max }, // waitMsg: "正在查询数据...", // scope: this // }); }, onDsQuery: function (button, event) { if (!this.checkSearchCondition()) return; this.isquery = true; var form = this.formSearch.getForm(); var rdOBJNUM = Ext.getCmp('rdOBJNUM'); var OBJNUM = rdOBJNUM.getValue(); var form = this.formSearch.getForm(); var expDate_Min = form.findField('PS_EXPDATEBGN').getRawValue(); var expDate_Max = form.findField('PS_EXPDATEEND').getRawValue(); if (expDate_Min == '' || expDate_Min == null || expDate_Min == undefined) { Ext.Msg.alert('提示', '开始业务日期不能为空!'); return; } if (expDate_Max == '' || expDate_Max == null || expDate_Max == undefined) { Ext.Msg.alert('提示', '结束业务日期不能为空!'); return; } var expDate_Mindate = form.findField('PS_EXPDATEBGN').getValue(); var expDate_Maxdate = form.findField('PS_EXPDATEEND').getValue(); if (expDate_Mindate > expDate_Maxdate) { Ext.Msg.alert('提示', '业务开始日期不能大于结束日期!'); return; } var rdOBJNAME = Ext.getCmp('rdOBJNAME'); var rdOBJNUM = Ext.getCmp('rdOBJNUM'); var OBJNAME = rdOBJNAME.getValue(); var OBJNUM = rdOBJNUM.getValue(); var sql = this.sqlcontext; this.InitGrid(sql, OBJNAME, OBJNUM, expDate_Min, expDate_Max); // this.storeList.load({ // params: { start: 0, limit: this.PageSize, condition: sql, sumfieldtype: OBJNUM, startmonth: expDate_Min, endmonth: expDate_Max }, // waitMsg: "正在查询数据...", // scope: this // }); }, getCondition: function () { var form = this.formSearch.getForm(); var sql = ''; var expDate_Min = form.findField('PS_EXPDATEBGN').getRawValue(); sql = sql + getAndConSql(sql, expDate_Min, " B.OPDATE>='" + expDate_Min + "'"); var expDate_Max = form.findField('PS_EXPDATEEND').getRawValue(); sql = sql + getAndConSql(sql, expDate_Max, " B.OPDATE<='" + expDate_Max + " 23:59:59'"); var accDate_Min = form.findField('PS_ACCDATEBGN').getRawValue(); sql = sql + getAndConSql(sql, accDate_Min, " B.ACCDATE>='" + accDate_Min + "'"); var accDate_Max = form.findField('PS_ACCDATEEND').getRawValue(); sql = sql + getAndConSql(sql, accDate_Max, " B.ACCDATE<='" + accDate_Max + "'"); accdatebgn = accDate_Min; accdateend = accDate_Max; var CUSTOMERNAME = form.findField('PS_CUSTOMERNAME').getValue(); sql = sql + getAndConSql(sql, CUSTOMERNAME, "B.CUSTOMERNAME='" + CUSTOMERNAME + "'"); var SALE = form.findField('PS_SALE').getValue(); sql = sql + getAndConSql(sql, SALE, "B.SALE='" + SALE + "'"); var SUBCOMP = form.findField('SUBCOMP').getValue(); sql = sql + getAndConSql(sql, SUBCOMP, "B.CORPID='" + SUBCOMP + "'"); var BSTYPE = form.findField('PS_BSTYPE').getValue(); sql = sql + getAndConSql(sql, BSTYPE, "B.BSTYPE='" + BSTYPE + "'"); var OPLB = form.findField('PS_OPLB').getValue(); sql = sql + getAndConSql(sql, OPLB, "B.OPLBNAME='" + OPLB + "'"); var BSSOURCE = form.findField('BSSOURCE').getValue(); sql = sql + getAndConSql(sql, BSSOURCE, "B.BSSOURCE='" + BSSOURCE + "'"); var LANE = form.findField('LANE').getValue(); sql = sql + getAndConSql(sql, LANE, "B.LANE='" + LANE + "'"); return sql; }, checkSearchCondition: function () { var form = this.formSearch.getForm(); if (!form.isValid()) { Ext.Msg.alert('提示', '查询条件赋值错误,请检查。'); return false; } return true; }, onClearSql: function () { var form = this.formSearch.getForm(); form.reset(); }, OprationSwap: function () { var ret = new Array(); ret[0] = this.OprationStatus; ret[1] = this.storeList; ret[2] = this.SelectedRecord; ret[3] = this.SelectedRecord.data.BSNO; ret[4] = "MsRptOpProfitPerCentIndex"; return ret; } }); function $() { return document.getElementById(arguments[0]) || false; } function openNewDiv(_id, DivHtml, newDivWidth, newDivHeight, strYear, strMonth, colIndex) { var m = "mask"; var _leftDatumPoint = document.body.scrollLeft + document.body.clientWidth / 2 - newDivWidth / 2; var _topDatumPoint = document.body.scrollTop + document.body.clientHeight / 2 - newDivHeight / 2; var _innerHTML = "
"; // "
韩国航线
日本九州
日本关东
日本关西
日本航线
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西
日本关西

"; // var _storeDictionary = new Array(); var _storeDictionaryClass = new Array(); var _storeDictionaryValue = 0; var outputStr = ""; var outputStrTitle = ""; var outputStrAmount = ""; var _isTeu = false; var datetimeStr = ""; var recordCount = 0; var _rmbAmount = ""; var _usdAmount = ""; var _othAmount = ""; var _teuAmount = ""; var _amount = ""; var _mblno = ""; var _dischargePort = ""; //alert(document.body.clientHeight); var lane = Ext.getCmp('comboxLANEID').getValue(); var oplb = Ext.getCmp('comboxOpLbID').getValue(); var oplid = ""; var bstype = Ext.getCmp('comboxBsTypeID').getValue(); var sales = Ext.getCmp('comboxSalesCodeID').getValue(); //var op = Ext.getCmp('comboxOpID').getValue(); var customer = Ext.getCmp('comboxCustCodeID').getValue(); var bssource = Ext.getCmp('comboxBSSOURCEID').getValue(); //var bssourcedetail = Ext.getCmp('comboxBSSOURCEDETAILID').getValue(); //var accdatebgn = Ext.getCmp('comboxACCDATEBGNID').getRawValue(); //.getValue(); //var accdateend = Ext.getCmp('comboxACCDATEENDID').getRawValue(); //.getValue(); var dispClass = 0; //alert(colIndex); switch (oplb) { case "海运进口": oplid = "op_seai"; break; case "海运出口": oplid = "op_seae"; break; case "报关业务": oplid = "op_apply"; break; case "大宗散货": oplid = "op_bulk"; break; case "综合业务": oplid = "op_other"; break; } if ($(_id)) document.body.removeChild($(_id)); //mask遮罩层 var newMask = document.createElement("div"); newMask.id = m; newMask.style.position = "absolute"; newMask.style.zIndex = "1"; _scrollWidth = Math.max(document.body.scrollWidth, document.documentElement.scrollWidth); _scrollHeight = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); newMask.style.width = _scrollWidth + "px"; newMask.style.height = _scrollHeight + "px"; newMask.style.top = "0px"; newMask.style.left = "0px"; newMask.style.background = "#33393C"; newMask.style.filter = "alpha(opacity=1)"; newMask.style.opacity = "0.01"; document.body.appendChild(newMask); //if ($(m)) document.body.removeChild($(m)); //消息层框架 var newDiv = document.createElement("div"); newDiv.id = _id; newDiv.style.position = "absolute"; newDiv.style.zIndex = "9999"; newDivWidth = newDivWidth || 1004; //newDivHeight = newDivHeight || 630; if (document.body.clientHeight > 768) { newDivHeight = newDivHeight || 630; } else { newDivHeight = 500; } _topDatumPoint = document.body.scrollTop + document.body.clientHeight / 2 - newDivHeight / 2; newDiv.style.width = newDivWidth + "px"; newDiv.style.height = newDivHeight + "px"; newDiv.style.top = _topDatumPoint + "px"; newDiv.style.left = _leftDatumPoint + "px"; newDiv.style.background = "#dfe9f6"; newDiv.style.border = "1px solid #99bce8"; newDiv.style.padding = "5px"; //newDiv.innerHTML = DivHtml; document.body.appendChild(newDiv); //消息层标题 var newDivTitle = document.createElement("div"); newDivTitle.id = "_title" + _id; newDivTitle.style.position = "absolute"; newDivTitle.style.zIndex = "10002"; newDivWidth = newDivWidth || 1083; newDivHeight = newDivHeight || 630; newDivTitle.style.width = 1083 + "px"; newDivTitle.style.height = 16 + "px"; newDivTitle.style.top = _topDatumPoint + "px"; newDivTitle.style.left = _leftDatumPoint + "px"; //newDivTitle.style.backgroundImage = "url(../../../images/title_bg.gif)";// background = "#000"; newDivTitle.style.border = "0px solid #99bce8"; newDivTitle.style.padding = "5px"; newDivTitle.style.fontWeight = "bold"; newDivTitle.style.color = "#15498b"; newDivTitle.style.fontSize = "14px"; newDivTitle.style.fontFamily = "微软雅黑"; document.body.appendChild(newDivTitle); //消息层按钮 var newDivTitleBtn = document.createElement("div"); newDivTitleBtn.id = "_titleBtn" + _id; newDivTitleBtn.style.position = "absolute"; newDivTitleBtn.style.zIndex = "10005"; newDivWidth = newDivWidth || 1083; newDivHeight = newDivHeight || 630; newDivTitleBtn.style.width = 14 + "px"; newDivTitleBtn.style.height = 14 + "px"; newDivTitleBtn.style.top = _topDatumPoint + 2 + "px"; newDivTitleBtn.style.left = _leftDatumPoint + 1064 + "px"; //newDivTitleBtn.style.background = "#000"; newDivTitleBtn.style.border = "0px solid #99bce8"; newDivTitleBtn.style.padding = "0px"; //newDivTitle2.innerHTML = "  " + DivHtml; document.body.appendChild(newDivTitleBtn); //消息层内容 var newDivContent = document.createElement("div"); newDivContent.id = "_contentFrame" + _id; newDivContent.style.position = "absolute"; newDivContent.style.zIndex = "10000"; //newDivWidth = newDivWidth || 1004; //newDivHeight = newDivHeight || 630; newDivContent.style.width = 1083 + "px"; //newDivContent.style.height = 593 + "px"; if (document.body.clientHeight > 768) { newDivContent.style.height = 593 + "px"; } else { newDivContent.style.height = 464 + "px"; } newDivContent.style.top = _topDatumPoint + 35 + "px"; newDivContent.style.left = _leftDatumPoint + "px"; //newDivTitle2.style.backgroundImage = "url(../../../images/title_bg.gif)";// background = "#000"; //newDivTitle2.style.border = "1px solid #99bce8"; //newDivTitle2.style.padding = "5px"; newDivContent.innerHTML = _innerHTML; document.body.appendChild(newDivContent); //查询消息 /* var storeMonthData = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MONTHNO', type: 'number' }, { name: 'MONTHFIELDNAME', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetObjListData' } }); _this = this; fields: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] storeMonthData.load({ params: { condition: condition, objname: objname, sumfieldtype: sumfieldtype } */ Ext.onReady(function () { var _store; if (Ext.getCmp('rdoBsSource').getValue() == true && Ext.getCmp('rdoGain').getValue() == true) { dispClass = 11; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareSourceGainInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "BSSOURCE", "TTLDR", "TTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareSourceGainInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoBsSource').getValue() == true && Ext.getCmp('rdoArrearage').getValue() == true) { dispClass = 12; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareSourceArrearageInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "BSSOURCE", "TTLDR", "STLTTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareSourceArrearageInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoBsSource').getValue() == true && Ext.getCmp('rdoTeu').getValue() == true) { dispClass = 13; _isTeu = true; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareSourceTEUInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "BSSOURCE", "TEU", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "TEU", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'TEU', type: 'string' }, { name: 'INPUTBY', type: 'string' }, { name: 'TEUAMOUNT', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareSourceTEUInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoLane').getValue() == true && Ext.getCmp('rdoGain').getValue() == true) { dispClass = 21; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareLaneGainInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "LANE", "TTLDR", "TTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareLaneGainInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoLane').getValue() == true && Ext.getCmp('rdoArrearage').getValue() == true) { dispClass = 22; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareLaneArrearageInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "LANE", "TTLDR", "STLTTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareLaneArrearageInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoLane').getValue() == true && Ext.getCmp('rdoTeu').getValue() == true) { dispClass = 23; _isTeu = true; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareLaneTEUInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "LANE", "TEU", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "TEU", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'TEU', type: 'string' }, { name: 'INPUTBY', type: 'string' }, { name: 'TEUAMOUNT', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareLaneTEUInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoSale').getValue() == true && Ext.getCmp('rdoGain').getValue() == true) { dispClass = 31; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareSaleGainInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "TTLDR", "TTLCR", "TTLAMOUNT", "SALE"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareSaleGainInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoSale').getValue() == true && Ext.getCmp('rdoArrearage').getValue() == true) { dispClass = 32; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareSaleArrearageInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "TTLDR", "STLTTLCR", "TTLAMOUNT", "SALE"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareSaleArrearageInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoSale').getValue() == true && Ext.getCmp('rdoTeu').getValue() == true) { dispClass = 33; _isTeu = true; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareSaleTEUInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "TEU", "SALE"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "TEU", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'TEU', type: 'string' }, { name: 'INPUTBY', type: 'string' }, { name: 'TEUAMOUNT', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareSaleTEUInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoBsType').getValue() == true && Ext.getCmp('rdoGain').getValue() == true) { dispClass = 41; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareBsTypeGainInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "BSTYPE", "TTLDR", "TTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareBsTypeGainInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoBsType').getValue() == true && Ext.getCmp('rdoArrearage').getValue() == true) { dispClass = 42; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareBsTypeArrearageInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "BSTYPE", "TTLDR", "STLTTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareBsTypeArrearageInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoBsType').getValue() == true && Ext.getCmp('rdoTeu').getValue() == true) { dispClass = 43; _isTeu = true; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareBsTypeTEUInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "BSTYPE", "TEU", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "TEU", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'TEU', type: 'string' }, { name: 'INPUTBY', type: 'string' }, { name: 'TEUAMOUNT', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareBsTypeTEUInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoCustome').getValue() == true && Ext.getCmp('rdoGain').getValue() == true) { dispClass = 51; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareCustomerGainInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "TTLDR", "TTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareCustomerGainInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoCustome').getValue() == true && Ext.getCmp('rdoArrearage').getValue() == true) { dispClass = 52; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareCustomerArrearageInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "TTLDR", "STLTTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareCustomerArrearageInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoCustome').getValue() == true && Ext.getCmp('rdoTeu').getValue() == true) { dispClass = 53; _isTeu = true; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareCustomerTEUInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "TEU", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "TEU", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'TEU', type: 'string' }, { name: 'INPUTBY', type: 'string' }, { name: 'TEUAMOUNT', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareCustomerTEUInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoAmount').getValue() == true && Ext.getCmp('rdoGain').getValue() == true) { dispClass = 61; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareAmountGainInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "TTLDR", "TTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareAmountGainInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoAmount').getValue() == true && Ext.getCmp('rdoArrearage').getValue() == true) { dispClass = 62; _isTeu = false; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareAmountArrearageInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "TTLDR", "TTLCR", "TTLAMOUNT", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "RMBAMOUNT", "SUMRMBAMOUNT", "USDAMOUNT", "SUMUSDAMOUNT", "OTAMOUNT", "SUMOTAMOUNT", "TTLDR", "TTLCR", "TTLAMOUNT", "SUMTTLAMOUNT", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'RMBAMOUNT', type: 'string' }, { name: 'SUMRMBAMOUNT', type: 'string' }, { name: 'USDAMOUNT', type: 'string' }, { name: 'SUMUSDAMOUNT', type: 'string' }, { name: 'OTAMOUNT', type: 'string' }, { name: 'SUMOTAMOUNT', type: 'string' }, { name: 'TTLDR', type: 'string' }, { name: 'TTLCR', type: 'string' }, { name: 'TTLAMOUNT', type: 'string' }, { name: 'SUMTTLAMOUNT', type: 'string' }, { name: 'INPUTBY', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareAmountArrearageInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } else if (Ext.getCmp('rdoAmount').getValue() == true && Ext.getCmp('rdoTeu').getValue() == true) { dispClass = 63; _isTeu = true; /*_store = new Ext.data.JsonStore({ autoLoad: true, //设置为自动加载,或者使用_store.load(),具体情况而定 proxy: new Ext.data.HttpProxy({ url: "/MvcShipping/MsRptOpProfitCompare/GetCompareAmountTEUInfo?strOPYear=" + strYear + "&strOPMonth=" + strMonth + "&strParam=" + colIndex + "&strBSSOURCE=" + bssource + "&strSALE=" + sales + "&strBSTYPE=" + bstype + "&strCUSTOMERNAME=" + customer + "&strLANE=" + lane + "&strOPLBNAME=" + oplb + "&strACCDATEBGN=" + accdatebgn + "&strACCDATEEND=" + accdateend }), //fields: ["MONTHNAME", "MBLNO", "TEU", "INPUTBY"] fields: ["MONTHNAME", "MBLNO", "CUSTOMERNAME", "CNTRTOTAL", "PORTDISCHARGE", "OP", "SALE", "BSSOURCE", "BSTYPE", "LANE", "TEU", "INPUTBY"] });*/ _store = Ext.create('DsExt.ux.RefTableStore', { fields: [ { name: 'MONTHNAME', type: 'string' }, { name: 'MBLNO', type: 'string' }, { name: 'CUSTOMERNAME', type: 'string' }, { name: 'CNTRTOTAL', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'OP', type: 'string' }, { name: 'SALE', type: 'string' }, { name: 'BSSOURCE', type: 'string' }, { name: 'BSTYPE', type: 'string' }, { name: 'LANE', type: 'string' }, { name: 'TEU', type: 'string' }, { name: 'INPUTBY', type: 'string' }, { name: 'TEUAMOUNT', type: 'string' } ], proxy: { url: '/MvcShipping/MsRptOpProfitCompare/GetCompareAmountTEUInfo' }, scope: this }); _store.load({ params: { strOPYear: strYear, strOPMonth: strMonth, strParam: colIndex, strBSSOURCE: bssource, strSALE: sales, strBSTYPE: bstype, strCUSTOMERNAME: customer, strLANE: lane, strOPLBNAME: oplb, strACCDATEBGN: accdatebgn, strACCDATEEND: accdateend} }); } _store.on("load", function (_store) { switch (dispClass) { case 11: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("BSSOURCE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 12: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("BSSOURCE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 13: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("BSSOURCE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 21: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("LANE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); //MARKS = MARKS.replace(/["\r\n"]/g, " "); } break; case 22: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("LANE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 23: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("LANE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 31: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("SALE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 32: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("SALE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 33: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("SALE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 41: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("BSTYPE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 42: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("BSTYPE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 43: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("BSTYPE"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 51: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("CUSTOMERNAME"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 52: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("CUSTOMERNAME"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 53: if (colIndex != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("CUSTOMERNAME"); } else { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-"); } break; case 61: if (_store.getAt(0).get("MONTHNAME") != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-") + " 利润合计"; } break; case 62: if (_store.getAt(0).get("MONTHNAME") != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-") + " 欠费合计"; } break; case 63: if (_store.getAt(0).get("MONTHNAME") != "") { newDivTitle.innerHTML = "  " + DivHtml + " - " + _store.getAt(0).get("MONTHNAME").replace(/["\/"]/g, "-") + " TEU合计"; } break; } //outputStrTitle = ""; if (dispClass == 11) { outputStrTitle = "
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 12) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港利润利润合计操作揽货人运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 13) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港欠费欠费合计操作揽货人运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 21) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港TEU操作揽货人运输类型航线
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 22) { //alert("change..."); outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港利润利润合计操作揽货人业务来源运输类型
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 23) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港欠费欠费合计操作揽货人业务来源运输类型
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 31) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港TEU操作揽货人业务来源运输类型
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 32) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港利润利润合计操作业务来源运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 33) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港欠费欠费合计操作业务来源运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 41) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港TEU操作业务来源运输类型航线
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 42) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港利润利润合计操作揽货人业务来源航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 43) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港欠费欠费合计操作揽货人业务来源航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 51) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港TEU操作揽货人业务来源航线
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 52) { outputStrTitle = "
业务日期提单号箱型箱量目的港利润利润合计操作揽货人业务来源运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 53) { outputStrTitle = "
业务日期提单号箱型箱量目的港欠费欠费合计操作揽货人业务来源运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 61) { outputStrTitle = "
业务日期提单号箱型箱量目的港TEU操作揽货人业务来源运输类型航线
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 62) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港利润利润合计操作揽货人运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } else if (dispClass == 63) { outputStrTitle = "
业务日期客户名称提单号箱型箱量目的港欠费欠费合计操作揽货人运输类型航线
RMBUSD其它货币
"; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; outputStrTitle += ""; } outputStrTitle += "
业务日期客户名称提单号箱型箱量目的港TEU操作揽货人运输类型航线
"; if (dispClass == 11 || dispClass == 12 || dispClass == 21 || dispClass == 22 || dispClass == 31 || dispClass == 32 || dispClass == 41 || dispClass == 42 || dispClass == 51 || dispClass == 52 || dispClass == 61 || dispClass == 62) { outputStr = ""; } else { outputStr = "
"; } for (var i = 0; i < _store.getCount(); i++) { datetimeStr = _store.getAt(i).get("MONTHNAME"); outputStr += "" if (dispClass == 11 || dispClass == 12) { _rmbAmount = _store.getAt(i).get("SUMRMBAMOUNT"); _usdAmount = _store.getAt(i).get("SUMUSDAMOUNT"); _otAmount = _store.getAt(i).get("SUMOTAMOUNT"); _amount = _store.getAt(i).get("SUMTTLAMOUNT"); _mblno = _store.getAt(i).get("MBLNO"); if (_mblno.length > 16) { _mblno = _mblno.replace(/(.{16})/, "$1\r\n"); } _dischargePort = _store.getAt(i).get("PORTDISCHARGE"); if (_dischargePort.length > 8) { _dischargePort = _dischargePort.replace(/(.{3})/, "$1\r\n"); } if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 13) { _teuAmount = _store.getAt(i).get("TEUAMOUNT"); if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 21 || dispClass == 22) { _rmbAmount = _store.getAt(i).get("SUMRMBAMOUNT"); _usdAmount = _store.getAt(i).get("SUMUSDAMOUNT"); _otAmount = _store.getAt(i).get("SUMOTAMOUNT"); //alert(_otAmount); _amount = _store.getAt(i).get("SUMTTLAMOUNT"); _mblno = _store.getAt(i).get("MBLNO"); if (_mblno.length > 16) { _mblno = _mblno.replace(/(.{16})/, "$1\r\n"); } _dischargePort = _store.getAt(i).get("PORTDISCHARGE"); if (_dischargePort.length > 8) { _dischargePort = _dischargePort.replace(/(.{3})/, "$1\r\n"); } if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 23) { _teuAmount = _store.getAt(i).get("TEUAMOUNT"); if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 31 || dispClass == 32) { _rmbAmount = _store.getAt(i).get("SUMRMBAMOUNT"); _usdAmount = _store.getAt(i).get("SUMUSDAMOUNT"); _otAmount = _store.getAt(i).get("SUMOTAMOUNT"); _amount = _store.getAt(i).get("SUMTTLAMOUNT"); _mblno = _store.getAt(i).get("MBLNO"); if (_mblno.length > 16) { _mblno = _mblno.replace(/(.{16})/, "$1\r\n"); } _dischargePort = _store.getAt(i).get("PORTDISCHARGE"); if (_dischargePort.length > 8) { _dischargePort = _dischargePort.replace(/(.{3})/, "$1\r\n"); } if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 33) { _teuAmount = _store.getAt(i).get("TEUAMOUNT"); if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 41 || dispClass == 42) { _rmbAmount = _store.getAt(i).get("SUMRMBAMOUNT"); _usdAmount = _store.getAt(i).get("SUMUSDAMOUNT"); _otAmount = _store.getAt(i).get("SUMOTAMOUNT"); _amount = _store.getAt(i).get("SUMTTLAMOUNT"); _mblno = _store.getAt(i).get("MBLNO"); if (_mblno.length > 16) { _mblno = _mblno.replace(/(.{16})/, "$1\r\n"); } _dischargePort = _store.getAt(i).get("PORTDISCHARGE"); if (_dischargePort.length > 8) { _dischargePort = _dischargePort.replace(/(.{3})/, "$1\r\n"); } if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 43) { _teuAmount = _store.getAt(i).get("TEUAMOUNT"); if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 51 || dispClass == 52) { _rmbAmount = _store.getAt(i).get("SUMRMBAMOUNT"); _usdAmount = _store.getAt(i).get("SUMUSDAMOUNT"); _otAmount = _store.getAt(i).get("SUMOTAMOUNT"); _amount = _store.getAt(i).get("SUMTTLAMOUNT"); _mblno = _store.getAt(i).get("MBLNO"); if (_mblno.length > 16) { _mblno = _mblno.replace(/(.{16})/, "$1\r\n"); } _dischargePort = _store.getAt(i).get("PORTDISCHARGE"); if (_dischargePort.length > 8) { _dischargePort = _dischargePort.replace(/(.{3})/, "$1\r\n"); } if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 53) { _teuAmount = _store.getAt(i).get("TEUAMOUNT"); if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 61 || dispClass == 62) { _rmbAmount = _store.getAt(i).get("SUMRMBAMOUNT"); _usdAmount = _store.getAt(i).get("SUMUSDAMOUNT"); _otAmount = _store.getAt(i).get("SUMOTAMOUNT"); _amount = _store.getAt(i).get("SUMTTLAMOUNT"); _mblno = _store.getAt(i).get("MBLNO"); if (_mblno.length > 16) { _mblno = _mblno.replace(/(.{16})/, "$1\r\n"); } _dischargePort = _store.getAt(i).get("PORTDISCHARGE"); if (_dischargePort.length > 8) { _dischargePort = _dischargePort.replace(/(.{3})/, "$1\r\n"); } if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; //_store.getAt(i).get("MBLNO") outputStr += ""; outputStr += ""; //_store.getAt(i).get("PORTDISCHARGE") if (_store.getAt(i).get("RMBAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("USDAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("OTAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } if (_store.getAt(i).get("TTLAMOUNT").substring(0, 1) == "-") { outputStr += ""; } else { outputStr += ""; } outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } else if (dispClass == 63) { _teuAmount = _store.getAt(i).get("TEUAMOUNT"); if (i % 2 == 0) { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } else { outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; outputStr += ""; } } outputStr += ""; recordCount++; } outputStr += "
" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSSOURCE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _mblno + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _dischargePort + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("RMBAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("USDAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("OTAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("TTLAMOUNT") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "" + datetimeStr + "" + _store.getAt(i).get("CUSTOMERNAME") + "" + _store.getAt(i).get("MBLNO") + "" + _store.getAt(i).get("CNTRTOTAL") + "" + _store.getAt(i).get("PORTDISCHARGE") + "" + _store.getAt(i).get("TEU") + "" + _store.getAt(i).get("OP") + "" + _store.getAt(i).get("SALE") + "" + _store.getAt(i).get("BSTYPE") + "" + _store.getAt(i).get("LANE") + "
"; //; if (dispClass == 11 || dispClass == 12 || dispClass == 21 || dispClass == 22 || dispClass == 31 || dispClass == 32 || dispClass == 41 || dispClass == 42 || dispClass == 51 || dispClass == 52 || dispClass == 61 || dispClass == 62) { outputStrAmount = ""; } else { outputStrAmount = "
"; } //outputStrAmount = "
"; if ((recordCount % 2 == 0) && (dispClass == 11 || dispClass == 12 || dispClass == 31 || dispClass == 32)) { //浅色|| dispClass == 51 || dispClass == 52 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } //alert(_otAmount); if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; //alert("-"); } else { outputStrAmount += ""; //alert("+"); } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } else if ((recordCount % 2 == 1) && (dispClass == 11 || dispClass == 12 || dispClass == 31 || dispClass == 32)) { // || dispClass == 51 || dispClass == 52 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } if ((recordCount % 2 == 0) && (dispClass == 21 || dispClass == 22 || dispClass == 41 || dispClass == 42 || dispClass == 61 || dispClass == 62)) { //浅色 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } //alert(_otAmount); if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; //alert("-"); } else { outputStrAmount += ""; //alert("+"); } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } else if ((recordCount % 2 == 1) && (dispClass == 21 || dispClass == 22 || dispClass == 41 || dispClass == 42 || dispClass == 61 || dispClass == 62)) { outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } ///dispClass == 51 || dispClass == 52 if ((recordCount % 2 == 0) && (dispClass == 51 || dispClass == 52)) { //浅色|| outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } //alert(_otAmount); if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; //alert("-"); } else { outputStrAmount += ""; //alert("+"); } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } else if ((recordCount % 2 == 1) && (dispClass == 51 || dispClass == 52)) { // || outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } /*if ((recordCount % 2 == 0) && (dispClass == 21 || dispClass == 22 || dispClass == 41 || dispClass == 42 || dispClass == 61 || dispClass == 62)) { //浅色 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } //alert(_otAmount); if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; //alert("-"); } else { outputStrAmount += ""; //alert("+"); } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } else if ((recordCount % 2 == 1) && (dispClass == 21 || dispClass == 22 || dispClass == 41 || dispClass == 42 || dispClass == 61 || dispClass == 62)) { outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; if (_rmbAmount.substring(0, 1) == "-") { outputStrAmount += ""; //.toFixed(2) } else { outputStrAmount += ""; } if (_usdAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_otAmount.substring(0, 1) == "-") { outputStrAmount += ""; } else { outputStrAmount += ""; } if (_amount.substring(0, 1) == "-") { //alert("_amount<0"); outputStrAmount += ""; } else { //alert("_amount>0"); outputStrAmount += ""; } outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; }*/ if ((recordCount % 2 == 0) && (dispClass == 13 || dispClass == 23 || dispClass == 33 || dispClass == 43 || dispClass == 63)) { //浅色 dispClass == 53 |||| dispClass == 53 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } else if ((recordCount % 2 == 1) && (dispClass == 13 || dispClass == 23 || dispClass == 33 || dispClass == 43 || dispClass == 63)) { //dispClass == 53 |||| dispClass == 53 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } if ((recordCount % 2 == 0) && (dispClass == 53)) { //浅色 dispClass == 53 ||dispClass == 13 || dispClass == 23 || dispClass == 33 || dispClass == 43 || || dispClass == 63 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } else if ((recordCount % 2 == 1) && (dispClass == 53)) { //dispClass == 53 ||dispClass == 13 || dispClass == 23 || dispClass == 33 || dispClass == 43 || || dispClass == 63 outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; outputStrAmount += ""; } outputStrAmount += "
合计    " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "    
合计    " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "    
合计    " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "    
合计    " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "    
合计   " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "     
合计   " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "     
合计    " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "    
合计    " + _rmbAmount + "" + _rmbAmount + "" + _usdAmount + "" + _usdAmount + "" + _otAmount + "" + _otAmount + "" + _amount + "" + _amount + "    
合计    " + _teuAmount + "    
合计    " + _teuAmount + "    
合计   " + _teuAmount + "     
合计   " + _teuAmount + "     
"; //alert(document.getElementById("Result").offsetHeight); //alert("document.body.clientHeight is " + document.body.clientHeight); if (document.body.clientHeight > 768) { //_innerHTML = "
" + outputStr + "
"; _innerHTML = "
"; _innerHTML += "
" + outputStrTitle + "
"; _innerHTML += "
" + outputStr + "
"; /*height:502px;*/ _innerHTML += "
" + outputStrAmount + "
"; _innerHTML += "
"; } else { //_innerHTML = "
" + outputStr + "
"; if (!_isTeu) { _innerHTML = "
"; /*height:593px;*/ _innerHTML += "
" + outputStrTitle + "
"; _innerHTML += "
" + outputStr + "
"; /*height:373px;*/ _innerHTML += "
" + outputStrAmount + "
"; _innerHTML += "
"; } else { _innerHTML = "
"; /*height:593px;*/ _innerHTML += "
" + outputStrTitle + "
"; _innerHTML += "
" + outputStr + "
"; /*height:373px;*/ _innerHTML += "
" + outputStrAmount + "
"; _innerHTML += "
"; } } newDivContent.innerHTML = _innerHTML; /*alert("newDivContent.style.height is " + newDivContent.style.height); alert("document.getElementById('Result').style.height is " + document.getElementById("Result").style.height); alert("document.getElementById('ResultFrame').offsetHeight" + document.getElementById("ResultFrame").offsetHeight);*/ //alert("document.getElementById('Result').offsetHeight is " + document.getElementById("Result").offsetHeight + ")"); //alert("parseInt(newDivContent.style.height.substring(0, 3)) is " + parseInt(newDivContent.style.height.substring(0, 3))); //alert("parseInt(document.getElementById('ResultFrame').offsetHeight) is " + parseInt(document.getElementById("ResultFrame").offsetHeight)); if (parseInt(newDivContent.style.height.substring(0, 3)) > parseInt(document.getElementById("ResultFrame").offsetHeight)) { newDivContent.style.height = document.getElementById("ResultFrame").offsetHeight + "px"; if (!_isTeu) { newDiv.style.width = 1082 + "px"; newDivTitleBtn.style.left = _leftDatumPoint + 1064 + "px"; } else { newDiv.style.width = 850 + "px"; newDivTitleBtn.style.left = _leftDatumPoint + 832 + "px"; } newDiv.style.height = parseInt(newDivTitle.style.height.substring(0, 2)) + parseInt(newDivContent.style.height.substring(0, 3)) + 40 + "px"; _topDatumPoint = document.body.scrollTop + document.body.clientHeight / 2 - parseInt(newDiv.style.height.substring(0, 3)) / 2 newDiv.style.top = _topDatumPoint + "px"; newDivTitle.style.top = _topDatumPoint + "px"; newDivContent.style.top = _topDatumPoint + 35 + "px"; newDivTitleBtn.style.top = _topDatumPoint + 2 + "px"; //alert("newDivContent.style.height is " + newDivContent.style.height); //alert("newDiv.style.height is " + newDiv.style.height); //alert("_topDatumPoint is " + _topDatumPoint); } else { document.getElementById("Result").style.height = parseInt(newDivContent.style.height.substring(0, 3)) - 20 - 91 + "px"; //470 newDivContent.style.height = parseInt(newDivContent.style.height.substring(0, 3)) - 20 + "px"; //561 if (!_isTeu) { newDiv.style.width = 1082 + "px"; newDivTitleBtn.style.left = _leftDatumPoint + 1064 + "px"; } else { newDiv.style.width = 850 + "px"; newDivTitleBtn.style.left = _leftDatumPoint + 832 + "px"; } newDiv.style.height = parseInt(newDivTitle.style.height.substring(0, 2)) + parseInt(newDivContent.style.height.substring(0, 3)) + 40 + "px"; _topDatumPoint = document.body.scrollTop + document.body.clientHeight / 2 - parseInt(newDiv.style.height.substring(0, 3)) / 2 newDiv.style.top = _topDatumPoint + "px"; newDivTitle.style.top = _topDatumPoint + "px"; newDivContent.style.top = _topDatumPoint + 35 + "px"; newDivTitleBtn.style.top = _topDatumPoint + 2 + "px"; } }); }); //消息层滚动居中 function newDivCenter() { newDiv.style.top = _topDatumPoint + "px"; newDiv.style.left = _leftDatumPoint + "px"; } if (document.all) { window.attachEvent("onscroll", newDivCenter); } else { window.addEventListener('scroll', newDivCenter, false); } //关闭新图层和mask遮罩层 var newA = document.createElement("a"); newA.style.color = "#15498b"; newA.style.fontSize = "14px"; newA.style.fontFamily = "微软雅黑"; newA.style.cssText = "font-size:14px;text-decoration:none;" newA.href = "#"; newA.innerHTML = "×"; newA.onclick = function () { if (document.all) { window.detachEvent("onscroll", newDivCenter); } else { window.removeEventListener('scroll', newDivCenter, false); } document.body.removeChild($(_id)); document.body.removeChild($("_title" + _id)); document.body.removeChild($("_titleBtn" + _id)); document.body.removeChild($("_contentFrame" + _id)); document.body.removeChild($(m)); return false; } newDivTitleBtn.appendChild(newA); }