Преглед на файлове

附件保存

git-svn-id: https://192.168.57.71/svn/lyggkj@18 1a6f6e3a-4066-fe46-b609-79c204482ece
ld_liufl преди 9 години
родител
ревизия
6ca3f0e1df
променени са 30 файла, в които са добавени 156 реда и са изтрити 177 реда
  1. 2 0
      gkaq/yjpt-flex/trunk/locale/zh_CN/common.properties
  2. 13 6
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/aqsszxyssc/AqsszxyssqModel.as
  3. 10 5
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/aqpjbgjzgfalsba/AqpjbgjzgfalsbaEditModel.as
  4. 12 13
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/aqpjjgba/AqpjjgbaModel.as
  5. 18 13
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/jdhxpandzdwxyba/JdhxpZdwxyBadjModel.as
  6. 2 2
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/jdhxpandzdwxyba/ZdwxybaModel.as
  7. 17 11
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/yjyaba/YjyabaModel.as
  8. 0 4
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/zdsgdyhpchzlqkba/ZdsgdyhpchzlqkbaModel.as
  9. 4 2
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/gg/GgglModel.as
  10. 1 10
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jlrxxgl/GlzdxxModel.as
  11. 11 15
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jsxmaqsc/GkjsxmaqscEditModel.as
  12. 3 1
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jyrxxgl/gksssb/GksssbAddModel.as
  13. 1 0
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjpxModel.as
  14. 8 4
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjyaModel.as
  15. 1 0
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjylModel.as
  16. 4 14
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjyxModel.as
  17. 13 5
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzhz/GkwxhwzyfzhzModel.as
  18. 14 12
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzndjy/GkwxhwzyfzblhhzEditModel.as
  19. 1 1
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzndjy/GkwxhwzyfzblhhzModel.as
  20. 6 8
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzns/GkwxhwzyfznsModel.as
  21. 3 4
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/aqsszxyssc/FileList.mxml
  22. 0 12
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/aqpjbgjzgfalsba/AqpjbgjzgfalsbaAudit.mxml
  23. 0 11
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/aqpjbgjzgfalsba/AqpjbgjzgfalsbaEdit.mxml
  24. 0 3
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/jdhxpandzdwxyba/JdhxpZdwxyBadjEdit.mxml
  25. 2 7
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/yjgl/yjpx/YjpxEdit.mxml
  26. 1 3
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/yjgl/yjyl/YjylEdit.mxml
  27. 2 6
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/yjgl/yjyx/YjyxEdit.mxml
  28. 4 3
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/zyfzhz/GkwxhwzyfzhzEdit.mxml
  29. 2 0
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/zyfzndjy/GkwxhwzyfzblhhzEdit.mxml
  30. 1 2
      gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/zyfzns/GkwxhwzyfznsEdit.mxml

+ 2 - 0
gkaq/yjpt-flex/trunk/locale/zh_CN/common.properties

@@ -190,6 +190,8 @@ save.fail=\u4fdd\u5b58\u5931\u8d25\uff01
 save.success=\u4fdd\u5b58\u6210\u529f\uff01
 del.fail=\u5220\u9664\u5931\u8d25\uff01
 del.success=\u5220\u9664\u6210\u529f\uff01
+submit.fail=\u63d0\u4ea4\u5931\u8d25\uff01
+submit.success=\u63d0\u4ea4\u6210\u529f\uff01
 
 saveConfirm=\u786e\u8ba4\u4fdd\u5b58\uff1f
 saveConfirmTitle=\u4fdd\u5b58\u6761\u76ee

+ 13 - 6
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/aqsszxyssc/AqsszxyssqModel.as

@@ -5,9 +5,7 @@ package com.jtgh.yjpt.model.aqsszxyssc
 	import com.jtgh.yjpt.common.util.Constants;
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
-	import com.jtgh.yjpt.model.task.TaskModel;
 	import com.jtgh.yjpt.select.WorkflowStatusSelect;
-	import com.jtgh.yjpt.view.aqsszxyssc.FileList;
 	import com.jtgh.yjpt.view.aqsszxyssc.WorkflowFileList;
 	import com.jtgh.yjpt.view.jsxmaqsc.DataList;
 	import com.jtgh.yjpt.view.task.TaskLayout;
@@ -62,6 +60,7 @@ package com.jtgh.yjpt.model.aqsszxyssc
 		public var sjResult:String = "审核中";
 		public var isCity:Boolean = false;
 		public var isProvince:Boolean = false;
+		public var action:String="action";
 		
 		private function resetWorkFlowState():void
 		{
@@ -288,13 +287,14 @@ package com.jtgh.yjpt.model.aqsszxyssc
 				Utils.callRemote("aqsszxysController",method,function(r:ResultEvent):void{
 					var bc:BusinessContext = r.result as BusinessContext;
 					var aqsszxys:AqsszxysVo = bc.result as AqsszxysVo;
+					action="save";
 					//文件保存
 					if(null != thisView.fileListView){
 						thisView.fileListView.doFileSave(aqsszxys.id);
 					}else{
 						doCloseThis();
 					}
-						Alert.show("保存成功","提示");
+					thisView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 				},thisView.vo,Utils.getFunctionId(thisView.parentView));
 			});
 		}
@@ -392,7 +392,8 @@ package com.jtgh.yjpt.model.aqsszxyssc
 					if(null!=thisView.taskModel){
 						thisView.taskModel.thisView.doLinkQuery();
 					}
-						Alert.show("提交成功","提示");
+					Alert.show("提交成功","提示");
+					thisView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 				},Utils.getFunctionId(thisView.parentView)
 					,thisView.vo,gztxId);
 			});
@@ -411,13 +412,14 @@ package com.jtgh.yjpt.model.aqsszxyssc
 				Utils.callRemote("aqsszxysController","doTbCommit",function(r:ResultEvent):void{
 					var bc:BusinessContext = r.result as BusinessContext;
 					var aqsszxys:AqsszxysVo = bc.result as AqsszxysVo;
+					action="submit";
 					//文件保存
 					if(null != thisView.fileListView){
 						thisView.fileListView.doFileSave(aqsszxys.id);
 					}else{
 						doCloseThis();
 					}
-					Alert.show("提交成功","提示");
+					thisView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 				},thisView.funcitonId//Utils.getFunctionId(parentView)
 					,thisView.vo,taskInfoVo);
 			});
@@ -427,8 +429,13 @@ package com.jtgh.yjpt.model.aqsszxyssc
 		 */ 
 		public function doCloseThis():void
 		{
-//			Alert.show(resourceManager.getString('common','msg.success'),resourceManager.getString('common','tip'));
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}	
 			thisView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
