|
@@ -19,6 +19,8 @@
|
|
|
import mx.events.FlexEvent;
|
|
|
import mx.utils.StringUtil;
|
|
|
|
|
|
+ import spark.events.IndexChangeEvent;
|
|
|
+
|
|
|
[Bindable]
|
|
|
public var mode:String;
|
|
|
[Bindable]
|
|
@@ -54,22 +56,22 @@
|
|
|
if(view[name].selected){
|
|
|
}
|
|
|
}
|
|
|
-// if(vo.qysjsh.toString()=="NaN")
|
|
|
-// qysjsh.text="";
|
|
|
-// if(vo.qysjss.toString()=="NaN")
|
|
|
-// qysjss.text="";
|
|
|
-// if(vo.bwcd.toString()=="NaN")
|
|
|
-// bwcd.text="";
|
|
|
-// if(vo.sjtgnl.toString()=="NaN")
|
|
|
-// sjtgnl.text="";
|
|
|
-// if(vo.sjkpnl.toString()=="NaN")
|
|
|
-// sjkpnl.text="";
|
|
|
-// if(vo.nhwtgml.toString()=="NaN")
|
|
|
-// nhwtgml.text="";
|
|
|
-// if(vo.nwxhwttl.toString()=="NaN")
|
|
|
-// nwxhwttl.text="";
|
|
|
-// if(vo.hckpnl.toString()=="NaN")
|
|
|
-// hckpnl.text="";
|
|
|
+ // if(vo.qysjsh.toString()=="NaN")
|
|
|
+ // qysjsh.text="";
|
|
|
+ // if(vo.qysjss.toString()=="NaN")
|
|
|
+ // qysjss.text="";
|
|
|
+ // if(vo.bwcd.toString()=="NaN")
|
|
|
+ // bwcd.text="";
|
|
|
+ // if(vo.sjtgnl.toString()=="NaN")
|
|
|
+ // sjtgnl.text="";
|
|
|
+ // if(vo.sjkpnl.toString()=="NaN")
|
|
|
+ // sjkpnl.text="";
|
|
|
+ // if(vo.nhwtgml.toString()=="NaN")
|
|
|
+ // nhwtgml.text="";
|
|
|
+ // if(vo.nwxhwttl.toString()=="NaN")
|
|
|
+ // nwxhwttl.text="";
|
|
|
+ // if(vo.hckpnl.toString()=="NaN")
|
|
|
+ // hckpnl.text="";
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -169,10 +171,10 @@
|
|
|
// Utils.showInfoMessage("sjtgnl.empty",null,"jlrxxgl");
|
|
|
// return false;
|
|
|
// }
|
|
|
- if(StringUtil.trim(sjkpnl.text)==""){
|
|
|
- Utils.showInfoMessage("sjkpnl.empty",null,"jlrxxgl");
|
|
|
- return false;
|
|
|
- }
|
|
|
+ if(StringUtil.trim(sjkpnl.text)==""){
|
|
|
+ Utils.showInfoMessage("sjkpnl.empty",null,"jlrxxgl");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
// if(StringUtil.trim(jgysnf.text)==""){
|
|
|
// Utils.showInfoMessage("jgysnf.empty",null,"jlrxxgl");
|
|
|
// return false;
|
|
@@ -190,11 +192,11 @@
|
|
|
// Utils.showInfoMessage("nhwtgml.empty",null,"jlrxxgl");
|
|
|
// return false;
|
|
|
// }
|
|
|
- if(StringUtil.trim(hckpnl.text)==""){
|
|
|
- Utils.showInfoMessage("hckpnl.empty",null,"jlrxxgl");
|
|
|
- return false;
|
|
|
-
|
|
|
- }
|
|
|
+ if(StringUtil.trim(hckpnl.text)==""){
|
|
|
+ Utils.showInfoMessage("hckpnl.empty",null,"jlrxxgl");
|
|
|
+ return false;
|
|
|
+
|
|
|
+ }
|
|
|
// if(StringUtil.trim(zyhbwfl.text)==""){
|
|
|
// Utils.showInfoMessage("zyhbwfl.empty",null,"jlrxxgl");
|
|
|
// return false;
|
|
@@ -213,10 +215,23 @@
|
|
|
// }
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ protected function jgxs_changeHandler(event:IndexChangeEvent):void
|
|
|
+ {
|
|
|
+ if(null!=(jgxs.selectedVO as CodeVo))
|
|
|
+ jgxs2.reload((jgxs.selectedVO as CodeVo).id);
|
|
|
+ }
|
|
|
+
|
|
|
]]>
|
|
|
</fx:Script>
|
|
|
<s:HGroup width="100%">
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
+ <cus:QLabel text="泊位名称" width="40%" textAlign="right" notNull="true"/>
|
|
|
+ <cus:QTextInput id="bwmc" textAlign="left" width="50%" text="{vo.bwmc}" />
|
|
|
+ </s:HGroup>
|
|
|
+ </s:HGroup>
|
|
|
+ <s:HGroup width="100%">
|
|
|
+ <s:HGroup width="50%" verticalAlign="middle">
|
|
|
<cus:QLabel text="企业名称" width="40%" textAlign="right"/>
|
|
|
<cus:QTextInput id="qymc" textAlign="left" width="50%" text="{gkjyr}" editable="false"/>
|
|
|
</s:HGroup>
|
|
@@ -227,40 +242,40 @@
|
|
|
</s:HGroup>
|
|
|
<s:HGroup width="100%">
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
- <cus:QLabel text="泊位名称" width="40%" textAlign="right" notNull="true"/>
|
|
|
- <cus:QTextInput id="bwmc" textAlign="left" width="50%" text="{vo.bwmc}" />
|
|
|
+ <cus:QLabel text="泊位所在水系" width="40%" textAlign="right" />
|
|
|
+ <cus:QComboBox id="bwszsx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_SXLX}" hasBlank="true" selectedVO="{vo.bwszsx}" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
<cus:QLabel text="泊位属性" width="40%" textAlign="right" />
|
|
|
<cus:QComboBox id="bwsx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWSX}" hasBlank="true" selectedVO="{vo.bwsx}" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
</s:HGroup>
|
|
|
-
|
|
|
<s:HGroup width="100%">
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
- <cus:QLabel text="泊位所在水系" width="40%" textAlign="right" />
|
|
|
- <cus:QComboBox id="bwszsx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWSZSX}" hasBlank="true" selectedVO="{vo.bwszsx}" width="50%"/>
|
|
|
+ <cus:QLabel text="结构型式" width="40%" textAlign="right" />
|
|
|
+ <cus:QComboBox id="jgxs" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWXS}" change="jgxs_changeHandler(event)"
|
|
|
+ hasBlank="true" selectedVO="{vo.jgxs}" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
- <cus:QLabel text="服务类型" width="40%" textAlign="right" />
|
|
|
- <cus:QComboBox id="fwlx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWFWLX}" hasBlank="true" selectedVO="{vo.fwlx}" width="50%"/>
|
|
|
+ <cus:QLabel text="结构子型式" width="40%" textAlign="right" />
|
|
|
+ <cus:QComboBox id="jgxs2" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWXS2}" hasBlank="true" selectedVO="{vo.jgxs2}"
|
|
|
+ parentId="{vo.jgxs2.id.toString()}" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
</s:HGroup>
|
|
|
-
|
|
|
<s:HGroup width="100%">
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
- <cus:QLabel text="投产年份" width="40%" textAlign="right" />
|
|
|
- <cus:QTextInput id="tcnf" text="{vo.tcnf}" restrict="0-9" width="50%"/>
|
|
|
+ <cus:QLabel text="生产类型" width="40%" textAlign="right" />
|
|
|
+ <cus:QComboBox id="sclx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_CKSCLX}" hasBlank="true" selectedVO="{vo.sclx}" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
- <cus:QLabel text="结构型式" width="40%" textAlign="right" />
|
|
|
- <cus:QComboBox id="jgxs" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWXS}" hasBlank="true" selectedVO="{vo.jgxs}" width="50%"/>
|
|
|
+ <cus:QLabel text="服务类型" width="40%" textAlign="right" />
|
|
|
+ <cus:QComboBox id="fwlx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_BWFWLX}" hasBlank="true" selectedVO="{vo.fwlx}" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
</s:HGroup>
|
|
|
<s:HGroup width="100%">
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
- <cus:QLabel text="生产类型" width="40%" textAlign="right" />
|
|
|
- <cus:QComboBox id="sclx" comboxClass="CodeSelect" codeType="{Constants.GROUP_CODE_CKSCLX}" hasBlank="true" selectedVO="{vo.sclx}" width="50%"/>
|
|
|
+ <cus:QLabel text="投产年份" width="40%" textAlign="right" />
|
|
|
+ <cus:QTextInput id="tcnf" text="{vo.tcnf}" restrict="0-9" width="50%"/>
|
|
|
</s:HGroup>
|
|
|
<s:HGroup width="50%" verticalAlign="middle">
|
|
|
<cus:QLabel text="竣工验收年份" width="40%" textAlign="right" />
|