{"hidden":false,"children":[{"configs":{"serverScript":"var sql, data = app.get();\nsql = '';\t\t\nif (!Wb.isEmpty(data.startdate)) \n  sql += \"  and  ETA>={?timestamp.startdate?}\";\nif (!Wb.isEmpty(data.enddate)) \n  sql += \"  and  ETA<={?timestamp.enddate?}\";\nif (!Wb.isEmpty(data.eShipName)) \n  sql += \" and  CVD.VESSEL_NAME  like '%'||{?eShipName?}||'%' \";\nif (!Wb.isEmpty(data.ibVyg)) \n  sql += \" and VV.IB_VYG like '%'||{?ibVyg?}||'%' \";\nif (!Wb.isEmpty(data.obVyg)) \n  sql += \" and VV.OB_VYG like '%'||{?obVyg?}||'%' \";\nif (!Wb.isEmpty(data.lloydsNo)) \n  sql += \" and LLOYDS ={?lloydsNo?} \";\nif(!((Wb.isEmpty(data.carrierType))||data.carrierType=='A'))\n  sql +=\"and CARGO_FLAG ={?carrierType?}\"; \nrequest.setAttribute('Sql', sql);\n\n\n\n","itemId":"module"},"expanded":true,"children":[{"configs":{"itemId":"dataprovider1","sql":"SELECT DISTINCT VV.*,to_number(VV.AGENCY_FLAG, '9') AS AGENCY_FLAG,CVD.LLOYDS AS LLOYDS_NO,\n(select CUSTOM_CODE from C_WORK_PLACE_DATA where WORK_PLACE_CODE=VV.I_PLACE_CODE) JKHG,\n(select CUSTOM_CODE from C_WORK_PLACE_DATA where WORK_PLACE_CODE=VV.E_PLACE_CODE) CKHG\n FROM  VESSEL_VISIT VV, C_VESSEL_DATA CVD,VBILL_APPLY VA LEFT JOIN IC_VBILL_APPLY IVA ON VA.BILL_NO=IVA.BILL_NO\n WHERE VA.VESSEL_VISIT_ID = VV.ID AND VV.VESSEL_CODE = CVD.VESSEL_CODE\n AND VA.I_E_ID='0'\n AND VA.NATURE_FLAG = 'S'\n AND  (IVA.SIGN_FLAG ='0' AND IVA.ID IS NOT NULL) {#Sql#}\norder by eta,vv.vessel_name\n\n\n\n\n\n \n"},"expanded":false,"children":[],"type":"dataprovider"}],"type":"module"}],"roles":{"dev":1,"jj_japan_role":1,"demo":1,"salerole":1},"title":"基本查询(未申领)","iconCls":"","inframe":false,"pageLink":""}