|
@@ -73,7 +73,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
|
|
|
|
import spark.components.gridClasses.GridColumn;
|
|
import spark.components.gridClasses.GridColumn;
|
|
import spark.events.GridSortEvent;
|
|
import spark.events.GridSortEvent;
|
|
-
|
|
|
|
|
|
+
|
|
[Bindable]
|
|
[Bindable]
|
|
public class ShbpModel extends BaseModel
|
|
public class ShbpModel extends BaseModel
|
|
{
|
|
{
|
|
@@ -104,15 +104,15 @@ package com.jtgh.yjpt.model.zysqbp
|
|
thisView.add.addEventListener(MouseEvent.CLICK,toAdd);
|
|
thisView.add.addEventListener(MouseEvent.CLICK,toAdd);
|
|
thisView.edit.addEventListener(MouseEvent.CLICK, toEdit);
|
|
thisView.edit.addEventListener(MouseEvent.CLICK, toEdit);
|
|
thisView.del.addEventListener(MouseEvent.CLICK, doDel);
|
|
thisView.del.addEventListener(MouseEvent.CLICK, doDel);
|
|
-// if(view is ZysqbpLayout)
|
|
|
|
|
|
+ // if(view is ZysqbpLayout)
|
|
thisView.query.addEventListener(MouseEvent.CLICK,switchSearchBox);
|
|
thisView.query.addEventListener(MouseEvent.CLICK,switchSearchBox);
|
|
thisView.print.addEventListener(MouseEvent.CLICK,doPrint);
|
|
thisView.print.addEventListener(MouseEvent.CLICK,doPrint);
|
|
|
|
|
|
|
|
|
|
-// thisView.wfHistory.addEventListener(MouseEvent.CLICK,doWfHistory);
|
|
|
|
|
|
+ // thisView.wfHistory.addEventListener(MouseEvent.CLICK,doWfHistory);
|
|
thisView.qxzy.addEventListener(MouseEvent.CLICK,doQxzy);
|
|
thisView.qxzy.addEventListener(MouseEvent.CLICK,doQxzy);
|
|
thisView.bgzy.addEventListener(MouseEvent.CLICK,doBgzy);
|
|
thisView.bgzy.addEventListener(MouseEvent.CLICK,doBgzy);
|
|
-// thisView.displayhs.addEventListener(MouseEvent.CLICK,doDisplayHS);
|
|
|
|
|
|
+ // thisView.displayhs.addEventListener(MouseEvent.CLICK,doDisplayHS);
|
|
thisView.copy.addEventListener(MouseEvent.CLICK,doCopy);
|
|
thisView.copy.addEventListener(MouseEvent.CLICK,doCopy);
|
|
doQuery(null);
|
|
doQuery(null);
|
|
if(!Global.user.jyr ){//非经营人特有的按钮
|
|
if(!Global.user.jyr ){//非经营人特有的按钮
|
|
@@ -351,14 +351,11 @@ package com.jtgh.yjpt.model.zysqbp
|
|
{
|
|
{
|
|
sfsbList = bc.getAttribute("sfsbList") as ArrayCollection;
|
|
sfsbList = bc.getAttribute("sfsbList") as ArrayCollection;
|
|
thisDataList = bc.getAttribute("records") as ArrayCollection;
|
|
thisDataList = bc.getAttribute("records") as ArrayCollection;
|
|
- var btgs:int = bc.getAttribute("btgs") as int;
|
|
|
|
- var ths:int = bc.getAttribute("ths") as int;
|
|
|
|
- text="不通过"+"<font color='#ff0000'>" + btgs + "</font>" + "条,退回"+
|
|
|
|
- "<font color='#ff0000'>" + ths + "</font>" + "条";
|
|
|
|
- thisView.pager.pageVo.totalCount = bc.getAttribute("totalCount") as int;
|
|
|
|
|
|
+ thisView.pager.pageVo.totalCount = bc.getAttribute("totalCount") as int;
|
|
|
|
+ queryBty();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if(doAction == "listNoFlow"){
|
|
|
|
|
|
+ else if(doAction == "listNoFlow"){
|
|
sfsbList = bc.getAttribute("sfsbList") as ArrayCollection;
|
|
sfsbList = bc.getAttribute("sfsbList") as ArrayCollection;
|
|
thisDataList = bc.getAttribute("records") as ArrayCollection;
|
|
thisDataList = bc.getAttribute("records") as ArrayCollection;
|
|
thisView.pager.pageVo.totalCount = bc.getAttribute("totalCount") as int;
|
|
thisView.pager.pageVo.totalCount = bc.getAttribute("totalCount") as int;
|
|
@@ -368,6 +365,13 @@ package com.jtgh.yjpt.model.zysqbp
|
|
{
|
|
{
|
|
doQuery(null);
|
|
doQuery(null);
|
|
return;
|
|
return;
|
|
|
|
+ } else if(doAction == "countStatus"){
|
|
|
|
+ var btgs:int = bc.getAttribute("btgs") as int;
|
|
|
|
+ var ths:int = bc.getAttribute("ths") as int;
|
|
|
|
+ text="不通过"+"<font color='#ff0000'>" + btgs + "</font>" + "条,退回"+
|
|
|
|
+ "<font color='#ff0000'>" + ths + "</font>" + "条";
|
|
|
|
+ thisView.pager.extraText=text;
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -388,11 +392,12 @@ package com.jtgh.yjpt.model.zysqbp
|
|
thisView.zysblayout.visible=false;
|
|
thisView.zysblayout.visible=false;
|
|
thisView.hssblayout.model.doQuery(null);
|
|
thisView.hssblayout.model.doQuery(null);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 分页
|
|
* 分页
|
|
*/
|
|
*/
|
|
private var queryByFlowDisplay:Boolean = false;
|
|
private var queryByFlowDisplay:Boolean = false;
|
|
|
|
+
|
|
public function pageQuery(pager:SinglePageRequestVo):void
|
|
public function pageQuery(pager:SinglePageRequestVo):void
|
|
{
|
|
{
|
|
var queryOperation:String;
|
|
var queryOperation:String;
|
|
@@ -416,7 +421,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
if(undefined != thisView.query_rwzt.selectedItem && ""!=thisView.query_rwzt.selectedItem.id){
|
|
if(undefined != thisView.query_rwzt.selectedItem && ""!=thisView.query_rwzt.selectedItem.id){
|
|
vo.recordStatus =new Number(thisView.query_rwzt.selectedItem.id);
|
|
vo.recordStatus =new Number(thisView.query_rwzt.selectedItem.id);
|
|
}
|
|
}
|
|
-// vo.jcg=thisView.jcg.text;
|
|
|
|
|
|
+ // vo.jcg=thisView.jcg.text;
|
|
//根据流程状态查询
|
|
//根据流程状态查询
|
|
var lcStatus:String = "";
|
|
var lcStatus:String = "";
|
|
if(queryByFlowDisplay){
|
|
if(queryByFlowDisplay){
|
|
@@ -444,6 +449,65 @@ package com.jtgh.yjpt.model.zysqbp
|
|
thisView.query_shr.text,thisView.query_gkdw.text
|
|
thisView.query_shr.text,thisView.query_gkdw.text
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询不同意数和退回数
|
|
|
|
+ */
|
|
|
|
+ public function queryBty():void
|
|
|
|
+ {
|
|
|
|
+ var queryOperation:String;
|
|
|
|
+ //查询一览
|
|
|
|
+ var vo:ZysqbpVo = new ZysqbpVo();
|
|
|
|
+ if(null !=thisView.query_gk.selectedVO&&"NaN"!=(thisView.query_gk.selectedVO as CodeVo).id.toString()){
|
|
|
|
+ vo.szd = thisView.query_gk.selectedVO as CodeVo;
|
|
|
|
+ }
|
|
|
|
+ if(null != thisView.query_gq.selectedVO){
|
|
|
|
+ vo.szgq = thisView.query_gq.selectedVO as GqVo;
|
|
|
|
+ }
|
|
|
|
+ if(null!=thisView.query_gkdw2.selectedVO){
|
|
|
|
+ vo.zydw = thisView.query_gkdw2.selectedVO as JyrVo;
|
|
|
|
+ }
|
|
|
|
+ vo.bh = thisView.query_bh.text;
|
|
|
|
+ vo.mao = thisView.mao.textValue as String;
|
|
|
|
+ vo.cm = thisView.query_hmhc.text;
|
|
|
|
+ vo.wxwpmc = thisView.query_hwpmbh.text;
|
|
|
|
+ vo.wxhwmcbh = thisView.query_hwpm.text;
|
|
|
|
+ vo.recordStatus=9;
|
|
|
|
+ if(undefined != thisView.query_rwzt.selectedItem && ""!=thisView.query_rwzt.selectedItem.id){
|
|
|
|
+ vo.recordStatus =new Number(thisView.query_rwzt.selectedItem.id);
|
|
|
|
+ }
|
|
|
|
+ // vo.jcg=thisView.jcg.text;
|
|
|
|
+ //根据流程状态查询
|
|
|
|
+ var lcStatus:String = "";
|
|
|
|
+ if(queryByFlowDisplay){
|
|
|
|
+ if(Global.deployMode=="0"){//省级 只能点击省级部分的节点
|
|
|
|
+ if(selectedNodeName!= "查询与统计"&&selectedNodeName!="入库"){
|
|
|
|
+ return;
|
|
|
|
+ }else{
|
|
|
|
+ lcStatus = selectedNodeName;
|
|
|
|
+ }
|
|
|
|
+ }else{//市级只能点击所在地和经营人的节点
|
|
|
|
+ if(selectedNodeName == "zdsgyhpc_cxtj"||selectedNodeName=="查询"){
|
|
|
|
+
|
|
|
|
+ }else if(selectedNodeName== "查询与统计"||selectedNodeName=="入库"){
|
|
|
|
+ return;
|
|
|
|
+ }else{
|
|
|
|
+ lcStatus = selectedNodeName;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ Utils.callRemote("zysqbpController","countStatus",resultCallback,
|
|
|
|
+ Utils.getFunctionId(thisView),vo,lcStatus,
|
|
|
|
+ thisView.query_bgsj_1.dateTime,thisView.query_bgsj_2.dateTime,
|
|
|
|
+ thisView.query_kgsj_1.dateTime,thisView.query_kgsj_2.dateTime,
|
|
|
|
+ thisView.query_wgsj_1.dateTime,thisView.query_wgsj_2.dateTime,
|
|
|
|
+ thisView.query_shr.text,thisView.query_gkdw.text
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 打印
|
|
|
|
+ */
|
|
public function doPrint(e:Event):void{
|
|
public function doPrint(e:Event):void{
|
|
var vo:ZysqbpVo;
|
|
var vo:ZysqbpVo;
|
|
vo=new ZysqbpVo;
|
|
vo=new ZysqbpVo;
|
|
@@ -548,10 +612,10 @@ package com.jtgh.yjpt.model.zysqbp
|
|
if(vo.recordStatus!=Constants.RECORD_STATE_COMPLETED&&vo.recordStatus!=Constants.RECORD_STATE_BGCOMPLETED)
|
|
if(vo.recordStatus!=Constants.RECORD_STATE_COMPLETED&&vo.recordStatus!=Constants.RECORD_STATE_BGCOMPLETED)
|
|
return "";
|
|
return "";
|
|
else{
|
|
else{
|
|
- if(vo.kgzt=='N')
|
|
|
|
- return "未开工";
|
|
|
|
- else if(vo.kgzt=='Y')
|
|
|
|
- return "已开工";
|
|
|
|
|
|
+ if(vo.kgzt=='N')
|
|
|
|
+ return "未开工";
|
|
|
|
+ else if(vo.kgzt=='Y')
|
|
|
|
+ return "已开工";
|
|
}
|
|
}
|
|
return "";
|
|
return "";
|
|
}
|
|
}
|
|
@@ -570,8 +634,8 @@ package com.jtgh.yjpt.model.zysqbp
|
|
//开工按钮是否可点
|
|
//开工按钮是否可点
|
|
public function KgEnble(vo:ZysqbpVo):Boolean
|
|
public function KgEnble(vo:ZysqbpVo):Boolean
|
|
{
|
|
{
|
|
-// if(Global.user.id!=vo.addUser.id)
|
|
|
|
-// return false;
|
|
|
|
|
|
+ // if(Global.user.id!=vo.addUser.id)
|
|
|
|
+ // return false;
|
|
//数据为完成或者变更完成状态并且 当前不是经营人,可以查看修改保存
|
|
//数据为完成或者变更完成状态并且 当前不是经营人,可以查看修改保存
|
|
if((vo.recordStatus==Constants.RECORD_STATE_COMPLETED||vo.recordStatus==Constants.RECORD_STATE_BGCOMPLETED)&&(Global.user.sfjyr==YesNoSelect.NO)){
|
|
if((vo.recordStatus==Constants.RECORD_STATE_COMPLETED||vo.recordStatus==Constants.RECORD_STATE_BGCOMPLETED)&&(Global.user.sfjyr==YesNoSelect.NO)){
|
|
return true;
|
|
return true;
|
|
@@ -604,7 +668,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
view.vo=vo;
|
|
view.vo=vo;
|
|
view.model=this;
|
|
view.model=this;
|
|
Utils.popupWindow("开工情况", view, FlexGlobals.topLevelApplication as DisplayObject, thisView.pager.doQuery, 600, 300);
|
|
Utils.popupWindow("开工情况", view, FlexGlobals.topLevelApplication as DisplayObject, thisView.pager.doQuery, 600, 300);
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
/**完工按钮处理事件*/
|
|
/**完工按钮处理事件*/
|
|
public function WgHandle(vo:ZysqbpVo):void
|
|
public function WgHandle(vo:ZysqbpVo):void
|
|
@@ -642,8 +706,8 @@ package com.jtgh.yjpt.model.zysqbp
|
|
editView.model = this;
|
|
editView.model = this;
|
|
Utils.popupWindow("审核",editView as DisplayObject,FlexGlobals.topLevelApplication as DisplayObject);
|
|
Utils.popupWindow("审核",editView as DisplayObject,FlexGlobals.topLevelApplication as DisplayObject);
|
|
},id)
|
|
},id)
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -732,7 +796,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
if(vo.recordStatus!=Constants.RECORD_STATE_VALID
|
|
if(vo.recordStatus!=Constants.RECORD_STATE_VALID
|
|
- &&vo.recordStatus!=Constants.RECORD_STATE_SUBMIT){
|
|
|
|
|
|
+ &&vo.recordStatus!=Constants.RECORD_STATE_SUBMIT){
|
|
Alert.show(instance.resourceManager.getString("common","state.shz"),resourceManager.getString("common","tip"));
|
|
Alert.show(instance.resourceManager.getString("common","state.shz"),resourceManager.getString("common","tip"));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -741,7 +805,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- return true
|
|
|
|
|
|
+ return true
|
|
}
|
|
}
|
|
//统计查询
|
|
//统计查询
|
|
/** 统计处理 */
|
|
/** 统计处理 */
|
|
@@ -786,31 +850,31 @@ package com.jtgh.yjpt.model.zysqbp
|
|
Alert.show("该数据已进行开工,不能变更!","提示");
|
|
Alert.show("该数据已进行开工,不能变更!","提示");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-// var dif:Number;
|
|
|
|
-// if(zysqbp.xsscTask!=null){
|
|
|
|
-// dif = (Number(new Date)-Number(zysqbp.xsscTask.auditTime))/3600000;
|
|
|
|
-//
|
|
|
|
-// }else{
|
|
|
|
-// dif = (Number(new Date)-Number(zysqbp.zdspTask.auditTime))/3600000;
|
|
|
|
-// }
|
|
|
|
-// if(dif>48000){
|
|
|
|
-// Alert.show("超出法规时限期限","提示");
|
|
|
|
-// return;
|
|
|
|
-// }
|
|
|
|
-// Alert.show("确认取消作业?","提示",Alert.YES | Alert.NO,null,
|
|
|
|
-// function (closeEvt:CloseEvent):void
|
|
|
|
-// {
|
|
|
|
-// if(closeEvt.detail == Alert.YES){
|
|
|
|
-// Utils.callRemote("zysqbpController","doQxzy",function(r:ResultEvent):void{
|
|
|
|
-// var bc:BusinessContext = r.result as BusinessContext;
|
|
|
|
-// if(bc.getAttribute("info")=="success"){
|
|
|
|
-// Alert.show("取消提交成功,请等待审核","提示");
|
|
|
|
-// doQuery(null);
|
|
|
|
-// }
|
|
|
|
-// },zysqbp);
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// );
|
|
|
|
|
|
+ // var dif:Number;
|
|
|
|
+ // if(zysqbp.xsscTask!=null){
|
|
|
|
+ // dif = (Number(new Date)-Number(zysqbp.xsscTask.auditTime))/3600000;
|
|
|
|
+ //
|
|
|
|
+ // }else{
|
|
|
|
+ // dif = (Number(new Date)-Number(zysqbp.zdspTask.auditTime))/3600000;
|
|
|
|
+ // }
|
|
|
|
+ // if(dif>48000){
|
|
|
|
+ // Alert.show("超出法规时限期限","提示");
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // Alert.show("确认取消作业?","提示",Alert.YES | Alert.NO,null,
|
|
|
|
+ // function (closeEvt:CloseEvent):void
|
|
|
|
+ // {
|
|
|
|
+ // if(closeEvt.detail == Alert.YES){
|
|
|
|
+ // Utils.callRemote("zysqbpController","doQxzy",function(r:ResultEvent):void{
|
|
|
|
+ // var bc:BusinessContext = r.result as BusinessContext;
|
|
|
|
+ // if(bc.getAttribute("info")=="success"){
|
|
|
|
+ // Alert.show("取消提交成功,请等待审核","提示");
|
|
|
|
+ // doQuery(null);
|
|
|
|
+ // }
|
|
|
|
+ // },zysqbp);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // );
|
|
var view:QxEdit = new QxEdit;
|
|
var view:QxEdit = new QxEdit;
|
|
view.model=this;
|
|
view.model=this;
|
|
view.vo = zysqbp;
|
|
view.vo = zysqbp;
|
|
@@ -859,10 +923,10 @@ package com.jtgh.yjpt.model.zysqbp
|
|
}else{
|
|
}else{
|
|
dif = (Number(new Date)-Number(zysqbp.zdspTask.auditTime))/3600000;
|
|
dif = (Number(new Date)-Number(zysqbp.zdspTask.auditTime))/3600000;
|
|
}
|
|
}
|
|
-// if(dif>48000){
|
|
|
|
-// Alert.show("超出法规时限期限","提示");
|
|
|
|
-// return;
|
|
|
|
-// }
|
|
|
|
|
|
+ // if(dif>48000){
|
|
|
|
+ // Alert.show("超出法规时限期限","提示");
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
var view:BgEdit = new BgEdit();
|
|
var view:BgEdit = new BgEdit();
|
|
view.model=this;
|
|
view.model=this;
|
|
view.vo = zysqbp;
|
|
view.vo = zysqbp;
|
|
@@ -956,7 +1020,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
if((item as ZysqbpVo).bgsj!=null &&
|
|
if((item as ZysqbpVo).bgsj!=null &&
|
|
((item as ZysqbpVo).kgzt=="N"||(item as ZysqbpVo).wgzt=="N")&&
|
|
((item as ZysqbpVo).kgzt=="N"||(item as ZysqbpVo).wgzt=="N")&&
|
|
((item as ZysqbpVo).recordStatus==Constants.RECORD_STATE_COMPLETED||
|
|
((item as ZysqbpVo).recordStatus==Constants.RECORD_STATE_COMPLETED||
|
|
- (item as ZysqbpVo).recordStatus==Constants.RECORD_STATE_BGCOMPLETED)) {
|
|
|
|
|
|
+ (item as ZysqbpVo).recordStatus==Constants.RECORD_STATE_BGCOMPLETED)) {
|
|
var tempDate:Date = new Date();
|
|
var tempDate:Date = new Date();
|
|
tempDate["date"]-=Constants.ZYSB_LIMIT;
|
|
tempDate["date"]-=Constants.ZYSB_LIMIT;
|
|
if(ObjectUtil.dateCompare((item as ZysqbpVo).bgsj,tempDate)<0)
|
|
if(ObjectUtil.dateCompare((item as ZysqbpVo).bgsj,tempDate)<0)
|
|
@@ -1030,7 +1094,7 @@ package com.jtgh.yjpt.model.zysqbp
|
|
Utils.popupWindow("法人行政许可",view,FlexGlobals.topLevelApplication as DisplayObject,null,1250,550);
|
|
Utils.popupWindow("法人行政许可",view,FlexGlobals.topLevelApplication as DisplayObject,null,1250,550);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 显示消息
|
|
* 显示消息
|