+			if(model!=null)
 			model.doQuery(null);
 		}
 		public function doClose():void

+ 10 - 5
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/aqpjbgjzgfalsba/AqpjbgjzgfalsbaEditModel.as

@@ -37,6 +37,7 @@ package com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba
 		public var functionId:Number;
 		public var modelLayout:AqpjbgjzgfalsbaModel ;
 		public var viewLayout:Object;
+		public var action:String="save";
 		public function AqpjbgjzgfalsbaEditModel()
 		{
 			super("");
@@ -82,6 +83,7 @@ package com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba
 						Alert.show(Utils.getFirstErrorMsg(bc.msgs).localeLabel,resourceManager.getString("common","errorTitle"));
 						return;
 					}
+					action="save";
 					var vo:AqpjbgjzgfalsbaVo=bc.result as AqpjbgjzgfalsbaVo;
 					//文件保存
 					if(null != thisView.fileListView){
@@ -89,8 +91,7 @@ package com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba
 					}else{
 						doCloseThis();
 						modelLayout.doQuery(null);
-					}
-						Alert.show("保存成功","提示");
+					}				
 				}else{
 					// fail, show alert
 					Alert.show("保存失败", "提示");
@@ -115,6 +116,7 @@ package com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba
 						Alert.show(Utils.getFirstErrorMsg(bc.msgs).localeLabel,resourceManager.getString("common","errorTitle"));
 						return;
 					}
