Преглед изворни кода

git-svn-id: https://192.168.57.71/svn/lyggkj@147 1a6f6e3a-4066-fe46-b609-79c204482ece

xt_xuhao пре 8 година
родитељ
комит
873eb98fac

+ 5 - 0
gkaq/yjpt-flex/trunk/.project

@@ -31,5 +31,10 @@
 			<type>2</type>
 			<location>E:/code/lyggkj/flex_release_build</location>
 		</link>
+		<link>
+			<name>bin-release2</name>
+			<type>2</type>
+			<location>E:/code/lyggkj/flex_release</location>
+		</link>
 	</linkedResources>
 </projectDescription>

+ 6 - 1
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jyr/JyrEditModel.as

@@ -132,6 +132,8 @@ package com.jtgh.yjpt.model.jyr
 		}
 
 		public function init():void {
+			if(vo.dangerSrcUnitNum.toString()=="NaN")
+				thisView.dangerSrcUnitNum.text="";
 			if(vo.zczb.toString()=="NaN")
 				thisView.zczb.text="";
 			if(vo.tzze.toString()=="NaN")
@@ -254,7 +256,10 @@ package com.jtgh.yjpt.model.jyr
 			vo.fzyxq=thisView.fzyxq.dateTime as Date;
 			vo.bayxq=thisView.bayxq.dateTime as Date;
 			vo.qyxz="";
-			vo.byzd1=""
+			vo.byzd1="";
+			//重大危险源单元(个)
+			vo.dangerSrcUnitNum = new Number( thisView.dangerSrcUnitNum.text);
+			
 			var i:Number=0;
 			for(i=0;i<7;i++){
 				var name:String="bw"+i;

+ 4 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/jyr/JyrEdit.mxml

@@ -330,6 +330,10 @@
 						<s:Spacer width="2%" />
 						<ui:Button label="选择" click="showWxhw(event)"  width="5%"/>
 					</s:HGroup>
+					<s:HGroup width="100%" verticalAlign="middle" gap="0" height="54" id="zdwxydy">
+						<cus:QLabel width="13%" text="重大危险源单元(个)"/>
+						<cus:QTextInput id="dangerSrcUnitNum" type="int" text="{thisModel.vo.dangerSrcUnitNum}" width="19%"/>
+					</s:HGroup>
 					<s:HGroup width="100%" verticalAlign="middle" gap="0" height="54" id="sfzdsp">
 						<cus:QLabel width="13%" text="{resourceManager.getString('jlrxxgl','sfzdsp')}"/>
 						<ui:CheckBox label="" selected="@{thisModel.vo.zdsp}" width="19%"/>

+ 6 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/jyr/JyrView.mxml

@@ -71,6 +71,8 @@
 					rs.text="";
 				if(model.vo.zzagrysl.toString()=="NaN")
 					zzagrysl.text="";
+				if(model.vo.dangerSrcUnitNum.toString() =="NaN")
+					dangerSrcUnitNum.text = "";
 				//				if(model.vo!=null){
 				//				if(model.vo.fzyxq!=null&&ObjectUtil.dateCompare(model.vo.fzyxq,new Date())<0){
 				//					fzyxq.setStyle("disabledColor","#FF0033");
@@ -426,6 +428,10 @@
 							<cus:QLabel id="zywxhwpmStr" click="shModel.showShyj1('zywxhwpm')" width="13%" />
 							<cus:QTextArea id="zywxhwpm" text="@{model.vo.zywxhwpm}"  width="83%" editable="false" height="54" />
 						</s:HGroup>
+						<s:HGroup width="100%" verticalAlign="middle" gap="0" height="54">
+							<cus:QLabel width="13%" text="重大危险源单元(个)"/>
+							<cus:QTextInput id="dangerSrcUnitNum" type="int" text="{model.vo.dangerSrcUnitNum}" editable="false" width="19%"/>
+						</s:HGroup>
 					</s:VGroup>
 				</s:BorderContainer>
 				<s:BorderContainer  width="100%" height="25" borderWeight="1">

+ 4 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/vo/jyr/JyrVo.as

@@ -174,6 +174,10 @@ package com.jtgh.yjpt.vo.jyr
 			return "手动审批";
 		}
 		
+		
+		public var dangerSrcUnitNum:Number;
+		
+		
 		public  var zdspsjq:Date;
 		public function  get zdspsjqStr():String{
 			var  forString:String="YYYY-MM-DD JJ:NN:SS";