فهرست منبع

港区的所在地

git-svn-id: https://192.168.57.71/svn/lyggkj@69 1a6f6e3a-4066-fe46-b609-79c204482ece
ld_liufl 9 سال پیش
والد
کامیت
36640d4aa4

+ 3 - 8
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/gq/GqModel.as

@@ -2,9 +2,7 @@ package com.jtgh.yjpt.model.gq
 {
 	import com.jtgh.yjpt.common.BusinessContext;
 	import com.jtgh.yjpt.common.IModule;
-	import com.jtgh.yjpt.common.component.ui.CheckBox;
 	import com.jtgh.yjpt.common.component.ui.Pager;
-	import com.jtgh.yjpt.common.component.ui.TitleWindow;
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
 	import com.jtgh.yjpt.model.SystemModel;
@@ -15,16 +13,15 @@ package com.jtgh.yjpt.model.gq
 	import com.jtgh.yjpt.vo.common.SinglePageRequestVo;
 	import com.jtgh.yjpt.vo.gkgq.GqVo;
 	import com.jtgh.yjpt.vo.gkgq.MtVo;
-
+	
 	import flash.events.Event;
 	import flash.events.MouseEvent;
-
+	
 	import mx.binding.utils.BindingUtils;
 	import mx.collections.ArrayCollection;
 	import mx.controls.Alert;
 	import mx.events.CloseEvent;
 	import mx.events.FlexEvent;
-	import mx.managers.PopUpManager;
 	import mx.rpc.events.ResultEvent;
 
 	[Bindable]
@@ -84,15 +81,13 @@ package com.jtgh.yjpt.model.gq
 		{
 			getView();
 			flag="add";
+			gq=new GqVo();
 			mtList=new ArrayCollection;
 			editView.functionId = Utils.getFunctionId(e.target);
 			Utils.popupWindow(resourceManager.getString("gq","gq.title.add"),editView,SystemModel.getInstance().getMainLayout(),null,1000,500);	
 		}
 		public function doSave(e:Event):void
 		{
-			if("add"==flag){
-				gq=new GqVo();
-			}
 			gq.id=editView.gq_id;
 //			gq.szd=editView.ssgk.selectedItem as CodeVo;
 			gq.szd=editView.ssgk.selectedVO as CodeVo;

+ 2 - 2
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/gq/Gq.mxml

@@ -8,11 +8,11 @@
 	<fx:Script>
 		<![CDATA[
 			import com.jtgh.yjpt.common.TypeBase;
+			import com.jtgh.yjpt.common.Global;
 			import com.jtgh.yjpt.common.util.Constants;
 			import com.jtgh.yjpt.model.gq.GqModel;
-			import com.jtgh.yjpt.common.Global;
 			[Bindable]
-			public var thisModel:GqModel;
+			public var thisModel:GqModel = new GqModel;
 			public var gq_id:Number;
 			public var functionId:Number;