git-svn-id: https://192.168.57.71/svn/jsgkj@172 931142cf-59ea-a443-aa0e-51397b428577
@@ -84,15 +84,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;
@@ -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;