protected function ftyyFindAllHandler(event:ResultEvent):void{
_gzyy = event.result as ArrayCollection;
if(_gzyy.length>0)
for(var i:int=0;i<_gzyy.length;i++){
var m:GzyyModel=_gzyy.getItemAt(i) as GzyyModel;
var checkbox:CheckBox=new CheckBox();
checkbox.label=m.gzyymc;
checkbox.name=m.gzyym;
_checkList.addItem(checkbox);
gzyyGroup.addElement(checkbox);
}
}
protected function btn_add_clickHandler(event:MouseEvent):void
{
if(checkData())
{
var model:JxjModel=new JxjModel();
model.jxjmcm=ddl_jxjmc.selectedItem.jxjmcm;
model.jxjmc=ddl_jxjmc.selectedItem.jxjmc;
model.bzwh=StringUtil.trim(txtipt_bzwh.text);
model.bzrq=StringUtil.trim(datefld_jxjrq.text);
model.zzje=StringUtil.trim(txtipt_zzje.text);
model.bzsm=StringUtil.trim(txtipt_bzsm.text);
model.jxjdjm=ddl_jxjdj.selectedItem.jxjdjm;
model.jxjdjmc=ddl_jxjdj.selectedItem.jxjdjmc;
model.jxjlxm=ddl_jxjlx.selectedItem.jxjlxm;
model.jxjlxmc=ddl_jxjlx.selectedItem.jxjlxmc;
model.fbryxsh=YhModel._cjyxsh;
model.fbrzgh=YhModel._yhh;
model.yxsh=queryView.ddl_yxs.selectedItem.yxsh;
model.yxsjc=queryView.ddl_yxs.selectedItem.yxsjc;
model.zyh=queryView.ddl_zy.selectedItem.zyh;
model.bh=queryView.ddl_bj.selectedItem.bh;
model.xh=queryView._obj.xh;
model.nj=queryView._obj.nj;
//级联表中字段
model.bjmc=queryView.ddl_bj.selectedItem.bjmc;
model.xm=queryView.btn_xzxs.label;
_data.addItem(model);
if(btn_submit.enabled==false)
btn_submit.enabled=true;
queryView.clearXs();
}
}