Jelajahi Sumber

git-svn-id: https://192.168.57.71/svn/jsgkj@1149 931142cf-59ea-a443-aa0e-51397b428577

xt_xuhao 8 tahun lalu
induk
melakukan
64aa4184a1

+ 8 - 3
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/yjyaba/YjyabaModel.as

@@ -497,6 +497,9 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 //			var versionno:String = thisView.query_versionno.text;
 			var bzdate_begin:Date = thisView.query_bzdate_begin.dateTime;
 			var bzdate_end:Date = thisView.query_bzdate_end.dateTime;
+			
+			var bayxq_:Date = thisView.bayxq.dateTime;
+			
 			//根据流程状态查询
 			var lcStatus:String = "";
 			if(queryByFlowDisplay){
@@ -528,7 +531,8 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 				bzdate_end,
 				szdid,
 				gqid,
-				lcStatus);
+				lcStatus,
+				bayxq_);
 		}
 
 		/**
@@ -556,6 +560,7 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 			//			var versionno:String = thisView.query_versionno.text;
 			var bzdate_begin:Date = thisView.query_bzdate_begin.dateTime;
 			var bzdate_end:Date = thisView.query_bzdate_end.dateTime;
+			var bayxq_:Date = thisView.bayxq.dateTime;
 			//根据流程状态查询
 			var lcStatus:String = "";
 			if(queryByFlowDisplay){
@@ -593,8 +598,8 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 				null==bzdate_begin?"":fomaterDate.format(bzdate_begin),
 				null==bzdate_end?"":fomaterDate.format(bzdate_end),
 				lcStatus,
-				Utils.getFunctionId(thisView)+""
-				);
+				Utils.getFunctionId(thisView)+"",
+				null==bayxq_?"":fomaterDate.format(bayxq_));
 			var params:URLVariables = new URLVariables();
 			params.title=title;
 			params.headers=headers;

+ 15 - 6
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/yjyaba/YjyabaLayout.mxml

@@ -15,10 +15,10 @@
 			import com.jtgh.yjpt.common.util.Utils;
 			import com.jtgh.yjpt.model.bagl.yjyaba.YjyabaModel;
 			import com.jtgh.yjpt.vo.bagl.yjyaba.YjyabaVo;
-
+			
 			import mx.events.FlexEvent;
 			import mx.rpc.events.ResultEvent;
-
+			
 			import spark.components.gridClasses.GridColumn;
 
 			[Bindable]
@@ -26,6 +26,7 @@
 
 			protected function creationComplete(event:FlexEvent):void
 			{
+				bayxq.dateTime = new Date();
 				if(Global.user.byzd5!=null&&Global.user.byzd5!=""&&Global.user.byzd5.indexOf("yjyaba-city")==-1){
 					cz.visible=false;
 				}
@@ -120,7 +121,13 @@
 				<cus:QLabel  textAlign="right" text="编制日期止" width="130"/>
 				<ui:DateTime id="query_bzdate_end"  width="180"/>
 			</s:HGroup>
-			<s:HGroup  verticalAlign="middle" textAlign="right">
+		</s:HGroup>
+		<s:HGroup width="100%" height="40" gap="0" horizontalAlign="left" verticalAlign="middle">
+			<s:HGroup  horizontalAlign="left" verticalAlign="middle"  width="31%">
+				<cus:QLabel text="至此日期有效的备案" textAlign="right" width="130"/>
+				<ui:DateTime id="bayxq"  width="180"/>		
+			</s:HGroup>
+			<s:HGroup  verticalAlign="middle" width="31%" textAlign="right">
 				<!--s:Button label="{resourceManager.getString('Gkwxhwzyfzblhhz','shouqi')}" click="shouqi()" /-->
 				<s:Image source="@Embed('resource/yjpt/list/btn_query.png')" buttonMode="true" click="thisModel.doQuery(event)"/>
 			</s:HGroup>
@@ -128,7 +135,8 @@
 	</s:VGroup>
 	<!-- 显示一览记录 -->
 	<ui:DataGrid id="dataGrid" width="100%" selectionMode="singleRow">	
-		<ui:columns><s:ArrayList>
+		<ui:columns>
+			<s:ArrayList>
 				<ui:DataGridColumn  labelFunction="labelFun" headerText="{resourceManager.getString('yjzyxxgl','yjzjk.xh')}" width="40"/>	
 				<ui:DataGridColumn dataField="babh"    headerText="备案编号" />
 				<ui:DataGridColumn dataField="yamc"    headerText="预案名称" />
@@ -146,7 +154,7 @@
 				<ui:DataGridColumn dataField="txsj" headerText="填写时间" dateFormatString="YYYY-MM-DD" />
 				<ui:DataGridColumn dataField="szdName" headerText="{resourceManager.getString('bagl','bagl.szd')}"/>
 				<ui:DataGridColumn dataField="gqName" headerText="{resourceManager.getString('bagl','bagl.szgq')}"/>
-
+				<ui:DataGridColumn dataField="bayxqFormat" headerText="备案有效期至"/>
 				<!--ui:DataGridColumn width="120" type="{TypeBase.LINKBUTTON}" linkButtonFunc="{thisModel.downloadFile}"
 								   linkEnableFunc="{thisModel.showFile}" linklabelFunc="{thisModel.showFileName}"
 								   headerText="{resourceManager.getString('bagl','yjyaba.fj')}"/-->
@@ -161,7 +169,8 @@
 								   headerText="{resourceManager.getString('workflow','task.startTime')}"/>
 				<ui:DataGridColumn id="col_taskStartUser" dataField="taskStartUser"
 								   headerText="{resourceManager.getString('workflow','task.startUser')}"/> -->
-			</s:ArrayList></ui:columns>
+			</s:ArrayList>
+		</ui:columns>
 	</ui:DataGrid>
 	<ui:Pager id="pager" queryFunction="{thisModel.pageQuery}"/>	
 </ui:QueryLayout>

+ 7 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/vo/bagl/yjyaba/YjyabaVo.as

@@ -69,6 +69,13 @@ package com.jtgh.yjpt.vo.bagl.yjyaba
 		/** 所在港区 */
 		public var gq :GqVo;
 		
+		/** 格式化备案有效期 */
+		public function get bayxqFormat():String{
+			var newdate:DateFormatter=new DateFormatter();
+			newdate.formatString="YYYY-MM-DD";
+			return newdate.format(bayxq);
+		}		
+		
 		public var accessory:AccessoryVo;//附件
 		
 		public function get jjtypeName():String