|
@@ -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));
|
|
|
}
|
|
|
|