{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "fit",
    "border": "false",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [{
    "configs": {
     "layout": "border",
     "border": "false",
     "itemId": "panelShip"
    },
    "expanded": true,
    "children": [
     {
      "configs": {
       "layout": "fit",
       "border": "false",
       "itemId": "panelShipTbar",
       "region": "north"
      },
      "expanded": true,
      "children": [{
       "configs": {"itemId": "dockedItems"},
       "expanded": true,
       "children": [
        {
         "configs": {
          "itemId": "toolbar1",
          "dock": "top"
         },
         "expanded": true,
         "children": [
          {
           "configs": {
            "itemId": "startdate",
            "labelAlign": "right",
            "fieldLabel": "开始时间",
            "width": "170",
            "labelWidth": "65"
           },
           "expanded": false,
           "children": [],
           "type": "date"
          },
          {
           "configs": {
            "itemId": "enddate",
            "labelAlign": "right",
            "fieldLabel": "结束时间",
            "width": "170",
            "labelWidth": "65"
           },
           "expanded": false,
           "children": [],
           "type": "date"
          }
         ],
         "type": "toolbar"
        },
        {
         "configs": {
          "itemId": "toolbar2",
          "dock": "top"
         },
         "expanded": true,
         "children": [
          {
           "configs": {
            "itemId": "eShipName",
            "labelAlign": "right",
            "fieldLabel": "船名",
            "width": "170",
            "isUpperCase": "true",
            "labelWidth": "65"
           },
           "expanded": false,
           "children": [],
           "type": "text"
          },
          {
           "configs": {
            "itemId": "voyageNo",
            "labelAlign": "right",
            "fieldLabel": "进口航次",
            "width": "168",
            "isUpperCase": "true",
            "labelWidth": "65"
           },
           "expanded": false,
           "children": [],
           "type": "text"
          },
          {
           "configs": {
            "itemId": "tempId",
            "labelAlign": "right",
            "pickList": "[['1','正式船'],['0','临时船']]",
            "fieldLabel": "类型",
            "labelWidth": "50"
           },
           "expanded": false,
           "children": [],
           "type": "combo"
          },
          {
           "configs": {
            "itemId": "seekMenu",
            "text": "@Str.find",
            "iconCls": "seek_icon"
           },
           "expanded": false,
           "children": [],
           "type": "item",
           "events": {"click": "app.gridVessel.store.load({\
    params: {\
        startdate: app.startdate.getValue(),\
        enddate: app.enddate.getValue(),\
        eShipName: app.eShipName.getValue(),\
        voyageNo: app.voyageNo.getValue(),\
        tempId: app.tempId.getValue()\
    }\
});\
Wb.setDisabled([app.seekMenu],true);\
               if (app.seekMenu.disabled) {\
                   setTimeout(function () { Wb.setDisabled([app.seekMenu],false); }, 2000);\
               }\
"}
          }
         ],
         "type": "toolbar"
        }
       ],
       "type": "array"
      }],
      "type": "panel"
     },
     {
      "configs": {
       "itemId": "gridVessel",
       "gridLine": "true",
       "region": "center"
      },
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "store",
         "autoLoad": "false",
         "pageSize": "100",
         "url": "m?xwl=common/chooseShip/chooseSelect"
        },
        "expanded": true,
        "children": [],
        "type": "store",
        "events": {"beforeload": "operation.params = {\
  startdate: app.startdate.getValue(),\
  enddate: app.enddate.getValue(),\
  eShipName: app.eShipName.getValue(),\
  voyageNo: app.voyageNo.getValue(),\
  tempId: app.tempId.getValue()\
};"}
       },
       {
        "configs": {"itemId": "columns"},
        "expanded": false,
        "children": [
         {
          "configs": {
           "itemId": "rownumbererCol",
           "xtype": "rownumberer"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "IDCol",
           "hidden": "true",
           "dataIndex": "ID",
           "width": "180",
           "text": "ID"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "VESSEL_CODCol",
           "dataIndex": "VESSEL_COD",
           "width": "100",
           "text": "船舶代码"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "E_VESSEL_NAMCol",
           "dataIndex": "E_VESSEL_NAM",
           "width": "120",
           "text": "英文船名"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "C_VESSEL_NAMCol",
           "dataIndex": "C_VESSEL_NAM",
           "width": "120",
           "text": "中文船名"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "VOYAGE_NOCol",
           "dataIndex": "VOYAGE_NO",
           "width": "80",
           "text": "航次"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "PORT_IDCol",
           "renderer": "if(value == '0'){\
  return '出口';\
}\
if(value == '1'){\
  return '进口';\
}",
           "dataIndex": "PORT_ID",
           "width": "80",
           "text": "进出口"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "ETD_TIMCol",
           "dataIndex": "ETD_TIM",
           "width": "120",
           "text": "预离时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "CARRIER_CODCol",
           "dataIndex": "CARRIER_COD",
           "width": "100",
           "keyName": "SHIP_COMPANY",
           "text": "船公司"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "AGENCY_CODCol",
           "dataIndex": "AGENCY_COD",
           "width": "100",
           "keyName": "VESSL_AGENCY",
           "text": "船代公司"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "LINE_CODCol",
           "dataIndex": "LINE_COD",
           "width": "100",
           "keyName": "C_SERVICE_DATA",
           "text": "航线"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "AMS_ENS_END_TIMCol",
           "dataIndex": "AMS_ENS_END_TIM",
           "width": "120",
           "text": "AMS/ENS截单时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "IFTMBF_END_TIMCol",
           "dataIndex": "IFTMBF_END_TIM",
           "width": "120",
           "text": "订舱截止时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "DELIVERY_TIMCol",
           "dataIndex": "DELIVERY_TIM",
           "width": "120",
           "text": "可换单时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "ETA_TIMCol",
           "dataIndex": "ETA_TIM",
           "width": "120",
           "text": "预抵时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "ARRIV_PORT_TIMCol",
           "dataIndex": "ARRIV_PORT_TIM",
           "width": "120",
           "text": "抵港时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "TO_BERTH_TIMCol",
           "dataIndex": "TO_BERTH_TIM",
           "width": "120",
           "text": "靠泊时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "LEAV_PORT_TIMCol",
           "dataIndex": "LEAV_PORT_TIM",
           "width": "120",
           "text": "离港时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "FIRST_SHIPMENT_DTECol",
           "dataIndex": "FIRST_SHIPMENT_DTE",
           "width": "120",
           "text": "最早装期"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "WORK_PLACE_CODCol",
           "dataIndex": "WORK_PLACE_COD",
           "width": "100",
           "keyName": "C_WORK_PLACE_DATA",
           "text": "作业区"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "CUSTOM_END_DTECol",
           "dataIndex": "CUSTOM_END_DTE",
           "width": "120",
           "text": "截关日期"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "TEMP_IDCol",
           "renderer": "if(value == '0'){\
  return '临时船';\
}\
if(value == '1'){\
  return '正式船';\
}",
           "dataIndex": "TEMP_ID",
           "width": "100",
           "text": "是否临时船"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "PH_IDCol",
           "dataIndex": "PH_ID",
           "width": "120",
           "text": "鹏华船期"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "HMM_CODECol",
           "dataIndex": "HMM_CODE",
           "width": "100",
           "text": "HMM新增CODE"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "START_PORT_CODCol",
           "dataIndex": "START_PORT_COD",
           "width": "100",
           "keyName": "C_PORT_DATA",
           "text": "起运港"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "SI_END_DTECol",
           "dataIndex": "SI_END_DTE",
           "width": "120",
           "text": "SI截止时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "REMARK_TXTCol",
           "dataIndex": "REMARK_TXT",
           "width": "120",
           "text": "备注"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "CREATED_BYCol",
           "dataIndex": "CREATED_BY",
           "width": "100",
           "text": "创建人"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "CREATED_ONCol",
           "dataIndex": "CREATED_ON",
           "width": "120",
           "text": "创建时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "UPDATED_BYCol",
           "dataIndex": "UPDATED_BY",
           "width": "100",
           "text": "最后修改人"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "UPDATED_ONCol",
           "dataIndex": "UPDATED_ON",
           "width": "120",
           "text": "最后修改时间"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         }
        ],
        "type": "array"
       }
      ],
      "type": "grid",
      "events": {"itemdblclick": "var  rec = app.gridVessel.getSelection()[0];\
app.contextOwner.setShipMes(rec);"}
     }
    ],
    "type": "panel"
   }],
   "type": "viewport"
  }],
  "type": "module",
  "events": {"finalize": "var d=new Date();\
d.setDate(d.getDate()+30);\
app.enddate.setValue(d);\
d.setDate(d.getDate()-90);\
app.startdate.setValue(d);\
"}
 }],
 "roles": {
  "jj_japan_role": 1,
  "salerole": 1
 },
 "title": "选船窗口",
 "iconCls": "law_icon",
 "inframe": false,
 "pageLink": ""
}