|
@@ -10,21 +10,27 @@
|
|
horizontalAlign="center">
|
|
horizontalAlign="center">
|
|
<fx:Script>
|
|
<fx:Script>
|
|
<![CDATA[
|
|
<![CDATA[
|
|
- import com.jtgh.yjpt.select.YesNoSelect;
|
|
|
|
|
|
+ import com.jtgh.yjpt.common.BusinessContext;
|
|
import com.jtgh.yjpt.common.Global;
|
|
import com.jtgh.yjpt.common.Global;
|
|
import com.jtgh.yjpt.common.PrintParam;
|
|
import com.jtgh.yjpt.common.PrintParam;
|
|
import com.jtgh.yjpt.common.PrintTypes;
|
|
import com.jtgh.yjpt.common.PrintTypes;
|
|
import com.jtgh.yjpt.common.util.Constants;
|
|
import com.jtgh.yjpt.common.util.Constants;
|
|
import com.jtgh.yjpt.common.util.PrintUtil;
|
|
import com.jtgh.yjpt.common.util.PrintUtil;
|
|
|
|
+ import com.jtgh.yjpt.common.util.Utils;
|
|
import com.jtgh.yjpt.model.zysqbp.ShbpEditModel;
|
|
import com.jtgh.yjpt.model.zysqbp.ShbpEditModel;
|
|
import com.jtgh.yjpt.model.zysqbp.ShbpModel;
|
|
import com.jtgh.yjpt.model.zysqbp.ShbpModel;
|
|
import com.jtgh.yjpt.select.MaoSelect;
|
|
import com.jtgh.yjpt.select.MaoSelect;
|
|
|
|
+ import com.jtgh.yjpt.select.YesNoSelect;
|
|
|
|
+ import com.jtgh.yjpt.vo.cjhs.CjhsHwVo;
|
|
|
|
+ import com.jtgh.yjpt.vo.cjhs.CjhsVo;
|
|
import com.jtgh.yjpt.vo.common.CodeVo;
|
|
import com.jtgh.yjpt.vo.common.CodeVo;
|
|
import com.jtgh.yjpt.vo.zysqbp.ZysqbpVo;
|
|
import com.jtgh.yjpt.vo.zysqbp.ZysqbpVo;
|
|
|
|
|
|
import mx.collections.ArrayCollection;
|
|
import mx.collections.ArrayCollection;
|
|
|
|
+ import mx.core.FlexGlobals;
|
|
import mx.events.CloseEvent;
|
|
import mx.events.CloseEvent;
|
|
import mx.events.FlexEvent;
|
|
import mx.events.FlexEvent;
|
|
|
|
+ import mx.rpc.events.ResultEvent;
|
|
import mx.utils.StringUtil;
|
|
import mx.utils.StringUtil;
|
|
|
|
|
|
import spark.formatters.DateTimeFormatter;
|
|
import spark.formatters.DateTimeFormatter;
|
|
@@ -41,7 +47,10 @@
|
|
public var zydd:Number;
|
|
public var zydd:Number;
|
|
[Bindable]
|
|
[Bindable]
|
|
public var qianzhang:Boolean=true;//用来判断签章图片是否显示,默认是显示
|
|
public var qianzhang:Boolean=true;//用来判断签章图片是否显示,默认是显示
|
|
-
|
|
|
|
|
|
+ [Bindable]
|
|
|
|
+ public var cjhs:CjhsVo;
|
|
|
|
+ [Bindable]
|
|
|
|
+ public var cjhsHw:CjhsHwVo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -73,8 +82,27 @@
|
|
}
|
|
}
|
|
zhang.visible=false;
|
|
zhang.visible=false;
|
|
zhang.includeInLayout=false;
|
|
zhang.includeInLayout=false;
|
|
|
|
+ //初始化海事申报
|
|
|
|
+ initCjhs();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 初始化海事申报
|
|
|
|
+ */
|
|
|
|
+ public function initCjhs():void{
|
|
|
|
+ if(zysqbp != null){
|
|
|
|
+ Utils.callRemote("zysqbpController","doCjhsInit",function(r:ResultEvent):void{
|
|
|
|
+ var bc:BusinessContext = r.result as BusinessContext;
|
|
|
|
+ if(bc != null && bc.result != null){
|
|
|
|
+ cjhs =bc.result as CjhsVo;
|
|
|
|
+ }
|
|
|
|
+ if(cjhs!=null && cjhs.hshwList!=null){
|
|
|
|
+ cjhsHw = cjhs.hshwList.getItemAt(0) as CjhsHwVo;
|
|
|
|
+ }
|
|
|
|
+ },zysqbp.id);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
public function reloadGq(e:Event):void
|
|
public function reloadGq(e:Event):void
|
|
{
|
|
{
|
|
szgq.reload(szd.selectedVO);
|
|
szgq.reload(szd.selectedVO);
|
|
@@ -185,6 +213,17 @@
|
|
PrintUtil.doPrint(param,"_blank");
|
|
PrintUtil.doPrint(param,"_blank");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 打开海事申报页面
|
|
|
|
+ */
|
|
|
|
+ public function doDisplayHS(e:Event):void{
|
|
|
|
+ var view:Cjhssb = new Cjhssb();
|
|
|
|
+ view.thisModel.parentView=this;
|
|
|
|
+ view.thisModel.zysqbp=zysqbp;
|
|
|
|
+ view.thisModel.view=view;
|
|
|
|
+ Utils.popupWindow("海事申报信息",view as DisplayObject,FlexGlobals.topLevelApplication as DisplayObject,null, 1000, 550);
|
|
|
|
+ }
|
|
|
|
+
|
|
]]>
|
|
]]>
|
|
</fx:Script>
|
|
</fx:Script>
|
|
<s:VGroup width="780" height="100%" paddingBottom="5" paddingLeft="5"
|
|
<s:VGroup width="780" height="100%" paddingBottom="5" paddingLeft="5"
|
|
@@ -390,6 +429,42 @@
|
|
|
|
|
|
label="@{zysqbp.accessory.name}" width="150"/>
|
|
label="@{zysqbp.accessory.name}" width="150"/>
|
|
</s:HGroup>
|
|
</s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle" >
|
|
|
|
+ <s:BorderContainer width="100%" borderWeight="1">
|
|
|
|
+ <cus:QLabel fontWeight="bold" text="海事审批记录"
|
|
|
|
+ width="100%" textalign="center" height="100%" fontSize="22" verticalAlign="middle"/>
|
|
|
|
+ </s:BorderContainer>
|
|
|
|
+ </s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
|
|
+ <cus:QLabel width="120" text="申报单编号" />
|
|
|
|
+ <cus:QTextInput width="200" text="@{cjhs.sbdbh}" editable="{enable}"/>
|
|
|
|
+ <cus:QLabel width="120" text="码头(企业)" />
|
|
|
|
+ <cus:QTextInput text="@{cjhs.ssmt}" width="200" editable="{enable}"/>
|
|
|
|
+ </s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
|
|
+ <cus:QLabel width="120" text="作业港口名称" />
|
|
|
|
+ <cus:QTextInput width="200" text="@{cjhs.zygkmc}" editable="{enable}"/>
|
|
|
|
+ <cus:QLabel width="120" text="作业泊位名称" />
|
|
|
|
+ <cus:QTextInput width="200" text="@{cjhs.bwmc}" editable="{enable}"/>
|
|
|
|
+ </s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
|
|
+ <cus:QLabel width="120" text="物品名称" />
|
|
|
|
+ <cus:QTextInput width="200" text="@{cjhsHw.zqysmczw}" editable="{enable}"/>
|
|
|
|
+ <cus:QLabel width="120" text="物品编号" />
|
|
|
|
+ <cus:QTextInput width="200" text="@{cjhsHw.wgbh}" editable="{enable}"/>
|
|
|
|
+ </s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
|
|
+ <cus:QLabel width="120" text="作业开始时间" />
|
|
|
|
+ <ui:DateTime width="200" dateTime="{cjhs.kszysj}" hasTime="true" enabled="false" />
|
|
|
|
+ <cus:QLabel width="120" text="作业结束时间" />
|
|
|
|
+ <ui:DateTime width="200" dateTime="{cjhs.jszysj}" enabled="false" hasTime="true"/>
|
|
|
|
+ </s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
|
|
+ <cus:QLabel width="120" text="总重量" />
|
|
|
|
+ <cus:QTextInput width="200" text="@{cjhsHw.zzl}" editable="{enable}"/>
|
|
|
|
+ <cus:QLabel width="120" text="" />
|
|
|
|
+ <mx:LinkButton label="更多......" click="doDisplayHS(event)" fontWeight="bold" color="#0002fe" />
|
|
|
|
+ </s:HGroup>
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle" visible="{zysqbp.recordStatus==2 || zysqbp.recordStatus == 8|| zysqbp.recordStatus ==4}"
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle" visible="{zysqbp.recordStatus==2 || zysqbp.recordStatus == 8|| zysqbp.recordStatus ==4}"
|
|
includeInLayout="{zysqbp.recordStatus==2 || zysqbp.recordStatus == 8|| zysqbp.recordStatus ==4}">
|
|
includeInLayout="{zysqbp.recordStatus==2 || zysqbp.recordStatus == 8|| zysqbp.recordStatus ==4}">
|
|
<s:BorderContainer width="100%" borderWeight="1">
|
|
<s:BorderContainer width="100%" borderWeight="1">
|