+					action="submit";
 					var vo:AqpjbgjzgfalsbaVo=bc.result as AqpjbgjzgfalsbaVo;
 					//文件保存
 					if(null != thisView.fileListView){
@@ -122,8 +124,7 @@ package com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba
 					}else{
 						doCloseThis();
 						modelLayout.doQuery(null);
-					}
-						Alert.show("提交成功","提示");
+					}				
 				}else{
 					// fail, show alert
 					Alert.show("提交失败", "提示");
@@ -149,7 +150,11 @@ package com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba
 		 */ 
 		public function doCloseThis():void
 		{
-//			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}	
 			thisView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 		

+ 12 - 13
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/aqpjjgba/AqpjjgbaModel.as

@@ -4,15 +4,12 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 	import com.jtgh.yjpt.common.Global;
 	import com.jtgh.yjpt.common.IModule;
 	import com.jtgh.yjpt.common.component.ui.DataGridColumn;
-	import com.jtgh.yjpt.common.component.ui.TitleWindow;
 	import com.jtgh.yjpt.common.util.Constants;
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
-	import com.jtgh.yjpt.model.SystemModel;
 	import com.jtgh.yjpt.model.task.TaskModel;
 	import com.jtgh.yjpt.view.bagl.aqpjjgba.AqpjjgbaAudit;
 	import com.jtgh.yjpt.view.bagl.aqpjjgba.AqpjjgbaEdit;
-	import com.jtgh.yjpt.view.bagl.aqpjjgba.AqpjjgbaLayout;
 	import com.jtgh.yjpt.view.bagl.aqpjjgba.AqpjjgbaView;
 	import com.jtgh.yjpt.view.task.TaskLayout;
 	import com.jtgh.yjpt.view.zyfzndjy.DataList;
@@ -24,7 +21,6 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 	import com.jtgh.yjpt.vo.common.TaskInfoVo;
 	
 	import flash.display.DisplayObject;
-	import flash.events.DataEvent;
 	import flash.events.Event;
 	import flash.events.MouseEvent;
 	import flash.net.FileReference;
@@ -41,11 +37,8 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 	import mx.events.CloseEvent;
 	import mx.formatters.DateFormatter;
 	import mx.managers.CursorManager;
-	import mx.managers.PopUpManager;
 	import mx.rpc.events.ResultEvent;
 	import mx.utils.StringUtil;
-	
-	import spark.components.TextInput;
 
 
 	[Bindable]
@@ -62,6 +55,7 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 		private var aqpjjgba:AqpjjgbaVo;
 		private var viewView:Object;
 		public var uploadFile:FileReference=new FileReference;
+		public var action:String="save";
 
 		public function AqpjjgbaModel()
 		{
@@ -276,11 +270,11 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 				var success:Boolean=bc.getAttribute("success");
 				editView.vo=bc.getAttribute("record") as AqpjjgbaVo;
 				if(success){
-					Alert.show("保存成功","提示");
+					action="save";
 					if(null!=editView.fileListView){
 						editView.fileListView.doFileSave(editView.vo.id);
 					}else {
-						editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
+					 	doCloseThis();
 					}
 				}else if(bc.getAttribute("message")!=null){
 					Alert.show("该企业的应急物资信息已存在","提示");
@@ -290,14 +284,14 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 				doQuery(null);
 				return;					
 			}else if(doAction=="submit"){
-				var success:Boolean=bc.getAttribute("success");
+				var success1:Boolean=bc.getAttribute("success");
 				editView.vo=bc.getAttribute("record") as AqpjjgbaVo;
-				if(success){
-					Alert.show("提交成功","提示");
+				if(success1){
+					action="submit";
 					if(null!=editView.fileListView){
 						editView.fileListView.doFileSave(editView.vo.id);
 					}else {
-						editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
+						doCloseThis();
 					}
 					if(editView.taskModel!=null)
 						editView.taskModel.thisView.doQuery();
@@ -552,6 +546,11 @@ package com.jtgh.yjpt.model.bagl.aqpjjgba
 
 		public function doCloseThis():void
 		{
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}		
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 

+ 18 - 13
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/jdhxpandzdwxyba/JdhxpZdwxyBadjModel.as

@@ -9,14 +9,13 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 	import com.jtgh.yjpt.model.BaseModel;
 	import com.jtgh.yjpt.model.task.TaskModel;
 	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjAudit;
-	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjHxAudit;
 	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjEdit;
-	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjLayout;
-	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjView;
 	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjHx;
+	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjHxAudit;
+	import com.jtgh.yjpt.view.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjView;
 	import com.jtgh.yjpt.view.jsxmaqsc.DataList;
-	import com.jtgh.yjpt.vo.bagl.jdhxpandzdwxyba.GqnwxydjbabVo;
 	import com.jtgh.yjpt.vo.bagl.jdhxpandzdwxyba.GqnwxydjbabFlowVo;
+	import com.jtgh.yjpt.vo.bagl.jdhxpandzdwxyba.GqnwxydjbabVo;
 	import com.jtgh.yjpt.vo.bagl.jdhxpandzdwxyba.GqnwxyzlbVo;
 	import com.jtgh.yjpt.vo.common.AccessoryVo;
 	import com.jtgh.yjpt.vo.common.CodeVo;
@@ -57,7 +56,7 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 		public static var instance:JdhxpZdwxyBadjModel=new JdhxpZdwxyBadjModel;//和类一起被初始化使用
 		public var editView:Object;
 		public var hxView:Object;
-
+		public var action:String="save";
 
 		public function JdhxpZdwxyBadjModel()
 		{
@@ -112,6 +111,11 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 		}
 		public function doCloseThis():void
 		{	
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}	
 			if(editView){
 				editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 			}
@@ -595,6 +599,7 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 					doQuery(null);
 				}
 				Alert.show("提交成功","提示");
+				doPopupClose(hxView as UIComponent);
 				return;
 			}, djbabVo, Utils.getFunctionId(thisView));
 		}
@@ -719,19 +724,19 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 			else if(doAction == "add"||doAction=="edit"||doAction == "submit_add"||doAction=="submit_edit")
 			{
 				var vo:GqnwxydjbabVo=bc.getAttribute("record") as GqnwxydjbabVo;
+				if(doAction == "add"||doAction=="edit"){
+					action="save";
+				}else{
+					action="submit";
+				}
 				if(null!=editView.fileListView){
 					editView.fileListView.doFileSave(vo.id);
 				}else{
-					doPopupClose(editView as UIComponent);
+					doCloseThis();
 				}
 				if(thisView!=null){
 					doQuery(null);
 				}
-				if(doAction == "add"||doAction=="edit"){
-					Alert.show("保存成功","提示");
-				}else{
-					Alert.show("提交成功","提示");
-				}
 				return;
 			}
 			else if(doAction == "find")
@@ -750,8 +755,8 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 		public function doPopupClose(view:UIComponent):void
 		{
 			view.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
-				if(needRefresh)
-					doQuery(null);
+			if(needRefresh)
+				doQuery(null);
 		}
 		/**
 		 * 待办任务页面调用

+ 2 - 2
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/jdhxpandzdwxyba/ZdwxybaModel.as

@@ -334,11 +334,11 @@ package com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba
 				//文件保存
 				if(null != editView.fileListView){
 					editView.fileListView.doFileSave(zdwxybaVo.id);
-				}else{					
+				}else{	
 					doCloseThis();
 				}			
 				Alert.show(Utils.getTopMsg(bc.msgs).localeLabel,resourceManager.getString("common","tip"));
-				
+				editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 			},thisData,editView.functionId);			
 		}
 

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

@@ -1,6 +1,5 @@
 package com.jtgh.yjpt.model.bagl.yjyaba
 {
-	import com.anychart.utils.StringUtils;
 	import com.jtgh.yjpt.common.BusinessContext;
 	import com.jtgh.yjpt.common.Global;
 	import com.jtgh.yjpt.common.IModule;
@@ -12,7 +11,6 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 	import com.jtgh.yjpt.view.bagl.yjyaba.CopyYaLayout;
 	import com.jtgh.yjpt.view.bagl.yjyaba.YjyabaAudit;
 	import com.jtgh.yjpt.view.bagl.yjyaba.YjyabaEdit;
-	import com.jtgh.yjpt.view.bagl.yjyaba.YjyabaLayout;
 	import com.jtgh.yjpt.view.bagl.yjyaba.YjyabaView;
 	import com.jtgh.yjpt.view.jsxmaqsc.DataList;
 	import com.jtgh.yjpt.view.task.TaskLayout;
@@ -25,7 +23,6 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 	import com.jtgh.yjpt.vo.jyr.JyrVo;
 	
 	import flash.display.DisplayObject;
-	import flash.events.DataEvent;
 	import flash.events.Event;
 	import flash.events.MouseEvent;
 	import flash.net.FileReference;
@@ -60,6 +57,8 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 		public var szdList:ArrayCollection;
 		public var gqList:ArrayCollection;
 		public var uploadFile:FileReference=new FileReference;
+		public var action:String="save";
+		
 		public static var instance:YjyabaModel=new YjyabaModel();
 
 		public function YjyabaModel(){
@@ -664,14 +663,14 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 				}
 			}
 			else if(doAction == "add"||doAction == "edit"){
+				action="save";
 				//文件保存
 				if(null != editView.fileListView){
 					editView.fileListView.doFileSave(thisData.id);
 				}else{
-					editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
-					doQuery(null);
+					doCloseThis
 				}
-					Alert.show("保存成功","提示");
+				doQuery(null);
 			}			
 		}
 
@@ -687,8 +686,12 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 		}
 		public function doCloseThis():void
 		{
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}	
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
-			doQuery(null);
 		}
 		/**
 		 * 保存应急预案备案信息
@@ -735,17 +738,20 @@ package com.jtgh.yjpt.model.bagl.yjyaba
 			Utils.callRemote("yjyabaController",submit_method,function (r:ResultEvent):void{
 				var bc:BusinessContext=r.result as BusinessContext;
 				thisData = bc.getAttribute("record") as YjyabaVo;
+				action="submit";
 				if(null != editView.fileListView){
 					editView.fileListView.doFileSave(thisData.id);
+				} else {
+					doCloseThis();
 				}
-				editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 				//文件保存
 				if(editView.taskModel!=null){
-					editView.taskModel.thisView.doQuery();
-				
+					editView.taskModel.thisView.doQuery();				
 				}else{
-				doQuery(null);}
+				doQuery(null);
+				}
 				Alert.show("提交成功","提示");
+				editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 			},thisData,thisData.accessory!=null?thisData.accessory.id:0,editView.functionId);
 		}
 		/**

+ 0 - 4
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/bagl/zdsgdyhpchzlqkba/ZdsgdyhpchzlqkbaModel.as

@@ -8,19 +8,15 @@ package com.jtgh.yjpt.model.bagl.zdsgdyhpchzlqkba
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
 	import com.jtgh.yjpt.model.task.TaskModel;
-	import com.jtgh.yjpt.view.bagl.zdsgdyhpchzlqkba.ChooseYhLayout;
 	import com.jtgh.yjpt.view.bagl.zdsgdyhpchzlqkba.ZdsgdyhpchzlqkbaAudit;
 	import com.jtgh.yjpt.view.bagl.zdsgdyhpchzlqkba.ZdsgdyhpchzlqkbaEdit;
-	import com.jtgh.yjpt.view.bagl.zdsgdyhpchzlqkba.ZdsgdyhpchzlqkbaLayout;
 	import com.jtgh.yjpt.view.bagl.zdsgdyhpchzlqkba.ZdsgdyhpchzlqkbaView;
 	import com.jtgh.yjpt.vo.bagl.zdsgdyhpchzlqkba.ZdsgdyhpchzlqkbaVo;
 	import com.jtgh.yjpt.vo.common.CodeVo;
 	import com.jtgh.yjpt.vo.common.SinglePageRequestVo;
 	import com.jtgh.yjpt.vo.common.TaskInfoVo;
-	import com.jtgh.yjpt.vo.check.ZcyhVo
 	import com.jtgh.yjpt.vo.gkgq.GqVo;
 	import com.jtgh.yjpt.vo.jyr.JyrVo;
-
 	
 	import flash.display.Bitmap;
 	import flash.display.BitmapData;

+ 4 - 2
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/gg/GgglModel.as

@@ -505,8 +505,9 @@ package com.jtgh.yjpt.model.gg
 				var vo:GgVo = bc.result as GgVo;
 				if(null != editView.files){
 					editView.files.doFileSave(vo.id);
+				} else {
+					doPopupClose(null);
 				}
-				doPopupClose(null);
 				return;
 			}
 			else if(doAction == "edit")
@@ -514,8 +515,9 @@ package com.jtgh.yjpt.model.gg
 				var vo2:GgVo = bc.result as GgVo;
 				if(null != editView.files){
 					editView.files.doFileSave(vo2.id);	
+				} else{
+					doPopupClose(null);
 				}
-				doPopupClose(null);
 				return;
 			}
 			else if(doAction == "findGg")

+ 1 - 10
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jlrxxgl/GlzdxxModel.as

@@ -2,48 +2,38 @@ package com.jtgh.yjpt.model.jlrxxgl
 {
 	import com.adobe.utils.StringUtil;
 	import com.jtgh.yjpt.common.BusinessContext;
-	import com.jtgh.yjpt.common.Global;
 	import com.jtgh.yjpt.common.IModule;
 	import com.jtgh.yjpt.common.PrintParam;
 	import com.jtgh.yjpt.common.PrintTypes;
 	import com.jtgh.yjpt.common.component.ui.DataGridColumn;
 	import com.jtgh.yjpt.common.component.ui.Pager;
-	import com.jtgh.yjpt.common.component.ui.TitleWindow;
 	import com.jtgh.yjpt.common.util.Constants;
 	import com.jtgh.yjpt.common.util.PrintUtil;
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
-	import com.jtgh.yjpt.model.SystemModel;
 	import com.jtgh.yjpt.view.jlrxxgl.GlzdxxEdit;
 	import com.jtgh.yjpt.view.jlrxxgl.GlzdxxLayout;
 	import com.jtgh.yjpt.view.jlrxxgl.GlzdxxView;
-	import com.jtgh.yjpt.vo.common.AccessoryVo;
 	import com.jtgh.yjpt.vo.common.CodeVo;
 	import com.jtgh.yjpt.vo.common.SinglePageRequestVo;
 	import com.jtgh.yjpt.vo.gkgq.GqVo;
 	import com.jtgh.yjpt.vo.jlrxxgl.GlzdxxVo;
 	
-	import flash.display.DisplayObject;
 	import flash.events.Event;
 	import flash.events.MouseEvent;
 	import flash.net.FileReference;
 	import flash.net.URLRequest;
 	import flash.net.URLRequestMethod;
 	import flash.net.URLVariables;
-	import flash.ui.GameInput;
 	
 	import mx.binding.utils.BindingUtils;
 	import mx.collections.ArrayCollection;
 	import mx.collections.ArrayList;
 	import mx.controls.Alert;
 	import mx.events.CloseEvent;
-	import mx.events.ListEvent;
 	import mx.formatters.DateFormatter;
 	import mx.managers.CursorManager;
-	import mx.managers.PopUpManager;
 	import mx.rpc.events.ResultEvent;
-	
-	import spark.components.TextInput;
 
 	[Bindable]
 	public class GlzdxxModel extends BaseModel
@@ -298,6 +288,7 @@ package com.jtgh.yjpt.model.jlrxxgl
 
 		public function doCloseThis():void
 		{
+			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 			editView.dispatchEvent(new CloseEvent(Event.CLOSE));
 			doQuery(null);
 		}

+ 11 - 15
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jsxmaqsc/GkjsxmaqscEditModel.as

@@ -9,19 +9,10 @@ package com.jtgh.yjpt.model.jsxmaqsc
 	import com.jtgh.yjpt.select.WorkflowStatusSelect;
 	import com.jtgh.yjpt.view.aqsszxyssc.WorkflowFileList;
 	import com.jtgh.yjpt.view.jsxmaqsc.DataList;
-	import com.jtgh.yjpt.view.jsxmaqsc.GkjsxmaqscCount;
-	import com.jtgh.yjpt.view.jsxmaqsc.GkjsxmaqscbEdit;
-	import com.jtgh.yjpt.view.jsxmaqsc.GkjsxmaqscbLayout;
-	import com.jtgh.yjpt.view.yjzyxxgl.YjjyzbxxEdit;
-	import com.jtgh.yjpt.view.yjzyxxgl.YjjyzbxxLayout;
-	import com.jtgh.yjpt.vo.common.CodeVo;
-	import com.jtgh.yjpt.vo.gkgq.GqVo;
 	import com.jtgh.yjpt.vo.jsxmaqsc.GkjsxmaqscVo;
-	import com.jtgh.yjpt.vo.jyrxxgl.JyrxxglVo;
 	
 	import flash.display.DisplayObject;
 	import flash.events.Event;
-	import flash.events.MouseEvent;
 	
 	import mx.collections.ArrayCollection;
 	import mx.controls.Alert;
@@ -40,6 +31,7 @@ package com.jtgh.yjpt.model.jsxmaqsc
 		public var model:GkjsxmaqscModel;
 		public var mode:String;
 		public var sjResult:String = "审核中";
+		public var action:String="save";
 		public function GkjsxmaqscEditModel()
 		{
 			super("");
@@ -238,14 +230,14 @@ package com.jtgh.yjpt.model.jsxmaqsc
 						Alert.show(Utils.getFirstErrorMsg(bc.msgs).localeLabel,resourceManager.getString("common","errorTitle"));
 						return;
 					}
+					action="save";
 					var vo:GkjsxmaqscVo=bc.result as GkjsxmaqscVo;
 					//文件保存
 					if(null != thisView.fileListView){
 						thisView.fileListView.doFileSave(vo.id);
 					}else{
 						doCloseThis();
-					}
-						Alert.show("保存成功","提示");
+					}					
 				}else{
 					// fail, show alert
 					Alert.show("新增失败", "提示");
@@ -275,6 +267,7 @@ package com.jtgh.yjpt.model.jsxmaqsc
 					Alert.show(Utils.getFirstErrorMsg(bc.msgs).localeLabel,resourceManager.getString("common","errorTitle"));
 					return;
 				}
+				action="submit";
 				var vo:GkjsxmaqscVo=bc.result as GkjsxmaqscVo;
 				if(thisView.taskModel!=null)
 					thisView.taskModel.thisView.doQuery();
@@ -283,9 +276,7 @@ package com.jtgh.yjpt.model.jsxmaqsc
 					thisView.fileListView.doFileSave(vo.id);
 				}else{
 					doCloseThis();
-				}
-				
-					Alert.show("提交成功","提示");
+				}							
 			}else{
 				// fail, show alert
 				Alert.show("新增失败", "提示");
@@ -363,8 +354,13 @@ package com.jtgh.yjpt.model.jsxmaqsc
 		 */ 
 		public function doCloseThis():void
 		{
-//			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}		
 			thisView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
+			if(model!=null)
 			model.doQuery(null);
 		}
 		/**

+ 3 - 1
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/jyrxxgl/gksssb/GksssbAddModel.as

@@ -127,7 +127,9 @@ package com.jtgh.yjpt.model.jyrxxgl.gksssb
 				if(null!=view.fjfiles){
 				view.fjfiles.doFileSave(gksssbVo.id);}
 				else
-				{view.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));}
+				{
+					doCloseThis();
+				}
 			},vo,vo.accessory!=null?vo.accessory.id:0,view.functionId);
 		}
 

+ 1 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjpxModel.as

@@ -397,6 +397,7 @@ package com.jtgh.yjpt.model.yjgl
 
 		public function doCloseThis():void
 		{
+			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 

+ 8 - 4
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjyaModel.as

@@ -532,16 +532,18 @@ package com.jtgh.yjpt.model.yjgl
 				thisData = bc.result as YjyaVo;
 				if(null != editView.fileListView){
 					editView.fileListView.doFileSave(thisData.id);
-				}
-				doPopupClose(null);
+				} else {
+					doPopupClose(null);
+				}			
 				return;
 			}
 			else if(doAction == "updateYjya")
 			{	
 				if(null != editView.fileListView){
 					editView.fileListView.doFileSave(thisData.id);
-				}
-				doPopupClose(null);
+				} else {
+					doPopupClose(null);
+				}		
 				return;
 			}
 			else if(doAction == "findYjya")
@@ -566,10 +568,12 @@ package com.jtgh.yjpt.model.yjgl
 		{
 			if(needRefresh)
 				doQuery(null);
+			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 		
 		public function doCloseThis():void{
+			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 			doQuery(null);
 		}

+ 1 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjylModel.as

@@ -464,6 +464,7 @@ package com.jtgh.yjpt.model.yjgl
 		}
 		public function doCloseThis():void
 		{
+			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 

+ 4 - 14
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/yjgl/YjyxModel.as

@@ -1,8 +1,6 @@
 package com.jtgh.yjpt.model.yjgl
 {
-	import com.adobe.protocols.dict.events.DatabaseEvent;
 	import com.jtgh.yjpt.common.BusinessContext;
-	import com.jtgh.yjpt.common.Global;
 	import com.jtgh.yjpt.common.IModule;
 	import com.jtgh.yjpt.common.component.ui.DataGridColumn;
 	import com.jtgh.yjpt.common.component.ui.Pager;
@@ -18,42 +16,33 @@ package com.jtgh.yjpt.model.yjgl
 	import com.jtgh.yjpt.vo.common.SinglePageRequestVo;
 	import com.jtgh.yjpt.vo.gkgq.GqVo;
 	import com.jtgh.yjpt.vo.yjgl.YjyxVo;
-
+	
 	import flash.display.Bitmap;
 	import flash.display.BitmapData;
 	import flash.display.DisplayObject;
-	import flash.display.Loader;
 	import flash.display.LoaderInfo;
-	import flash.events.DataEvent;
 	import flash.events.Event;
-	import flash.events.EventDispatcher;
 	import flash.events.MouseEvent;
-	import flash.events.ProgressEvent;
 	import flash.net.FileReference;
 	import flash.net.URLRequest;
 	import flash.net.URLRequestMethod;
 	import flash.net.URLVariables;
 	import flash.net.navigateToURL;
-	import flash.sampler.NewObjectSample;
 	import flash.utils.ByteArray;
-
+	
 	import mx.binding.utils.BindingUtils;
 	import mx.collections.ArrayCollection;
 	import mx.collections.ArrayList;
 	import mx.controls.Alert;
-	import mx.core.Container;
 	import mx.core.FlexGlobals;
 	import mx.events.CloseEvent;
 	import mx.events.FlexEvent;
 	import mx.events.ListEvent;
 	import mx.formatters.DateFormatter;
 	import mx.managers.CursorManager;
-	import mx.managers.PopUpManager;
 	import mx.rpc.events.ResultEvent;
-
-	import spark.components.Button;
+	
 	import spark.components.Image;
-	import spark.skins.spark.ImageSkin;
 
 	[Bindable]
 	public class YjyxModel extends BaseModel
@@ -396,6 +385,7 @@ package com.jtgh.yjpt.model.yjgl
 
 		public function doCloseThis():void
 		{
+			Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 

+ 13 - 5
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzhz/GkwxhwzyfzhzModel.as

@@ -58,6 +58,7 @@ package com.jtgh.yjpt.model.zyfzhz
 		public var thisDataList:ArrayCollection;
 		public static var instance:GkwxhwzyfzhzModel=new GkwxhwzyfzhzModel;
 		public var fileList:ArrayCollection;
+		public var action:String="save";
 		public function GkwxhwzyfzhzModel()
 		{
 			super(IModule.MODEL_004003003); 
@@ -246,6 +247,11 @@ package com.jtgh.yjpt.model.zyfzhz
 		}
 		public function doCloseThis():void
 		{
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}	
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 		}
 
@@ -485,16 +491,18 @@ package com.jtgh.yjpt.model.zyfzhz
 			if(doAction == "doAdd"||doAction == "doEdit"||doAction=="submitAdd"||doAction=="submitEdit")
 			{
 				var vo:GkwxhwzyfzhzVo=bc.result as GkwxhwzyfzhzVo;
-				if(editView.fileListView!=null)
-					editView.fileListView.doFileSave(vo.id);
 				if(doAction == "doAdd"||doAction == "doEdit"){
-					Alert.show("保存成功","提示");
+					action="save";
 				}else{
-					Alert.show("提交成功","提示");
+					action="submit";
 				}
+				if(editView.fileListView!=null)
+					editView.fileListView.doFileSave(vo.id);
+				else
+					doCloseThis();			
 				if(instance.editView!=null&&instance.editView.taskModel)
 					instance.editView.taskModel.thisView.doQuery();
-				doCloseThis();
+				
 			}
 
 			else if(doAction == "logicDelete")

+ 14 - 12
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzndjy/GkwxhwzyfzblhhzEditModel.as

@@ -1,7 +1,6 @@
 package com.jtgh.yjpt.model.zyfzndjy
 {
 	import com.jtgh.yjpt.common.BusinessContext;
-	import com.jtgh.yjpt.common.Global;
 	import com.jtgh.yjpt.common.MyEvent;
 	import com.jtgh.yjpt.common.PrintParam;
 	import com.jtgh.yjpt.common.PrintTypes;
@@ -9,11 +8,9 @@ package com.jtgh.yjpt.model.zyfzndjy
 	import com.jtgh.yjpt.common.util.PrintUtil;
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
-	import com.jtgh.yjpt.view.jyr.Wxhwpm;
 	import com.jtgh.yjpt.view.zyfzndjy.DataList;
 	import com.jtgh.yjpt.view.zyfzndjy.FzChoose;
 	import com.jtgh.yjpt.view.zyfzndjy.GkwxhwzyfzblhhzEdit;
-	import com.jtgh.yjpt.view.zyfzndjy.GkwxhwzyfzblhhzView;
 	import com.jtgh.yjpt.view.zyfzndjy.choose.ChooseRyLayout;
 	import com.jtgh.yjpt.view.zyfzndjy.choose.ChooseYaLayout;
 	import com.jtgh.yjpt.view.zyfzndjy.choose.ChooseYjssLayout;
@@ -22,8 +19,6 @@ package com.jtgh.yjpt.model.zyfzndjy
 	import com.jtgh.yjpt.view.zyfzndjy.fzzy.SsListEdit;
 	import com.jtgh.yjpt.view.zyfzndjy.fzzy.YaListEdit;
 	import com.jtgh.yjpt.view.zyfzndjy.fzzy.ZdOneListEdit;
-	import com.jtgh.yjpt.view.zysqbp.HwpmTree;
-	import com.jtgh.yjpt.vo.common.AccessoryVo;
 	import com.jtgh.yjpt.vo.common.CodeVo;
 	import com.jtgh.yjpt.vo.jlrxxgl.GlzdxxVo;
 	import com.jtgh.yjpt.vo.jyr.JyrVo;
@@ -89,6 +84,8 @@ package com.jtgh.yjpt.model.zyfzndjy
 		public var ssIndex:Number=0;
 		/** 是否复制的附证 */
 		public var flag:Boolean=false;
+		/** 点击事件 **/
+		public var action:String="save";
 		
 		public function GkwxhwzyfzblhhzEditModel()
 		{
@@ -154,20 +151,20 @@ package com.jtgh.yjpt.model.zyfzndjy
 			if(flag){
 				doCopy(vo);
 			}
+			if(doAction == "doAdd"||doAction == "doEdit"){
+				action="save";
+			}else{
+				action="submit";
+			}
 			//文件保存
 			if(null != editView.fileListView){
 				editView.fileListView.doFileSave(vo.id);
 			}else{
-				
+				doCloseThis();
 			}
+
 			if(editView.taskModel!=null)
 				editView.taskModel.thisView.doQuery();
-			if(doAction == "doAdd"||doAction == "doEdit"){
-				Alert.show("保存成功","提示");
-			}else{
-				Alert.show("提交成功","提示");
-			}
-			doCloseThis();
 		}
 		
 		/**
@@ -184,6 +181,11 @@ package com.jtgh.yjpt.model.zyfzndjy
 		 * 窗口关闭
 		 */ 
 		public function doCloseThis():void{
+			if(action=="save"){
+				Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+			}  else if(action=="submit"){
+				Alert.show(resourceManager.getString('common','submit.success'),resourceManager.getString('common','tip'));
+			}	
 			editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 			if(editView.layoutModel!=null)
 			editView.layoutModel.doQuery(null);

+ 1 - 1
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzndjy/GkwxhwzyfzblhhzModel.as

@@ -112,7 +112,7 @@ package com.jtgh.yjpt.model.zyfzndjy
 						edit.model.ryList=bc.getAttribute("ryList") as ArrayCollection;
 						edit.model.yaList=bc.getAttribute("yaList") as ArrayCollection;
 						edit.model.ssList=bc.getAttribute("wzList") as ArrayCollection;	
-						editView.model.fzs = bc.getAttribute("fzList") as ArrayCollection; 
+						edit.model.fzs = bc.getAttribute("fzList") as ArrayCollection; 
 //						editView.hwpm.text = editView.model.concatWhpm()["hwpmStr"];
 						Utils.popupWindow("编辑", edit as DisplayObject,	FlexGlobals.topLevelApplication as DisplayObject,null,780,600);	
 					}else{

+ 6 - 8
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/model/zyfzns/GkwxhwzyfznsModel.as

@@ -8,12 +8,9 @@ package com.jtgh.yjpt.model.zyfzns
 	import com.jtgh.yjpt.common.util.Utils;
 	import com.jtgh.yjpt.model.BaseModel;
 	import com.jtgh.yjpt.model.task.TaskModel;
-	import com.jtgh.yjpt.view.task.TaskLayout;
-	import com.jtgh.yjpt.view.zyfzndjy.GkwxhwzyfzblhhzEdit;
 	import com.jtgh.yjpt.view.zyfzns.DataList;
 	import com.jtgh.yjpt.view.zyfzns.GkwxhwzyfznsAudit;
 	import com.jtgh.yjpt.view.zyfzns.GkwxhwzyfznsEdit;
-	import com.jtgh.yjpt.view.zyfzns.GkwxhwzyfznsLayout;
 	import com.jtgh.yjpt.view.zyfzns.GkwxhwzyfznsView;
 	import com.jtgh.yjpt.vo.common.CodeVo;
 	import com.jtgh.yjpt.vo.common.SinglePageRequestVo;
@@ -54,6 +51,7 @@ package com.jtgh.yjpt.model.zyfzns
 		public var editView:Object;
 		public var thisData:GkwxhwzyfznsVo;
 		public var thisDataList:ArrayCollection;
+		public var action:String="save";
 		public static var instance:GkwxhwzyfznsModel=new GkwxhwzyfznsModel();
 		public function GkwxhwzyfznsModel()
 		{
@@ -512,17 +510,17 @@ package com.jtgh.yjpt.model.zyfzns
 				return;
 			}else if(doAction == "doAdd"||doAction == "doEdit"||doAction == "submitAdd"||doAction == "submitEdit"){
 				if(bc.getAttribute("success")){
+					thisData=bc.getAttribute("record") as GkwxhwzyfznsVo;
 					if(doAction == "doAdd"||doAction == "doEdit"){
-						Alert.show("保存成功","提示");
+						action="save";
 					}else{
-						Alert.show("提交成功","提示");
+						action="submit";
 					}
-					thisData=bc.getAttribute("record") as GkwxhwzyfznsVo;
 					if(null != editView.fileListView){
 						editView.fileListView.doFileSave(thisData.id);
 					}else{
-						editView.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
-					}
+						doCloseThis();
+					}			
 					if(editView.taskModel!=null){
 						editView.taskModel.thisView.doQuery();
 //					if(editView==null&&instance.editView!=null){

+ 3 - 4
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/aqsszxyssc/FileList.mxml

@@ -108,12 +108,11 @@
 				if(deleteFileList.length>0){
 					Utils.callRemote("accessoryController","delete",function (r:ResultEvent):void
 					{
-						doFileSave_save(id);
-						
+						//doFileSave_save(id);						
 					},deleteFileList);
-				}else{
-					doFileSave_save(id);
 				}
+				doFileSave_save(id);
+
 			}
 			
 			/**

+ 0 - 12
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/aqpjbgjzgfalsba/AqpjbgjzgfalsbaAudit.mxml

@@ -11,30 +11,18 @@
 	<fx:Script>
 		<![CDATA[
 			import com.adobe.utils.StringUtil;
-			import com.jtgh.yjpt.common.BusinessContext;
 			import com.jtgh.yjpt.common.Global;
-			import com.jtgh.yjpt.common.TypeBase;
 			import com.jtgh.yjpt.common.util.Constants;
 			import com.jtgh.yjpt.common.util.Utils;
 			import com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba.AqpjbgjzgfalsbaEditModel;
 			import com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba.AqpjbgjzgfalsbaModel;
 			import com.jtgh.yjpt.model.task.TaskModel;
 			import com.jtgh.yjpt.vo.bagl.aqpjbgjzgfalsba.AqpjbgjzgfalsbaVo;
-			import com.jtgh.yjpt.vo.bagl.aqpjbgjzgfalsba.PjzcyjbqkVo;
 			import com.jtgh.yjpt.vo.common.AccessoryVo;
-			import com.jtgh.yjpt.vo.common.CodeVo;
-			import com.jtgh.yjpt.vo.gkgq.GqVo;
-			import com.jtgh.yjpt.vo.jyr.JyrVo;
-			import com.jtgh.yjpt.vo.jyrxxgl.JyrxxglVo;
 			
-			import mx.collections.ArrayCollection;
 			import mx.controls.Alert;
-			import mx.core.UIComponent;
 			import mx.events.CloseEvent;
 			import mx.events.FlexEvent;
-			import mx.rpc.events.ResultEvent;
-			
-			import spark.events.IndexChangeEvent;
 			
 			[Bindable]
 			public var vo:AqpjbgjzgfalsbaVo=new AqpjbgjzgfalsbaVo();		

+ 0 - 11
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/aqpjbgjzgfalsba/AqpjbgjzgfalsbaEdit.mxml

@@ -10,28 +10,17 @@
 	<fx:Script>
 		<![CDATA[
 			import com.adobe.utils.StringUtil;
-			import com.jtgh.yjpt.vo.jyrxxgl.JyrbwxxVo;
-			import com.jtgh.yjpt.common.BusinessContext;
 			import com.jtgh.yjpt.common.Global;
-			import com.jtgh.yjpt.common.TypeBase;
 			import com.jtgh.yjpt.common.util.Constants;
-			import com.jtgh.yjpt.common.util.Utils;
 			import com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba.AqpjbgjzgfalsbaEditModel;
 			import com.jtgh.yjpt.model.bagl.aqpjbgjzgfalsba.AqpjbgjzgfalsbaModel;
 			import com.jtgh.yjpt.vo.bagl.aqpjbgjzgfalsba.AqpjbgjzgfalsbaVo;
-			import com.jtgh.yjpt.vo.bagl.aqpjbgjzgfalsba.PjzcyjbqkVo;
 			import com.jtgh.yjpt.vo.common.CodeVo;
 			import com.jtgh.yjpt.vo.gkgq.GqVo;
 			import com.jtgh.yjpt.vo.jyr.JyrVo;
-			import com.jtgh.yjpt.vo.jyrxxgl.JyrxxglVo;
 			
-			import mx.collections.ArrayCollection;
 			import mx.controls.Alert;
-			import mx.core.UIComponent;
 			import mx.events.FlexEvent;
-			import mx.rpc.events.ResultEvent;
-			
-			import spark.events.IndexChangeEvent;
 			
 			[Bindable]
 			public var vo:AqpjbgjzgfalsbaVo=new AqpjbgjzgfalsbaVo();		

+ 0 - 3
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/bagl/jdhxpandzdwxyba/JdhxpZdwxyBadjEdit.mxml

@@ -12,12 +12,9 @@
 			import com.jtgh.yjpt.common.Global;
 			import com.jtgh.yjpt.common.util.Constants;
 			import com.jtgh.yjpt.common.util.Utils;
-			import com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba.JdhxpZdwxyBadjModel;
-			import com.jtgh.yjpt.model.bagl.jdhxpandzdwxyba.ZdwxybaModel;
 			import com.jtgh.yjpt.vo.bagl.jdhxpandzdwxyba.GqnwxydjbabVo;
 			import com.jtgh.yjpt.vo.bagl.jdhxpandzdwxyba.GqnwxyzlbVo;
 			import com.jtgh.yjpt.vo.jyr.JyrVo;
-			import com.jtgh.yjpt.vo.jyrxxgl.JyrxxglVo;
 			
 			import mx.controls.Alert;
 			import mx.events.FlexEvent;

+ 2 - 7
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/yjgl/yjpx/YjpxEdit.mxml

@@ -16,17 +16,13 @@
 			import com.jtgh.yjpt.vo.common.CodeVo;
 			import com.jtgh.yjpt.vo.gkgq.GqVo;
 			import com.jtgh.yjpt.vo.jyr.JyrVo;
-			import com.jtgh.yjpt.vo.jyrxxgl.JyrxxglVo;
 			import com.jtgh.yjpt.vo.yjgl.YjpxVo;
-			import com.smapp.sg186.appframework.datamodel.basic.Field;
 			
 			import mx.collections.ArrayCollection;
 			import mx.controls.Alert;
-			import mx.core.Container;
 			import mx.events.CloseEvent;
 			import mx.events.FlexEvent;
 			import mx.events.ListEvent;
-			import mx.managers.PopUpManager;
 			import mx.rpc.events.ResultEvent;
 			import mx.utils.StringUtil;
 			
@@ -144,8 +140,7 @@
 				if(fjfiles!=null)
 					fjfiles.doFileSave(editVo.id);
 				else
-					thisView.dispatchEvent(new CloseEvent(Event.CLOSE));
-				thisModel.refresh();
+					thisModel.doCloseThis();
 			}
 
 			/***
@@ -211,7 +206,7 @@
 					editVo=bc.getAttribute("record") as YjpxVo;
 					if(success){
 						zpOnSelected2();
-						Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+						//Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 					}
 					thisModel.refresh();
 				},editVo,functionId);

+ 1 - 3
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/yjgl/yjyl/YjylEdit.mxml

@@ -13,7 +13,6 @@
 			import com.jtgh.yjpt.common.util.Constants;
 			import com.jtgh.yjpt.common.util.Utils;
 			import com.jtgh.yjpt.model.yjgl.YjylModel;
-			import com.jtgh.yjpt.view.yjgl.yjpx.YjpxLayout;
 			import com.jtgh.yjpt.vo.common.CodeVo;
 			import com.jtgh.yjpt.vo.gkgq.GqVo;
 			import com.jtgh.yjpt.vo.jyr.JyrVo;
@@ -143,8 +142,7 @@
 				if(fjfiles!=null)
 					fjfiles.doFileSave(editVo.id);
 				else
-					editView.dispatchEvent(new CloseEvent(Event.CLOSE));
-				thisModel.refresh();
+					thisModel.doCloseThis();
 			}
 			
 			/***

+ 2 - 6
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/yjgl/yjyx/YjyxEdit.mxml

@@ -12,15 +12,12 @@
 			import com.jtgh.yjpt.common.Global;
 			import com.jtgh.yjpt.common.util.Constants;
 			import com.jtgh.yjpt.common.util.Utils;
-			import com.jtgh.yjpt.model.yjgl.YjpxModel;
 			import com.jtgh.yjpt.model.yjgl.YjyxModel;
 			import com.jtgh.yjpt.vo.common.CodeVo;
 			import com.jtgh.yjpt.vo.gkgq.GqVo;
-			import com.jtgh.yjpt.vo.jyr.JyrVo;
 			import com.jtgh.yjpt.vo.yjgl.YjyxVo;
 			
 			import mx.collections.ArrayCollection;
-			import mx.controls.Alert;
 			import mx.core.Container;
 			import mx.events.CloseEvent;
 			import mx.events.ListEvent;
@@ -167,7 +164,7 @@
 					editVo=bc.getAttribute("record") as YjyxVo;
 					if(success){
 						zpOnSelected1();
-						Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
+						//Alert.show(resourceManager.getString('common','save.success'),resourceManager.getString('common','tip'));
 					}
 					thisModel.refresh();
 				},editVo,functionId);
@@ -313,8 +310,7 @@
 				if(fjfiles!=null)
 					fjfiles.doFileSave(editVo.id);
 				else
-					editView.dispatchEvent(new CloseEvent(Event.CLOSE));
-				thisModel.refresh();
+					thisModel.doCloseThis();
 			}
 			
 		]]>

+ 4 - 3
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/zyfzhz/GkwxhwzyfzhzEdit.mxml

@@ -15,15 +15,12 @@
 			import com.jtgh.yjpt.common.util.Utils;
 			import com.jtgh.yjpt.model.task.TaskModel;
 			import com.jtgh.yjpt.model.zyfzhz.GkwxhwzyfzhzModel;
-			import com.jtgh.yjpt.model.zyfzns.GkwxhwzyfznsModel;
 			import com.jtgh.yjpt.vo.zyfzhz.GkwxhwzyfzhzVo;
 			import com.jtgh.yjpt.vo.zyfzndjy.Gkwxhwzyfzbl_fzVo;
 			import com.jtgh.yjpt.vo.zyfzndjy.GkwxhwzyfzblhhzVo;
 			
 			import mx.collections.ArrayCollection;
 			import mx.controls.Alert;
-			import mx.controls.Image;
-			import mx.events.CloseEvent;
 			import mx.events.FlexEvent;
 			import mx.rpc.events.ResultEvent;
 			
@@ -104,11 +101,15 @@
 			
 			private function doSave(e:Event):void{
 				if(getVo()){
+					saveBtn.enabled=false;
+					submitBtn.enabled=false;
 					model.doSave(thisVo,vo);
 				}
 			}
 			private function doSubmit(e:Event):void{
 				if(getVo()){
+					saveBtn.enabled=false;
+					submitBtn.enabled=false;
 					model.doSubmit(thisVo,vo);
 				}
 			}

+ 2 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/zyfzndjy/GkwxhwzyfzblhhzEdit.mxml

@@ -92,6 +92,7 @@
 					}
 					//防止重复提交
 					btnSave.enabled=false;
+					btnSubmit.enabled=false;
 					model.doSave();
 				}
 			}
@@ -104,6 +105,7 @@
 						doCopy();
 					}
 					//防止重复提交
+					btnSave.enabled=false;
 					btnSubmit.enabled=false;
 					model.doSubmit();
 				}

+ 1 - 2
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/zyfzns/GkwxhwzyfznsEdit.mxml

@@ -19,7 +19,6 @@
 			
 			import mx.collections.ArrayCollection;
 			import mx.controls.Alert;
-			import mx.controls.Image;
 			import mx.events.CloseEvent;
 			import mx.events.FlexEvent;
 			import mx.rpc.events.ResultEvent;
@@ -120,7 +119,7 @@
 			 * 窗口关闭
 			 */ 
 			public function doClose(e:Event):void{
-				dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
+				this.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
 				thisModel.doQuery(null);
 			}
 		]]>