{
 "hidden": false,
 "children": [{
  "configs": {
   "serverScript": "//var sd=new Date();",
   "itemId": "module"
  },
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "fit",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [{
    "configs": {
     "layout": "border",
     "itemId": "panelShip"
    },
    "expanded": true,
    "children": [
     {
      "configs": {
       "layout": "fit",
       "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"
         },
         {
          "configs": {
           "itemId": "eShipName",
           "labelAlign": "right",
           "fieldLabel": "船名",
           "width": "170",
           "isUpperCase": "true",
           "labelWidth": "41"
          },
          "expanded": false,
          "children": [],
          "type": "text"
         },
         {
          "configs": {
           "itemId": "vyg",
           "labelAlign": "right",
           "fieldLabel": "航次",
           "width": "168",
           "isUpperCase": "true",
           "labelWidth": "41"
          },
          "expanded": false,
          "children": [],
          "type": "text"
         },
         {
          "configs": {
           "itemId": "seekMenu",
           "text": "@Str.find",
           "iconCls": "search_icon"
          },
          "expanded": false,
          "children": [],
          "type": "item",
          "events": {"click": "app.grid1.store.load({\
  params: {\
    startdate: app.startdate.getValue(),\
    enddate: app.enddate.getValue(),\
    eShipName: app.eShipName.getValue(),\
    vyg: app.vyg.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": "grid1",
       "gridLine": "true",
       "region": "center"
      },
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "store",
         "autoLoad": "false",
         "pageSize": "100",
         "url": "m?xwl=common/chooseShipF/chooseSelectF"
        },
        "expanded": true,
        "children": [],
        "type": "store",
        "events": {"beforeload": "operation.params = {\
  eShipName: app.eShipName.getValue(),\
  vyg: app.vyg.getValue(),\
  startdate: app.startdate.getValue(),\
  enddate: app.enddate.getValue()\
};"}
       },
       {
        "configs": {"itemId": "columns"},
        "expanded": true,
        "children": [
         {
          "configs": {
           "itemId": "coRow",
           "xtype": "rownumberer",
           "width": "40",
           "text": "序号",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "vesselName",
           "dataIndex": "VESSEL_NAME",
           "width": "175",
           "text": "英文船名",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "locVesselName",
           "dataIndex": "LOC_VESSEL_NAME",
           "width": "150",
           "text": "中文船名",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "ibVygCol",
           "dataIndex": "VESSEK_VOY",
           "text": "航次",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "eta",
           "renderer": "var previous = Wb.format(value, 'Y-m-d H:i');\
  return previous;",
           "dataIndex": "ETA",
           "width": "120",
           "text": "船期",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "ieFlag",
           "renderer": "if(value == '1')\
  return '进口';\
if(value == '0')\
  return '出口';\
",
           "dataIndex": "I_E_FLAG",
           "width": "100",
           "text": "进出口",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "placeCod",
           "dataIndex": "WORK_PLACE_CODE",
           "width": "100",
           "text": "作业码头",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         }
        ],
        "type": "array"
       }
      ],
      "type": "grid",
      "events": {"itemdblclick": "var  rec = app.grid1.getSelection()[0];\
app.contextOwner.setShipMes(rec);"}
     }
    ],
    "type": "panel"
   }],
   "type": "viewport"
  }],
  "type": "module",
  "events": {"finalize": "var vygType='';\
app.eShipName.addListener(\"specialkey\",function(field, e) {\
   if (e.getKey() == e.ENTER){ \
     app.seekMenu.fireEvent('click');\
   }\
 });\
app.vyg.addListener(\"specialkey\",function(field, e){\
  if (e.getKey() == e.ENTER){\
    app.seekMenu.fireEvent('click');\
  }\
});\
app.startdate.addListener(\"specialkey\",function(field, e){\
  if (e.getKey() == e.ENTER){\
    app.seekMenu.fireEvent('click');\
  }\
});\
app.enddate.addListener(\"specialkey\",function(field, e){\
  if (e.getKey() == e.ENTER){\
    app.seekMenu.fireEvent('click');\
  }\
});\
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": "货代选船窗口New",
 "iconCls": "law_icon",
 "inframe": false,
 "pageLink": ""
}