|
@@ -0,0 +1,237 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
|
|
|
+ xmlns:s="library://ns.adobe.com/flex/spark"
|
|
|
+ xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" xmlns:ui="com.jtgh.yjpt.common.component.ui.*" xmlns:cus="com.jtgh.yjpt.common.cus.*"
|
|
|
+ creationComplete="init(event)">
|
|
|
+ <fx:Declarations>
|
|
|
+ <!-- 将非可视元素(例如服务、值对象)放在此处 -->
|
|
|
+ </fx:Declarations>
|
|
|
+ <fx:Script>
|
|
|
+ <![CDATA[
|
|
|
+ import com.jtgh.yjpt.common.BusinessContext;
|
|
|
+
|
|
|
+ import com.jtgh.yjpt.common.Global;
|
|
|
+ import com.jtgh.yjpt.common.TypeBase;
|
|
|
+ import com.jtgh.yjpt.common.util.Utils;
|
|
|
+ import com.jtgh.yjpt.vo.cginfo.CgInfoVo;
|
|
|
+
|
|
|
+ import mx.collections.ArrayCollection;
|
|
|
+ import mx.events.FlexEvent;
|
|
|
+ import mx.managers.CursorManager;
|
|
|
+ import mx.rpc.events.ResultEvent;
|
|
|
+ import mx.utils.ObjectUtil;
|
|
|
+ import mx.events.CloseEvent;
|
|
|
+
|
|
|
+ import spark.events.GridSelectionEvent;
|
|
|
+
|
|
|
+ [Bindable]
|
|
|
+ public var thisData:CgInfoVo;
|
|
|
+
|
|
|
+ protected function getSzgq():void
|
|
|
+ {
|
|
|
+ szgq.reload(szd.selectedVO);
|
|
|
+ jyr.reload(szd.selectedVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected function init(event:FlexEvent):void
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /** 是否有设计资料 */
|
|
|
+ protected function designInfoFun(chk:CheckBox):void
|
|
|
+ {
|
|
|
+ haveDesignInfo.selected = false;
|
|
|
+ lackDesignInfo.selected = false;
|
|
|
+ chk.selected = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ /** 是否有建造工程资料(竣工资料) */
|
|
|
+ protected function completionInfoFun(chk:CheckBox):void
|
|
|
+ {
|
|
|
+ haveCompletionInfo.selected = false;
|
|
|
+ lackCompletionInfo.selected = false;
|
|
|
+ chk.selected = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ /** 是否对储罐进行过定期检测 */
|
|
|
+ protected function regularDetectionFun(chk:CheckBox):void
|
|
|
+ {
|
|
|
+ isRegularDetection.selected = false;
|
|
|
+ notRegularDetection.selected = false;
|
|
|
+ chk.selected = true;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ private function doSaveCheck():Boolean{
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function doSave():void
|
|
|
+ {
|
|
|
+ if(!doSaveCheck()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var method:String="add";
|
|
|
+ if(thisData.id > 0){
|
|
|
+ method="edit";
|
|
|
+ }
|
|
|
+ Utils.callRemote("cgInfoController",method,function(r:ResultEvent):void{
|
|
|
+ this.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
|
|
|
+ },this.functionId,this.zcVo,zcyhList,this.delList);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function doPopupClose(view:DisplayObject):void
|
|
|
+ {
|
|
|
+ Utils.doCloseConfirm(function():void{
|
|
|
+ view.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ ]]>
|
|
|
+ </fx:Script>
|
|
|
+ <s:VGroup width="100%" height="100%" paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5">
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="{resourceManager.getString('check','zc.szd')}" notNull="true"/>
|
|
|
+ <cus:QComboBox width="200" id="szd" selectedVO="{thisData.szd==null?Global.user.szd:thisData.szd}" comboxClass="SzdEditSelect"
|
|
|
+ parentId="{Global.szd.id}" change="getSzgq()"/>
|
|
|
+ <cus:QLabel width="135" text="建造日期" notNull="true"/>
|
|
|
+ <ui:DateTime width="200" id="buildDate" dateTime="{thisData.buildDate}" />
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="{resourceManager.getString('check','zc.szgq')}" notNull="true"/>
|
|
|
+ <cus:QComboBox width="200" id="szgq" selectedVO="{thisData.szgq}"
|
|
|
+ comboxClass="GqBySzdSelect" parentId="{thisData.szd==null?Global.user.szd:thisData.szd}"/>
|
|
|
+ <cus:QLabel width="135" text="储罐编号" notNull="true"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.bh}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="{resourceManager.getString('common','gkjyr')}" notNull="true"/>
|
|
|
+ <cus:QComboBox id="jyr" selectedVO="{thisData.jyr}" comboxClass="JyrSelect"
|
|
|
+ parentId="{thisData.szd==null?Global.user.szd:thisData.szd}" width="200" />
|
|
|
+ <cus:QLabel width="135" text="储罐形式" notNull="true"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.cgForm}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="联系人"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.contactPerson}"/>
|
|
|
+ <cus:QLabel width="135" text="储罐容积" />
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.cgVolume.toString()}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="联系电话"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.contactPhone}"/>
|
|
|
+ <cus:QLabel width="135" text="储罐材质"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.cgMaterial}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="联系人邮箱"/>
|
|
|
+ <cus:QTextInput width="547" text="@{thisData.contactEmail}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ </s:VGroup>
|
|
|
+ <s:BorderContainer width="100%" borderVisible="false" height="32" backgroundColor="#00FFFF">
|
|
|
+ <s:layout>
|
|
|
+ <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
|
|
|
+ </s:layout>
|
|
|
+ <s:Label text="作业货种信息" fontWeight="bold" paddingLeft="10"/>
|
|
|
+ <s:Spacer width="100%"/>
|
|
|
+ </s:BorderContainer>
|
|
|
+ <s:VGroup width="100%" height="100%" paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5">
|
|
|
+ <s:HGroup>
|
|
|
+ <s:Label text="储存介质" fontWeight="bold" paddingLeft="10" />
|
|
|
+ <ui:DataGrid id="grid1" width="80%" height="110">
|
|
|
+ <ui:columns>
|
|
|
+ <s:ArrayList>
|
|
|
+ <ui:DataGridColumn dataField="commodityName" headerText="货种名称"/>
|
|
|
+ <ui:DataGridColumn dataField="cas" headerText="CAS号"/>
|
|
|
+ <ui:DataGridColumn dataField="un" headerText="UN编号"/>
|
|
|
+ <ui:DataGridColumn dataField="fireRisk" headerText="火灾危险性"/>
|
|
|
+ <ui:DataGridColumn dataField="dangerChemical" headerText="危险化学品"/>
|
|
|
+ <ui:DataGridColumn dataField="toxicChemical" headerText="剧毒化学品" />
|
|
|
+ </s:ArrayList>
|
|
|
+ </ui:columns>
|
|
|
+ </ui:DataGrid>
|
|
|
+ </s:HGroup>
|
|
|
+
|
|
|
+ <s:HGroup>
|
|
|
+ <s:Label text="近3个月作业情况" fontWeight="bold" paddingLeft="10" />
|
|
|
+ <ui:DataGrid id="grid2" width="80%" height="110">
|
|
|
+ <ui:columns>
|
|
|
+ <s:ArrayList>
|
|
|
+ <ui:DataGridColumn dataField="operationTime" headerText="作业时间"/>
|
|
|
+ <ui:DataGridColumn dataField="operationCommodityName" headerText="作业货种"/>
|
|
|
+ <ui:DataGridColumn dataField="operationPressure" headerText="作业压力MPa"/>
|
|
|
+ <ui:DataGridColumn dataField="operationTemp" headerText="作业温度℃"/>
|
|
|
+ </s:ArrayList>
|
|
|
+ </ui:columns>
|
|
|
+ </ui:DataGrid>
|
|
|
+ </s:HGroup>
|
|
|
+
|
|
|
+ <s:BorderContainer width="100%" borderVisible="false" height="32" >
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle" horizontalAlign="center">
|
|
|
+ <s:Label text="储罐设计及检测维护信息" fontWeight="bold" paddingLeft="10"/>
|
|
|
+ </s:HGroup>
|
|
|
+ </s:BorderContainer>
|
|
|
+
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="是否有设计资料"/>
|
|
|
+ <ui:CheckBox id="haveDesignInfo" selected="{'Y'==thisData.haveDesignInfo}" label="是" valueCommit="designInfoFun(this.haveDesignInfo)"/>
|
|
|
+ <ui:CheckBox id="lackDesignInfo" selected="{'N'==thisData.haveDesignInfo}" label="否" valueCommit="designInfoFun(this.lackDesignInfo)"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="设计单位名称"/>
|
|
|
+ <cus:QTextInput width="547" text="@{thisData.designOrgName}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="设计单位资质"/>
|
|
|
+ <cus:QTextInput width="547" text="@{thisData.designOrgQualification}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="设计压力MPa"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.designPressure.toString()}"/>
|
|
|
+ <cus:QLabel width="135" text="设计温度℃"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.designTemp.toString()}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="是否有建造工程资料(竣工资料)"/>
|
|
|
+ <ui:CheckBox id="haveCompletionInfo" selected="{'Y'==thisData.haveCompletionInfo}" label="是" valueCommit="completionInfoFun(this.haveCompletionInfo)"/>
|
|
|
+ <ui:CheckBox id="lackCompletionInfo" selected="{'N'==thisData.haveCompletionInfo}" label="否" valueCommit="completionInfoFun(this.lackCompletionInfo)"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="建造单位名称"/>
|
|
|
+ <cus:QTextInput width="547" text="@{thisData.buildOrgName}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="建造单位资质"/>
|
|
|
+ <cus:QTextInput width="547" text="@{thisData.buildOrgQualification}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="是否对储罐进行过定期检测"/>
|
|
|
+ <ui:CheckBox id="isRegularDetection" selected="{'Y'==thisData.isRegularDetection}" label="是" valueCommit="regularDetectionFun(this.isRegularDetection)"/>
|
|
|
+ <ui:CheckBox id="notRegularDetection" selected="{'N'==thisData.isRegularDetection}" label="否" valueCommit="regularDetectionFun(this.notRegularDetection)"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="检测时间"/>
|
|
|
+ <cus:QLabel width="250" text="检测机构"/>
|
|
|
+ <cus:QLabel width="250" text="检测结论"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <ui:DateTime width="135" id="buildDate" dateTime="{thisData.detectionTime}" />
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.detectionOrg}"/>
|
|
|
+ <cus:QTextInput width="200" text="@{thisData.detectionConclusion}"/>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%" verticalAlign="middle">
|
|
|
+ <cus:QLabel width="135" text="是否对储罐进行过维修"/>
|
|
|
+ <ui:CheckBox id="isRepaired" selected="{'Y'==thisData.isRepaired}" label="是" valueCommit="repairedFun(this.isRepaired)"/>
|
|
|
+ <ui:CheckBox id="notRepaired" selected="{'N'==thisData.isRepaired}" label="否" valueCommit="repairedFun(this.notRepaired)"/>
|
|
|
+ </s:HGroup>
|
|
|
+
|
|
|
+ <s:HGroup width="100%" horizontalAlign="center">
|
|
|
+ <s:Button id="save" label="{resourceManager.getString('common','btn.save')}" click="{doSave()}" skinClass="skins.cus.ButtonSkin"/>
|
|
|
+ <s:Button id="close" label="{resourceManager.getString('common','btn.close')}" click="{doPopupClose(this)}" skinClass="skins.cus.ButtonSkin"/>
|
|
|
+ </s:HGroup>
|
|
|
+
|
|
|
+ </s:VGroup>
|
|
|
+</s:VGroup>
|