|
@@ -22,6 +22,7 @@
|
|
import com.jtgh.yjpt.vo.gg.GgVo;
|
|
import com.jtgh.yjpt.vo.gg.GgVo;
|
|
import com.jtgh.yjpt.vo.gkgq.GqVo;
|
|
import com.jtgh.yjpt.vo.gkgq.GqVo;
|
|
import com.jtgh.yjpt.vo.jyr.JyrVo;
|
|
import com.jtgh.yjpt.vo.jyr.JyrVo;
|
|
|
|
+ import com.jtgh.yjpt.vo.yjgl.zdwxyfb.CgVo;
|
|
|
|
|
|
import mx.collections.ArrayCollection;
|
|
import mx.collections.ArrayCollection;
|
|
import mx.events.CloseEvent;
|
|
import mx.events.CloseEvent;
|
|
@@ -87,6 +88,23 @@
|
|
save.visible=false;
|
|
save.visible=false;
|
|
save.includeInLayout=false;
|
|
save.includeInLayout=false;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //危险危险区域是储罐时要显示储罐的信息
|
|
|
|
+ if(model.dcVo.yhqy=="2" ){
|
|
|
|
+ szcgStr.visible=true;
|
|
|
|
+ szcgStr.includeInLayout=true;
|
|
|
|
+ szcg.visible=true;
|
|
|
|
+ szcg.includeInLayout=true;
|
|
|
|
+ } else if(model.dcVo.yhqy=="1" ){
|
|
|
|
+ szcgStr.visible=false;
|
|
|
|
+ szcgStr.includeInLayout=false;
|
|
|
|
+ szcg.visible=false;
|
|
|
|
+ szcg.includeInLayout=false;
|
|
|
|
+ szcg.selectedIndex=0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ szcg.parentId=model.dcVo.bdcdw;
|
|
|
|
+
|
|
}
|
|
}
|
|
public function doDownload(acc:AccessoryVo):void
|
|
public function doDownload(acc:AccessoryVo):void
|
|
{
|
|
{
|
|
@@ -396,6 +414,11 @@
|
|
dcModel.dcVo.jcyj=jcyj.selectedVO as GgVo;
|
|
dcModel.dcVo.jcyj=jcyj.selectedVO as GgVo;
|
|
dcModel.dcVo.yhfl=yhfl.textValue as String;
|
|
dcModel.dcVo.yhfl=yhfl.textValue as String;
|
|
dcModel.dcVo.yhqy=yhqy.textValue as String;
|
|
dcModel.dcVo.yhqy=yhqy.textValue as String;
|
|
|
|
+ //隱患區域是儲罐
|
|
|
|
+ if(dcModel.dcVo.yhqy == "2"){
|
|
|
|
+ dcModel.dcVo.cg= szcg.selectedVO as CgVo;
|
|
|
|
+ }
|
|
|
|
+
|
|
if(yzg.selected){dcModel.dcVo.mqzt="1";}
|
|
if(yzg.selected){dcModel.dcVo.mqzt="1";}
|
|
else if(wzg.selected){dcModel.dcVo.mqzt="0";}
|
|
else if(wzg.selected){dcModel.dcVo.mqzt="0";}
|
|
else if(yqzg.selected){dcModel.dcVo.mqzt="2";}
|
|
else if(yqzg.selected){dcModel.dcVo.mqzt="2";}
|
|
@@ -436,9 +459,9 @@
|
|
for each(file in zghzpList){
|
|
for each(file in zghzpList){
|
|
if(!Utils.checkUploadFileSize(file))
|
|
if(!Utils.checkUploadFileSize(file))
|
|
{
|
|
{
|
|
- var arr:Array = new Array();
|
|
|
|
- arr.push(Global.upload_file_size);
|
|
|
|
- Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr);
|
|
|
|
|
|
+ var arr3:Array = new Array();
|
|
|
|
+ arr3.push(Global.upload_file_size);
|
|
|
|
+ Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr3);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
file.upload(request,"file");
|
|
file.upload(request,"file");
|
|
@@ -505,9 +528,9 @@
|
|
for each(file in zghzpList){
|
|
for each(file in zghzpList){
|
|
if(!Utils.checkUploadFileSize(file))
|
|
if(!Utils.checkUploadFileSize(file))
|
|
{
|
|
{
|
|
- var arr:Array = new Array();
|
|
|
|
- arr.push(Global.upload_file_size);
|
|
|
|
- Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr);
|
|
|
|
|
|
+ var arr5:Array = new Array();
|
|
|
|
+ arr5.push(Global.upload_file_size);
|
|
|
|
+ Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr5);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
file.upload(request,"file");
|
|
file.upload(request,"file");
|
|
@@ -580,9 +603,9 @@
|
|
for each(file in zghzpList){
|
|
for each(file in zghzpList){
|
|
if(!Utils.checkUploadFileSize(file))
|
|
if(!Utils.checkUploadFileSize(file))
|
|
{
|
|
{
|
|
- var arr:Array = new Array();
|
|
|
|
- arr.push(Global.upload_file_size);
|
|
|
|
- Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr);
|
|
|
|
|
|
+ var arr7:Array = new Array();
|
|
|
|
+ arr7.push(Global.upload_file_size);
|
|
|
|
+ Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr7);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
file.upload(request,"file");
|
|
file.upload(request,"file");
|
|
@@ -658,9 +681,9 @@
|
|
for each(file in zghzpList){
|
|
for each(file in zghzpList){
|
|
if(!Utils.checkUploadFileSize(file))
|
|
if(!Utils.checkUploadFileSize(file))
|
|
{
|
|
{
|
|
- var arr:Array = new Array();
|
|
|
|
- arr.push(Global.upload_file_size);
|
|
|
|
- Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr);
|
|
|
|
|
|
+ var arr2:Array = new Array();
|
|
|
|
+ arr2.push(Global.upload_file_size);
|
|
|
|
+ Utils.showInfoMessage("msg.upload.FileSizeOutOfRange",arr2);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
file.upload(request,"file");
|
|
file.upload(request,"file");
|
|
@@ -689,6 +712,25 @@
|
|
},dcModel.dcVo.id,type,0,dcModel.dcVo.tbdyid);
|
|
},dcModel.dcVo.id,type,0,dcModel.dcVo.tbdyid);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ protected function yhqy_changeHandler(event:IndexChangeEvent):void
|
|
|
|
+ {
|
|
|
|
+ if((yhqy.textValue as String)=="2" ){
|
|
|
|
+ szcgStr.visible=true;
|
|
|
|
+ szcgStr.includeInLayout=true;
|
|
|
|
+ szcg.visible=true;
|
|
|
|
+ szcg.includeInLayout=true;
|
|
|
|
+ if(dcModel!=null){
|
|
|
|
+ szcg.reload(bdcdw.selectedVO as JyrVo);
|
|
|
|
+ }
|
|
|
|
+ } else if((yhqy.textValue as String)=="1" ){
|
|
|
|
+ szcgStr.visible=false;
|
|
|
|
+ szcgStr.includeInLayout=false;
|
|
|
|
+ szcg.visible=false;
|
|
|
|
+ szcg.includeInLayout=false;
|
|
|
|
+ szcg.selectedIndex=0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
]]>
|
|
]]>
|
|
</fx:Script>
|
|
</fx:Script>
|
|
@@ -739,17 +781,22 @@
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
<cus:QLabel text="{resourceManager.getString('check','yhfl')}" textAlign="right" width="135" />
|
|
<cus:QLabel text="{resourceManager.getString('check','yhfl')}" textAlign="right" width="135" />
|
|
<cus:QComboBox id="yhfl" dataField="{dcModel.dcVo.yhfl}" comboxClass="YhflSelect" hasBlank="true" width="200"/>
|
|
<cus:QComboBox id="yhfl" dataField="{dcModel.dcVo.yhfl}" comboxClass="YhflSelect" hasBlank="true" width="200"/>
|
|
- <cus:QLabel text="{resourceManager.getString('check','yhqy')}" textAlign="right" width="120" />
|
|
|
|
- <cus:QComboBox id="yhqy" dataField="{dcModel.dcVo.yhqy}" width="200" comboxClass="YhqySelect" hasBlank="true"/>
|
|
|
|
|
|
+ <cus:QLabel text="{resourceManager.getString('check','yhjb')}" textAlign="right" width="120" notNull="true"/>
|
|
|
|
+ <cus:QComboBox id="yhjb" selectedVO="{dcModel.dcVo.yhjb}" width="200" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_YHJB}" hasBlank="true" enabled="{!isJyr}"/>
|
|
|
|
+ <!--<s:HGroup width="341" verticalAlign="middle" horizontalAlign="left"></s:HGroup>-->
|
|
|
|
+ </s:HGroup>
|
|
|
|
+ <s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
|
|
+ <cus:QLabel text="{resourceManager.getString('check','yhqy')}" textAlign="right" width="135" />
|
|
|
|
+ <cus:QComboBox id="yhqy" dataField="{dcModel.dcVo.yhqy}" width="200" comboxClass="YhqySelect" hasBlank="true" change="yhqy_changeHandler(event)"/>
|
|
|
|
+ <cus:QLabel id="szcgStr" text="{resourceManager.getString('check','szcg')}" textAlign="right" width="120" visible="false" includeInLayout="false"/>
|
|
|
|
+ <cus:QComboBox id="szcg" selectedVO="{dcModel.dcVo.cg}" width="200" comboxClass="CgSelect" hasBlank="true" visible="false" includeInLayout="false"/>
|
|
</s:HGroup>
|
|
</s:HGroup>
|
|
|
|
+
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
- <s:HGroup width="341" verticalAlign="middle" horizontalAlign="left">
|
|
|
|
- <cus:QLabel text="{resourceManager.getString('check','yhjb')}" textAlign="right" width="135" notNull="true"/>
|
|
|
|
- <cus:QComboBox id="yhjb" selectedVO="{dcModel.dcVo.yhjb}" width="200" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_YHJB}" hasBlank="true" enabled="{!isJyr}"/>
|
|
|
|
- </s:HGroup>
|
|
|
|
- <cus:QLabel text="{resourceManager.getString('check','jhwcsj')}" textAlign="right" width="120"/>
|
|
|
|
|
|
+ <cus:QLabel text="{resourceManager.getString('check','jhwcsj')}" textAlign="right" width="135"/>
|
|
<ui:DateTime id="jhwcsj" dateTime="{dcModel.dcVo.jhwcsj}" width="200" />
|
|
<ui:DateTime id="jhwcsj" dateTime="{dcModel.dcVo.jhwcsj}" width="200" />
|
|
</s:HGroup>
|
|
</s:HGroup>
|
|
|
|
+
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
|
|
<cus:QLabel text="{resourceManager.getString('check','jdjcgl.jdjcnr')}" textAlign="right" width="135" notNull="true"/><!-- 隐患名称 -->
|
|
<cus:QLabel text="{resourceManager.getString('check','jdjcgl.jdjcnr')}" textAlign="right" width="135" notNull="true"/><!-- 隐患名称 -->
|
|
<cus:QTextArea height="100" text="@{dcModel.dcVo.jdjcnr}" width="532" editable="{!isJyr}" maxChars="200"/>
|
|
<cus:QTextArea height="100" text="@{dcModel.dcVo.jdjcnr}" width="532" editable="{!isJyr}" maxChars="200"/>
|