????

Your IP : 13.58.192.154


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/63.c94a61e6a50c69a00247.js

(function(){var n={},l=this||window,e=l.webpackJsonp=l.webpackJsonp||[];e.registerAbsMids?e.registerAbsMids(n):(e.absMidsWaiting=e.absMidsWaiting||[]).push(n)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{"+U54":function(n,l,e){"use strict";e.d(l,"a",(function(){return i}));var t=e("8Y7J"),i=function(){function n(n){this.service=n,this.columns=[],this.rows=[],this.selectedPage=0,this.mucDichSDD=[],this.tinhTrang=[],this.changePage=new t.EventEmitter,this.selectionFilter=new t.EventEmitter}return n.prototype.ngOnChanges=function(){var n=this.show&&Math.ceil(this.count/this.show);this.page=Array(n).fill("").map((function(n,l){return l}))},n.prototype.ngOnInit=function(){this.mucDichSDD=this.service.getField("MucDichSDD").domain.codedValues,this.tinhTrang=this.service.getField("DaSD").domain.codedValues},n.prototype.selectionChange=function(n){this.selectedPage=n,this.changePage.emit(n)},n.prototype.showOderNumber=function(n){return n+1+this.selectedPage*this.show},n.prototype.selectedMucDichSDD=function(n){this.mucDichSDDVal=n.value,this.selectionFilter.emit({MucDichSDD:n.value,DaSD:this.tinhTrangVal})},n.prototype.selectedTinhTrang=function(n){this.tinhTrangVal=n.value,this.selectionFilter.emit({MucDichSDD:this.mucDichSDDVal,DaSD:n.value})},n}()},ET74:function(n,l,e){"use strict";e.d(l,"a",(function(){return t}));var t=function(){function n(){this.data=[],this.view=[500,300],this.gradient=!1,this.showLegend=!0,this.showLabels=!0,this.isDoughnut=!0,this.legendPosition="below",this.legendTitle="Bi\u1ec3u \u0111\u1ed3 th\u1ec3 hi\u1ec7n di\u1ec7n t\xedch \u0111\u1ea5t",this.trimLabels=!1,this.colorScheme={domain:["#17b978","#f44336"]}}return n.prototype.ngOnInit=function(){},n}()},MUlb:function(n,l,e){"use strict";e.d(l,"a",(function(){return w}));var t=e("gPSA"),i=e("Zvuv"),u=e.n(i),a=e("tpwP"),o=e("qb7p"),r=e.n(o),h=e("KQcO"),s=e.n(h),c=e("Z91k"),d=e.n(c),p=e("n2/0"),g=e.n(p),f=e("osTG"),m=e.n(f),v=e("x7Wq"),D=e.n(v),w=function(){function n(n,l,e,t,i,u,a){this.service=n,this.titleService=l,this.router=e,this.activatedRoute=t,this.quyHoachSDDService=i,this.searchBoxService=u,this.doanhNghiepThueDatCrudService=a,this.rows=[],this.columns=["T\xean khu \u0111\u1ea5t","Di\u1ec7n t\xedch","M\u1ee5c \u0111\xedch s\u1eed d\u1ee5ng \u0111\u1ea5t"],this.page=0,this.limit=5,this.maKhu="",this.count=0,this.objectId=0,this.where=[],this.map={},this.dataChart=[],this.getPopupTemplate=function(n){}}return Object.defineProperty(n.prototype,"data",{get:function(){return this._data},set:function(n){this._data=n,n&&(this.highlight(n.OBJECTID),this.map.qhsddLayer&&(this.map.qhsddLayer.definitionExpression="MaKhu='"+n.MaKhu+"'"))},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var n=this;this.activatedRoute.paramMap.subscribe((function(l){n.objectId=+l.get("id"),n.objectId>0&&n.service.getAll({query:{objectIds:[n.objectId],outFields:["*"],returnGeometry:!1,num:1}}).then((function(l){var e=l.features;e.length>0&&(n.data=e[0].attributes,n.maKhu=n.data.MaKhu,n.where.push("MaKhu='"+n.maKhu+"'"),n.titleService.setTitle("C\u1ee5m c\xf4ng nghi\u1ec7p "+n.data.TenKhu),n.dataChart=[{name:"Di\u1ec7n t\xedch \u0111\xe3 cho thu\xea",value:null!==n.data.DienTichDatDaChoThue?n.data.DienTichDatDaChoThue:0},{name:"Di\u1ec7n t\xedch c\xf2n tr\u1ed1ng",value:null!==n.data.DienTichDatConTrong?n.data.DienTichDatConTrong:0}],n.handleLoadQHSDD())}))}))},n.prototype.getCount=function(){var n=this;this.quyHoachSDDService.getCount({where:this.where.join(" and ")}).then((function(l){return n.count=l}))},n.prototype.handleMapLoaded=function(n){var l=this;this.map.view=n;var e=new u.a({url:a.f,definitionExpression:"LoaiKhu='"+t.a.KhuCongNghiep+"'"}),i=new u.a({url:a.e,outFields:["*"],definitionExpression:"MaKhu='"+this.data.MaKhu+"'"});n.map.addMany([e,i]),this.map.layer=e,this.map.qhsddLayer=i,new r.a({view:n,container:this.legendEle.nativeElement}),n.whenLayerView(e).then((function(n){l.map.layerView=n,l.data&&l.highlight(l.data.OBJECTID)})),this.loadLayerTinhTrang({layer:i,view:n}),n.on("click",(function(t){n.hitTest(t).then((function(n){var t=n.results.find((function(n){return n.graphic.layer.id===e.id}));if(t){var i=t.graphic.attributes.OBJECTID;i&&l.router.navigate(["../",i],{relativeTo:l.activatedRoute})}}))}))},n.prototype.highlight=function(n){var l=this.map,e=l.view,t=l.layerView,i=l.layer;t&&(this.handleHighlight&&(this.handleHighlight.remove(),delete this.handleHighlight),this.handleHighlight=t.highlight(n),i.queryFeatures({objectIds:[n],returnGeometry:!0,outSpatialReference:e.spatialReference}).then((function(n){e.goTo(n.features)})))},n.prototype.handleLoadQHSDD=function(n,l){var e=this;void 0===n&&(n=this.page),void 0===l&&(l=this.limit),this.getCount(),this.searchBoxService.searchQhsdd(this.maKhu).subscribe((function(n){var l=e.quyHoachSDDService.getField("MucDichSDD").domain.codedValues;e.rows=n.map((function(n){var e=l.find((function(l){return l.code===n.MucDichSDD}));return e&&(n.MucDichSDD=e.name),n}))}))},n.prototype.changePage=function(n){this.page=n,this.handleLoadQHSDD()},n.prototype.getQueryParams=function(){return{id:this.objectId,t:"RanhGioiKhu"}},n.prototype.selectionFilter=function(n){var l=n.MucDichSDD;this.where=[],this.where.push("MaKhu='"+this.maKhu+"'"),l&&this.where.push("MucDichSDD='"+l+"'"),this.handleLoadQHSDD()},n.prototype.loadLayerTinhTrang=function(n){var l=this,e=[];n.layer.queryFeatures({where:"DaSD='YES' and MaKhu='"+this.data.MaKhu+"'",outFields:["OBJECTID","QuyHoachID","KyHieuO","DaSD"],returnGeometry:!0,outSpatialReference:n.view.spatialReference}).then((function(t){var i=t.features;i.length&&(i.map((function(n){return n.attributes.QuyHoachID})),l.doanhNghiepThueDatCrudService.getInfoDoanhNghiepAll().then((function(l){if(i.map((function(n){var t,i,u=n.attributes,a=l.find((function(n){return n.quyHoachId===u.QuyHoachID.replace(/[\{\}]/g,"")}));a&&(n.attributes.TenDoanhNghiep=null===(i=null===(t=null==a?void 0:a.dnThongTinThue)||void 0===t?void 0:t.doanhNghiep)||void 0===i?void 0:i.tenDoanhNghiep),e.push(n)})),e.length){var t=new u.a({id:"tinhtrang",title:"Doanh nghi\u1ec7p",source:e,objectIdField:"OBJECTID",fields:[new s.a({name:"OBJECTID",type:"oid"}),new s.a({name:"KyHieuO",type:"string"}),new s.a({name:"DaSD",type:"string"}),new s.a({name:"TenDoanhNghiep",type:"string"})],outFields:["*"],minScale:1e4,labelingInfo:[{labelExpressionInfo:{expression:"$feature.TenDoanhNghiep"},symbol:new d.a({color:[99,57,116],haloSize:.5,haloColor:"#fff",font:new g.a({weight:"bold"})})}],legendEnabled:!1,opacity:.7,renderer:new m.a({symbol:new D.a({style:"cross",color:[231,76,60,1],outline:{color:[231,76,60,1]}})})});n.view.map.add(t,10)}})))}))},n}()},Nmqc:function(n,l,e){"use strict";e.d(l,"a",(function(){return t}));var t=function(){function n(n){var l=this;this.decimalPipe=n,this.view=[],this.gradient=!0,this.showLegend=!0,this.showLabels=!0,this.isDoughnut=!1,this.colorScheme={domain:["#32CD32","#FF0000"]},this.valueFormat=function(n){return l.decimalPipe.transform(n)},this.valueFormatting=this.valueFormat.bind(this)}return n.prototype.ngOnInit=function(){this.resize()},n.prototype.percentageFormatting=function(n){return Math.round(n)},n.prototype.resize=function(){this.view=[this.wrapEl.nativeElement.offsetWidth/1.05,270]},n}()},fu8d:function(n,l,e){"use strict";e.d(l,"a",(function(){return o})),e.d(l,"b",(function(){return h}));var t=e("8Y7J"),i=e("SVse"),u=e("Wk/b"),a=e("Lnru"),o=(e("Nmqc"),t["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}}));function r(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"span",[["class","tooltip-label"]],null,null,null,null,null)),(n()(),t["\u0275ted"](1,null,["",""])),(n()(),t["\u0275eld"](2,0,null,null,2,"span",[["class","tooltip-val"]],null,null,null,null,null)),(n()(),t["\u0275ted"](3,null,["",""])),t["\u0275ppd"](4,1)],null,(function(n,l){n(l,1,0,l.context.model.name);var e=t["\u0275unv"](l,3,0,n(l,4,0,t["\u0275nov"](l.parent,0),l.context.model.value));n(l,3,0,e)}))}function h(n){return t["\u0275vid"](0,[t["\u0275pid"](0,i.DecimalPipe,[t.LOCALE_ID]),t["\u0275qud"](402653184,1,{wrapEl:0}),(n()(),t["\u0275eld"](2,0,[[1,0],["wrapEl",1]],null,4,"div",[["class","w-100"]],null,null,null,null,null)),(n()(),t["\u0275eld"](3,0,null,null,3,"ngx-charts-advanced-pie-chart",[["label","T\u1ed5ng di\u1ec7n t\xedch (m2)"]],null,[["window","resize"]],(function(n,l,e){var t=!0;return"window:resize"===l&&(t=!1!==n.component.resize()&&t),t}),u.e,u.a)),t["\u0275did"](4,4898816,null,1,a.b,[t.ElementRef,t.NgZone,t.ChangeDetectorRef],{results:[0,"results"],view:[1,"view"],scheme:[2,"scheme"],gradient:[3,"gradient"],label:[4,"label"],valueFormatting:[5,"valueFormatting"],percentageFormatting:[6,"percentageFormatting"]},null),t["\u0275qud"](603979776,2,{tooltipTemplate:0}),(n()(),t["\u0275and"](0,[[2,2],["tooltipTemplate",2]],null,0,null,r))],(function(n,l){var e=l.component;n(l,4,0,e.data,e.view,e.colorScheme,e.gradient,"T\u1ed5ng di\u1ec7n t\xedch (m2)",e.valueFormatting,e.percentageFormatting)}),null)}},x2hD:function(n,l,e){"use strict";e.d(l,"a",(function(){return u})),e.d(l,"b",(function(){return h}));var t=e("8Y7J"),i=e("SVse"),u=(e("+U54"),e("WnYY"),t["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}}));function a(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(n()(),t["\u0275ted"](1,null,["",""]))],null,(function(n,l){n(l,1,0,l.context.$implicit)}))}function o(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,11,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,1,"th",[["scope","row"]],null,null,null,null,null)),(n()(),t["\u0275ted"](2,null,["",""])),(n()(),t["\u0275eld"](3,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](4,null,["",""])),(n()(),t["\u0275eld"](5,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](6,null,["",""])),t["\u0275ppd"](7,1),(n()(),t["\u0275eld"](8,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](9,null,["",""])),(n()(),t["\u0275eld"](10,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](11,null,["",""]))],null,(function(n,l){n(l,2,0,l.component.showOderNumber(l.context.index)),n(l,4,0,l.context.$implicit.KyHieuO);var e=t["\u0275unv"](l,6,0,n(l,7,0,t["\u0275nov"](l.parent,0),l.context.$implicit.DienTich));n(l,6,0,e),n(l,9,0,l.context.$implicit.MucDichSDD),n(l,11,0,l.context.$implicit.DaSD)}))}function r(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,2,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,1,"td",[["class","text-center"],["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["Kh\xf4ng c\xf3 d\u1eef li\u1ec7u \u0111\u1ec3 hi\u1ec3n th\u1ecb"]))],null,null)}function h(n){return t["\u0275vid"](0,[t["\u0275pid"](0,i.DecimalPipe,[t.LOCALE_ID]),(n()(),t["\u0275eld"](1,0,null,null,17,"div",[["class","row"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,3,"div",[["class","col-12 d-flex justify-content-between align-items-center"]],null,null,null,null,null)),(n()(),t["\u0275eld"](3,0,null,null,1,"h6",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["Quy ho\u1ea1ch s\u1eed d\u1ee5ng \u0111\u1ea5t c\u1ee7a d\u1ef1 \xe1n"])),(n()(),t["\u0275eld"](5,0,null,null,0,"div",[["class","d-flex"]],null,null,null,null,null)),(n()(),t["\u0275eld"](6,0,null,null,12,"div",[["class","col-12"],["style","max-height: 270px; overflow-y: auto;"]],null,null,null,null,null)),(n()(),t["\u0275eld"](7,0,null,null,11,"table",[["class","table table-striped"]],null,null,null,null,null)),(n()(),t["\u0275eld"](8,0,null,null,5,"thead",[],null,null,null,null,null)),(n()(),t["\u0275eld"](9,0,null,null,4,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](10,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["#"])),(n()(),t["\u0275and"](16777216,null,null,1,null,a)),t["\u0275did"](13,278528,null,0,i.NgForOf,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](14,0,null,null,4,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,o)),t["\u0275did"](16,278528,null,0,i.NgForOf,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275and"](16777216,null,null,1,null,r)),t["\u0275did"](18,16384,null,0,i.NgIf,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],(function(n,l){var e=l.component;n(l,13,0,e.columns),n(l,16,0,e.rows),n(l,18,0,!e.rows.length)}),null)}},"xjd+":function(n,l,e){"use strict";e.d(l,"a",(function(){return a})),e.d(l,"b",(function(){return o}));var t=e("8Y7J"),i=e("Wk/b"),u=e("Lnru"),a=(e("ET74"),t["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}}));function o(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,4,"div",[["class","row w-100"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"div",[["class","col-12 pb-5 d-flex justify-content-center"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,2,"ngx-charts-pie-chart",[],null,null,null,i.g,i.c)),t["\u0275did"](3,4898816,null,1,u.bb,[t.ElementRef,t.NgZone,t.ChangeDetectorRef],{results:[0,"results"],view:[1,"view"],scheme:[2,"scheme"],labels:[3,"labels"],legend:[4,"legend"],legendTitle:[5,"legendTitle"],legendPosition:[6,"legendPosition"],doughnut:[7,"doughnut"],gradient:[8,"gradient"],trimLabels:[9,"trimLabels"]},null),t["\u0275qud"](603979776,1,{tooltipTemplate:0})],(function(n,l){var e=l.component;n(l,3,0,e.data,e.view,e.colorScheme,e.showLabels,e.showLegend,e.legendTitle,e.legendPosition,e.isDoughnut,e.gradient,e.trimLabels)}),null)}}}]);