!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("fccore2"),require("@angular/forms"),require("ag-grid-enterprise"),require("@angular/common"),require("@angular/router"),require("@angular/common/locales/zh"),require("ng-zorro-antd"),require("@angular/common/http"),require("ag-grid-angular"),require("@angular/platform-browser"),require("@swimlane/ngx-charts")):"function"==typeof define&&define.amd?define("fccomponent2",["exports","@angular/core","fccore2","@angular/forms","ag-grid-enterprise","@angular/common","@angular/router","@angular/common/locales/zh","ng-zorro-antd","@angular/common/http","ag-grid-angular","@angular/platform-browser","@swimlane/ngx-charts"],n):n((e=e||self).fccomponent2={},e.ng.core,e.fccore2,e.ng.forms,null,e.ng.common,e.ng.router,e.ng.common.locales.zh,e.ngZorroAntd,e.ng.common.http,e.agGridAngular,e.ng.platformBrowser,e.ngxCharts)}(this,(function(e,n,t,i,o,a,c,s,l,r,f,p,d){"use strict";s=s&&s.hasOwnProperty("default")?s.default:s;
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */
var u=function(e,n){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function h(e,n){function t(){this.constructor=e}u(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var g=function(){return(g=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function v(e){var n="function"==typeof Symbol&&e[Symbol.iterator],t=0;return n?n.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}var m=function(){function e(){}return e.fc={getStoreState:"getStoreState"},e.fcmodal={dialog:"openDialog",confirm:"openConfirm",error:"openError",info:"openInfo",success:"openSuccess",warning:"openWarning",input:"input",component:"component"},e.fcchart={activate:"activate",deactivate:"deactivate",select:"select"},e.fcnavbar={fcnavbarLoadingMenu:"fcnavbarLoadingMenu",fcnavbarEndLoadMenu:"fcnavbarEndLoadMenu",fcnavbarHideOrShowMenu:"fcnavbarHideOrShowMenu",fcnavbarShowMenu:"fcnavbarShowMenu",fcnavbarHideMenu:"fcnavbarHideMenu",fcnavbarSelectCompany:"fcnavbarSelectCompany",fcnavbarSelectDate:"fcnavbarSelectDate",fcnavbarLogout:"fcnavbarLogout",fcnavbarMessageToggle:"fcnavbarMessageToggle",fcnavbarChangeLayout:"fcnavbarChangeLayout",fcnavbarVisible:"fcnavbarVisible",fcnavbarInvisible:"fcnavbarInvisible"},e.fcnavside={fcnavsideToggle:"fcnavsideToggle",fcnavsideClick:"fcnavsideClick",fcnavsideClosed:"fcnavsideClosed"},e.fcnavtab={fcnavtabSelected:"fcnavtabSelected",fcnavtabClick:"fcnavtabClick",fcnavtabClose:"fcnavtabClose",fcnavtabCloseOther:"fcnavtabCloseOther",fcnavtabClosed:"fcnavtabClosed",fcnavtabClearTabs:"fcnavtabClearTabs",fcnavtabResize:"fcnavtabResize"},e.fclistdata={fclistdataShowFields:"fclistdataShowFields",fclistdataFilter:"fclistdataFilter",fclistdataDataLoaded:"fclistdataDataLoaded"},e}();var b=function(){function e(){this.unsubscribes=[]}return e.prototype.pushDestroy=function(e){this.unsubscribes.push(e)},e.prototype.ngOnDestroy=function(){t.ParentBusiness.unsubscribes(this.unsubscribes),this.data=null},e.prototype.canClosed=function(e){return!0},e.prototype.setData=function(e){return g({pId:"",mId:"",aId:"",param:t.SystemBusiness.activatedRoute.snapshot.params,userInfo:t.ParentBusiness.getUserinfo()},e)},e.propDecorators={fcRef:[{type:n.ViewChild,args:["fcRef",{static:!1}]}],fcUuid:[{type:n.Input}]},e}();var y=function(e){function i(i,o){var a=e.call(this)||this;return a.provider=i,a.id=o,a.fcevent=m.fcnavbar,a.fcUrl="SYSTEM/SYSMODEL/listinfo",a.fcRequestParam={},a.fcSize=t.FCCONFIG.param.style.COMPONENTSIZE||C.small,a.fcDisabled="N",a.fcTheme=t.FCCONFIG.param.style.theme||"light",a.fcEvent=new n.EventEmitter,a.appService=i.appService,a.daoService=i.daoService,a.logService=i.logService,a.msgService=i.msgService,a.fcId=void 0===o?o:t.CommonService.guid(),a.fcUuid=t.CommonService.guid(),a}return h(i,e),i.prototype.ngOnInit=function(){},i.prototype.ngOnChanges=function(e){void 0===this.fcSize&&(this.fcSize=C.small)},i.prototype.event=function(e,n){this.fcEvent.emit({eventName:e,param:n})},i.prototype.ngOnDestroy=function(){this.fcEvent.unsubscribe(),e.prototype.ngOnDestroy.call(this)},i.propDecorators={fcUrl:[{type:n.Input}],fcRequestParam:[{type:n.Input}],fcStatus:[{type:n.Input}],fcStyle:[{type:n.Input}],fcClass:[{type:n.Input}],fcSize:[{type:n.Input}],fcDisabled:[{type:n.Input}],fcTheme:[{type:n.Input}],fcEvent:[{type:n.Output}]},i}(b);var C={small:"small",default:"default",large:"large"};var S=function(e){function i(n,t){var i=e.call(this,n,t)||this;return i.provider=n,i._id=t,i.labelSpan=0,i.valueSpan=24,i.fcShowHelp="N",i.fcCondition="",i.fcRequired="N",i.fcMaxlen="9999",i._maxlen=9999,i.fcMinlen="0",i._minlen=0,i.fcShowLabel="Y",i.onTouchedCallback=function(){},i.onChangeCallback=function(){},i.fcRowSpans="6,18",i}return h(i,e),i.prototype.ngOnChanges=function(n){var i=this;if(e.prototype.ngOnChanges.call(this,n),"Y"===this.fcShowLabel){-1===this.fcRowSpans.indexOf(",")&&(this.fcRowSpans="6,18");try{var o=this.fcRowSpans.split(",");o.length>1&&(this.labelSpan=Number(o[0]),this.valueSpan=Number(o[1]))}catch(e){this.labelSpan=6,this.valueSpan=18}}this._disabled=this.fcDisabled&&"Y"===this.fcDisabled,this._readonly=this.fcReadonly&&"Y"===this.fcReadonly,this._required=this.fcRequired&&"Y"===this.fcRequired,void 0===this.fcPlaceHolder&&(this.fcPlaceHolder="请输入"),this.fcValid&&0!==this.fcValid.length&&(this._validator=this.fcValid),void 0===this.fcAppid||null===this.fcAppid||""===this.fcAppid||void 0!==this.fcApp&&null!==this.fcApp?void 0!==this.fcApp&&null!==this.fcApp?(this.fcAppid=this.fcApp.APPID,this.initMainObj(n)):this.initMainObj(n):(this.fcApp=this.appService.getAppById(this.fcAppid),null===this.fcApp?this.pushDestroy(this.appService.findAppByAid(this.fcAppid).subscribe((function(e){"0"===e.CODE&&e.DATA?(i.fcApp=e.DATA[i.fcAppid],t.CacheService.set(i.fcAppid,i.fcApp),i.initMainObj(n)):i.logService.error(e.MSG)}))):this.initMainObj(n))},i.prototype._afterParentInit=function(e){},i.prototype._focus=function(e){this.event("focus",e)},i.prototype._blur=function(e){this.event("blur",e)},i.prototype._keyup=function(e){this.event("keyup",e)},i.prototype._click=function(e){this.event("click",e)},i.prototype.initMainObj=function(e){var n=this;if(this.fcMainObj={},null!==this.fcFieldCode&&void 0!==this.fcFieldCode&&null!==this.fcApp&&void 0!==this.fcApp){if(this.fcField=this.appService.getFieldByAppFieldcode(this.fcApp,this.fcFieldCode),!this.fcField)return void t.SystemBusiness.logService.error(this.fcFieldCode+"在模型"+this.fcApp.APPNAME+"("+this.fcApp.APPID+")不存在");if("Y"===this.fcField.ISNULL&&(this._required=!0),void 0===this.fcLabel&&(this.fcLabel=this.fcField.FIELDNAME),void 0===this.fcHelp&&(this.fcHelp=this.fcField.HELP),void 0===this.fcPlaceHolder&&(this.fcPlaceHolder="请输入"+this.fcField.FIELDNAME,void 0!==this.fcField.PLACEHOLDER&&null!==this.fcField.PLACEHOLDER&&""!==this.fcField.PLACEHOLDER&&(this.fcPlaceHolder="请输入"+this.fcField.PLACEHOLDER)),this._maxlen=this.fcField.LENGTH,""!==this.fcField.DICCODE&&void 0!==this.fcField.DICCODE&&null!==this.fcField.DICCODE){var i=this.appService.getDicByAppFieldcode(this.fcApp,this.fcField.FIELDCODE);if(null==i)if(null!=(i=this.appService.getDicAppByAppFieldcode(this.fcApp,this.fcField.FIELDCODE))&&0!==i.length){var o={};if(void 0!==this.fcCondition&&null!==this.fcCondition&&""!==this.fcCondition)try{o=JSON.parse(this.fcCondition)}catch(e){throw new Error('fcConditon必须是字符串对象，{"":""};而数据为：'+this.fcCondition)}this.pushDestroy(this.appService.findWithQuery(i[0].APPID,o).subscribe((function(t){"0"===t.CODE&&(n.fcOption=t.DATA,e.fcOption=n.fcOption),n._afterParentInit(e)})))}else this.pushDestroy(this.daoService.getFromApi(this.fcUrl,Object.assign({},this.fcRequestParam,{AID:this.fcAppid})).subscribe((function(t){"0"===t.CODE&&(n.fcOption=t.DATA,e.fcOption=n.fcOption),n._afterParentInit(e)})));else this.fcOption=i,e.fcOption=this.fcOption,this._afterParentInit(e)}else{o={};if(void 0!==this.fcCondition&&null!==this.fcCondition&&""!==this.fcCondition)try{o=JSON.parse(this.fcCondition)}catch(e){throw new Error('fcConditon必须是字符串对象，{"":""}')}"fc-text"!==this._id?(o.AID=this.fcAppid,this.pushDestroy(this.daoService.getFromApi(this.fcUrl,Object.assign({},this.fcRequestParam,o)).subscribe((function(t){"0"===t.CODE&&(n.fcOption=t.DATA,e.fcOption=n.fcOption),n._afterParentInit(e)})))):this._afterParentInit(e)}}else if("SYSTEM/SYSMODEL/listinfo"!==this.fcUrl){o={};if(void 0!==this.fcCondition&&null!==this.fcCondition&&""!==this.fcCondition)try{o=JSON.parse(this.fcCondition)}catch(e){throw new Error('fcConditon必须是字符串对象，{"":""}')}var a={};if(this.fcRequestParam instanceof Object)a=g({},this.fcRequestParam);else try{a=JSON.parse(this.fcRequestParam)}catch(e){throw new Error('fcRequestParam必须是对象，{"":""}')}this.pushDestroy(this.daoService.getFromApi(this.fcUrl,g({},a,o)).subscribe((function(t){"0"===t.CODE&&("fc-listdata"===n._id?n.fcRowData=t.DATA:(n.fcOption=t.DATA,e.fcOption=n.fcOption),n.fcData=t.DATA),n._afterParentInit(e)})))}else this._afterParentInit(e)},Object.defineProperty(i.prototype,"innerValue",{get:function(){return this._innerValue},set:function(e){this._innerValue=e,this.onChangeCallback(e)},enumerable:!0,configurable:!0}),i.prototype.writeValue=function(e){this._innerValue=e,this._afterParentInit({})},i.prototype.registerOnChange=function(e){this.onChangeCallback=e},i.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},i.prototype.refresh=function(e){return!1},i.prototype.agInit=function(e){},i.prototype.afterGuiAttached=function(e){},i.prototype.checkValidator=function(e){if(this.fcValid){var n=this._validator,t=n.validators;n.errorMessages;n.show="N",n.showValidator="",!t.required||e&&0!==e.length||(n.show="Y",n.showValidator="required"),e&&e.length>t.maxLength&&(n.show="Y",n.showValidator="maxLength"),t.customVal&&(n.show="Y",n.showValidator="customVal"),this.fcValid=this._validator}},i.propDecorators={fcRowSpans:[{type:n.Input}],fcShowHelp:[{type:n.Input}],fcId:[{type:n.Input}],fcType:[{type:n.Input}],fcLabel:[{type:n.Input}],fcPlaceHolder:[{type:n.Input}],fcReadonly:[{type:n.Input}],fcAppid:[{type:n.Input}],fcApp:[{type:n.Input}],fcFieldCode:[{type:n.Input}],fcData:[{type:n.Input}],fcCondition:[{type:n.Input}],fcOption:[{type:n.Input}],fcForId:[{type:n.Input}],fcMainObj:[{type:n.Input}],fcRequired:[{type:n.Input}],fcMaxlen:[{type:n.Input}],fcMinlen:[{type:n.Input}],fcShowLabel:[{type:n.Input}],fcValid:[{type:n.Input}],fcHelp:[{type:n.Input}]},i}(y);var I=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.initData=function(e,n){e.fcPlaceHolder="请选择",e.fcNotFoundContent="未找到记录",e.fcLabelCode="label",e.fcValueCode="value",e._disabledCode="disabled",e.fcAutoFocus="N",e.fcLineOneSpace="N",e.fcType="tags",e.fcAutoSize="Y",e._autoSize=!1,e.fcAllowClear="N",e._allowClear=!1,e.fcOpen="N",e._open=!1,e._disabled=!1,e.fcDisabled="N",e._readonly=!1,e.fcReadonly="N",e.fcFilterOption=function(e,n){return!(!n.nzValue.label||-1===n.nzValue.label.indexOf(e))}},n.changeOption=function(e,n){n.fcOption&&(e._options=[],e.fcOption&&("Y"===e.fcLineOneSpace&&e._options.push({label:"",value:"",disabled:!1}),e.fcOption.forEach((function(n){var i={label:-1===e.fcLabelCode.indexOf(":{")?n[e.fcLabelCode]:t.CommonService.getStringFilterByParam(n,e.fcLabelCode),value:n[e.fcValueCode],disabled:n.disabled};n.hasOwnProperty(e.fcDisabledCode)&&(i.disabled=n[e.fcDisabledCode]),e._options.push(i)}))))},n.valueChange=function(e,n){var t=e._innerValue||{value:void 0},i=e._options.filter((function(e){return e.value===t.value}));0!==i.length?(e._selectOptions=i[0],e.innerValue.value!==t.value&&this.valueOnChange(e,e._selectOptions)):e._selectOptions=void 0},n.valueOnChange=function(e,n){if(e._innerValue=void 0,null!==n){var t=e.fcOption.filter((function(t){return t[e.fcValueCode]===n.value}));0!==t.length&&(e._innerValue=t[0])}""===e._innerValue&&e.event("clear",""),e.checkValidator(e._innerValue),e.onChangeCallback(e._innerValue)},n}(t.ParentBusiness),z=function(e){function o(n){var t=e.call(this,n,"fc-any")||this;return t.provider=n,t.fcLoading="N",t._options=[],t.fcShowSearch=!0,I.initData(t,{}),t}return h(o,e),o.prototype._afterParentInit=function(e){e&&0===Object.keys(e).length||!e?I.valueChange(this,e):(I.changeOption(this,e),this._allowClear="Y"===this.fcAllowClear,this._autoSize="N"===this.fcAutoSize,this._open="Y"===this.fcOpen,this._disabled="Y"===this.fcDisabled,this._readonly="Y"===this.fcReadonly,I.valueChange(this,e))},o.prototype._event=function(n,t){switch(n){case"valueOnChange":I.valueOnChange(this,t);break;case"scrollToBottom":e.prototype.event.call(this,"scrollToBottom",this._selectOptions);break;default:e.prototype.event.call(this,n,t)}},o.decorators=[{type:n.Component,args:[{selector:"fc-any",template:'\n    <nz-select [nzFilterOption]="fcFilterOption" [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle" #fcany1 *ngIf="fcShowLabel===\'N\'" \n    [nzDisabled]="_disabled" class="fc-any" [ngClass]="{\'fc-readonly\':_readonly,\'fc-any-small\':fcSize === \'small\',\'fc-any-default\':fcSize === \'default\',\'fc-any-large\':fcSize === \'large\'}" \n    [nzShowSearch]="fcShowSearch" (nzOnSearch)="_event(\'onSearch\',$event)" (nzOpenChange)="_event(\'openChange\',$event)" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)" \n     [nzSize]="fcSize" [(ngModel)]="_selectOptions" (ngModelChange)="_event(\'valueOnChange\',$event)" \n    [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" [nzAutoFocus]="fcAutoFocus===\'Y\'"\n    [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open">\n    <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)"  [nzLabel]="option.label" [nzValue]="option" [nzDisabled]="option.disabled"></nz-option>\n    <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n    <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n  </nz-option>\n    </nz-select>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-select #fcany2 class="fc-any" [nzFilterOption]="fcFilterOption" [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle" \n             [nzDisabled]="_disabled" [nzShowSearch]="fcShowSearch" (nzOpenChange)="_event(\'openChange\',$event)" \n            (nzOnSearch)="_event(\'onSearch\',$event)" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)"  [nzSize]="fcSize" \n            [ngClass]="{\'fc-readonly\':_readonly,\'fc-any-small\':fcSize === \'small\',\'fc-any-default\':fcSize === \'default\',\'fc-any-large\':fcSize === \'large\'}" \n            [(ngModel)]="_selectOptions" (ngModelChange)="_event(\'valueOnChange\',$event)" [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" \n            [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'">\n                <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)"  [nzLabel]="option.label" [nzValue]="option" [nzDisabled]="option.disabled"></nz-option>\n                <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n                <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n                </nz-option>\n            </nz-select>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n  ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-any{\n        width:100%\n    }\n    .ant-select-dropdown-menu-item{\n        overflow: visible;\n    } \n    .fc-readonly {\n        pointer-events: none;\n        background:#f5f5f5;\n    }\n    :host ::ng-deep .fc-readonly .ant-select-selection{\n        background: #f5f5f5;\n    }\n    .fc-disable {\n        pointer-events: none;\n        cursor:not-allowed;\n    }\n    :host ::ng-deep .fc-disable .ant-select-selection{\n        background: #f5f5f5;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    :host ::ng-deep .fc-noshowlabel{\n\n    } \n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcFilterOption:[{type:n.Input}],fcDropdownClassName:[{type:n.Input}],fcDropdownStyle:[{type:n.Input}],fcLineOneSpace:[{type:n.Input}],fcLoading:[{type:n.Input}],fcOption:[{type:n.Input}],fcShowSearch:[{type:n.Input}],fcNotFoundContent:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],fcDisabledCode:[{type:n.Input}],fcAllowClear:[{type:n.Input}],fcAutoFocus:[{type:n.Input}],fcAutoSize:[{type:n.Input}],fcOpen:[{type:n.Input}]},o}(S);var O=function(e){function i(n){var t=e.call(this,n,"fc-avatar")||this;return t.provider=n,t.mainObj={},t}return h(i,e),i.prototype._afterParentInit=function(){if(void 0===this.fcShape&&void 0===this.fcCount?this.fcShape="circle":"fcsquare"===this.fcShape&&(this.fcShape="square"),void 0!==this.fcCount&&(this._count=parseInt(this.fcCount),this.fcShape="square"),void 0===this.fcIcon&&void 0===this.fcText&&void 0===this.fcSrc)throw new Error("至少传入一个图标、文本、图片")},i.decorators=[{type:n.Component,args:[{selector:"fc-avatar",template:'\n    <ng-container *ngIf="fcCount===undefined">\n    <nz-avatar nzIcon="user"></nz-avatar>\n    </ng-container>\n    <ng-container *ngIf="fcCount!==undefined">\n        <nz-badge [nzCount]="_count" nz-tooltip [nzTitle]="fcToolTip">\n        <nz-avatar nzIcon="user"></nz-avatar>\n        </nz-badge>\n    </ng-container>\n    ',styles:["\n    .fc-avatar{\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcToolTip:[{type:n.Input}],fcColor:[{type:n.Input}],fcBgColor:[{type:n.Input}],fcCount:[{type:n.Input}],fcIcon:[{type:n.Input}],fcShape:[{type:n.Input}],fcText:[{type:n.Input}],fcSize:[{type:n.Input}],fcSrc:[{type:n.Input}]},i}(S);var D=function(e){function i(n,t,i,o){var a=e.call(this,n,"fc-backtop")||this;return a.provider=n,a.elementRef=t,a.router=o,a.element1=null,a}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0!==this.fcVisibilityHeight&&(this._visibility=parseInt(this.fcVisibilityHeight))},i.prototype.ngAfterViewInit=function(){},i.decorators=[{type:n.Component,args:[{selector:"fc-backtop",template:'\n        <div class="long-div" #divTarget>\n            <div class="long-div-inner">\n                <div class="fc-header">\n                <ng-content select="[fcheader]"></ng-content>\n            </div>  \n            <div class="fc-toolbar">\n                <ng-content select="[fctoolbar]"></ng-content>\n            </div>      \n            <div class="fc-content">\n                <ng-content select="[fccontent]"></ng-content>\n            </div>\n            <div class="fc-footer">\n                <ng-content select="[fcfooter]"></ng-content>\n            </div>\n            </div>\n        <nz-back-top [nzTarget]="divTarget"  [nzVisibilityHeight]="_visibility"></nz-back-top>\n     </div>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]},{type:c.Router}]},i.propDecorators={fcLabel:[{type:n.Input}],fcVisibilityHeight:[{type:n.Input}],element1:[{type:n.Input}]},i}(y);var _=function(e){function i(n){var t=e.call(this,n,"fc-button")||this;return t.provider=n,void 0===t.fcLabel&&(t.fcLabel=""),void 0===t.fcType&&(t.fcType=x.default),t.fcOpacity,t._opacity=!1,t.fcBlock,t._block=!1,t.fcLoading,t._load=!1,void 0===t.fcDropdown&&(t.fcDropdown=[]),"left"===t.fcIconPositon?t.fcIconPositon=E.left:"right"===t.fcIconPositon&&(t.fcIconPositon=E.right),void 0===t.fcGroup&&(t.fcGroup=[]),t.fcDisabled,t._disabled=!1,t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),this.fcType!==x.primary&&this.fcType!==x.default&&this.fcType!==x.dashed&&this.fcType!==x.danger&&this.logService.error("按钮类型不合法"),void 0===this.fcDropdown&&(this.fcDropdown=[]),void 0!==this.fcDisableds&&(this._disableds={},this.processDisableds()),"Y"===this.fcLoading?this._load=!0:this._load=!1,"Y"===this.fcBlock?this._block=!0:this._block=!1,"Y"===this.fcOpacity?this._opacity=!0:this._opacity=!1,"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,this.fcToolTip=this.fcToolTip||""},i.prototype.processDisableds=function(){var e,n=this;try{e=JSON.parse(this.fcDisableds)}catch(e){this.msgService.error("格式不匹配,请重新设置启用按钮字符串")}e&&this.fcGroup.forEach((function(t){e[t.BTNCODE]?n._disableds[t.BTNCODE]=!0:n._disableds[t.BTNCODE]=!1}))},i.prototype._dropdownClick=function(e){this.event("click",{event:e})},i.decorators=[{type:n.Component,args:[{selector:"fc-button",template:'\n    <button class="fc-button" *ngIf="fcMode!==\'dropdown\'&&fcMode!==\'group\'" [title]="fcToolTip||\'\'"\n        nz-button [nzType]="fcType" [nzSize]="fcSize" [nzShape]="fcShape" [nzLoading]="_load" [disabled]="_disabled" [style.background]="fcStyle"\n        [ngClass]="{\'fc-button-block\':fcBlock === \'Y\'}" [nzGhost]="_opacity">\n        <i nz-icon [iconfont]="fcIcon"  *ngIf="fcIcon&&fcIconPositon===undefined"></i>\n        <i nz-icon [iconfont]="fcIcon"  *ngIf="fcIcon&&fcIconPositon===\'left\'"></i>\n        <span>{{fcLabel}}</span>\n        <i nz-icon [iconfont]="fcIcon"  *ngIf="fcIcon&&fcIconPositon===\'right\'"></i>\n    </button>\n    <nz-dropdown *ngIf="fcMode===\'dropdown\'">\n        <button class="fc-button" nz-button nz-dropdown [title]="fcToolTip||\'\'"  [nzSize]="fcSize"\n        [nzType]="fcType" [ngClass]="{\'fc-button-block\':fcBlock === \'Y\'}" [nzGhost]="_opacity">\n            <i nz-icon [iconfont]="fcIcon"  *ngIf="fcIcon&&fcIconPositon===\'left\'"></i>\n            <span>{{fcLabel}}</span>\n            <i nz-icon [iconfont]="fcIcon" *ngIf="fcIcon&&fcIconPositon===\'right\'"></i>\n        </button>\n        <ul nz-menu>\n            <li nz-menu-item *ngFor="let item of fcDropdown">\n                <a  (click)="_dropdownClick($event)">\n                    <i nz-icon [iconfont]="item.icon" *ngIf="(item.icon!==\'\'||item.icon!==undefined||item.icon!==null)&&(item.position===undefined||item.position===\'\'||item.position===\'left\')"></i>\n                    <span >{{item.label}}</span>\n                    <i nz-icon [iconfont]="item.icon" *ngIf="(item.icon!==\'\'||item.icon!==undefined||item.icon!==null)&&(item.position===\'right\')"></i>\n                </a>\n            </li>\n        </ul>\n    </nz-dropdown>\n    <nz-button-group  *ngIf="fcMode===\'group\'&&_disableds===undefined" [nzSize]="fcSize">\n        <button class="fc-button" *ngFor="let btn of fcGroup" nz-button\n            [nzType]="btn.BTNCLASS" [nzSize]="fcSize" [nzShape]="fcShape" [nzLoading]="_load" [disabled]="_disabled" [style.background]="btn.fcStyle"\n            [ngClass]="{\'fc-button-block\':fcBlock}" [nzGhost]="_opacity"  [title]="btn.HELP||btn.BTNNAME||\'\'"\n            (click)="event(btn.ACTCODE,btn)">\n                <i nz-icon [iconfont]="btn.BTNICON" *ngIf="(btn.BTNICON!==\'\'||btn.BTNICON!==undefined||btn.BTNICON!==null)&&(btn.POSITION===undefined||btn.POSITION===\'\'||btn.POSITION===\'left\')"></i>\n                <span>{{btn.BTNNAME}}</span>\n                <i nz-icon [iconfont]="btn.BTNICON" *ngIf="(btn.BTNICON!==\'\'||btn.BTNICON!==undefined||btn.BTNICON!==null)&&(btn.POSITION===\'right\')"></i>\n        </button>\n    </nz-button-group>\n    <nz-button-group *ngIf="fcMode===\'group\'&&_disableds!==undefined" [nzSize]="fcSize">\n        <button class="fc-button" *ngFor="let btn of fcGroup" nz-button\n            [nzType]="btn.BTNCLASS" [nzSize]="fcSize" [nzShape]="fcShape" [nzLoading]="_load" [disabled]="_disabled" [style.background]="btn.fcStyle"\n            [ngClass]="{\'fc-button-block\':fcBlock}" [nzGhost]="_opacity" [title]="btn.HELP||btn.BTNNAME||\'\'"\n            (click)="event(btn.ACTCODE,btn)" [disabled]="_disableds[btn.BTNCODE]">\n                <i nz-icon [iconfont]="btn.BTNICON" *ngIf="(btn.BTNICON!==\'\'||btn.BTNICON!==undefined||btn.BTNICON!==null)&&(btn.POSITION===undefined||btn.POSITION===\'\'||btn.POSITION===\'left\')"></i>\n                <span>{{btn.BTNNAME}}</span>\n                <i nz-icon [iconfont]="btn.BTNICON" *ngIf="(btn.BTNICON!==\'\'||btn.BTNICON!==undefined||btn.BTNICON!==null)&&(btn.POSITION===\'right\')"></i>\n        </button>\n    </nz-button-group>\n    ',styles:["\n        .fc-button-block{\n            width:100%;\n            display:block;\n        }\n        .fc-button{\n\n        }\n        "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcLabel:[{type:n.Input}],fcType:[{type:n.Input}],fcShape:[{type:n.Input}],fcIcon:[{type:n.Input}],fcIconPositon:[{type:n.Input}],fcLoading:[{type:n.Input}],fcOpacity:[{type:n.Input}],fcBlock:[{type:n.Input}],fcToolTip:[{type:n.Input}],fcMode:[{type:n.Input}],fcDropdown:[{type:n.Input}],fcGroup:[{type:n.Input}],fcIconPosition:[{type:n.Input}],fcDisableds:[{type:n.Input}],fcStyle:[{type:n.Input}]},i}(S);var x={primary:"primary",default:"default",dashed:"dashed",danger:"danger"},E={left:"left",right:"right"};a.registerLocaleData(s);var w=function(e){function i(n){var t=e.call(this,n,"fc-calendar")||this;return t.provider=n,t.date=new Date(2012,11,21),t.mode="month",t.listDataMap={},t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0===this.fcValue&&(this.fcValue=""),void 0===this.fcFullscreen&&(this._fullScreen=!0),void 0===this.fcMode&&(this.fcMode="month")},i.prototype._afterParentInit=function(){"N"==this.fcFullscreen?this._fullScreen=!1:this._fullScreen=!0},i.decorators=[{type:n.Component,args:[{selector:"fc-calendar",template:'\n      <nz-calendar [nzFullscreen]="_fullScreen"  [(nzMode)]="fcMode">\n       <ul *nzDateCell="let date" class="events">\n         <ng-container [ngSwitch]="date.getDate()">\n           <ng-container *ngSwitchCase="8">\n             <li *ngFor="let item of listDataMap.eight">\n               <nz-badge [nzStatus]="item.type" [nzText]="item.content"></nz-badge>\n             </li>\n           </ng-container>\n           <ng-container *ngSwitchCase="10">\n             <li *ngFor="let item of listDataMap.ten">\n               <nz-badge [nzStatus]="item.type" [nzText]="item.content"></nz-badge>\n             </li>\n           </ng-container>\n           <ng-container *ngSwitchCase="11">\n             <li *ngFor="let item of listDataMap.eleven">\n               <nz-badge [nzStatus]="item.type" [nzText]="item.content"></nz-badge>\n             </li>\n           </ng-container>\n         </ng-container>\n       </ul>\n     </nz-calendar>\n    ',styles:["\n    .events {\n        list-style: none;\n        margin: 0;\n        padding: 0;\n      }\n  \n      .events .ant-badge-status {\n        overflow: hidden;\n        white-space: nowrap;\n        width: 100%;\n        text-overflow: ellipsis;\n        font-size: 12px;\n      }\n  \n      .notes-month {\n        text-align: center;\n        font-size: 28px;\n      }\n  \n      .notes-month section {\n        font-size: 28px;\n      }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcValue:[{type:n.Input}],fcFullscreen:[{type:n.Input}],fcMode:[{type:n.Input}],fcDateCell:[{type:n.Input}],fcMonthCell:[{type:n.Input}],fcText:[{type:n.Input}],listDataMap:[{type:n.Input}]},i}(S);var A=function(e){function i(n){var t=e.call(this,n,"fc-carousel")||this;return t.provider=n,t}return h(i,e),i.prototype._afterParentInit=function(){this.fcSlickGoTo&&this._nzcarousel.goTo(Number.parseInt(this.fcSlickGoTo)),this._vertical="Y"===this.fcVertical,this._dot="Y"===this.fcDots,this._autoplay="Y"===this.fcAutoPlay,this._speed=void 0!==this.fcAutoPlaySpeed?Number.parseInt(this.fcAutoPlaySpeed):3e3,this.fcEffect=this.fcEffect?this.fcEffect:"scrollx"},i.decorators=[{type:n.Component,args:[{selector:"fc-carousel",template:'\n    <nz-carousel #nzcarousel class="fc-carousel"\n    [ngClass]="{\'fc-carousel-small\':fcSize === \'small\',\'fc-carousel-default\':fcSize === \'default\',\'fc-carousel-large\':fcSize === \'large\'}"\n     [nzAutoPlay]="_autoplay" [nzAutoPlaySpeed]="_speed"\n      [nzDots]="_dot" [nzDotPosition]="fcEffect"\n        [nzDotPosition]="_vertical">\n        <div class="fc-carousel-item" nz-carousel-content *ngFor="let item of fcData">\n            <img [src]="item.src" />\n            <h3 class="fc-carousel-label">{{item.label}}</h3>\n        </div>\n    </nz-carousel>\n    ',styles:["\n    .fc-carousel .slick-slide {\n        width:100%;\n        text-align: center;\n        height: 160px;\n        line-height: 160px;\n        background: #364d79;\n        color: #fff;\n        overflow: hidden;\n        position:relative;\n    }\n    .fc-carousel .slick-slide img{\n        width:100%;\n        height:100%;\n    }\n    .fc-carousel-item {\n        width:100%;\n        height:100%;\n        text-align: center;\n    }\n    .fc-carousel-label {\n        width:100%;\n        color: #fff;\n        text-align:center;\n        position:absolute;\n        left:0;\n        top:0;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcData:[{type:n.Input}],_nzcarousel:[{type:n.ViewChild,args:["nzcarousel",{static:!1}]}],fcSlickGoTo:[{type:n.Input}],fcVertical:[{type:n.Input}],fcEffect:[{type:n.Input}],fcDots:[{type:n.Input}],fcAutoPlaySpeed:[{type:n.Input}],fcAutoPlay:[{type:n.Input}]},i}(S);var P=function(e){function o(n){var t=e.call(this,n,"fc-check")||this;return t.provider=n,t.fcOption=[],t._options=[],void 0===t.fcLabelCode&&(t.fcLabelCode="label"),void 0===t.fcValueCode&&(t.fcValueCode="value"),void 0===t.fcDisabledCode&&(t.fcDisabledCode="disabled"),void 0===t.fcShowLabel&&(t.fcShowLabel="Y"),t}return h(o,e),o.prototype._afterParentInit=function(){var e=this;"Y"===this.fcMode?this._mode=!0:this._mode=!1,this._options=[],this.fcOption.forEach((function(n){var t={label:n[e.fcLabelCode],value:n[e.fcValueCode],disabled:!1,checked:!!n.checked&&n.checked};null!==e._innerValue&&void 0!==e._innerValue?"string"==typeof e._innerValue&&-1!==e._innerValue.indexOf(n[e.fcValueCode])?t.checked=!0:e._innerValue instanceof Array&&0!==e._innerValue.filter((function(t){return t.value===n[e.fcValueCode]})).length&&(t.checked=!0):void 0===n.checked&&(t.checked=!1),n.hasOwnProperty(e.fcDisabledCode)&&(t.disabled=n[e.fcDisabledCode]),e._options.push(t)})),"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1},o.prototype.valueOnChange=function(e){var n=this;this._options instanceof Array&&this._options.length>1?(this._innerValue="",this._options.forEach((function(e){e.checked&&(n._innerValue+=e.value+",")})),0!==this._innerValue.length&&(this._innerValue=this._innerValue.substr(0,this._innerValue.length-1))):this.simpleOption&&(this._innerValue=this.fcOption[0][this.fcValueCode]),this.checkValidator(this._innerValue),this.onChangeCallback(this._innerValue)},o.decorators=[{type:n.Component,args:[{selector:"fc-check",template:'\n    <label [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-check-small\':fcSize === \'small\',\'fc-check-default\':fcSize === \'default\',\'fc-check-large\':fcSize === \'large\'}" \n        nz-checkbox\n        *ngIf="_options!==undefined&&_options.length===1&&fcShowLabel===\'N\'"\n        nzDisabled="_disabled" [(ngModel)]="simpleOption"\n        (ngModelChange)="valueOnChange($event)">\n        {{ _options[0].label }}\n    </label>\n    <nz-checkbox-group [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-vertical\':_mode===true,\'fc-check-small\':fcSize === \'small\',\'fc-check-default\':fcSize === \'default\',\'fc-check-large\':fcSize === \'large\'}"\n    [ngModel]="_options" \n    (ngModelChange)="valueOnChange($event)" \n    *ngIf="_options!==undefined&&_options.length>1&&fcShowLabel===\'N\'"></nz-checkbox-group>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <label [ngClass]="{\'fc-check-small\':fcSize === \'small\',\'fc-check-default\':fcSize === \'default\',\'fc-check-large\':fcSize === \'large\'}" nz-checkbox *ngIf="_options!==undefined&&_options.length===1" \n                nzDisabled="_disabled" [(ngModel)]="simpleOption" (ngModelChange)="valueOnChange($event)">\n                {{ _options[0].label }}\n            </label>\n            <nz-checkbox-group \n            [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-vertical\':_mode===true,\'fc-check-small\':fcSize === \'small\',\'fc-check-default\':fcSize === \'default\',\'fc-check-large\':fcSize === \'large\'}" \n            [ngModel]="_options" (ngModelChange)="valueOnChange($event)" *ngIf="_options!==undefined&&_options.length>1"\n            disable></nz-checkbox-group>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div> \n    </div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-readonly {\n        pointer-events: none;\n        color: #ccc;\n    }\n    :host ::ng-deep  .fc-readonly .ant-checkbox-checked .ant-checkbox-inner, .ant-checkbox-indeterminate .ant-checkbox-inner{\n        background:#f5f5f5;\n        border-color:#ccc;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    :host ::ng-deep .fc-vertical .ant-checkbox-wrapper {\n        display: block;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcMode:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],fcDisabledCode:[{type:n.Input}],fcOption:[{type:n.Input}]},o}(S);var T=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.initData=function(e,n){e.fcPlaceHolder="请选择",e.fcNotFoundContent="未找到记录",e.fcLabelCode="label",e.fcValueCode="value",e._disabledCode="disabled",e.fcAutoFocus="N",e.fcLineOneSpace="N",e.fcType="multiple",e.fcAutoSize="Y",e._autoSize=!1,e.fcAllowClear="N",e._allowClear=!1,e.fcOpen="N",e._open=!1,e._disabled=!1,e.fcDisabled="N",e._readonly=!1,e.fcReadonly="N",e.fcFilterOption=function(e,n){return!(!n.nzValue.label||-1===n.nzValue.label.indexOf(e))}},n.changeOption=function(e,n){n.fcOption&&(e._options=[],e.fcOption&&("Y"===e.fcLineOneSpace&&e._options.push({label:"",value:"",disabled:!1}),e.fcOption.forEach((function(n){var i={label:-1===e.fcLabelCode.indexOf(":{")?n[e.fcLabelCode]:t.CommonService.getStringFilterByParam(n,e.fcLabelCode),value:n[e.fcValueCode],disabled:n.disabled};n.hasOwnProperty(e.fcDisabled)&&(i.disabled=n[e.fcDisabledS]),e._options.push(i)}))))},n.valueChange=function(e,n){var t=e._innerValue||"",i=e._options.filter((function(e){return-1!==t.indexOf(e.value)}));0!==i.length?(e._selectOptions=e._innerValue.split(","),e.innerValue!==t&&this.valueOnChange(e,i)):e._selectOptions=void 0},n.valueOnChange=function(e,n){e._innerValue="",null!=n&&n instanceof Array&&(n.forEach((function(n){e._innerValue+=n+","})),e._innerValue&&0!==e._innerValue.length&&(e._innerValue=e._innerValue.substr(0,e._innerValue.length-1))),""===e._innerValue&&e.event("clear",""),e.checkValidator(e._innerValue),e.onChangeCallback(e._innerValue)},n}(t.ParentBusiness),L=function(e){function o(n){var t=e.call(this,n,"fc-chosen")||this;return t.provider=n,t.fcLoading="N",t._options=[],t.fcShowSearch=!0,T.initData(t,{}),t}return h(o,e),o.prototype._afterParentInit=function(e){e&&0===Object.keys(e).length||!e?T.valueChange(this,e):(T.changeOption(this,e),this._allowClear=void 0===this.fcAllowClear||"Y"===this.fcAllowClear,this._autoSize="N"!==this.fcAutoSize,this._open="Y"===this.fcOpen,this._disabled="Y"===this.fcDisabled,this._readonly="Y"===this.fcReadonly,T.valueChange(this,e))},o.prototype._event=function(n,t){switch(n){case"scrollToBottom":e.prototype.event.call(this,"scrollToBottom",this._selectOptions);break;case"valueOnChange":T.valueOnChange(this,t);break;default:e.prototype.event.call(this,n,t)}},o.decorators=[{type:n.Component,args:[{selector:"fc-chosen",template:'\n    <nz-select  [nzFilterOption]="fcFilterOption" [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle" \n    class="fc-chosen" *ngIf="fcShowLabel===\'N\'" [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-chosen-small\':fcSize === \'small\',\'fc-chosen-default\':fcSize === \'default\',\'fc-chosen-large\':fcSize === \'large\'}"\n         [nzShowSearch]="fcShowSearch"  (nzOnSearch)="_event(\'onSearch\',$event)" (nzOpenChange)="_event(\'openChange\',$event)" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)"  \n          [nzDisabled]="_disabled" [(ngModel)]="_selectOptions" [nzMode]="fcType" [nzSize]="fcSize" \n         (ngModelChange)="_event(\'valueOnChange\',$event)" [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" \n         [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'">\n        <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)"  [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled"></nz-option>\n        <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n        <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n      </nz-option>\n    </nz-select>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-select  [nzFilterOption]="fcFilterOption" [nzDropdownClassName]="fcDropdownClassName" \n            [nzDropdownStyle]="fcDropdownStyle" class="fc-chosen" [nzSize]="fcSize" [ngClass]="{\'fc-readonly\':_readonly===true}" [nzDisabled]="_disabled" \n                [nzShowSearch]="fcShowSearch" (nzOpenChange)="_event(\'openChange\',$event)"\n                 (nzOnSearch)="_event(\'onSearch\',$event)" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)"  [(ngModel)]="_selectOptions" [nzMode]="fcType" \n                 (ngModelChange)="_event(\'valueOnChange\',$event)" \n                [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" \n                [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'">\n                <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)"  [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled"></nz-option>\n                <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n                <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n                </nz-option>\n            </nz-select>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n  ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n        \n        :host ::ng-deep .ant-select-dropdown{\n            overflow:auto;\n        }\n        .fc-chosen{\n            width:100%\n        }\n        :host ::ng-deep .ant-select-dropdown-menu-item{\n            overflow: visible;\n        }\n        .fc-readonly {\n            pointer-events: none;\n        }\n        :host ::ng-deep .fc-readonly .ant-select-selection{\n            background-color: #f5f5f5;\n        }\n        .form-explain {\n            position:relative;\n        }\n        .explain{\n            white-space: nowrap;\n            position:absolute;\n            right: -1px;\n            bottom: 24px;\n            z-index:10;\n        }\n        .explain-inner {\n            position:relative;\n            color:red;\n        }\n        .explain-inner:after{\n            content: '';\n            width: 10px;\n            height: 12px;\n            display: block;\n            background-color: #ffffff;\n            border-right: 1px solid #e9e9e9;\n            border-bottom: 1px solid #e9e9e9;\n            position: absolute;\n            bottom: -6px;\n            right: 12px;\n            transform: rotate(45deg);\n            z-index: 0;\n        }\n        .explain-tips{\n            padding: 0px 10px;\n            background-color: #ffffff;\n            border: 1px solid #e9e9e9;\n            border-radius: 4px;\n            font-size: 12px;\n            height: 30px;\n            line-height: 28px;\n        }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcFilterOption:[{type:n.Input}],fcDropdownClassName:[{type:n.Input}],fcDropdownStyle:[{type:n.Input}],fcLineOneSpace:[{type:n.Input}],fcLoading:[{type:n.Input}],fcToolTip:[{type:n.Input}],fcOption:[{type:n.Input}],fcShowSearch:[{type:n.Input}],fcNotFoundContent:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],_disabledCode:[{type:n.Input}],fcAllowClear:[{type:n.Input}],fcAutoSize:[{type:n.Input}],fcAutoFocus:[{type:n.Input}],fcOpen:[{type:n.Input}]},o}(S);var k=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.initData=function(e,n){e.fcPlaceHolder="请选择",e.fcNotFoundContent="未找到记录",e.fcLabelCode="label",e.fcValueCode="value",e._disabledCode="disabled",e.fcAutoFocus="N",e.fcLineOneSpace="N",e.fcType="tags",e.fcAutoSize="Y",e._autoSize=!1,e.fcAllowClear="N",e._allowClear=!1,e.fcOpen="N",e._open=!1,e._disabled=!1,e.fcDisabled="N",e._readonly=!1,e.fcReadonly="N",e.fcFilterOption=function(e,n){return!(!n.nzValue.label||-1===n.nzValue.label.indexOf(e))}},n.changeOption=function(e,n){n.fcOption&&(e._options=[],e.fcOption&&("Y"===e.fcLineOneSpace&&e._options.push({label:"",value:"",disabled:!1}),e.fcOption.forEach((function(n){var i={label:-1===e.fcLabelCode.indexOf(":{")?n[e.fcLabelCode]:t.CommonService.getStringFilterByParam(n,e.fcLabelCode),value:n[e.fcValueCode],disabled:n.disabled};n.hasOwnProperty(e.fcDisabled)&&(i.disabled=n[e.fcDisabled]),e._options.push(i)}))))},n.valueChange=function(e,n){var t=e._options.filter((function(n){return n.value===e._innerValue}));0!==t.length?(e._selectOptions=t[0],e.innerValue!==e._innerValue&&this.valueOnChange(e,e._selectOptions)):e._selectOptions=void 0},n.valueOnChange=function(e,n){e._innerValue="",null!==n&&(e._innerValue=e._innerValue+=n.value),""===e._innerValue&&e.event("clear",""),e.checkValidator(e._innerValue),e.onChangeCallback(e._innerValue)},n}(t.ParentBusiness),N=function(e){function o(n){var t=e.call(this,n,"fc-combo")||this;return t.provider=n,t.fcLoading="N",t._options=[],t.fcShowSearch=!0,t.fcServerSearch="N",k.initData(t,{}),t}return h(o,e),o.prototype._afterParentInit=function(e){e&&0===Object.keys(e).length||!e?k.valueChange(this,e):(k.changeOption(this,e),this._allowClear="Y"===this.fcAllowClear,this._autoSize="N"===this.fcAutoSize,this._open="Y"===this.fcOpen,this._disabled="Y"===this.fcDisabled,this._readonly="Y"===this.fcReadonly,k.valueChange(this,e))},o.prototype._event=function(n,t){switch(n){case"valueOnChange":k.valueOnChange(this,t);break;default:e.prototype.event.call(this,n,t)}},o.decorators=[{type:n.Component,args:[{selector:"fc-combo",template:'\n    <nz-select  [nzFilterOption]="fcFilterOption"  [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle"  class="fc-combo"  *ngIf="fcShowLabel===\'N\'" [ngClass]="{\'fc-readonly\':_readonly===true}" (nzOpenChange)="_event(\'openChange\',$event)" [nzServerSearch]="fcServerSearch===\'Y\'" [nzDisabled]="_disabled" [nzShowSearch]="fcShowSearch" (nzOnSearch)="_event(\'search\',$event)"\n    [(ngModel)]="_selectOptions" [nzSize]="fcSize" (ngModelChange)="_event(\'valueOnChange\',$event)" [nzNotFoundContent]="fcNotFoundContent" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)" \n    [nzPlaceHolder]="fcPlaceHolder" [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'">\n        <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)" [nzLabel]="option.label" [nzValue]="option" [nzDisabled]="option.disabled"></nz-option>\n        <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n        <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n      </nz-option>\n    </nz-select>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-select  [nzFilterOption]="fcFilterOption" [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle"  class="fc-combo" [ngClass]="{\'fc-readonly\':_readonly===true}" (nzOpenChange)="_event(\'openChange\',$event)" [nzServerSearch]="fcServerSearch===\'Y\'" [nzDisabled]="_disabled" [nzSize]="fcSize" [nzShowSearch]="fcShowSearch" (nzOnSearch)="_event(\'search\',$event)" \n                    [(ngModel)]="_selectOptions" (ngModelChange)="_event(\'valueOnChange\',$event)" [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" \n                    [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)">\n                        <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)" [nzLabel]="option.label" [nzValue]="option" [nzDisabled]="option.disabled"></nz-option>\n                        <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n                        <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n                        </nz-option>\n            </nz-select>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div> \n        </div>\n    </div>\n  ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n        .fc-combo{\n            width:100%\n        }\n        .fc-readonly {\n            pointer-events: none;\n        }\n        :host ::ng-deep .fc-readonly .ant-select-selection{\n            background-color: #f5f5f5;\n        }\n        .form-explain {\n            position:relative;\n        }\n        .explain{\n            white-space: nowrap;\n            position:absolute;\n            right: -1px;\n            bottom: 24px;\n            z-index:10;\n        }\n        .explain-inner {\n            position:relative;\n            color:red;\n        }\n        .explain-inner:after{\n            content: '';\n            width: 10px;\n            height: 12px;\n            display: block;\n            background-color: #ffffff;\n            border-right: 1px solid #e9e9e9;\n            border-bottom: 1px solid #e9e9e9;\n            position: absolute;\n            bottom: -6px;\n            right: 12px;\n            transform: rotate(45deg);\n            z-index: 0;\n        }\n        .explain-tips{\n            padding: 0px 10px;\n            background-color: #ffffff;\n            border: 1px solid #e9e9e9;\n            border-radius: 4px;\n            font-size: 12px;\n            height: 30px;\n            line-height: 28px;\n        }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcFilterOption:[{type:n.Input}],fcDropdownClassName:[{type:n.Input}],fcDropdownStyle:[{type:n.Input}],fcLineOneSpace:[{type:n.Input}],fcLoading:[{type:n.Input}],fcOption:[{type:n.Input}],fcShowSearch:[{type:n.Input}],fcServerSearch:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],_disabledCode:[{type:n.Input}],fcAllowClear:[{type:n.Input}],fcAutoSize:[{type:n.Input}],fcOpen:[{type:n.Input}],fcAutoFocus:[{type:n.Input}],fcNotFoundContent:[{type:n.Input}]},o}(S);var F=function(e){function o(n){var i=e.call(this,n,"fc-date")||this;return i.provider=n,i._disabledDate=function(e){var n=!1;if(void 0!==i.fcBefore){var o=t.CommonService.getTimestampFromDate(i.fcBefore.replace(/-/g,"/")+" 23:59:59");n=e&&e.getTime()>1e3*o}if(0==n&&void 0!==i.fcAfter){var a=t.CommonService.getTimestampFromDate(i.fcAfter.replace(/-/g,"/")+" 00:00:00");n=e&&e.getTime()<1e3*a}return n},i._innerValue=null,void 0===i.fcMode&&(i.fcMode=M.day),void 0===i.fcFormat&&(i.fcFormat="yyyy-MM-dd"),void 0===i.fcPlaceHolder&&(i.fcPlaceHolder="选择日期"),i}return h(o,e),o.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},o.prototype._afterParentInit=function(){if(void 0===this.fcFormat)switch(this.fcMode){case M.year:this.fcFormat="yyyy",this.fcPlaceHolder="选择年度";break;case M.month:this.fcFormat="yyyy-MM",this.fcPlaceHolder="选择月份";break;default:this.fcFormat="yyyy-MM-dd",this.fcPlaceHolder="选择日期"}this.fcAllowClear||(this.fcAllowClear="Y"),"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1},o.prototype.clickOk=function(e,n){document.getElementsByClassName("ant-calendar-selected-day")[0].querySelector(".ant-calendar-date").click()},o.decorators=[{type:n.Component,args:[{selector:"fc-date",template:'\n    <ng-template #fcbutton ><fc-button fcLabel="确定" *ngIf="fcShowOk===\'Y\'" (click)="clickOk(\'clickOk\',$event)"></fc-button></ng-template>\n    <nz-date-picker *ngIf="fcShowLabel===\'N\'&&fcMode===\'day\'" [nzShowToday]="false" #dateObj [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-date-small\':fcSize === \'small\',\'fc-date-default\':fcSize === \'default\',\'fc-date-large\':fcSize === \'large\'}"\n     [(ngModel)]="innerValue" [nzRenderExtraFooter]="fcbutton" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate"  [nzAllowClear]="fcAllowClear===\'Y\'"\n    [nzPlaceHolder]="fcPlaceHolder" [nzFormat]="fcFormat" [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-date-picker>\n    <nz-year-picker *ngIf="fcShowLabel===\'N\'&&fcMode===\'year\'"  [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-date-small\':fcSize === \'small\',\'fc-date-default\':fcSize === \'default\',\'fc-date-large\':fcSize === \'large\'}"\n     [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate"  [nzAllowClear]="fcAllowClear===\'Y\'" \n    [nzPlaceHolder]="fcPlaceHolder"   [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-year-picker >\n    <nz-month-picker *ngIf="fcShowLabel===\'N\'&&fcMode===\'month\'"    [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-date-small\':fcSize === \'small\',\'fc-date-default\':fcSize === \'default\',\'fc-date-large\':fcSize === \'large\'}"\n     [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate"   [nzAllowClear]="fcAllowClear===\'Y\'" \n    [nzPlaceHolder]="fcPlaceHolder" [nzFormat]="fcFormat" [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-month-picker>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-year-picker style="width:100%;"   *ngIf="fcMode===\'year\'" [nzAllowClear]="fcAllowClear===\'Y\'" \n                 [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-date-small\':fcSize === \'small\',\'fc-date-default\':fcSize === \'default\',\'fc-date-large\':fcSize === \'large\'}" \n                 [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate"   [nzPlaceHolder]="fcPlaceHolder" \n                   [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-year-picker>\n            <nz-month-picker style="width:100%;"   *ngIf="fcMode===\'month\'" [nzAllowClear]="fcAllowClear===\'Y\'" \n                [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-date-small\':fcSize === \'small\',\'fc-date-default\':fcSize === \'default\',\'fc-date-large\':fcSize === \'large\'}" \n                [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate"  \n                [nzPlaceHolder]="fcPlaceHolder" [nzFormat]="fcFormat" [nzSize]="fcSize" \n                [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-month-picker>\n            <nz-date-picker style="width:100%;" [nzShowToday]="false" #dateObj [nzRenderExtraFooter]="fcbutton"  *ngIf="fcMode===\'day\'" [nzAllowClear]="fcAllowClear===\'Y\'" \n            [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-date-small\':fcSize === \'small\',\'fc-date-default\':fcSize === \'default\',\'fc-date-large\':fcSize === \'large\'}" \n            [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate"  \n                [nzPlaceHolder]="fcPlaceHolder" [nzFormat]="fcFormat" [nzSize]="fcSize" \n                [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-date-picker>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n        .fc-readonly {\n            pointer-events: none;\n        }\n        :host ::ng-deep .fc-readonly .ant-input{\n            background-color: #f5f5f5;\n        }\n        .form-explain {\n            position:relative;\n        }\n        .explain{\n            white-space: nowrap;\n            position:absolute;\n            right: -1px;\n            bottom: 24px;\n            z-index:10;\n        }\n        .explain-inner {\n            position:relative;\n            color:red;\n        }\n        .explain-inner:after{\n            content: '';\n            width: 10px;\n            height: 12px;\n            display: block;\n            background-color: #ffffff;\n            border-right: 1px solid #e9e9e9;\n            border-bottom: 1px solid #e9e9e9;\n            position: absolute;\n            bottom: -6px;\n            right: 12px;\n            transform: rotate(45deg);\n            z-index: 0;\n        }\n        .explain-tips{\n            padding: 0px 10px;\n            background-color: #ffffff;\n            border: 1px solid #e9e9e9;\n            border-radius: 4px;\n            font-size: 12px;\n            height: 30px;\n            line-height: 28px;\n        }\n        "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcShowOk:[{type:n.Input}],fcDateObj:[{type:n.ViewChild,args:["dateObj",{static:!1}]}],fcOpen:[{type:n.Input}],fcAllowClear:[{type:n.Input}],fcBefore:[{type:n.Input}],fcAfter:[{type:n.Input}],fcMode:[{type:n.Input}],fcFormat:[{type:n.Input}],fcPlaceHolder:[{type:n.Input}]},o}(S);var M={day:"day",month:"month",year:"year"},V=function(e){function o(n){var i=e.call(this,n,"fc-datetime")||this;return i.provider=n,i.fcMode=M.day,i._disabledDate=function(e){if(void 0!==i.fcBefore){var n=t.CommonService.getTimestampFromDate(i.fcBefore.replace(/-/g,"/"));return e&&e.getTime()>1e3*n}if(void 0!==i.fcAfter){var o=t.CommonService.getTimestampFromDate(i.fcAfter.replace(/-/g,"/"));return e&&e.getTime()<1e3*o}return!1},i._innerValue=null,void 0===i.fcFormat&&(i.fcFormat="yyyy-MM-dd HH:mm:ss"),void 0===i.fcPlaceHolder&&(i.fcPlaceHolder="选择时间"),i}return h(o,e),o.prototype._afterParentInit=function(){"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1,this.fcAllowClear||(this.fcAllowClear="Y")},o.decorators=[{type:n.Component,args:[{selector:"fc-datetime",template:'\n    <nz-date-picker *ngIf="fcShowLabel===\'N\'" [nzAllowClear]="fcAllowClear===\'Y\'" [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-datetime-small\':fcSize === \'small\',\'fc-datetime-default\':fcSize === \'default\',\'fc-datetime-large\':fcSize === \'large\'}" \n    nzShowTime [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" \n    [nzDisabledDate]="_disabledDate" [nzMode]="fcMode" [nzPlaceHolder]="fcPlaceHolder" \n    [nzFormat]="fcFormat" [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-date-picker>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-date-picker style="width:100%;" [nzAllowClear]="fcAllowClear===\'Y\'" [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-datetime-small\':fcSize === \'small\',\'fc-datetime-default\':fcSize === \'default\',\'fc-datetime-large\':fcSize === \'large\'}" nzShowTime [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabledDate]="_disabledDate" [nzMode]="fcMode" \n                    [nzPlaceHolder]="fcPlaceHolder" [nzFormat]="fcFormat" [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-date-picker>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n               \n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-readonly {\n        pointer-events: none;\n    }\n    :host ::ng-deep .fc-readonly .ant-input{\n        background-color: #f5f5f5;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcAllowClear:[{type:n.Input}],fcBefore:[{type:n.Input}],fcAfter:[{type:n.Input}],fcFormat:[{type:n.Input}],fcPlaceHolder:[{type:n.Input}]},o}(S);var R=function(e){function o(n){var t=e.call(this,n,"fc-time")||this;return t.provider=n,t._innerValue=null,void 0===t.fcFormat&&(t.fcFormat="HH:mm:ss"),void 0===t.fcPlaceHolder&&(t.fcPlaceHolder="选择时间"),t}return h(o,e),o.prototype._afterParentInit=function(){"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1,this.fcAllowClear||(this.fcAllowClear="Y")},o.decorators=[{type:n.Component,args:[{selector:"fc-time",template:'\n    <nz-time-picker *ngIf="fcShowLabel===\'N\'"[(ngModel)]="innerValue" [nzPlaceHolder]="fcPlaceHolder" [nzAllowClear]="fcAllowClear===\'Y\'" \n    [ngClass]="{\'fc-readonly\':_readonly===true}" \n    [nzFormat]="fcFormat" [nzSize]="fcSize" [nzDisabled]="_disabled"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-time-picker>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-time-picker style="width:100%;" [nzAllowClear]="fcAllowClear===\'Y\'"\n                     [ngClass]="{\'fc-readonly\':_readonly===true}" [(ngModel)]="innerValue"\n                      (ngModelChange)="checkValidator($event)" [nzPlaceHolder]="fcPlaceHolder"\n                       [nzFormat]="fcFormat" [nzSize]="fcSize" [nzDisabled]="_disabled" \n                        (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" ></nz-time-picker>\n            <nz-row [nzGutter]="4" *ngIf="fcLabel!==undefined"></nz-row>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n        .fc-readonly {\n            pointer-events: none;\n        }\n        :host ::ng-deep .fc-readonly .ant-time-picker-input{\n            background-color: #f5f5f5;\n        }\n        .form-explain {\n            position:relative;\n        }\n        .explain{\n            white-space: nowrap;\n            position:absolute;\n            right: -1px;\n            bottom: 24px;\n            z-index:10;\n        }\n        .explain-inner {\n            position:relative;\n            color:red;\n        }\n        .explain-inner:after{\n            content: '';\n            width: 10px;\n            height: 12px;\n            display: block;\n            background-color: #ffffff;\n            border-right: 1px solid #e9e9e9;\n            border-bottom: 1px solid #e9e9e9;\n            position: absolute;\n            bottom: -6px;\n            right: 12px;\n            transform: rotate(45deg);\n            z-index: 0;\n        }\n        .explain-tips{\n            padding: 0px 10px;\n            background-color: #ffffff;\n            border: 1px solid #e9e9e9;\n            border-radius: 4px;\n            font-size: 12px;\n            height: 30px;\n            line-height: 28px;\n        }\n        "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcAllowClear:[{type:n.Input}],fcFormat:[{type:n.Input}],fcPlaceHolder:[{type:n.Input}]},o}(S);var Y=function(e){function i(n){var t=e.call(this,n,"fc-divider")||this;return t.provider=n,t._dashed=!1,t._leftIcon=!0,t._rightIcon=!1,void 0===t.fcDirection&&(t.fcDirection="horizontal"),void 0===t.fcPosition&&(t.fcPosition="center"),t.fcLeftIcon,t._leftIcon=!0,t}return h(i,e),i.prototype._afterParentInit=function(){"Y"===this.fcDashed?this._dashed=!0:this._dashed=!1,"Y"===this.fcLeftIcon?this._leftIcon=!0:this._leftIcon=!1,"Y"===this.fcRightIcon?this._rightIcon=!0:this._rightIcon=!1},i.decorators=[{type:n.Component,args:[{selector:"fc-divider",template:'\n    <nz-divider [nzText]="fcLabel" [nzDashed]="_dashed" [nzType]="fcDirection" *ngIf="fcIcon===undefined" [nzOrientation]="fcPosition"></nz-divider>\n    <nz-divider [nzDashed]="_dashed" [nzType]="fcDirection" fcLeftIcon="_leftIcon" [nzText]="text" fcLabel="fcLabel" *ngIf="fcIcon!==undefined && fcLeftIcon===\'Y\'">\n        <ng-template #text> <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i> {{fcLabel}}</ng-template>\n    </nz-divider>\n    <nz-divider [nzDashed]="_dashed" [nzType]="fcDirection" fcRightIcon="_rightIcon" [nzText]="text" fcLabel="fcLabel" \n    *ngIf="fcIcon!==undefined &&fcRightIcon===\'Y\'&&fcDashed===undefined">\n        <ng-template #text>{{fcLabel}} <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i></ng-template>\n    </nz-divider>\n    <nz-divider [nzDashed]="_dashed" [nzType]="fcDirection" fcRightIcon="_rightIcon" [nzText]="text" fcLabel="fcLabel" \n     *ngIf="fcIcon!==undefined &&fcRightIcon===\'Y\'&&fcDashed===\'Y\'">\n        <ng-template #text>{{fcLabel}} <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i></ng-template>\n    </nz-divider>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcDirection:[{type:n.Input}],fcDashed:[{type:n.Input}],fcLabel:[{type:n.Input}],fcPosition:[{type:n.Input}],fcLeftIcon:[{type:n.Input}],fcRightIcon:[{type:n.Input}],fcIcon:[{type:n.Input}]},i}(S);var B=function(e){function o(n){var t=e.call(this,n,"fc-double")||this;return t.provider=n,t.fcStep=.01,void 0===t.fcPlaceHolder&&(t.fcPlaceHolder=""),t}return h(o,e),o.prototype._afterParentInit=function(){"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1,void 0!==this.fcMaxValue&&(this._maxValue=Number(this.fcMaxValue)),void 0!==this.fcMinValue&&(this._minValue=Number(this.fcMinValue))},o.decorators=[{type:n.Component,args:[{selector:"fc-double",template:'\n    <nz-input-number *ngIf="fcShowLabel===\'N\'" [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzSize]="fcSize" \n        [nzDisabled]="_disabled" [nzPlaceHolder]="fcPlaceHolder" [ngClass]="{\'fc-readonly\':_readonly}" [nzMax]="_maxValue" \n        [nzMin]="_minValue"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)"  [nzStep]="fcStep">\n    </nz-input-number>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-input-number style="width:100%;" [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" \n                    [nzSize]="fcSize" [nzMax]="_maxValue" [nzMin]="_minValue" [ngClass]="{\'fc-readonly\':_readonly}" \n                    [nzDisabled]="_disabled" [nzPlaceHolder]="fcPlaceHolder"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" \n                    [nzStep]="fcStep"></nz-input-number>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n     ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-readonly {\n        pointer-events: none;\n    }\n    :host ::ng-deep .fc-readonly .ant-input-number-input-wrap{\n        background-color: #ccc;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    .fc-readonly {\n        pointer-events: none;\n        background:#f5f5f5;\n    }\n    :host ::ng-deep .fc-readonly .ant-input-number-input{\n        background: #f5f5f5;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcMaxValue:[{type:n.Input}],fcMinValue:[{type:n.Input}],fcStep:[{type:n.Input}],fcFormat:[{type:n.Input}]},o}(S);var H=function(e){function i(n,t,i,o){var a=e.call(this,n,"fc-fastposition")||this;return a.provider=n,a.elementRef=t,a.router=o,a.fcOpen=!0,a.doc=i,void 0===a.fcOpen&&(a.fcOpen=!0),a}return h(i,e),i.prototype.ngOnChanges=function(n){if(e.prototype.ngOnChanges.call(this,n),void 0===this.fcLinks)throw new Error("label和href必须传入")},i.prototype.ngAfterViewInit=function(){this.doc.querySelector(".content-main")},i.prototype._select=function(e){this.fcSelected=e,this.event("selected",e)},i.prototype._isActive=function(e){return this.fcSelected===e},i.prototype._toAnchor=function(e,n){void 0!==n&&null!=n||(n=200);var t=document.querySelector("#"+e);t&&setTimeout((function(){t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),n)},i.prototype._toggle=function(e){!0===this.fcOpen?this.fcOpen=!1:!1===this.fcOpen&&(this.fcOpen=!0)},i.decorators=[{type:n.Component,args:[{selector:"fc-fastposition",template:'\n    <div class="fc-fastposition">\n        <i class="fc-fastposition-toggle icon iconfont fc-icon-pack" [ngClass]="{\'fc-icon-pack\':fcOpen,\'fc-icon-unfold\':!fcOpen}" (click)="_toggle($event)"></i>\n        <nz-affix [ngClass]="{\'fc-fastposition-open\':fcOpen,\'fc-fastposition-close\':!fcOpen}">\n            <nz-anchor style="width:100px;">\n                <nz-link *ngFor="let link of fcLinks" (click)="_toAnchor(link.href,100);_select(link)"  [ngClass]="{active:_isActive(link)}">\n                    <nz-template>\n                        <span [title]="link.label">{{link.label.length>4?link.label.substr(0,4):link.label}}</span>\n                    </nz-template>\n                </nz-link>\n            </nz-anchor>\n        </nz-affix>\n    </div>\n    ',styles:["\n        :host ::ng-deep .fc-fastposition nz-anchor {\n            display: block;\n            width: 100px;\n        }\n        :host ::ng-deep .ant-anchor-wrapper{\n            background: transparent;\n            text-align:left;\n        }\n        :host ::ng-deep .ant-anchor-link{\n            height: 30px;\n            font-size: 14px;\n            color: #333333;\n            padding:0px;\n            cursor: pointer;\n            margin-left:20px;\n        }\n        :host ::ng-deep .ant-anchor-ink{\n            left:16px;\n        }\n        .fc-fastposition-open{\n            display:block;\n        }\n        .fc-fastposition-close{\n            display:none;\n        }\n        .fc-fastposition-toggle{\n            width: 45px;\n            text-align: center;\n            margin-bottom: 10px;\n            color: #108ee9;\n            position: absolute;\n            right: 10px;\n            top:-20px;\n            font-size: 20px;\n            cursor: pointer;\n            z-index:99;\n        }\n        .fc-fastposition {\n            position: fixed;\n            right: 0px;\n        }\n        .fc-anchorshow{\n            color:red;\n        }\n        .fastposition-color{\n            color:red;\n        }\n        .active{\n            color:#1890FF;\n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]},{type:c.Router}]},i.propDecorators={fcTitle:[{type:n.Input}],fcOffsetTop:[{type:n.Input}],fcBounds:[{type:n.Input}],fcAppLinks:[{type:n.Input}],fcLinks:[{type:n.Input}],fcBgcolor:[{type:n.Input}],fcOpen:[{type:n.Input}],fcSelected:[{type:n.Input}]},i}(y);var U=function(e){function i(n){var t=e.call(this,n,"fc-icon")||this;return t.provider=n,void 0===t.fcPosition&&(t.fcPosition="top"),t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0!==this.fcWidth&&(this.fcWidth=this.fcWidth+"px"),void 0!==this.fcHeight&&(this.fcHeight=this.fcHeight+"px")},i.decorators=[{type:n.Component,args:[{selector:"fc-icon",template:"\n    <i class=\"iconfont\" *ngIf=\"fcToolTip===undefined&&fcSvg===undefined\" nz-icon [iconfont]=\"fcIcon\" \n        [style.color]=\"fcColor\" [style.fontSize]=\"fcFontSize\"\n        [ngClass]=\"{'fc-icon-small':fcSize === 'small','fc-icon-default':fcSize === 'default','fc-icon-large':fcSize === 'large'}\"></i>\n    <nz-tooltip  *ngIf=\"fcToolTip!==undefined&&fcSvg===undefined\"\n        [nzTitle]=\"fcToolTip\" [nzPlacement]=\"fcPosition\">\n        <span nz-tooltip>\n            <i [iconfont]=\"fcIcon\"\n            [style.color]=\"fcColor\" nz-icon\n            [ngClass]=\"{'fc-icon-small':fcSize === 'small','fc-icon-default':fcSize === 'default','fc-icon-large':fcSize === 'large'}\" ></i>\n        </span>\n    </nz-tooltip>\n    <i *ngIf=\"fcToolTip!==undefined&&fcSvg!==undefined\" nz-icon [iconfont]=\"fcIcon\" \n        [style.color]=\"fcColor\" [style.fontSize]=\"fcFontSize\"\n        [ngClass]=\"{'fc-icon-small':fcSize === 'small','fc-icon-default':fcSize === 'default','fc-icon-large':fcSize === 'large'}\"></i>\n    <nz-tooltip  *ngIf=\"fcToolTip!==undefined&&fcSvg!==undefined&&fcIcon===undefined\"\n        [nzTitle]=\"fcToolTip\" [nzPlacement]=\"fcPosition\">\n        <span nz-tooltip>\n        <i [type]=\"fcSvg\"\n        [style.color]=\"fcColor\" nz-icon\n        [ngClass]=\"{'fc-icon-small':fcSize === 'small','fc-icon-default':fcSize === 'default','fc-icon-large':fcSize === 'large'}\" ></i>\n        </span>\n    </nz-tooltip>\n    ",styles:["\n    .fc-icon-small{\n        font-size:16px;\n    }\n    .fc-icon-default{\n        font-size:20px;\n    }\n    .fc-icon-large{\n        font-size:30px;\n    }\n\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcToolTip:[{type:n.Input}],fcColor:[{type:n.Input}],fcIcon:[{type:n.Input}],fcPosition:[{type:n.Input}],fcFontSize:[{type:n.Input}],fcSvg:[{type:n.Input}],fcWidth:[{type:n.Input}],fcHeight:[{type:n.Input}]},i}(y);var j=function(e){function o(n){var t=e.call(this,n,"fc-long")||this;return t.provider=n,t.fcStep=1,void 0===t.fcMinValue&&(t._minValue=Number.MIN_VALUE),void 0===t.fcMaxValue&&(t._maxValue=Number.MAX_VALUE),t}return h(o,e),o.prototype._afterParentInit=function(){"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1,void 0!==this.fcMaxValue&&(this._maxValue=Number(this.fcMaxValue)),void 0!==this.fcMinValue&&(this._minValue=Number(this.fcMinValue))},o.decorators=[{type:n.Component,args:[{selector:"fc-long",template:'\n    <nz-input-number  *ngIf="fcShowLabel===\'N\'" [ngClass]="{\'fc-readonly\':_readonly===true}" [(ngModel)]="innerValue" \n        (ngModelChange)="checkValidator($event)" [nzSize]="fcSize" [nzDisabled]="_disabled" [nzPlaceHolder]="fcPlaceHolder"\n        (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)"  [nzStep]="fcStep" [nzMax]="_maxValue" [nzMin]="_minValue">\n    </nz-input-number>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-input-number [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzSize]="fcSize" \n                    [nzDisabled]="_disabled" [nzPlaceHolder]="fcPlaceHolder"  (blur)="_blur($event)" (focus)="_focus($event)"  (click)="_click($event)" (keyup)="_keyup($event)" \n                    [ngClass]="{\'fc-readonly\':_readonly===true}" [nzStep]="fcStep" \n                    [nzMax]="_maxValue" [nzMin]="_minValue"></nz-input-number>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n        ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-readonly {\n        pointer-events: none;\n    }\n    :host ::ng-deep .fc-readonly .ant-input-number-input{\n        background: #f5f5f5;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcMaxValue:[{type:n.Input}],fcMinValue:[{type:n.Input}],fcStep:[{type:n.Input}],fcFormatBefore:[{type:n.Input}],fcFormatAfter:[{type:n.Input}]},o}(S);var $=function(e){function i(n){var t=e.call(this,n,"fc-popover")||this;return t.provider=n,t._showClose=!1,t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0===this.fcTrigger&&(this.fcTrigger="hover"),void 0===this.fcShowClose&&(this._showClose=!1),void 0===this.fcPosition&&(this.fcPosition="top")},i.prototype.clickMe=function(){this.visible=!1},i.prototype._afterParentInit=function(){"Y"===this.fcShowClose?this._showClose=!0:this._showClose=!1},i.decorators=[{type:n.Component,args:[{selector:"fc-popover",template:'\n    <nz-popover fcType={{fcType}} [nzTitle]="fcTitle" fcValue="fcValue" fcPopoverContent="fcPopoverContent" [nzPlacement]="fcPosition"  [nzTrigger]="fcTrigger" *ngIf="fcType===\'text\'">\n    <button nz-button [nzType]="\'primary\'" nz-popover [nzSize]="fcSize">{{fcValue}}</button>\n    <ng-template #nzTemplate>\n      <div>\n        <p class="fcPopoverContentfont">{{fcPopoverContent}}</p>\n      </div>\n    </ng-template>\n    </nz-popover>\n    <nz-popover [nzTitle]="fcTitle" fcValue="fcValue" fcPopoverContent="fcPopoverContent" *ngIf="fcIcon!==undefined"  [nzPlacement]="fcPosition"   [nzTrigger]="fcTrigger">\n      <button nz-button [nzType]="\'primary\'" nz-popover [nzSize]="fcSize">\n      <i class="icon iconfont {{fcIcon}}"></i>\n      </button>\n      <ng-template #nzTemplate>\n        <div>\n          <p class="fcPopoverContentfont">{{fcPopoverContent}}</p>\n        </div>\n      </ng-template>\n    </nz-popover>\n    <nz-popover [nzTitle]="fcTitle" fcShowClose="_showClose" fcPopoverContent="fcPopoverContent"  [nzPlacement]="fcPosition"  [(nzVisible)]="visible" [nzTrigger]="fcTrigger" \n    *ngIf="fcShowClose===\'Y\' && fcPopoverIcon===undefined">\n        <button nz-button nz-popover [nzType]="\'primary\'" [nzSize]="fcSize">{{fcValue}}</button>\n        <ng-template #nzTemplate>\n        <a (click)=\'clickMe()\' class="fcPopoverContentfont">{{fcPopoverContent}}</a>\n        </ng-template>\n    </nz-popover>\n    <nz-popover [nzTitle]="fcTitle" fcShowClose="_showClose" fcPopoverIcon="fcPopoverIcon"  [nzPlacement]="fcPosition"  [(nzVisible)]="visible" [nzTrigger]="fcTrigger"\n     *ngIf="fcShowClose===\'Y\' && fcPopoverIcon!==undefined">\n        <button nz-button nz-popover [nzType]="\'primary\'" [nzSize]="fcSize">{{fcValue}}</button>\n        <ng-template #nzTemplate>\n        <span (click)=\'clickMe()\' class="fcPopoverIconcolor">\n        <i class="icon iconfont {{fcPopoverIcon}}"></i>\n        </span>\n        </ng-template>\n    </nz-popover>\n    ',styles:["\n        .fcPopoverContentfont{\n            color:#666;\n        }   \n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcTitle:[{type:n.Input}],fcValue:[{type:n.Input}],fcTrigger:[{type:n.Input}],fcShowClose:[{type:n.Input}],fcPosition:[{type:n.Input}],fcSize:[{type:n.Input}],fcPopoverContent:[{type:n.Input}],fcType:[{type:n.Input}],fcIcon:[{type:n.Input}],fcPopoverIcon:[{type:n.Input}]},i}(S);var G=function(e){function o(n){var t=e.call(this,n,"fc-radio")||this;return t.provider=n,t.fcOption=[],void 0===t.fcType&&(t.fcType="radio"),void 0===t.fcShowLabel&&(t.fcShowLabel="Y"),t}return h(o,e),o.prototype._afterParentInit=function(){var e=this;void 0===this.fcOption&&(this.fcOption=[]),void 0===this.fcLabelCode&&(this.fcLabelCode="label"),void 0===this.fcValueCode&&(this.fcValueCode="value"),void 0===this._disabledCode&&(this._disabledCode="disabled"),"Y"===this.fcMode?this._mode=!0:this._mode=!1,this.fcOption&&this.fcOption instanceof Array&&this.fcOption.forEach((function(n){n.hasOwnProperty(e._disabledCode)||(n[e._disabledCode]=!1)})),"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1},o.prototype.click=function(e,n){e.value=n,this.event("click",e),this.lastValue=this.innerValue},o.prototype.valueOnChange=function(e){this.checkValidator(e),this.onChangeCallback(e)},o.decorators=[{type:n.Component,args:[{selector:"fc-radio",template:'\n<label (click)="click($event,fcOption[0][fcValueCode])" [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-radio-small\':fcSize === \'small\',\'fc-radio-default\':fcSize === \'default\',\'fc-radio-large\':fcSize === \'large\'}"\n    nz-radio [nzDisabled]="_disabled" *ngIf="fcOption!==undefined&&fcOption.length===1&&fcType===\'radio\'&&fcShowLabel===\'N\'" [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzValue]="fcOption[0][fcValueCode]">\n    {{fcOption[0][fcLabelCode]}}\n</label>\n<label (click)="click($event,fcOption[0][fcValueCode])" [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-radio-small\':fcSize === \'small\',\'fc-radio-default\':fcSize === \'default\',\'fc-radio-large\':fcSize === \'large\'}"\n nz-radio-button [nzDisabled]="_disabled"\n *ngIf="fcOption!==undefined&&fcOption.length===1&&fcType===\'button\'&&fcShowLabel===\'N\'" [(ngModel)]="innerValue" (ngModelChange)="valueOnChange($event)" [nzValue]="fcOption[0][fcValueCode]">\n    <span>{{fcOption[0][fcLabelCode]}}</span>\n</label>\n<nz-radio-group [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-vertical\':_mode===true}" [(ngModel)]="innerValue" (ngModelChange)="valueOnChange($event)" [nzSize]="fcSize" *ngIf="fcOption!==undefined&&fcOption.length>1&&fcType===\'radio\'&&fcShowLabel===\'N\'">\n    <label (click)="click($event,option[fcValueCode])"  nz-radio [nzDisabled]="_disabled" *ngFor="let option of fcOption" [nzValue]="option[fcValueCode]">\n        <span>{{option[fcLabelCode]}}</span>\n    </label>\n</nz-radio-group>\n<nz-radio-group [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-vertical\':_mode===true}" [(ngModel)]="innerValue" (ngModelChange)="valueOnChange($event)" [nzSize]="fcSize" *ngIf="fcOption!==undefined&&fcOption.length>1&&fcType===\'button\'&&fcShowLabel===\'N\'">\n    <label (click)="click($event,option[fcValueCode])"  nz-radio-button [nzDisabled]="_disabled" *ngFor="let option of fcOption" [nzValue]="option[fcValueCode]">\n        <span>{{option[fcLabelCode]}}</span>\n    </label>\n</nz-radio-group>\n<div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <label (click)="click($event,fcOption[0][fcValueCode])"  [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-radio-small\':fcSize === \'small\',\'fc-radio-default\':fcSize === \'default\',\'fc-radio-large\':fcSize === \'large\'}" \n                nz-radio [nzDisabled]="_disabled" *ngIf="fcOption!==undefined&&fcOption.length===1&&fcType===\'radio\'"\n                 [(ngModel)]="innerValue" (ngModelChange)="valueOnChange($event)" [nzValue]="fcOption[0][fcValueCode]">\n                    <span>{{fcOption[0][fcLabelCode]}}</span>\n            </label>\n            <label (click)="click($event,fcOption[0][fcValueCode])" [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-radio-small\':fcSize === \'small\',\'fc-radio-default\':fcSize === \'default\',\'fc-radio-large\':fcSize === \'large\'}" nz-radio-button *ngIf="fcOption!==undefined&&fcOption.length===1&&fcType===\'button\'" [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzValue]="fcOption[0][fcValueCode]" [nzDisabled]="_disabled">\n                <span>{{fcOption[0][fcLabelCode]}}</span>\n            </label>\n            <nz-radio-group [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-vertical\':_mode===true}" [(ngModel)]="innerValue" (ngModelChange)="valueOnChange($event)" [nzSize]="fcSize" *ngIf="fcOption!==undefined&&fcOption.length>1&&fcType===\'radio\'">\n                <label (click)="click($event,option[fcValueCode])" nz-radio [nzDisabled]="_disabled" *ngFor="let option of fcOption" [nzValue]="option[fcValueCode]">\n                    <span>{{option[fcLabelCode]}}</span>\n                </label>\n            </nz-radio-group>\n            <nz-radio-group [ngClass]="{\'fc-readonly\':_readonly ===true,\'fc-vertical\':_mode===true}" [(ngModel)]="innerValue" (ngModelChange)="valueOnChange($event)" [nzSize]="fcSize" *ngIf="fcOption!==undefined&&fcOption.length>1&&fcType===\'button\'">\n                <label (click)="click($event,option[fcValueCode])" nz-radio-button [nzDisabled]="_disabled" *ngFor="let option of fcOption" [nzValue]="option[fcValueCode]">\n                    <span>{{option[fcLabelCode]}}</span>\n                </label>\n            </nz-radio-group>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-readonly {\n        pointer-events: none;\n        color: #b2b9bd;\n    }\n    :host ::ng-deep  .fc-readonly .ant-radio-checked ng-untouched ng-pristine ng-valid{\n        color:#ccc;\n    }\n    :host ::ng-deep  .fc-readonly .ant-radio-checked .ant-radio-inner{\n        border-color:#ccc;\n    }\n    :host ::ng-deep .fc-readonly .ant-radio-inner:after{\n        background:#f5f5f5;\n    } \n    :host ::ng-deep .fc-readonly .ant-radio-wrapper{\n        border-color:#ccc;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    :host ::ng-deep .ng-untouched ng-pristine ng-valid{\n        width:100%;\n    }\n    :host ::ng-deep .fc-vertical .ant-radio-wrapper {\n        display: block;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcMode:[{type:n.Input}],fcOption:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],_disabledCode:[{type:n.Input}]},o}(S);var W=function(e){function i(n){var t=e.call(this,n,"fc-rate")||this;return t.provider=n,t.fcSize="default",t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},i.prototype._afterParentInit=function(){void 0===this.innerValue&&(this.innerValue=0),void 0===this.fcCount&&(this.fcCount=5),void 0===this.fcAllowClear&&(this.allowClear=!1),"Y"===this.fcAllowHalf?(this.allowHalf=!0,this.innerValue=2.5):this.allowHalf=!1,"Y"===this.fcAllowClear?this.allowClear=!0:this.allowClear=!1,"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1},i.decorators=[{type:n.Component,args:[{selector:"fc-rate",template:'\n    <nz-rate *ngIf="fcShowLabel===\'N\'"[ngClass]="{\'fc-rate-small\':fcSize === \'small\',\'fc-rate-default\':fcSize === \'default\',\'fc-rate-large\':fcSize === \'large\'}" \n    [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzAllowHalf]="allowHalf" [nzAllowClear]="allowClear"\n    [nzDisabled]="_disabled" [nzCount]="fcCount"></nz-rate>\n    <span *ngIf="fcText!==undefined" class="ant-rate-text">{{fcCount}} 星</span>\n    <div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-rate [ngClass]="{\'fc-rate-small\':fcSize === \'small\',\'fc-rate-default\':fcSize === \'default\',\'fc-rate-large\':fcSize === \'large\'}" \n                    [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzAllowHalf]="allowHalf" [nzAllowClear]="allowClear"\n                    [nzDisabled]="_disabled" [nzCount]="fcCount"></nz-rate>\n            <span *ngIf="fcText!==undefined" class="ant-rate-text">{{fcCount}} 星</span>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n    ',styles:["\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={innerValue:[{type:n.Input}],fcCount:[{type:n.Input}],mainObj:[{type:n.Input}],fcAllowHalf:[{type:n.Input}],fcAllowClear:[{type:n.Input}],fcSize:[{type:n.Input}],fcText:[{type:n.Input}]},i}(S);var q=function(e){function o(n){var t=e.call(this,n,"fc-switch")||this;return t.provider=n,t._options=[],void 0===t.fcCheckValue&&(t.fcCheckValue=!0),void 0===t.fcOption&&(t.fcCheckValue instanceof Boolean?t.fcOption="[{'label':true,'value':true},{'label':false,'value':false}]":t.fcOption="[{'label':'Y','value':'Y'},{'label':'N','value':'N'}]"),void 0===t.fcCheckedChildren&&(t.fcCheckedChildren="开"),void 0===t.fcUnCheckedChildren&&(t.fcUnCheckedChildren="关"),t}return h(o,e),o.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},o.prototype._afterParentInit=function(){"Y"===this.fcShowText?this._showText=!0:this._showText=!1,"Y"===this.fcShowIcon?this._showIcon=!0:this._showIcon=!1},Object.defineProperty(o.prototype,"value",{get:function(){var e=this;if(this.fcCheckValue instanceof Boolean)return this._innerValue;var n="";return this._options.forEach((function(t){e._innerValue===(t.value===e.fcCheckValue)&&(n=t.value)})),n},enumerable:!0,configurable:!0}),o.decorators=[{type:n.Component,args:[{selector:"fc-switch",template:'\n<nz-switch *ngIf="fcShowLabel===\'N\'" [ngClass]="{\'fc-readonly\':_readonly===true}" [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" \n    [nzDisabled]="_disabled" [nzSize]="fcSize"\n    [nzCheckedChildren]="fcCheckedChildren" \n    [nzUnCheckedChildren]="fcUnCheckedChildren">\n    <ng-container *ngFor="let option of _options">\n        <span *ngIf="fcCheckValue===option.value" checked>{{option.label}}</span>\n        <span *ngIf="fcCheckValue!==option.value" unchecked>{{option.label}}</span>\n    </ng-container>\n</nz-switch>\n<nz-switch *ngIf="fcShowText!==undefined&&fcShowLabel===\'N\'" [ngClass]="{\'fc-readonly\':_readonly===true}" [(ngModel)]="innerValue" \n    (ngModelChange)="checkValidator($event)" [nzDisabled]="_disabled" [nzSize]="fcSize"\n    [nzCheckedChildren]="fcCheckedChildren" \n    [nzUnCheckedChildren]="fcUnCheckedChildren">\n</nz-switch>\n<nz-switch *ngIf="fcShowIcon!==undefined&&fcShowLabel===\'N\'" [ngClass]="{\'fc-readonly\':_readonly===true}" \n    [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabled]="_disabled" [nzSize]="fcSize"\n    [nzCheckedChildren]="checkedTemplate" \n    [nzUnCheckedChildren]="unCheckedTemplate">\n</nz-switch>\n<ng-template #checkedTemplate><i class="icon iconfont {{fcCheckedChildren}}"></i></ng-template>\n<ng-template #unCheckedTemplate><i class="icon iconfont {{fcUnCheckedChildren}}"></i></ng-template>\n<div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n    <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n    <div nz-col [nzSpan]="valueSpan">\n        <nz-switch *ngIf="!fcShowText&&!fcShowIcon&&fcShowText===undefined&&fcShowIcon===undefined"  [ngClass]="{\'fc-readonly\':_readonly===true}"\n            [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" \n            [nzDisabled]="_disabled" [nzSize]="fcSize"\n            [nzCheckedChildren]="fcCheckedChildren" \n            [nzUnCheckedChildren]="fcUnCheckedChildren">\n            <ng-container *ngFor="let option of _options">\n                <span *ngIf="fcCheckValue===option.value" checked>{{option.label}}</span>1\n                <span *ngIf="fcCheckValue!==option.value" unchecked>{{option.label}}</span>\n            </ng-container>\n        </nz-switch>\n        <nz-switch *ngIf="fcShowText!==undefined" [ngClass]="{\'fc-readonly\':_readonly===true}" [(ngModel)]="innerValue" \n            (ngModelChange)="checkValidator($event)" [nzDisabled]="_disabled" [nzSize]="fcSize"\n            [nzCheckedChildren]="fcCheckedChildren" \n            [nzUnCheckedChildren]="fcUnCheckedChildren">\n        </nz-switch>\n        <nz-switch *ngIf="fcShowIcon!==undefined" [ngClass]="{\'fc-readonly\':_readonly===true}" \n            [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)" [nzDisabled]="_disabled" [nzSize]="fcSize"\n            [nzCheckedChildren]="checkedTemplate" \n            [nzUnCheckedChildren]="unCheckedTemplate">\n        </nz-switch>\n        <ng-template #checkedTemplate><i class="icon iconfont {{fcCheckedChildren}}"></i></ng-template>\n        <ng-template #unCheckedTemplate><i class="icon iconfont {{fcUnCheckedChildren}}"></i></ng-template>\n        <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n            {{fcHelp}}\n        </div>\n        <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n            <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n            </div>\n            <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n            </div>\n            <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n            </div>\n        </div>\n        </div>\n    </div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n        .fc-readonly {\n            pointer-events: none;\n        }\n        :host ::ng-deep .fc-readonly .ant-input-number-input-wrap{\n            background-color: #ccc;\n        }\n        .form-explain {\n            position:relative;\n        }\n        .explain{\n            white-space: nowrap;\n            position:absolute;\n            right: -1px;\n            bottom: 24px;\n            z-index:10;\n        }\n        .explain-inner {\n            position:relative;\n            color:red;\n        }\n        .explain-inner:after{\n            content: '';\n            width: 10px;\n            height: 12px;\n            display: block;\n            background-color: #ffffff;\n            border-right: 1px solid #e9e9e9;\n            border-bottom: 1px solid #e9e9e9;\n            position: absolute;\n            bottom: -6px;\n            right: 12px;\n            transform: rotate(45deg);\n            z-index: 0;\n        }\n        .explain-tips{\n            padding: 0px 10px;\n            background-color: #ffffff;\n            border: 1px solid #e9e9e9;\n            border-radius: 4px;\n            font-size: 12px;\n            height: 30px;\n            line-height: 28px;\n        }\n        "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcCheckValue:[{type:n.Input}],fcShowText:[{type:n.Input}],fcShowIcon:[{type:n.Input}],fcCheckedChildren:[{type:n.Input}],fcUnCheckedChildren:[{type:n.Input}]},o}(S);var X=function(e){function o(n,t,i){var o=e.call(this,n,"fc-textarea")||this;return o.provider=n,o.ref=t,o.renderer=i,o._timeOut=!1,o._innerValue=null,o.fcAutoComplete="N",o.fcAutoFocus="N",o._selectData=[],o}return h(o,e),o.prototype.ngAfterViewInit=function(){this.infocus&&"Y"==this.fcAutoFocus&&this.renderer.invokeElementMethod(this.infocus.nativeElement,"focus")},o.prototype._afterParentInit=function(){this._innerValue=this._innerValue||"",this.fcType="textarea",void 0!==this.fcRow?this._row=parseInt(this.fcRow):this._row=1,void 0===this.fcRow&&void 0!==this.fcAutosize?"Y"===this.fcAutosize?this._Autosize=!0:"N"===this.fcAutosize&&(this._Autosize=!1):this._Autosize=!1,"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1,void 0!==this.fcMaxlen&&(this._maxlen=Number(this.fcMaxlen)),void 0!==this.fcMinlen&&(this._minlen=Number(this.fcMinlen))},o.prototype._keyup=function(n){13==n.keyCode?this._selectData=[]:this._searchRemoteValue(n),e.prototype._keyup.call(this,n)},o.prototype._click=function(n){e.prototype._click.call(this,n),this._searchRemoteValue({})},o.prototype._searchRemoteValue=function(e){var n=this;if((this.fcAutoComplete||"Y"!==this.fcAutoComplete)&&(this.fcOption&&(this._selectData=this.fcOption),this.fcAppid&&this.fcFieldCode))if(this._timeOut)this._timeOut=!1;else{if(this._timeOut=!0,void 0===this._innerValue||null===this._innerValue||""===this._innerValue)return void(this._selectData=[]);setTimeout((function(){if(n._selectData=[],void 0===n._selectData||0===n._selectData.length){var e=n.appService.findWithQuery(n.fcAppid,{PAGESIZE:1e3,PAGENUM:1,WHERE:'{"'+n.fcFieldCode+'":{like:"%'+n._innerValue+'%"}}'});n.pushDestroy(e.subscribe((function(e){n._timeOut=!1,"0"===e.CODE&&(n._selectData=e.DATA)})))}else n._timeOut=!1}),400)}},o.decorators=[{type:n.Component,args:[{selector:"fc-textarea",template:'<ng-container *ngIf="fcShowLabel===\'N\'" (blur)="_blur($event)">\n    <div nz-row>\n        <div nz-col nzSpan="23" class="fuzzy-dropdown form-explain">\n            <textarea nz-input  *ngIf="fcShowLabel===\'N\'" #infocus  [(ngModel)]="innerValue" (ngModelChange)="checkValidator($event)"\n                [placeholder]="fcPlaceHolder" [nzSize]="fcSize" [disabled]="_disabled " (blur)="_blur($event)" (focus)="_focus($event)"\n                (click)="_click($event)" (keyup)="_keyup($event)" [readonly]="_readonly" [nzAutosize]="_Autosize"\n                [rows]="_row" [maxlength]="_maxlen" [minlength]="_minlen">\n            </textarea>\n            <ul class="fuzzy-dropdown-menu">\n                <li *ngFor="let data of _selectData" class="fuzzy-dropdown-item" (click)="innerValue=data[fcFieldCode];_selectData=[];event(\'selected\',data[fcFieldCode]);">\n                    <span class="fuzzy-dropdown-item-left">{{data[fcFieldCode]}}</span>\n                    <span class="fuzzy-dropdown-item-right">{{data[fcLabelCode]}}&nbsp;{{data[fcValueCode]}}</span>\n                </li>\n            </ul>\n        </div>\n        <div nz-col nzSpan="1"></div>\n    </div>\n</ng-container>\n<div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n    <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n    <div nz-col [nzSpan]="valueSpan">\n        <textarea nz-input [(ngModel)]="innerValue" #infocus  (ngModelChange)="checkValidator($event)" [placeholder]="fcPlaceHolder"\n            [nzSize]="fcSize" [disabled]="_disabled " (blur)="_blur($event)" (focus)="_focus($event)" [readonly]="_readonly"\n            (click)="_click($event)" (keyup)="_keyup($event)" [nzAutosize]="_Autosize" [rows]="_row"\n            [maxlength]="_maxlen" [minlength]="_minlen"></textarea>\n        <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n            {{fcHelp}}\n        </div>\n        <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n            <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n            </div>\n            <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n            </div>\n            <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n            </div>\n        </div>\n        <ul class="fuzzy-dropdown-menu">\n            <li *ngFor="let data of _selectData" class="fuzzy-dropdown-item" (click)="innerValue=data[fcFieldCode];_selectData=[];event(\'selected\',data[fcFieldCode]);">\n                <span class="fuzzy-dropdown-item-left">{{data[fcFieldCode]}}</span>\n                <span class="fuzzy-dropdown-item-right">{{data[fcLabelCode]}}&nbsp;{{data[fcValueCode]}}</span>\n            </li>\n        </ul>\n    </div>\n</div>\n    \n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fuzzy-dropdown {\n        position:relative;\n    }\n    .fuzzy-dropdown-menu{\n        background-color: #fff;\n        color:rgba(0, 0, 0, 0.65);\n        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);\n        border-radius: 4px; \n        max-height: 250px;\n        overflow: auto;\n        position: absolute;\n        width: 100%;\n        top: calc(100% + 2px);\n        left: 0px;\n        z-index:100;\n    }\n    .fuzzy-dropdown .fuzzy-dropdown-item {\n        padding: 7px 8px;\n        cursor:pointer;\n        font-weight:normal;\n        line-height: 1.5;\n        white-space: nowrap;\n        display: flex;\n        justify-content: space-between;\n    }\n    .fuzzy-dropdown .active {\n        background-color: #f7f7f7;\n        font-weight: 600;\n        color: rgba(0, 0, 0, 0.65);\n    }\n    .fuzzy-dropdown-item:hover{\n        background-color: #ecf6fd;\n    }\n    .fuzzy-dropdown-item-left {\n        align:left;\n    }\n    .fuzzy-dropdown-item-right {\n        align:right;\n    }\n    .fc-readonly {\n        pointer-events: none;\n    }\n    :host ::ng-deep .fc-readonly .ant-input{\n        background: #f5f5f5;\n    }\n    :host ::ng-deep [readonly]{\n        background: #f5f5f5;\n    }\n    .form-explain {\n        position:relative;\n    }\n    .explain{\n        white-space: nowrap;\n        position:absolute;\n        right: -1px;\n        bottom: 24px;\n        z-index:10;\n    }\n    .explain-inner {\n        position:relative;\n        color:red;\n    }\n    .explain-inner:after{\n        content: '';\n        width: 10px;\n        height: 12px;\n        display: block;\n        background-color: #ffffff;\n        border-right: 1px solid #e9e9e9;\n        border-bottom: 1px solid #e9e9e9;\n        position: absolute;\n        bottom: -6px;\n        right: 12px;\n        transform: rotate(45deg);\n        z-index: 0;\n    }\n    .explain-tips{\n        padding: 0px 10px;\n        background-color: #ffffff;\n        border: 1px solid #e9e9e9;\n        border-radius: 4px;\n        font-size: 12px;\n        height: 30px;\n        line-height: 28px;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService},{type:n.ElementRef},{type:n.Renderer}]},o.propDecorators={infocus:[{type:n.ViewChild,args:["infocus",{static:!1}]}],fcAutoFocus:[{type:n.Input}],fcAutoComplete:[{type:n.Input}],fcRow:[{type:n.Input}],fcAutosize:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}]},o}(S);var K=function(e){function o(n,t,i){var o=e.call(this,n,"fc-text")||this;return o.provider=n,o.ref=t,o.renderer=i,o._timeOut=!1,o._fcGroup=!1,o.fcAutoFocus="N",o.fcAutoComplete="N",o._innerValue=null,void 0===o.fcType&&(o.fcType=Q.text),o._selectData=[],o}return h(o,e),o.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},o.prototype.ngAfterViewInit=function(){this.infocus&&"Y"===this.fcAutoFocus&&this.renderer.invokeElementMethod(this.infocus.nativeElement,"focus")},o.prototype._afterParentInit=function(){void 0===this.fcAddOnBefore&&void 0===this.fcAddOnBeforeIcon&&void 0===this.fcAddOnAfter&&void 0===this.fcAddOnAfterIcon&&void 0===this.fcPrefix&&void 0===this.fcPrefixIcon&&void 0===this.fcSuffix&&void 0===this.fcSuffixIcon?this._fcGroup=!1:this._fcGroup=!0,"Y"===this.fcSearch?(this._search=!0,void 0===this.fcButtonBgColor&&(this.fcButtonBgColor="primary")):this._search=!1,"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1,void 0!==this.fcMaxlen&&(this._maxlen=Number(this.fcMaxlen)),void 0!==this.fcMinlen&&(this._minlen=Number(this.fcMinlen))},o.prototype.valueOnChange=function(e){this._innerValue="",null===e&&""===e&&void 0===e||(this._innerValue=e),this.checkValidator(this._innerValue),this.onChangeCallback(this._innerValue)},o.prototype.keyup=function(n){13===n.keyCode?this._selectData=[]:this._searchRemoteValue(n),e.prototype._keyup.call(this,n)},o.prototype._blur=function(n){e.prototype._blur.call(this,n),this._selectData=[]},o.prototype._searchRemoteValue=function(e){var n=this;if((this.fcAutoComplete||"N"!==this.fcAutoComplete)&&(this.fcOption&&(this._selectData=this.fcOption),this.fcAppid&&this.fcFieldCode))if(this._timeOut)this._timeOut=!1;else{if(this._timeOut=!0,void 0===this._innerValue||null===this._innerValue)return void(this._selectData=[]);setTimeout((function(){if(n._selectData=[],void 0===n._selectData||0===n._selectData.length){var e=n.appService.findWithQuery(n.fcAppid,{PAGESIZE:1e3,PAGENUM:1,WHERE:'{"'+n.fcFieldCode+'":{like:"%'+n._innerValue+'%"}}'});n.pushDestroy(e.subscribe((function(e){n._timeOut=!1,"0"===e.CODE&&(n._selectData=e.DATA)})))}else n._timeOut=!1}),400)}},o.prototype._click=function(n){e.prototype._click.call(this,n),this._searchRemoteValue({})},o.prototype.selectValue=function(e){this._innerValue=e,this._selectData=[],this.event("selected",e)},o.prototype.ngOnDestroy=function(){},o.decorators=[{type:n.Component,args:[{selector:"fc-text",template:'\n    <ng-container *ngIf="fcShowLabel===\'N\'" (blur)="_blur($event)">\n    <div nz-row>\n        <div nz-col nzSpan="23" class="fuzzy-dropdown form-explain">\n            <input nz-input *ngIf="!_fcGroup&&!_search" [(ngModel)]="innerValue" [placeholder]="fcPlaceHolder" #infocus\n                [disabled]="_disabled" [nzSize]="fcSize" [type]="fcType"  (focus)="_focus($event)" (blur)="_blur($event)" \n                [readonly]="_readonly" (click)="_click($event)" (ngModelChange)="valueOnChange($event)" (keyup)="keyup($event)"\n                [maxlength]="_maxlen" #_textClass="ngModel" [minlength]="_minlen" />\n            <nz-input-group *ngIf="_fcGroup&&!_search" [nzAddOnBefore]="fcAddOnBefore" [nzAddOnBeforeIcon]="fcAddOnBeforeIcon" \n                [nzAddOnAfter]="fcAddOnAfter" [nzAddOnAfterIcon]="fcAddOnAfterIcon" [nzPrefix]="prefixTemplate"\n                [nzSuffix]="suffixTemplate" (click)="_click($event)">\n                <input type="text" nz-input [(ngModel)]="innerValue" [placeholder]="fcPlaceHolder" [disabled]="_disabled" \n                    [nzSize]="fcSize" [type]="fcType"  (focus)="_focus($event)"  (blur)="_blur($event)"  [readonly]="_readonly" \n                    (ngModelChange)="valueOnChange($event)" (keyup)="keyup($event)" [maxlength]="_maxlen" #_textClass="ngModel"\n                    [minlength]="_minlen" />\n            </nz-input-group>\n\n            <nz-input-group *ngIf="_search" [nzSearch]="_search" nzSize="large" [nzSuffix]="suffixButton" [nzSize]="fcSize">\n                <input type="text" nz-input [(ngModel)]="innerValue" [placeholder]="fcPlaceHolder" [disabled]="_disabled"\n                    [type]="fcType"  (focus)="_focus($event)" [readonly]="_readonly"  (blur)="_blur($event)"  (ngModelChange)="checkValidator($event)"\n                    (keyup)="keyup($event)" [maxlength]="_maxlen" #_textClass="ngModel" [minlength]="_minlen" />\n            </nz-input-group>\n            <ng-template #suffixButton>\n                <a *ngIf="fcSuffixIconButton!==undefined" nz-button [nzType]="fcButtonBgColor" nzSearch (click)="_click($event)">\n                    <i nz-icon [iconfont]="fcSuffixIconButton"></i>\n                </a>\n                <a *ngIf="fcSuffixButton!==undefined" nz-button nzType="primary" [nzSize]="fcSize" nzSearch\n                    (click)="_click($event)">{{fcSuffixButton}}</a>\n            </ng-template>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n            <ul class="fuzzy-dropdown-menu">\n                <li *ngFor="let data of _selectData" class="fuzzy-dropdown-item" (click)="selectValue(data[fcFieldCode])">\n                    <span class="fuzzy-dropdown-item-left">{{data[fcFieldCode]}}</span>\n                    <span class="fuzzy-dropdown-item-right">{{data[fcLabelCode]}}&nbsp;{{data[fcValueCode]}}</span>\n                </li>\n            </ul>\n\n        </div>\n        <div nz-col nzSpan="1"></div>\n    </div>\n\n</ng-container>\n<ng-template #prefixTemplate><i nz-icon [iconfont]="fcPrefixIcon"></i></ng-template>\n<ng-template #suffixTemplate><i nz-icon [iconfont]="fcSuffixIcon"></i></ng-template>\n<div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'" >\n    <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n    <div nz-col [nzSpan]="valueSpan">\n        <input nz-input *ngIf="!_fcGroup&&!_search" [(ngModel)]="innerValue"  [placeholder]="fcPlaceHolder" #infocus\n                    [disabled]="_disabled" [nzSize]="fcSize" [type]="fcType" (blur)="_blur($event)" (focus)="_focus($event)"\n                    [readonly]="_readonly" (click)="_click($event)" (ngModelChange)="valueOnChange($event)" (keyup)="keyup($event)"\n                    [maxlength]="_maxlen" #_textClass="ngModel" [minlength]="_minlen" />\n        <nz-input-group *ngIf="_fcGroup&&!_search" [nzAddOnBefore]="fcAddOnBefore" [nzAddOnBeforeIcon]="fcAddOnBeforeIcon"\n            [nzAddOnAfter]="fcAddOnAfter" [nzAddOnAfterIcon]="fcAddOnAfterIcon" [nzPrefix]="prefixTemplate"\n            [nzSuffix]="suffixTemplate" (click)="_click($event)">\n            <input type="text" nz-input [(ngModel)]="innerValue" [placeholder]="fcPlaceHolder" [disabled]="_disabled"\n                [nzSize]="fcSize" [type]="fcType"  (focus)="_focus($event)" (blur)="_blur($event)" [readonly]="_readonly"\n                (ngModelChange)="valueOnChange($event)" (keyup)="keyup($event)" [maxlength]="_maxlen"\n                #_textClass="ngModel" [minlength]="_minlen" />\n        </nz-input-group>\n\n        <nz-input-group *ngIf="_search" [nzSearch]="_search" nzSize="large" [nzSuffix]="suffixButton" [nzSize]="fcSize">\n            <input type="text" nz-input  (click)="_click($event)" [(ngModel)]="innerValue" [placeholder]="fcPlaceHolder" [disabled]="_disabled"\n                [type]="fcType"  (focus)="_focus($event)" [readonly]="_readonly" [id]="fcId" (blur)="_blur($event)"\n                (ngModelChange)="valueOnChange($event)" (keyup)="keyup($event)" [maxlength]="_maxlen"\n                #_textClass="ngModel" [minlength]="_minlen" />\n        </nz-input-group>\n        <ng-template #suffixButton>\n            <a *ngIf="fcSuffixIconButton!==undefined" nz-button [nzType]="fcButtonBgColor" nzSearch\n                (click)="_click($event)">\n                <i nz-icon [iconfont]="fcSuffixIconButton"></i>\n            </a>\n            <a *ngIf="fcSuffixButton!==undefined" nz-button nzType="primary" [nzSize]="fcSize" nzSearch\n                (click)="_click($event)">{{fcSuffixButton}}</a>\n        </ng-template>\n        <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n            {{fcHelp}}\n        </div>\n        <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n            <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n            </div>\n            <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n            </div>\n            <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n            </div>\n        </div>\n        <ul class="fuzzy-dropdown-menu">\n            <li *ngFor="let data of _selectData" class="fuzzy-dropdown-item" (click)="selectValue(data[fcFieldCode]);">\n                <span class="fuzzy-dropdown-item-left">{{data[fcFieldCode]}}</span>\n                <span class="fuzzy-dropdown-item-right">{{data[fcLabelCode]}}&nbsp;{{data[fcValueCode]}}</span>\n            </li>\n        </ul>\n    </div>\n</div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fuzzy-dropdown {\n        position:relative;\n    }\n    .fuzzy-dropdown-menu{\n        background-color: #fff;\n        color:rgba(0, 0, 0, 0.65);\n        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);\n        border-radius: 4px;\n        max-height: 250px;\n        overflow: auto;\n        position: absolute;\n        width: 100%;\n        top: calc(100% + 2px);\n        left: 0px;\n        z-index:100;\n    }\n    .fuzzy-dropdown .fuzzy-dropdown-item {\n        padding: 7px 8px;\n        cursor:pointer;\n        font-weight:normal;\n        line-height: 1.5;\n        white-space: nowrap;\n        display: flex;\n        justify-content: space-between;\n    }\n    .fuzzy-dropdown .active {\n        background-color: #f7f7f7;\n        font-weight: 600;\n        color: rgba(0, 0, 0, 0.65);\n    }\n    .fuzzy-dropdown-item:hover{\n        background-color: #ecf6fd;\n    }\n    .fuzzy-dropdown-item-left {\n        align:left;\n    }\n    .fuzzy-dropdown-item-right {\n        align:right;\n    }\n    .fc-readonly {\n        pointer-events: none;\n    }\n    :host ::ng-deep .fc-readonly .ant-input{\n        background: #f5f5f5;\n    }\n    :host ::ng-deep [readonly]{\n        background: #f5f5f5;\n    }\n    .fc-required{\n        color:red;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService},{type:n.ElementRef},{type:n.Renderer}]},o.propDecorators={infocus:[{type:n.ViewChild,args:["infocus",{static:!1}]}],fcAutoFocus:[{type:n.Input}],fcAutoComplete:[{type:n.Input}],fcAddOnBefore:[{type:n.Input}],fcAddOnBeforeIcon:[{type:n.Input}],fcAddOnAfter:[{type:n.Input}],fcAddOnAfterIcon:[{type:n.Input}],fcPrefix:[{type:n.Input}],fcPrefixIcon:[{type:n.Input}],fcSuffix:[{type:n.Input}],fcSuffixIcon:[{type:n.Input}],fcSuffixIconButton:[{type:n.Input}],fcSuffixButton:[{type:n.Input}],fcSearch:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],fcButtonBgColor:[{type:n.Input}]},o}(S);var Q={text:"text",password:"password",hidden:"hidden",search:"search"};var Z=function(e){function i(n,t,i){var o=e.call(this,n,"fc-timeline")||this;return o.provider=n,o.elementRef=t,o.doc=i,void 0===o.fcSelectColor&&(o.fcSelectColor="N"),void 0===o.fcLabelPosition&&(o.fcLabelPosition="right"),void 0===o.fcSelectedId&&(o.fcSelectedId=""),void 0===o.fcDisabled&&(o._disabled=!1),o}return h(i,e),i.prototype._afterParentInit=function(){void 0===this.fcPending?this.fcPending=!1:this.fcPending=!0,void 0===this.fcCustom&&(this.fcCustom=""),"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,""!==this.fcSelectedId&&this._toAnchor(this.fcSelectedId)},i.prototype._select=function(e){this.selected=e,this.fcSelectedId=e[this.fcOption.fcId],this.event("selected",e)},i.prototype.ngAfterViewInit=function(){this.doc.querySelector(".fc-timeline")},i.prototype._isActive=function(e){return this.fcSelectedId===e},i.prototype._toAnchor=function(e,n){void 0===n&&(n=200);var t=this.doc.querySelector("#fcId"+e);t&&setTimeout((function(){t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),n)},i.decorators=[{type:n.Component,args:[{selector:"fc-timeline",template:"\n    <div [style.paddingLeft]=\"fcLeft\" style=\"padding-top:5px\" class=\"fc-timeline\" [ngClass]=\"{'fc-timeline-left':fcLabelPosition==='left',\n        'fc-timeline-right':fcLabelPosition==='right','fc-timeline-small':fcSize==='small',\n        'fc-timeline-default':fcSize==='default','fc-timeline-large':fcSize==='large'}\">\n        <nz-timeline [nzPending]=\"\" [ngClass]=\"{'fc-disabled':fcDisabled}\">\n            <nz-timeline-item class=\"fc-timeline-item\" \n                *ngFor=\"let item of fcOption.fcValues\" \n                [id]=\"'fcId'+item[fcOption.fcId]\" \n                (click)=\"_select(item)\" \n                [nzColor]=\"(item[fcOption.fcColorCode]==='normal')?'blue':(item[fcOption.fcColorCode]==='waring'?'green':'red')\" \n                [ngClass]=\"{'active': _isActive(item[fcOption.fcId]),'fc-isread':item[fcOption.fcReadCode]==='Y',\n                            'fc-noread':item[fcOption.fcReadCode]==='N'}\">\n                <label class=\"fc-timeline-label\" [style.left]=\"fclabelLeft\">{{item[fcOption.fcLabelCode]}}</label>\n                <p class=\"fc-title\">{{item[fcOption.fcTitleCode]}}</p>\n                <p>{{item[fcOption.fcSmarkCode]}}</p>\n            </nz-timeline-item>\n        </nz-timeline>\n    </div>\n    ",styles:["\n        .fc-timeline-left .fc-timeline-label {\n            cursor:pointer;\n            position: absolute;\n            display: block;\n            text-align: right;\n            padding-right: 10px;\n        }\n        :host ::ng-deep .ant-timeline-item{\n            cursor: pointer;\n        }\n        :host ::ng-deep .blue.active .ant-timeline-item-tail{\n            border-left:2px solid #108ee9;\n        }\n        :host ::ng-deep .green.active .ant-timeline-item-tail{\n            border-left:2px solid #FF7712;\n        }\n        :host ::ng-deep .red.active .ant-timeline-item-tail{\n            border-left:2px solid #f04134;\n        }\n\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-blue{\n            border-color: #108ee9;\n            background-color:#108ee9;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-blue+.ant-timeline-item-content{\n            color:#108ee9;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-blue+.ant-timeline-item-content .fc-title{\n            background-color:rgba(16,142,233,0.1);\n        }\n        :host ::ng-deep .ant-timeline-item-head-green{\n            border-color: #FF7712;\n            color: #FF7712;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-green{\n            border-color: #FF7712;\n            background-color:#FF7712;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-green+.ant-timeline-item-content{\n            color:#FF7712;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-green+.ant-timeline-item-content .fc-title{\n            background-color:rgba(255,119,18,0.1);\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-red{\n            border-color: #f04134;\n            background-color:#f04134;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-red+.ant-timeline-item-content{\n            color:#f04134;\n        }\n        :host ::ng-deep .active .ant-timeline-item .ant-timeline-item-head-red+.ant-timeline-item-content .fc-title{\n            background-color:rgba(240,65,52,0.1);\n        }\n        .fc-title{\n            font-size:14px;\n            margin-bottom: 10px;\n            padding-left:5px;\n        }\n        .fc-isread .fc-title{\n            font-weight: normal;\n        }\n        .fc-noread .fc-title{\n            font-weight: bold;\n        }\n        :host ::ng-deep .fc-disabled .ant-timeline-item{\n            cursor:pointer;\n            color:#ccc;\n        }\n        :host ::ng-deep .fc-disabled .ant-timeline-item-head-red {\n            color:#ccc;\n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]}]},i.propDecorators={fcPending:[{type:n.Input}],fcCustom:[{type:n.Input}],fcOption:[{type:n.Input}],fcLabelPosition:[{type:n.Input}],fcLeft:[{type:n.Input}],fcSelectColor:[{type:n.Input}],fcSelectedId:[{type:n.Input}],fclabelLeft:[{type:n.Input}]},i}(S);var J={green:0,red:1,blue:2};J[J.green]="green",J[J.red]="red",J[J.blue]="blue";var ee=function(e){function i(n){var t=e.call(this,n,"fc-title")||this;return t.provider=n,t.fcWidth="100%",t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0===this.fcLayout?this.fcLayout=ne.LEFT:"left"===this.fcLayout?this.fcLayout=ne.LEFT:"center"===this.fcLayout?this.fcLayout=ne.CENTER:"right"===this.fcLayout&&(this.fcLayout=ne.RIGHT),void 0===this.fcBorder?this.fcBorder=te.NULL:"top"===this.fcBorder?this.fcBorder=te.TOP:"bottom"===this.fcBorder&&(this.fcBorder=te.BOTTOM),this._hasLine=!this.fcHasLine||"Y"===this.fcHasLine},i.prototype._afterParentInit=function(){"N"===this.fcHasLine?this._hasLine=!1:this._hasLine=!0},i.decorators=[{type:n.Component,args:[{selector:"fc-title",template:"\n    <div *ngIf=\"fcLabel!==undefined\" class=\"fc-title\"  [style.width]=\"fcWidth\" \n        [ngClass]=\"{'fc-hasline':fcHasLine==='Y',\n        'fc-bottom-border':fcBorder==='bottom','fc-title-small':fcSize === 'small','fc-title-default':fcSize === 'default',\n        'fc-title-large':fcSize === 'large','fc-title-left':fcLayout==='left','fc-title-center':fcLayout==='center',\n        'fc-title-right':fcLayout==='right'}\">\n        <div class=\"fc-title-in\"><i *ngIf=\"fcIcon!==undefined&&fcIcon!==null&&fcIcon!==''\" class=\"icon iconfont\" [ngClass]=\"fcIcon\"></i><span style=\"padding-left: 3px;\">{{fcLabel}}</span></div>\n        <div class=\"fc-title-extra\"><ng-content select=\"[fcextra]\"></ng-content></div>\n    </div>\n    <div class=\"fc-subtitle\" \n        [ngClass]=\"{'fc-hasline':fcHasLine==='Y','fc-subtitle-small':fcSize === 'small','fc-subtitle-default':fcSize === 'default','fc-subtitle-large':fcSize === 'large','fc-subtitle-center':fcLayout==='center'}\">\n        <ng-content select=\"[fcsubtitle]\"></ng-content>\n        <span>{{fcSubtitle}}</span>\n    </div>\n    ",styles:["\n    .fc-title{\n        color:#333333;\n        margin-top:10px;\n        margin-bottom:10px;\n        position:relative;\n    }\n    .fc-title .icon{\n        color:#a3afb7;\n        margin-right: 10px;\n        font-size:16px;\n    }\n    .fc-title-extra{\n        position:absolute;\n        bottom:0;\n        right:0;\n    }\n    .fc-title-in span{\n        font-weight: 700;\n    }\n    .fc-title-small .fc-title-in span{\n        font-size:12px;\n    }\n    .fc-title-default .fc-title-in span{\n        font-size:14px;\n    }    \n    .fc-title-large .fc-title-in span{\n        font-size:18px;\n    }\n    .fc-subtitle{\n        color:#666666;\n        padding-left:10px;\n        margin-top:10px;\n        margin-bottom:10px;\n    }\n    .fc-subtitle label{\n        font-weight:bold;\n    }\n    .fc-subtitle-small{\n        font-size:12px;\n    }\n    .fc-subtitle-default{\n        font-size:14px;\n    }    \n    .fc-subtitle-large{\n        font-size:18px;\n    }\n   .fc-hasline{\n        position:relative;\n        border-left:3px solid #108ee9;\n    }\n    .fc-hasline:after{\n        width: 100%;\n        height: 100%;\n        content:'';\n        display:block; \n        position:absolute;\n        left:0;\n        top:0;\n    }\n    .fc-title-left{\n        padding-left:5px;\n    }\n    .fc-title-right{\n        padding-right:5px;\n    }\n    .fc-title-center{\n        width:100%;\n        height:20px;\n        line-height:20px;\n        text-align:center;\n        margin:0 auto;\n    }\n    .fc-title-center:after{\n        display:none;\n    }\n    .fc-title-center .fc-title-in {\n        width: 100%;\n        position: absolute;\n        left: 0;\n        top: 7px;\n        text-align: center;\n    }\n    .fc-title-center .fc-title-in span{\n        padding-left:20px;\n        padding-right:20px;\n        background-color:#EEF7FC;\n        color:#F4121E;\n        font-size:22px;\n    }\n    .fc-title-right {\n        text-align: right;\n    }\n    .fc-subtitle-center{\n        width:80%;\n        margin:0 auto;\n        padding-top:20px;\n        padding-bottom:5px;\n        text-aligin:left;\n        font-size:16px;\n    }\n    .fc-label:last-child {\n        text-align:right;\n    }\n    .fc-bottom-border {\n        width:100%;\n        border-bottom: 1px solid #ebedf0;\n        margin-left:0;\n        font-weight:700;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcIcon:[{type:n.Input}],fcLabel:[{type:n.Input}],fcSubtitle:[{type:n.Input}],fcHasLine:[{type:n.Input}],fcBorder:[{type:n.Input}],fcLayout:[{type:n.Input}],fcWidth:[{type:n.Input}]},i}(S);var ne={LEFT:"left",CENTER:"center",RIGHT:"right"},te={TOP:"top",BOTTOM:"bottom",NULL:"null"};var ie=function(){function e(){}return e.getSelectedKey=function(e,n){var t=this,i="";return n?(n.forEach((function(e){i+=e.key+",";var n=t.getChildrenKeys(e.getChildren());n&&(i+=n)})),","===i.substr(i.length-1,i.length)&&(i=i.substr(0,i.length-1)),i):i},e.getChildrenKeys=function(e){var n=this,t="";return e&&0===e.length?null:(e.forEach((function(e){if((e.isHalfChecked||e.isChecked)&&(t+=e.key+",",null!==e.getChildren())){var i=n.getChildrenKeys(e.getChildren());i&&(t+=","+i)}})),t)},e.getParentNodeKeys=function(e){var n=this,t="";return e?(e.forEach((function(e){if(t+=e.key+",",null!==e.getParentNode()){var i=n.getParentNodeKeys([e.getParentNode()]);i&&(t+=i+",")}})),t):null},e.listChildToTreeNodes=function(e,n,t,i){var o=this;if(!e)return null;var a=[];return e.forEach((function(e){var c={id:e.ID,expanded:!1,key:e[n],title:e[t],isLeaf:!0,DATA:e};if(e[i]){var s=o.listChildToTreeNodes(e[i],n,t,i);c.isLeaf=!1,c.expanded=!0,c.children=s}a.push(Object.assign({},c))})),a},e}(),oe=function(e){function o(n){var i=e.call(this,n,"fc-tree")||this;return i.provider=n,i._options={allowDrag:!1,getChildren:function(e){var n=e.DATA;void 0===n&&(n=e.data.DATA);var o=i.appService.findWithQuery(i.fcAppid,{WHERE:t.CommonService.getStringFilterByParam(n,i.fcOption.fcExpWhere),ORDER:i.fcOption.fcOrderby});return new Promise((function(e,n){i.pushDestroy(o.subscribe((function(n){return e(i._listtotreeasync(n.DATA,i.fcOption.fcChildCode,i.fcOption.fcLabel,i.fcOption.fcParentCode,i.fcOption.fcLeafCode))})))}))}},i}return h(o,e),o.prototype.ngOnChanges=function(e){var n=this;void 0===this.fcOption&&new Error("缺少fcOption属性"),this.fcOption.fcAllowDrag&&(this._options.allowDrag=this.fcOption.fcAllowDrag),void 0!==this.fcNodes&&!0!==this.fcOption.fcRefresh||(this.fcNodes=[],this.fcAppid=this.fcOption.fcAppid,this.pushDestroy(this.daoService.getFromApi(this.fcUrl,Object.assign({},{AID:this.fcAppid},{ORDER:this.fcOption.fcOrderby||"",WHERE:this.fcOption.fcTopWhere},this.fcRequestParam)).subscribe((function(e){"0"===e.CODE&&0!==e.DATA.length?(n.fcNodes=n._listtotreeasync(e.DATA,n.fcOption.fcChildCode,n.fcOption.fcLabel,n.fcOption.fcParentCode,n.fcOption.fcLeafCode),n.event("loadedDataSuccess",n.fcNodes)):(n.fcNodes=void 0,n.event("loadedDataFail",n.fcNodes))}))))},o.prototype.checkChange=function(n,t){t.selectedKeys=ie.getSelectedKey(this,this.fcRef.getCheckedNodeList()).replace(",,",","),t.selectedParentKeys=ie.getParentNodeKeys(t.checkedKeys).replace(",,",","),e.prototype.event.call(this,n,t)},o.prototype.getChildren=function(e,n){var i=this,o=n.node.origin.DATA;void 0!==this.fcAppid&&0!==this.fcAppid.length?this.pushDestroy(this.appService.findWithQuery(this.fcAppid,{WHERE:t.CommonService.getJsonStrFilterByParam(o,this.fcOption.fcExpWhere,"#"),ORDER:this.fcOption.fcOrderby}).subscribe((function(e){"0"===e.CODE&&(n.node&&n.node.children&&n.node.children.length>0&&n.node.clearChildren(),n.node.addChildren(i._listtotreeasync(e.DATA,i.fcOption.fcChildCode,i.fcOption.fcLabel,i.fcOption.fcParentCode,i.fcOption.fcLeafCode))),i.event("expand",n)}))):this.event("expand",n)},o.prototype._listtotreeasync=function(e,n,i,o,a){var c=this,s=[];return e.forEach((function(e){var o={title:t.CommonService.getJsonStrFilterByParam(e,i,"#"),key:e[n],DATA:e};(void 0===c.fcOption.fcLeafValue&&(c.fcOption.fcLeafValue="Y"),e[c.fcOption.fcLeafCode]!==c.fcOption.fcLeafValue&&(o.isLeaf=!0),c.fcOption.fcCheckable&&c.fcCheckedKeys)&&(c.fcCheckedKeys.filter((function(t){return t===e[n]})).length>0&&(o.checked=!0));s.push(new l.NzTreeNode(o))})),s},o.decorators=[{type:n.Component,args:[{selector:"fc-tree",template:'<div *ngIf="!fcNodes||fcNodes.length==0" style="text-align:center" >暂无数据</div>\n                <nz-tree #fcRef *ngIf="fcNodes&&fcNodes.length>0"\n                [nzData]="fcNodes"\n                [nzCheckable]="fcOption.fcCheckable"\n                [nzMultiple]="fcOption.fcMutliple"\n                [nzAsyncData]="fcOption.fcAsync"\n                (nzExpandChange)="getChildren(\'expand\',$event)"\n                [nzExpandedKeys]="fcExpandKeys"\n                [nzCheckedKeys]="fcCheckedKeys"\n                [nzSelectedKeys]="fcSelectedKeys"\n                [nzExpandAll]="fcOption.fcOpenChild"\n                (nzClick)="event(\'click\',$event)"\n                (nzDblClick)="event(\'dblclick\', $event)"\n                (nzContextMenu)="event(\'rightclick\', $event)"\n                (nzCheckBoxChange)="checkChange(\'checkChange\', $event)"\n                (nzSearchValueChange)="event(\'search\', $event)"\n                [nzDraggable]="fcOption.fcAllowDrag"\n                [nzBeforeDrop]="beforeDrop"\n                (nzOnDragStart)="event(\'dragstart\',$event)"\n                (nzOnDragEnter)="event(\'enter\',$event)"\n                (nzOnDragLeave)="event(\'leave\', $event)"\n                (nzOnDrop)="event(\'drop\', $event)"\n                (nzOnDragEnd)="event(\'end\', $event)">\n            </nz-tree>',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcId:[{type:n.Input}],fcNodes:[{type:n.Input}],fcOption:[{type:n.Input}],fcSelectedKeys:[{type:n.Input}],fcExpandKeys:[{type:n.Input}],fcCheckedKeys:[{type:n.Input}]},o}(S);var ae=function(e){function i(n){var t=e.call(this,n,"fc-table")||this;return t.provider=n,t.fcOption={fields:[],data:[]},t}return h(i,e),i.prototype._search=function(e){this.event("search",e)},i.prototype._afterParentInit=function(){var e=this;(this.fcOption||this.fcOption.field||0===this.fcOption.field.length)&&(this.fcOption.fields=this.fcApp.SYSAPPFIELDS),void 0===this.fcOption.enablePage&&(this.fcOption.enablePage=!1),void 0!==this.fcOption.data&&0!==this.fcOption.data.length||this.pushDestroy(this.appService.findWithQuery(this.fcAppid,{}).subscribe((function(n){"0"===n.CODE&&(e.fcOption.data=n.DATA)})))},i.decorators=[{type:n.Component,args:[{selector:"fc-table",template:'\n    <nz-table #nzTable [nzData]="fcOption.data" [nzIsPagination]="fcOption.enablePage">\n        <thead nz-thead>\n          <tr>\n            <th *ngFor="let field of fcOption.fields" nz-th><span>{{field.FIELDNAME}}</span></th>\n          </tr>\n        </thead>\n      <tbody nz-tbody>\n        <tr nz-tbody-tr *ngFor="let data of nzTable.data">\n            <td nz-td *ngFor="let field of fcOption.fields" nz-th>{{data[field.FIELDCODE]}}</td>\n        </tr>\n      </tbody>\n    </nz-table>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i}(S);var ce=function(e){function i(n,i,o){var a=e.call(this,n,"fc-upload")||this;return a.provider=n,a.http=i,a.msg=o,a.fcLimit=0,a.fcFileSize=0,a.fcNumber=0,a._previewImage="",a._previewVisible=!1,a.uploading=!1,a.fcMultiple=!0,a._beforeUpload=function(e){return a._fileList.push(e),!1},a._handlePreview=function(e){a._previewImage=e.url||e.thumbUrl,a.fcPreview?a._previewVisible=!0:a.fcPreview||(a._previewVisible=!1,a.event("selectedPic",e))},a._removeUpload=function(e){a._fileList=a._fileList.filter((function(n){return n.uid!==e.uid})),a.pushDestroy(a.appService.deleteObject("SYSRESLIB",e.uid).subscribe((function(e){"0"===e.CODE&&a.event("removeFile",a._fileList)})))},a._url=a.daoService.getUrl(t.FCCONFIG.uploadurl+"SYSTEM/SYSRESLIB/upload",{PRODUCTID:t.FCCONFIG.pid}),void 0===a.fcListType&&(a.fcListType="text"),void 0===a.fcPreview&&(a.fcPreview=!0),a}return h(i,e),i.prototype._afterParentInit=function(){var e=this;if("Y"===this.fcDis?this._dis=!0:this._dis=!1,void 0===this.fcOption)throw new Error("请配置参数：FILETYPE，SOURCEAID,SOURCEID");"picture-card"===this.fcListType?(this._fileList=[],this.pushDestroy(this.appService.findWithQuery("SYSRESLIB",{WHERE:"{RESTYPE:{eq:'PIC'}, SOURCEID:{eq:'"+this.fcOption.SOURCEID+"'}, SOURCEAID:{eq:'"+this.fcOption.SOURCEAID+"'}}"}).subscribe((function(n){"0"===n.CODE&&(n.DATA.forEach((function(n){e._fileList.push({uid:n.ID,size:n.RESSIZE,name:n.RESNAME,type:n.RESTYPE,url:n.RESPATH,status:"done"})})),e._listType=e.fcListType,e.event("loaded",e._fileList))})))):this._fileList=[],"Y"===this.fcDisabled?this._disabled=!0:this._disabled=!1,"Y"===this.fcReadonly?this._readonly=!0:this._readonly=!1},i.prototype._handleUpload=function(){var e=this,n=new FormData;this._fileList.forEach((function(e){n.append(e.name,e)})),Object.keys(this.fcOption).forEach((function(t){n.append(t,e.fcOption[t])})),n.append("PRODUCTID",t.FCCONFIG.pid),this.uploading=!0;new r.HttpRequest("POST",this._url,n,{});this.pushDestroy(this.daoService.upload(n).subscribe((function(n){e.uploading=!1,"0"===n.CODE?(e.msg.success("上传成功."),e.event("success",n.DATA),e._fileList=[]):(e.msg.error(n.MSG),e.event("failure","上传失败"))}),(function(n){e.uploading=!1,e.msg.error("上传失败."),e.event("failure","上传失败")})))},i.prototype._uploadChange=function(e){e.file.error&&this.event("error",e.file.error),"start"===e.file.status&&this.event("start",e.file),"progress"===e.file.status&&this.event("progress",e.file.percent),"success"!==e.file.status&&"done"!==e.file.status||this.event("success",e.file)},i.decorators=[{type:n.Component,args:[{selector:"fc-upload",template:'\n  <nz-upload *ngIf="(fcListType===\'text\'||fcListType===undefined)&&!fcShowLabel"\n  [nzAccept]="fcAccept" [nzLimit]="fcLimit" [nzSize]="fcFileSize"\n  [nzFileType]="fcFileType" [nzAction]="_url" [nzListType]="fcListType"\n   [nzData]="fcOption" [nzMultiple]="fcMultiple" [nzName]="\'files\'"\n    [ngClass]="{\'fc-readonly\':_readonly===true}" [nzDisabled]="_dis||_disabled"\n     [nzShowButton]="!_readonly||_readonly===undefined" [nzFileList]="_fileList"\n      [nzBeforeUpload]="_beforeUpload">\n        <button nz-button   *ngIf="!_readonly">\n            <i class="icon iconfont fc-icon-uploading\'"></i>\n            上传文件\n        </button>\n  </nz-upload>\n<button *ngIf="(fcListType===\'text\'||fcListType===undefined)&&!fcShowLabel"\n nz-button [nzType]="\'primary\'" [nzLoading]="uploading"\n (click)="_handleUpload()" [disabled]="_fileList.length == 0"\n style="margin-top: 10px;">{{ uploading ? \'上传中\' : \'开始上传\' }}</button>\n<div class="clearfix" *ngIf="fcListType===\'picture-card\'&&!fcShowLabel">\n    <nz-upload [nzAction]="_url" [nzListType]="_listType" [nzAccept]="fcAccept"\n     [nzLimit]="fcLimit" [nzName]="\'files\'" [nzSize]="fcFileSize"\n     [nzFileType]="fcFileType" [nzData]="fcOption" [(nzFileList)]="_fileList"\n     [ngClass]="{\'fc-readonly\':_readonly===true}" [nzShowButton]="!_readonly"\n      [nzDisabled]="_dis||_disabled" [nzPreview]="_handlePreview"\n      [nzRemove]="_removeUpload" (nzChange)="_uploadChange($event)" [nzMultiple]="fcMultiple">\n        <i class="anticon anticon-plus"  *ngIf="!_readonly"></i>\n        <div class="ant-upload-text"  *ngIf="!_readonly">上传</div>\n    </nz-upload>\n    <nz-modal [nzVisible]="_previewVisible" [nzContent]="modalContent" [nzFooter]="null" (nzOnCancel)="_previewVisible=false">\n        <ng-template #modalContent>\n            <img [src]="_previewImage" [ngStyle]="{ \'width\': \'100%\' }"/>\n        </ng-template>\n    </nz-modal>\n</div>\n<div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n    <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n    <div nz-col [nzSpan]="valueSpan">\n      <nz-upload *ngIf="fcListType===\'text\'||fcListType===undefined"\n       [nzAccept]="fcAccept"  [nzLimit]="fcLimit"\n        [nzSize]="fcFileSize" [nzFileType]="fcFileType"\n        [nzName]="\'files\'" [nzAction]="_url"\n        [nzListType]="fcListType" [nzData]="fcOption"\n        [nzMultiple]="fcMultiple" [ngClass]="{\'fc-readonly\':_readonly===true}"\n        [nzDisabled]="_dis||_disabled"\n         [nzShowButton]="!_readonly||_readonly===undefined"\n          [nzFileList]="_fileList" [nzBeforeUpload]="_beforeUpload">\n      <button nz-button  *ngIf="!_readonly">\n          <i class="icon iconfont fc-icon-uploading"></i>\n          选择文件\n      </button>\n      </nz-upload>\n      <button *ngIf="fcListType===\'text\'||fcListType===undefined"\n       nz-button [nzType]="\'primary\'" [nzLoading]="uploading" (click)="_handleUpload()"\n       [disabled]="_fileList.length == 0"\n        style="margin-top: 10px;">{{ uploading ? \'上传中\' : \'开始上传\' }}</button>\n      <div class="clearfix" *ngIf="fcListType===\'picture-card\'">\n          <nz-upload [nzAction]="_url"  [nzName]="\'files\'" [nzAccept]="fcAccept"\n           [nzLimit]="fcLimit"  [nzSize]="fcFileSize" [nzFileType]="fcFileType"\n            [nzListType]="_listType" [nzData]="fcOption" [(nzFileList)]="_fileList"\n             [ngClass]="{\'fc-readonly\':_readonly===true}" [nzShowButton]="!_readonly"\n             [nzDisabled]="_dis||_disabled" [nzPreview]="_handlePreview"\n             [nzRemove]="_removeUpload" (nzChange)="_uploadChange($event)"\n             [nzMultiple]="fcMultiple">\n              <i class="anticon anticon-plus"></i>\n              <div class="ant-upload-text" *ngIf="!_readonly">上传</div>\n          </nz-upload>\n          <nz-modal [nzVisible]="_previewVisible" [nzContent]="modalContent" [nzFooter]="null" (nzOnCancel)="_previewVisible=false">\n              <ng-template #modalContent>\n                <img [src]="_previewImage" [ngStyle]="{ \'width\': \'100%\' }"/>\n              </ng-template>\n          </nz-modal>\n      </div>\n    </div>\n</div>\n<nz-upload [nzAction]="_url" [nzName]="\'files\'" [nzAccept]="fcAccept"\n [nzLimit]="fcLimit"  [nzSize]="fcFileSize" [nzFileType]="fcFileType"\n  *ngIf="fcListType===\'icon\'&&fcShowLabel === \'N\'"\n  [nzData]="fcOption" [nzMultiple]="fcMultiple"\n  [ngClass]="{\'fc-readonly\':_readonly===true}" [nzDisabled]="_dis||_disabled"\n  [nzShowButton]="!_readonly||_readonly===undefined"\n  [nzFileList]="_fileList" [nzBeforeUpload]="_beforeUpload">\n      <button nz-button   *ngIf="!_readonly">\n        <i class="anticon anticon-upload"></i><span>上传文件</span>\n      </button>\n</nz-upload>\n    ',styles:["\n  .fc-readonly {\n    pointer-events: none;\n    }\n  :host ::ng-deep .fc-readonly .ant-input-number-input-wrap{\n    background-color: #ccc;\n    }\n  "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:r.HttpClient},{type:l.NzMessageService}]},i.propDecorators={fcAccept:[{type:n.Input}],fcLimit:[{type:n.Input}],fcFileSize:[{type:n.Input}],fcFileType:[{type:n.Input}],fcListType:[{type:n.Input}],fcNumber:[{type:n.Input}],fcPreview:[{type:n.Input}],fcMultiple:[{type:n.Input}],fcDis:[{type:n.Input}],fcIcon:[{type:n.Input}]},i}(S);var se=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.initData=function(e,n){e.fcPlaceHolder="请选择",e.fcNotFoundContent="未找到记录",e.fcLabelCode="label",e.fcValueCode="value",e._disabledCode="disabled",e.fcAutoFocus="N",e.fcLineOneSpace="N",e.fcType="multiple",e.fcAutoSize="Y",e._autoSize=!1,e.fcAllowClear="N",e._allowClear=!1,e.fcOpen="N",e._open=!1,e._disabled=!1,e.fcDisabled="N",e._readonly=!1,e.fcReadonly="N",e.fcFilterOption=function(e,n){return!(!n.nzValue.label||-1===n.nzValue.label.indexOf(e))}},n.changeOption=function(e,n){n.fcOption&&(e._options=[],e.fcOption&&("Y"===e.fcLineOneSpace&&e._options.push({label:"",value:"",disabled:!1}),e.fcOption.forEach((function(n){var i={label:-1===e.fcLabelCode.indexOf(":{")?n[e.fcLabelCode]:t.CommonService.getStringFilterByParam(n,e.fcLabelCode),value:n[e.fcValueCode],disabled:n.disabled};n.hasOwnProperty(e.fcDisabled)&&(i.disabled=n[e.fcDisabled]),e._options.push(i)}))))},n.valueChange=function(e,n){var t=e._innerValue||[{value:""}],i="";if(t.forEach((function(e){i+=e.value+","})),0!==e._options.filter((function(e){return-1!==i.indexOf(e.value+",")})).length){i.length>0&&(i=i.substr(0,i.length-1)),e._selectOptions=i.split(",");var o=e.innerValue,a="";o.forEach((function(e){a+=e.value})),a!==i&&this.valueOnChange(e,e._selectOptions)}else e._selectOptions=void 0},n.valueOnChange=function(e,n){if(e._innerValue=void 0,null!=n&&n.length>0){var t=n.join(","),i=e.fcOption.filter((function(n){return-1!==t.indexOf(n[e.fcValueCode])}));0!==i.length&&(e._innerValue=i)}""===e._innerValue&&e.event("clear",""),e.checkValidator(e._innerValue),e.onChangeCallback(e._innerValue)},n}(t.ParentBusiness),le=function(e){function o(n){var t=e.call(this,n,"fc-many")||this;return t.provider=n,t.fcLoading="N",t._options=[],t._selectOptions=[],t.fcShowSearch=!0,se.initData(t,{}),t}return h(o,e),o.prototype._afterParentInit=function(e){e&&0===Object.keys(e).length||!e?se.valueChange(this,e):(se.changeOption(this,e),this._allowClear=void 0===this.fcAllowClear||"Y"===this.fcAllowClear,this._autoSize="N"===this.fcAutoSize,this._open="Y"===this.fcOpen,this._disabled="Y"===this.fcDisabled,this._readonly="Y"===this.fcReadonly,se.valueChange(this,e))},o.prototype._event=function(n,t){switch(n){case"scrollToBottom":e.prototype.event.call(this,"scrollToBottom",this._selectOptions);break;case"valueOnChange":se.valueOnChange(this,t);break;default:e.prototype.event.call(this,n,t)}},o.decorators=[{type:n.Component,args:[{selector:"fc-many",template:'\n<nz-select [nzFilterOption]="fcFilterOption" [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle" class="fc-many" *ngIf="fcShowLabel===\'N\'"\n [ngClass]="{\'fc-readonly\':_readonly===true,\'fc-many-small\':fcSize === \'small\',\'fc-many-default\':fcSize === \'default\',\'fc-many-large\':fcSize === \'large\'}" \n[nzShowSearch]="fcShowSearch"  (nzOnSearch)="_event(\'onSearch\',$event)" (nzOpenChange)="_event(\'openChange\',$event)" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)" \n [nzDisabled]="_disabled" [(ngModel)]="_selectOptions" [nzMode]="fcType" [nzSize]="fcSize" \n(ngModelChange)="_event(\'valueOnChange\',$event)" [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" \n[nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'">\n    <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled"></nz-option>\n    <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n    <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n  </nz-option>\n</nz-select>\n<div nz-row  nzType="flex" class="rowspans"  *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">\n            <nz-select  [nzFilterOption]="fcFilterOption"  [nzDropdownClassName]="fcDropdownClassName" [nzDropdownStyle]="fcDropdownStyle" \n             class="fc-many" [ngClass]="{\'fc-readonly\':_readonly===true}" [nzSize]="fcSize" [nzDisabled]="_disabled" \n              [nzShowSearch]="fcShowSearch" (nzOpenChange)="_event(\'openChange\',$event)" (nzOnSearch)="_event(\'onSearch\',$event)" (nzScrollToBottom)="_event(\'scrollToBottom\',$event)"  \n                [(ngModel)]="_selectOptions" [nzMode]="fcType" \n                (ngModelChange)="_event(\'valueOnChange\',$event)" [nzNotFoundContent]="fcNotFoundContent" [nzPlaceHolder]="fcPlaceHolder" \n                [nzAllowClear]="_allowClear" [nzDropdownMatchSelectWidth]="_autoSize" [nzOpen]="_open" [nzAutoFocus]="fcAutoFocus===\'Y\'">\n                    <nz-option *ngFor="let option of _options" (click)="_event(\'click\',option)" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled"></nz-option>\n                    <nz-option *ngIf="fcLoading===\'Y\'" nzDisabled nzCustomContent>\n                    <i nz-icon type="loading" class="loading-icon"></i> 正在加载中...\n                  </nz-option>\n            </nz-select>\n            <div class="fc-help-text" *ngIf="\'Y\'===fcShowHelp">\n                {{fcHelp}}\n            </div>\n            <div class="explain" *ngIf="_validator!==undefined&&_validator.show===\'Y\'">\n                <div [hidden]="_validator.showValidator!==\'required\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.required}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'maxLength\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.maxLength}}</div>\n                </div>\n                <div [hidden]="_validator.showValidator!==\'customVal\'" class="explain-inner">\n                    <div class="explain-tips">{{_validator.errorMessages.customVal}}</div>\n                </div>\n            </div>\n        </div>\n    </div>\n  ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n        :host ::ng-deep .ant-select-dropdown-menu-item{\n            overflow:visible;\n        }\n        :host ::ng-deep .ant-select-dropdown{\n            overflow:auto;\n        }\n        .fc-many{\n            width:100%\n        }\n        :host ::ng-deep .ant-select-dropdown-menu-item{\n            overflow: visible;\n        }\n        .fc-readonly {\n            pointer-events: none;\n            color: #b2b9bd;\n        }\n        :host ::ng-deep .fc-readonly .ant-select-selection{\n            background:#f5f5f5;\n        }\n        .form-explain {\n            position:relative;\n        }\n        .explain{\n            white-space: nowrap;\n            position:absolute;\n            right: -1px;\n            bottom: 24px;\n            z-index:10;\n        }\n        .explain-inner {\n            position:relative;\n            color:red;\n        }\n        .explain-inner:after{\n            content: '';\n            width: 10px;\n            height: 12px;\n            display: block;\n            background-color: #ffffff;\n            border-right: 1px solid #e9e9e9;\n            border-bottom: 1px solid #e9e9e9;\n            position: absolute;\n            bottom: -6px;\n            right: 12px;\n            transform: rotate(45deg);\n            z-index: 0;\n        }\n        .explain-tips{\n            padding: 0px 10px;\n            background-color: #ffffff;\n            border: 1px solid #e9e9e9;\n            border-radius: 4px;\n            font-size: 12px;\n            height: 30px;\n            line-height: 28px;\n        }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcFilterOption:[{type:n.Input}],fcDropdownClassName:[{type:n.Input}],fcDropdownStyle:[{type:n.Input}],fcLineOneSpace:[{type:n.Input}],fcLoading:[{type:n.Input}],fcOption:[{type:n.Input}],fcShowSearch:[{type:n.Input}],fcNotFoundContent:[{type:n.Input}],fcLabelCode:[{type:n.Input}],fcValueCode:[{type:n.Input}],_disabledCode:[{type:n.Input}],fcAllowClear:[{type:n.Input}],fcAutoSize:[{type:n.Input}],fcAutoFocus:[{type:n.Input}],fcOpen:[{type:n.Input}]},o}(S);var re=function(e){function i(n){var t=e.call(this,n,"fc-badge")||this;return t.provider=n,t._count=[0],void 0===t.fcPosition&&(t.fcPosition="bottom"),void 0===t.fcOverflowCount&&(t.fcOverflowCount="99"),void 0===t.fcStatus&&(t.fcStatus="default"),void 0===t.fcDot&&(t._dot=!1),t}return h(i,e),i.prototype._afterParentInit=function(){this.fcCount&&(this._count[0]=Number(this.fcCount)),this.fcOverflowCount&&(this._overflowCount=parseInt(this.fcOverflowCount)),"Y"==this.fcDot&&(this._dot=!0)},i.decorators=[{type:n.Component,args:[{selector:"fc-badge",template:'\n     <nz-badge [nzPlacement]="fcPosition" [title]="fcToolTip" [nzCount]="_count" [nzOverflowCount]="_overflowCount" *ngIf="fcCount!==undefined"> \n        <ng-content select="[fccontent]"></ng-content>\n        <i class="icon iconfont  {{fcIcon}}" [style.fontSize]="fcFontSize" [ngClass]="{\'fc-icon-small\':fcSize === \'small\',\'fc-icon-default\':fcSize === \'default\',\'fc-icon-large\':fcSize === \'large\'}" ></i>\n     </nz-badge>\n    <nz-badge [nzDot]="_dot" *ngIf="fcDot===\'Y\'">\n        <ng-content select="[fccontent]"></ng-content>\n        <i class="icon iconfont  {{fcIcon}}" [style.fontSize]="fcFontSize" [ngClass]="{\'fc-icon-small\':fcSize === \'small\',\'fc-icon-default\':fcSize === \'default\',\'fc-icon-large\':fcSize === \'large\'}" ></i>\n    </nz-badge>\n    <nz-badge [nzStatus]="fcStatus" [nzText]="fcText" *ngIf="fcStatus!==undefined&&fcCount===undefined&&fcDot===undefined"></nz-badge>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcToolTip:[{type:n.Input}],fcPosition:[{type:n.Input}],fcOverflowCount:[{type:n.Input}],fcCount:[{type:n.Input}],fcStatus:[{type:n.Input}],fcText:[{type:n.Input}],fcIcon:[{type:n.Input}],fcDot:[{type:n.Input}],fcContent:[{type:n.Input}],fcFontSize:[{type:n.Input}]},i}(S);var fe=function(e){function i(n){var t=e.call(this,n,"fc-tooltip")||this;return t.provider=n,t._visible=!1,void 0===t.fcPosition&&(t.fcPosition="top"),void 0===t.fcTrigger&&(t.fcTrigger="hover"),t}return h(i,e),i.decorators=[{type:n.Component,args:[{selector:"fc-tooltip",template:'\n        <span title="{{fcTitle}}">\n            <ng-content select="[fccontent]"></ng-content>\n        </span>\n    ',styles:["\n    \n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcTitle:[{type:n.Input}],fcPosition:[{type:n.Input}],fcTrigger:[{type:n.Input}],fcVisible:[{type:n.Input}]},i}(y);var pe=function(e){function i(n){var t=e.call(this,n,"fc-cascader")||this;return t.provider=n,t}return h(i,e),i.decorators=[{type:n.Component,args:[{selector:"fc-cascader",template:"\n    \n    ",styles:["\n    :host ::ng-deep .ant-cascader-picker {\n        width: 300px;\n    }\n    .change-options {\n        display: inline-block;\n        font-size: 12px;\n        margin-top: 8px;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i}(S);var de=function(e){function i(n){var t=e.call(this,n,"fc-list")||this;return t.provider=n,t.loading=!1,t.data=[],t._isVisible=!1,t._isCheckedButton=!1,t.fcData=[],t.fcOption={field:{},data:[],buttons:[]},t}return h(i,e),i.prototype._afterParentInit=function(){var e=this;if(void 0===this.fcEnableCheckbox&&(this.fcEnableCheckbox="N"),this.fcOption instanceof Array)this.fcData=this.fcOption,this.fcData.forEach((function(e){t.CommonService.getStringFilterByParam(e,":{APPID}:{APPID}")})),this.fcField=this.fcApp.SYSAPPFIELDS.filter((function(n){return e.fcFieldCode===n.FIELDCODE}))[0],this._buttons=this.fcApp.SYSAPPBUTTONS.filter((function(e){return"LISTONE"===e.BTNTYPE})),this.event("loaded",this.fcData);else if(this.fcField=this.fcApp.SYSAPPFIELDS.filter((function(n){return e.fcOption.field.FIELDCODE===n.FIELDCODE}))[0],void 0!==this.fcOption.buttons&&0!==this.fcOption.buttons.length||(this._buttons=this.fcApp.SYSAPPBUTTONS.filter((function(e){return"LISTONE"===e.BTNTYPE}))),void 0===this.fcOption.data||0===this.fcOption.data.length){var n={};if(this.fcCondition&&this.fcCondition.length>0)try{n=JSON.parse(this.fcCondition)}catch(e){}this.pushDestroy(this.appService.findWithQuery(this.fcAppid,n).subscribe((function(n){"0"===n.CODE&&(e.event("loaded",n.DATA),e.fcData=n.DATA)})))}},i.prototype._select=function(e){return this.fcSelectedId=e.ID},i.prototype._isActive=function(e){return this.fcSelectedId===e},i.decorators=[{type:n.Component,args:[{selector:"fc-list",template:'\n<nz-list\n    class="fc-list"\n    [nzDataSource]="fcData"\n    [nzItemLayout]="\'horizontal\'"\n    [nzRenderItem]="item">\n    <ng-template #item let-item>\n      <nz-list-item class="fc-list-item" [ngClass]="{\'active\':_isActive(item.ID)}" [nzContent]="item[fcField.LENGTH]" [nzActions]="[buttons]" (click)="_select(item); event(\'select\',item)">\n        <ng-template #buttons>\n            <ng-container *ngFor="let btn of _buttons">\n                <i nz-icon [iconfont]="btn.BTNICON" [title]="btn.BTNNAME"\n                    *ngIf="btn.BTNICON!==undefined&&btn.BTNICON!==null&&btn.BTNICON!==\'\'"\n                    (click)="$event.stopPropagation();event(btn.ACTCODE, item)"></i>\n                <span class="borderRighgt" *ngIf="btn.BTNICON===undefined||btn.BTNICON===null||btn.BTNICON===\'\'" (click)="$event.stopPropagation();event(btn.ACTCODE,\n                     item)">{{btn.BTNNAME}}</span>\n            </ng-container>\n        </ng-template>\n        <nz-list-item-meta\n            [nzTitle]="nzTitle"\n            [nzAvatar]="item[fcIconCode]"\n            [nzDescription]="item[fcSubTitleCode]">\n            <ng-template #nzTitle>\n                <div *ngIf="item[fcIconCode]!==undefined&&item[fcIconCode]!==null&&item[fcIconCode]!==\'\'" class="icon-circle" [style.backgroundColor]="fcIconColor">\n                    <i class="icon iconfont left-icon" nz-icon [iconfont]="item[fcIconCode]"></i>\n                </div>\n                <div *ngIf="fcIcon!==undefined&&fcIcon!==null&&fcIcon!==\'\'" class="icon-circle" [style.backgroundColor]="fcIconColor">\n                    <i class="icon iconfont left-icon" nz-icon  [iconfont]="fcIcon"></i>\n                </div> \n                <a href="javascript:;">{{item[fcField.FIELDCODE]}}</a>\n            </ng-template>\n        </nz-list-item-meta>\n      </nz-list-item>\n    </ng-template>\n  </nz-list>\n    ',styles:["\n      :host ::ng-deep .loadmore {\n        text-align: center;\n        margin-top: 12px;\n        height: 32px;\n        line-height: 32px;\n      }\n      .icon-circle{\n        width:30px;\n        height:30px;\n        line-height:30px;\n        background-color:#46be8a;\n        border-radius:50%;\n        text-align:center;\n        float:left;\n        margin:0px 10px;\n        color:#ffffff;\n        .borderRighgt{\n            border-right:1px solid #e8e8e8;\n            padding-right: 5px;\n        }\n        .borderRighgt:hover{\n            color:#1692ff;\n        }\n        .fc-list-item:hover,.active{\n            background-color:#F3F7F9;\n            cursor:pointer;\n        }\n        :host ::ng-deep .fc-list-item:hover .ant-list-item-meta-title>a,:host ::ng-deep .active .ant-list-item-meta-title>a {\n            color:rgb(24, 144, 255);\n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcContent:[{type:n.Input}],fcAvatar:[{type:n.Input}],fcIconCode:[{type:n.Input}],fcIcon:[{type:n.Input}],fcIconColor:[{type:n.Input}],fcStatus:[{type:n.Input}],fcTitle:[{type:n.Input}],fcSelectedId:[{type:n.Input}],fcSubTitleCode:[{type:n.Input}],fcCheckValue:[{type:n.Input}],fcStatusCode:[{type:n.Input}],fcEnableCheckbox:[{type:n.Input}]},i}(S);var ue=function(e){function i(n){var t=e.call(this,n,"fc`-tag")||this;return t.provider=n,t._checked=!0,t._check=!1,t}return h(i,e),i.prototype._afterParentInit=function(){void 0===this.fcMode&&(this.fcMode=he.default),"Y"===this.fcChecked?this._check=!0:this._check=!1},i.prototype._close=function(e){this.event("close",{label:this.fcLabel,value:this.fcValue})},i.prototype.afterClose=function(e){this.event("afterClose",{label:this.fcLabel,value:this.fcValue})},i.prototype._handleChange=function(e){this.event("check",{label:this.fcLabel,value:this.fcValue,checked:this._checked})},i.prototype._click=function(e){this.event("click",{event:e})},i.decorators=[{type:n.Component,args:[{selector:"fc-tag",template:'\n  <nz-tag [nzMode]="fcMode" [nzColor]="fcColor" (click) = "_click($event)" (nzOnClose)="_close($event)" (nzAfterClose)="afterClose($event)" \n  [nzChecked]="fcChecked"  \n  (nzCheckedChange)="_handleChange($event)">\n      <span [ngClass]="{\'fc-tag-small\':fcSize === \'small\',\'fc-tag-default\':fcSize === \'default\',\'fc-tag-large\':fcSize === \'large\'}">\n      <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</span>\n  </nz-tag>\n',styles:["\n  .fc-tag-small , .fc-tag-small i{\n      font-size:12px;\n  }\n  .fc-tag-default , .fc-tag-default i{\n      font-size:14px;\n  }\n  .fc-tag-large , .fc-tag-large i{\n      font-size:16px;\n  }\n  "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcLabel:[{type:n.Input}],fcValue:[{type:n.Input}],fcIcon:[{type:n.Input}],fcColor:[{type:n.Input}],fcMode:[{type:n.Input}],fcChecked:[{type:n.Input}]},i}(S);var he={closeable:"closeable",default:"default",checkable:"checkable"},ge=function(e){function i(n){var t=e.call(this,n,"fc-link")||this;return t.provider=n,void 0===t.fcLabel&&(t.fcLabel=""),t.fcHasline,t._hasLine=!1,t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},i.prototype._afterParentInit=function(){"Y"===this.fcHasline?this._hasLine=!0:this._hasLine=!1},i.decorators=[{type:n.Component,args:[{selector:"fc-link",template:'\n    <a class="fc-link" [ngClass]="{\'fc-link-hasline\':fcHasline===\'Y\'}" [href] = "fcHref"\n    [style.color]="fcColor" [style.display] = "\'inline-block\'" [style.fontsize]="fcSize"\n    >{{fcLabel}}</a>\n    ',styles:["\n        .fc-link-hasline{\n            border-bottom:1px solid #000;\n        }\n        :host ::ng-deep .fc-readonly .ant-input-number-input-wrap{\n            background-color: #ccc;\n        } \n        "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcLabel:[{type:n.Input}],fcHasline:[{type:n.Input}],fcColor:[{type:n.Input}],fcSize:[{type:n.Input}],fcHref:[{type:n.Input}]},i}(S);var ve=function(e){function i(n){var t=e.call(this,n,"fc-line")||this;return t.provider=n,t._dashed=!1,t._leftIcon=!0,t._rightIcon=!1,void 0===t.fcDirection&&(t.fcDirection="horizontal"),void 0===t.fcPosition&&(t.fcPosition="center"),void 0===t.fcLeftIcon&&(t._leftIcon=!0),t}return h(i,e),i.prototype._afterParentInit=function(){"Y"===this.fcDashed?this._dashed=!0:this._dashed=!1,"Y"===this.fcLeftIcon?this._leftIcon=!0:this._leftIcon=!1,"Y"===this.fcRightIcon?this._rightIcon=!0:this._rightIcon=!1},i.decorators=[{type:n.Component,args:[{selector:"fc-line",template:'\n    <nz-divider [nzText]="fcLabel" [nzDashed]="_dashed" [nzType]="fcDirection" *ngIf="fcIcon===undefined" [nzOrientation]="fcPosition"></nz-divider>\n    <nz-divider [nzDashed]="_dashed" [nzType]="fcDirection" fcLeftIcon="_leftIcon" [nzText]="text" fcLabel="fcLabel" *ngIf="fcIcon!==undefined && fcLeftIcon===\'Y\'">\n        <ng-template #text> <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i> {{fcLabel}}</ng-template>\n    </nz-divider>\n    <nz-divider [nzDashed]="_dashed" [nzType]="fcDirection" fcRightIcon="_rightIcon" [nzText]="text" fcLabel="fcLabel" \n    *ngIf="fcIcon!==undefined &&fcRightIcon===\'Y\'&&fcDashed===undefined">\n        <ng-template #text>{{fcLabel}} <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i></ng-template>\n    </nz-divider>\n    <nz-divider [nzDashed]="_dashed" [nzType]="fcDirection" fcRightIcon="_rightIcon" [nzText]="text" fcLabel="fcLabel" \n     *ngIf="fcIcon!==undefined &&fcRightIcon===\'Y\'&&fcDashed===\'Y\'">\n        <ng-template #text>{{fcLabel}} <i class="icon iconfont {{fcIcon}}" *ngIf="fcIcon!==undefined"></i></ng-template>\n    </nz-divider>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcDirection:[{type:n.Input}],fcDashed:[{type:n.Input}],fcLabel:[{type:n.Input}],fcPosition:[{type:n.Input}],fcLeftIcon:[{type:n.Input}],fcRightIcon:[{type:n.Input}],fcIcon:[{type:n.Input}]},i}(S);var me=function(e){function i(n){var t=e.call(this,n,"fc-label")||this;return t.provider=n,t}return h(i,e),i.decorators=[{type:n.Component,args:[{selector:"fc-label",template:'\n    <div nz-row  nzType="flex" class="rowspans" [ngClass]="{}" *ngIf="fcShowLabel===undefined||fcShowLabel===\'Y\'" (blur)="_blur($event)">\n        <div nz-col [nzSpan]="labelSpan" class="labelspans"><span *ngIf="fcRequired===\'Y\'" style="color:red">*</span>{{fcLabel}}</div>\n        <div nz-col [nzSpan]="valueSpan">{{fcValue}}</div>\n    </div>\n    ',styles:["\n    .content_font{\n        font-size:16px;\n        display:inline-block;\n        color:#333;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcLabel:[{type:n.Input}],fcValue:[{type:n.Input}]},i}(S);var be=function(e){function i(n){var t=e.call(this,n,"fc-pagination")||this;return t.provider=n,t.fcPageSizeOptions=[20,50,100,500,1e3],void 0===t.fcPageIndex&&(t.fcPageIndex="1"),void 0===t.fcPageSize&&(t.fcPageSize="10"),void 0===t.fcShowSizeChanger&&(t.showSizechange=!1),void 0===t.fcShowQuickJumper&&(t.showQjumper=!1),t}return h(i,e),i.prototype.pageSizeChange=function(e){this.event("pageSizeChange",e)},i.prototype._jumpPage=function(e){0!==this.total&&this.event("jumpPage",e)},i.prototype._afterParentInit=function(){if("Y"===this.fcShowQuickJumper?this.showQjumper=!0:this.showQjumper=!1,"Y"===this.fcShowSizeChanger?this.showSizechange=!0:this.showSizechange=!1,this.fcTotal)try{this.total=Number(this.fcTotal||"0")}catch(e){this.total=0}else this.total=0;if(this.fcPageIndex)try{this.pageIndex=Number(this.fcPageIndex||"0")}catch(e){this.pageIndex=0}else this.pageIndex=0;if(this.fcPageSize)try{this.pageSize=Number(this.fcPageSize||"0")}catch(e){this.pageSize=0}},i.decorators=[{type:n.Component,args:[{selector:"fc-pagination",template:'\n    <nz-pagination class="fcpagination" *ngIf="fcSample===undefined||fcSample===\'Y\'"\n        [(nzPageIndex)]="pageIndex"\n        [nzTotal]="total"\n        [nzSize]="fcSize"\n        nzSimple\n        [nzShowSizeChanger]="showSizechange"\n        [(nzPageSize)]="pageSize"\n        [nzShowQuickJumper]="showQjumper"\n        [nzShowTotal]="totalTemplate"\n        [nzPageSizeOptions]="fcPageSizeOptions"\n        (nzPageSizeChange)="pageSizeChange($event)"\n        (nzPageIndexChange)="_jumpPage($event)">\n    </nz-pagination>\n    <nz-pagination class="fcpagination" *ngIf="fcSample&&fcSample===\'N\'"\n    [(nzPageIndex)]="pageIndex"\n    [nzTotal]="total"\n    [nzSize]="fcSize"\n    [nzShowSizeChanger]="showSizechange"\n    [(nzPageSize)]="pageSize"\n    [nzShowQuickJumper]="showQjumper"\n    [nzShowTotal]="totalTemplate"\n    [nzPageSizeOptions]="fcPageSizeOptions"\n    (nzPageSizeChange)="pageSizeChange($event)"\n    (nzPageIndexChange)="_jumpPage($event)">\n</nz-pagination>\n    <ng-template #totalTemplate let-total>共 {{total}} 条</ng-template>\n    ',styles:["\n    :host ::ng-deep .fcpagination .ant-pagination{\n        text-align: center;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcSample:[{type:n.Input}],fcTotal:[{type:n.Input}],fcPageIndex:[{type:n.Input}],fcPageSize:[{type:n.Input}],fcShowQuickJumper:[{type:n.Input}],fcShowSizeChanger:[{type:n.Input}],fcPageSizeOptions:[{type:n.Input}]},i}(S);var ye=function(e){function o(n){var t=e.call(this,n,"fc-treeselect")||this;return t.provider=n,t._options={allowDrag:!1,getChildren:function(e){var n=e.DATA;void 0===n&&(n=e.data.DATA);var i=t.appService.findWithQuery(t.fcAppid,{ORDER:t.fcOption.fcOrderby});return new Promise((function(e,n){t.pushDestroy(i.subscribe((function(n){return e(t._listtotreeasync(n.DATA,t.fcOption.fcChildCode,t.fcOption.fcLabel,t.fcOption.fcParentCode,t.fcOption.fcLeafCode))})))}))}},t}return h(o,e),o.prototype.ngOnChanges=function(e){var n=this;this.fcSize="small",this.fcNodes=void 0,void 0===this.fcOption&&new Error("缺少fcOption属性"),void 0===this.fcNodes&&(this.fcNodes=[],this.fcAppid=this.fcOption.fcAppid,this.pushDestroy(this.appService.findWithQuery(this.fcAppid,{ORDER:this.fcOption.fcOrderby||"",WHERE:this.fcOption.fcTopWhere}).subscribe((function(e){"0"===e.CODE&&0!==e.DATA.length&&(n.fcNodes=n._listtotreeasync(e.DATA,n.fcOption.fcChildCode,n.fcOption.fcLabel,n.fcOption.fcParentCode,n.fcOption.fcLeafCode))}))))},o.prototype.getChildren=function(e,n){var i=this,o=n.node.origin.DATA;0!==this.fcAppid.length&&this.appService.findWithQuery(this.fcAppid,{WHERE:t.CommonService.getJsonStrFilterByParam(o,this.fcOption.fcExpWhere,"#"),ORDER:this.fcOption.fcOrderby}).subscribe((function(e){"0"===e.CODE&&(n.node,n.node.addChildren(i._listtotreeasync(e.DATA,i.fcOption.fcChildCode,i.fcOption.fcLabel,i.fcOption.fcParentCode,i.fcOption.fcLeafCode)))}))},o.prototype._listtotreeasync=function(e,n,i,o,a){var c=this,s=[];return e.forEach((function(e){var o={title:t.CommonService.getJsonStrFilterByParam(e,i,"#"),key:e[n],DATA:e};(void 0===c.fcOption.fcLeafValue&&(c.fcOption.fcLeafValue="Y"),e[c.fcOption.fcLeafCode]!==c.fcOption.fcLeafValue&&(o.isLeaf=!0),c.fcOption.fcCheckable&&c._innerValue&&c._innerValue instanceof Array)&&(c._innerValue.filter((function(t){return t===e[n]})).length>0&&(o.checked=!0));s.push(new l.NzTreeNode(o))})),s},o.decorators=[{type:n.Component,args:[{selector:"fc-treeselect",template:'<nz-tree-select \n    style="width: 250px"\n    [(ngModel)]="_innerValue" \n    [nzNodes]="fcNodes" \n    ngShowSearch  \n    nzPlaceHolder="请选择..."  \n    (ngModelChange)="event(\'onChange\',$event)"\n    [nzCheckable]="fcOption.fcCheckable" \n    [nzMultiple]="fcOption.fcMutliple" \n    [nzDropdownMatchSelectWidth]="true" \n    [nzDropdownStyle]="{ \'max-height\': \'300px\' }" \n    [nzAsyncData]="fcOption.fcAsync" \n    (nzExpandChange)="getChildren(\'expand\',$event)" \n    [nzDefaultExpandedKeys]="fcExpandKeys"   \n    [nzDefaultExpandAll]="fcOption.fcOpenChild" \n    (nzClick)="event(\'click\',$event)" \n    [nzSize]="fcSize">\n  </nz-tree-select>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService}]},o.propDecorators={fcTree:[{type:n.ViewChild,args:["treeselect",{static:!1}]}],fcId:[{type:n.Input}],fcNodes:[{type:n.Input}],fcOption:[{type:n.Input}],fcExpandKeys:[{type:n.Input}]},o}(S);var Ce=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[i.FormsModule,a.CommonModule,i.ReactiveFormsModule,l.NgZorroAntdModule],exports:[i.FormsModule,a.CommonModule,i.ReactiveFormsModule,l.NgZorroAntdModule]}]}],e}(),Se=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce],exports:[z,le,O,D,re,_,w,A,P,L,N,F,V,R,Y,B,H,U,j,$,G,W,q,X,K,Z,ee,ae,oe,ye,ce,fe,pe,de,ue,ge,ve,me,be],declarations:[z,le,O,D,re,_,w,A,P,L,N,F,V,R,Y,B,H,U,j,de,$,G,W,q,X,K,Z,ee,ae,oe,ye,ce,fe,pe,ue,ge,ve,me,be],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),Ie=function(e){function i(n,t,i){var o=e.call(this,n,"fc-addetail")||this;return o.provider=n,o.router=t,o.activatedRoute=i,i.paramMap.subscribe((function(e){o.fcId=e.get("id")})),o}return h(i,e),i.prototype._init=function(){},i.prototype.ngOnChanges=function(e){var n=this;this.fcApp=this.provider.appService.apps[this.fcAppid],void 0===this.fcApp?this.pushDestroy(this.provider.appService.findAppByAid(this.fcAppid).subscribe((function(e){"0"===e.CODE&&void 0!==e.DATA&&(n.fcApp=e.DATA[0],n.init())}))):this.init()},i.prototype.init=function(){this.fcLinks=this.fcApp.SYSAPPLINKS,this.fcTitle=this.fcApp.APPNAME+"详情"},i.prototype.initMainObj=function(){var e=this;this.pushDestroy(this.provider.appService.findWithQuery(this.fcAppid,{ID:this.fcId}).subscribe((function(n){void 0!==n&&0!==n.DATA.length&&(e.mainObj=n.DATA[0])})))},i.prototype.confirm=function(){throw new Error("Method not implemented.")},i.prototype.cancel=function(){throw new Error("Method not implemented.")},i.prototype.close=function(){throw new Error("Method not implemented.")},i.prototype.back=function(){throw new Error("Method not implemented.")},i.prototype.next=function(){throw new Error("Method not implemented.")},i.prototype.prev=function(){throw new Error("Method not implemented.")},i.decorators=[{type:n.Component,args:[{selector:"fc-addetail",template:"\n\n    ",styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router},{type:c.ActivatedRoute}]},i.propDecorators={fcId:[{type:n.Input}],fcAppid:[{type:n.Input}],fcApp:[{type:n.Input}],fcFieldCode:[{type:n.Input}],fcLinks:[{type:n.Input}]},i}(y);var ze=function(e){function i(n){var t=e.call(this,n,"fc-tlbform")||this;return t.provider=n,t.fcHasGap="Y",t.fcButtons=[],"Y"===t.fcHasGap&&(t.hasgap=!0),t}return h(i,e),i.prototype._afterParentInit=function(){var e=this;if(this.viewAction=[],this.fcViewActionStrategy)try{this.viewAction=JSON.parse(this.fcViewActionStrategy)}catch(e){this.logService.error('按钮显示策略值异常，请参考：[{"FIELDCODE":"STATUS","FIELDVALUE":"起草","BUTTONS":["listAdd","listDelete","listView"]}]格式')}if(void 0===this.fcButtons||0===this.fcButtons.length){if(void 0===this.fcAppid&&void 0===this.fcApp)throw new Error("缺少工具栏组件");if(this.fcViewActionStrategy){var n="",t="";this.viewAction.forEach((function(i){var o=e.params.data[i.FIELDCODE];(o===i.FIELDVALUE||"isnull"===i.FIELDVALUE&&(null==o||""===o)||"isnotnull"===i.FIELDVALUE&&null!=o&&""!==o)&&i.BUTTONS&&(n+=i.BUTTONS.join(",")),o===i.FIELDNOSHOWVALUE&&i.NOSHOWBUTTONS.forEach((function(e){t+=e+","}))})),this.fcButtons=this.fcApp.SYSAPPBUTTONS.filter((function(e){return(""===t||-1===t.indexOf(e.ACTCODE))&&(""!==n?-1!==n.indexOf(e.ACTCODE)&&"CARD"===e.BTNTYPE:"CARD"===e.BTNTYPE)}))}else this.fcButtons=this.fcApp.SYSAPPBUTTONS.filter((function(e){return"CARD"===e.BTNTYPE}))}"N"===this.fcHasGap&&(this.hasgap=!1),void 0===this.fcLayout?this.fcLayout=Oe.LEFT:"left"===this.fcLayout?this.fcLayout=Oe.LEFT:"center"===this.fcLayout?this.fcLayout=Oe.CENTER:"right"===this.fcLayout&&(this.fcLayout=Oe.RIGHT)},i.decorators=[{type:n.Component,args:[{selector:"fc-tlbform",template:"\n    <div class='fc-tlbform'\n     [ngClass] = \"{'fc-hasgap':fcHasGap==='Y','fc-tlbform-small':fcSize === 'small','fc-tlbform-default':fcSize === 'default','fc-tlbform-large':fcSize === 'large'\n     ,'fc-left':fcLayout==='left','fc-center':fcLayout==='center','fc-right':fcLayout==='right'}\">\n       <fc-button fcMode=\"group\" [fcHasGap]=\"hasgap\" [fcGroup]=\"fcButtons\" [fcDisableds]=\"fcDisableds\" (fcEvent)=\"event($event.eventName,$event.param)\"></fc-button>\n     </div>\n    ",styles:["\n        .fc-tlbform{\n            text-align: center;\n            margin-top:5px;\n            margin-bottom:5px;\n        }\n        .fc-left{\n            text-align: left;\n        }\n        .fc-center{\n            text-align: center;\n        }\n        .fc-right{\n            text-align: right;\n        }\n        :host ::ng-deep .fc-hasgap .ant-btn-group > .ant-btn{\n            margin-right:10px;\n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcViewActionStrategy:[{type:n.Input}],fcApp:[{type:n.Input}],fcButtons:[{type:n.Input}],fcLayout:[{type:n.Input}],fcDisableds:[{type:n.Input}],fcHasGap:[{type:n.Input}]},i}(S);var Oe={LEFT:"left",CENTER:"center",RIGHT:"right"},De={NEXT:"next",PREV:"prev",CARDSAVE:"cardSave",CARDNEW:"cardAdd",CARDSAVEBACK:"cardSaveBack",CARDSAVENEW:"cardSaveNew",CARDSAVECOPY:"cardSaveCopy",CARDBACK:"cardBack"},_e=function(e){function i(n){var t=e.call(this,n,"fc-tlblistitem")||this;return t.provider=n,t.fcMode="text",t}return h(i,e),i.prototype.refresh=function(e){return!1},i.prototype.agInit=function(e){this.params=e,this.params.value&&(this.fcApp=e.value.parentComponent.fcApp,this.fcAppid=e.value.parentComponent.fcAppid,this.fcBustype=e.value.parentComponent.fcBustype,this.fcSize=C.small,this.fcViewActionStrategy=e.value.parentComponent.fcViewActionStrategy,this._afterParentInit())},i.prototype.afterGuiAttached=function(e){},i.prototype._afterParentInit=function(){var e=this;if(this.viewAction=[],this.fcViewActionStrategy)try{this.viewAction=JSON.parse(this.fcViewActionStrategy)}catch(e){this.logService.error('按钮显示策略值异常，请参考：[{"FIELDCODE":"STATUS","FIELDVALUE":"起草","BUTTONS":["listAdd","listDelete","listView"]}]格式')}if(void 0===this.fcButtons){if(void 0===this.fcAppid&&void 0===this.fcApp)throw new Error("缺少工具栏组件");var n=this.appService.getListButtonsByAppid(this.fcAppid);if(this.fcBustype&&(n=n.filter((function(n){return n.BUSTYPE===e.fcBustype}))),this.fcViewActionStrategy){var t="",i="";this.viewAction.forEach((function(n){var o=e.params.data[n.FIELDCODE];(o===n.FIELDVALUE||"isnull"===n.FIELDVALUE&&(null==o||""===o)||"isnotnull"===n.FIELDVALUE&&null!=o&&""!==o)&&n.BUTTONS&&(t+=n.BUTTONS.join(",")),o===n.FIELDNOSHOWVALUE&&n.NOSHOWBUTTONS.forEach((function(e){i+=e+","}))})),this.fcButtons=n.filter((function(e){return(""===i||-1===i.indexOf(e.ACTCODE))&&(""===t||-1!==t.indexOf(e.ACTCODE))}))}else this.fcButtons=n}void 0===this.fcLayout&&(this.fcLayout=xe.CENTER)},i.prototype._event=function(e,n){if(this.params){var t=this.params.value.parentComponent;this.params.ACTION=e,t._doAction(this.params)}this.event(e,n)},i.decorators=[{type:n.Component,args:[{selector:"fc-tlblistitem",template:"\n    <div *ngIf=\"fcMode==='button'\" class=\"fc-tlblistitem\" \n    [ngClass] = \"{'fc-tlblistitem-small':fcSize === 'small','fc-tlblistitem-default':fcSize === 'default','fc-tlblistitem-large':fcSize === 'large'}\">\n        <fc-button  *ngFor=\"let btn of fcButtons\" [fcToolTip]=\"btn.HELP||btn.BTNNAME||''\" [fcLabel]=\"btn.BTNNAME\" (click)=\"_event(btn.ACTCODE,btn)\" [fcSize]=\"fcSize\" [fcDisableds]=\"fcDisableds\"></fc-button>\n    </div>\n    <div *ngIf=\"fcMode==='text'\" class=\"fc-tlblistitem\" [ngClass] = \"{'fc-tlblistitem-small':fcSize === 'small','fc-tlblistitem-default':fcSize === 'default','fc-tlblistitem-large':fcSize === 'large'}\">\n        <a class=\"text\" [title]=\"btn.HELP||btn.BTNNAME||''\" *ngFor=\"let btn of fcButtons\" (click)=\"_event(btn.ACTCODE,btn)\">\n            {{btn.BTNNAME}}\n        </a>\n    </div>\n    ",styles:["\n        .fc-tlblist{\n           text-align: center;\n        }\n        .text {\n           font-size:12px;\n           color:#108ee9;\n           position:relative;\n           margin-right:3px;\n        }\n        .text:after{\n            content:'|';\n            position:absolute;\n            right:-2px;\n            top:-2px;\n            color:#cccccc;\n            font-weight:lighter;\n        }\n        .text:last-child{\n            margin-right:0;\n        }\n        .text:last-child:after{\n            content:'';\n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcViewActionStrategy:[{type:n.Input}],fcBustype:[{type:n.Input}],fcDisableds:[{type:n.Input}],fcAppid:[{type:n.Input}],fcApp:[{type:n.Input}],fcButtons:[{type:n.Input}],fcLayout:[{type:n.Input}],fcMode:[{type:n.Input}]},i}(S);var xe={LEFT:"left",CENTER:"center",RIGHT:"right"},Ee={fcClass:"ag-theme-blue",fcHeight:450,fcPaginationPageSize:20,fcRowHeight:28,fcEnableSearch:!1,fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!0,fcPagination:!0,fcRowGroupPanelShow:"none",fcEnableStatusBar:!0,fcEnableRangeSelection:!0,fcRowSelection:"multiple",fcEnableAction:!0,fcActionPosition:"right",fcCheckboxSelection:!0,fcEnableEdit:!0,fcEnableRownum:!0,fcAutoSave:!0,fcAutoSize:!0,fcSelect:!1,fcEnableDic:!1,fcFieldsRender:{},fcButtons:[],fcFieldsGroup:[],fcDics:[]};function we(e,n,i,o){return null==o&&(o=Ee),ke(e,n,i?t.ParentBusiness.appService.getAppById(i):{SYSAPPFIELDS:o.fcFields||[],SYSAPPFLDGROUP:o.fcFieldsgroup||[],SYSAPPLINKS:o.fcApplinks||[],SYSDIC:o.fcDic||[],SYSAPPBUTTONS:o.fcButtons||[]},o)}function Ae(e){return{field:"",suppressSizeToFit:!0,suppressResize:!0,suppressMovable:!1,suppressFilter:!0,headerCheckboxSelection:e.fcCheckboxSelection,checkboxSelection:e.fcCheckboxSelection,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:35}}function Pe(){return{headerName:"序号",field:"ROWNUM",suppressSizeToFit:!0,suppressResize:!0,cellClass:"text-center",suppressMovable:!1,suppressFilter:!0,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:50}}function Te(e,n){var t=110;return e&&(t=0,n?e.SYSAPPBUTTONS.filter((function(e){return"LISTONE"===e.BTNTYPE&&e.BUSTYPE===n})).forEach((function(e){t+=17*e.BTNNAME.length+10})):e.SYSAPPBUTTONS.filter((function(e){return"LISTONE"===e.BTNTYPE})).forEach((function(e){t+=17*e.BTNNAME.length+10}))),{headerName:"操作",field:"DOACTION",enableRowGroup:!1,enablePivot:!1,allowedAggFuncs:[],suppressMovable:!0,suppressSizeToFit:!0,suppressFilter:!0,menuTabs:[],sortingOrder:[],cellRendererFramework:_e,width:t}}function Le(e,n,t){e.forEachNode((function(i){n.filter((function(e){return i.data[t]===e})).length>0?i.selected=!0:i.selected=!1,e.updateRowData({update:[i.data]})}))}function ke(e,n,t,i){if(void 0===i&&(i=this.fcOption),t){var o=t.SYSAPPFIELDS.filter((function(e){return!!(void 0===i.fcShowFields||i.fcShowFields&&-1!==i.fcShowFields.indexOf(e.FIELDCODE))})),a=[];void 0!==i.fcCheckboxSelection&&i.fcCheckboxSelection&&(void 0!==i.fcTreeData&&!1!==i.fcTreeData||a.push(Ae(i))),void 0!==i.fcTreeData&&!1!==i.fcTreeData||void 0!==i.fcEnableRownum&&!0!==i.fcEnableRownum||a.push({headerName:"序号",field:"ROWNUM",suppressSizeToFit:!0,suppressResize:!0,cellClass:"text-center",suppressMovable:!1,suppressFilter:!0,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:50}),i.fcEnableAction&&"left"===i.fcActionPosition&&a.push(Te(t,n));var c=void 0===i.fcFields||0===i.fcFields.filter((function(e){return void 0!==e.field})).length;if(!c)return i.fcFields;var s=0;return o.forEach((function(n){if((i.fcShowFields&&-1!==i.fcShowFields.indexOf(n.FIELDCODE)||c)&&i.fcFieldsRender&&i.fcFieldsRender[n.FIELDCODE]){var o=n.LISTMAXLEN?13*n.LISTMAXLEN+10:75,l={headerName:n.FIELDNAME,field:n.FIELDCODE,enableRowGroup:!1,enablePivot:!1,allowedAggFuncs:[],suppressMovable:!0,suppressSizeToFit:20!==n.LISTMAXLEN,suppressFilter:!0,menuTabs:[],sortingOrder:[],cellRendererFramework:i.fcFieldsRender[n.FIELDCODE].renderContent,cellRendererParams:function(e){if(i.fcFieldsRender[n.FIELDCODE].cellRendererParams)return i.fcFieldsRender[n.FIELDCODE].cellRendererParams(e)},width:o};a.push(l)}else if(i.fcShowFields&&-1!==i.fcShowFields.indexOf(n.FIELDCODE)||c){o=n.LISTMAXLEN?13*n.LISTMAXLEN+10:75;if(!(void 0!==n.ENABLE&&"Y"!==n.ENABLE||void 0!==n.SHOWLIST&&"Y"!==n.SHOWLIST)){l={headerName:n.FIELDNAME,field:n.FIELDCODE,enableRowGroup:!1,enablePivot:!0,suppressSizeToFit:20!==n.LISTMAXLEN,width:o,allowedAggFuncs:[],cellClass:"text-left",headerTooltip:n.FIELDNAME,tooltipField:n.FIELDCODE,editable:i.fcEnableEdit&&"Y"===n.ENABLEWRITE,cellEditor:"agTextCellEditor",lockPinned:!1,pinned:""};if(void 0!==n.ENABLELOCK&&null!==n.ENABLELOCK&&""!==n.ENABLELOCK&&"Y"===n.ENABLELOCK&&1===++s&&(l.lockPinned=!0,l.pinned="left",a.forEach((function(e){e.lockPinned=!0,e.pinned="left"}))),s>1&&(l.lockPinned=!0,l.pinned="right"),n.DICCODE)if("N"!==n.ENABLEWRITE||i.fcEnableEdit){var r=t.SYSDIC.filter((function(e){return e.DICID===n.DICCODE}));if(0!==r.length){var f=r[0],p=[];"LISTVALUE"===f.DICTYPE&&(f.SYSDICDETAIL.forEach((function(e){p.push(e.DICDESC)})),l.cellEditorParams={values:p},l.cellEditor="agSelectCellEditor",l.field=n.FIELDCODE+"_DICDESC")}}else l.field=n.FIELDCODE+"_DICDESC";"STR"===n.DBTYPE&&(l.enableRowGroup=!0,l.enablePivot=!0),null===n.DICCODE&&"DATE"!==n.DBTYPE||(l.cellClass="text-center"),"url"===n.INPUTTYPE&&(l.cellClass="text-link"),"NUM"===n.DBTYPE&&(l.cellClass="text-right",l.allowedAggFuncs=["sum","min","max"]),l.cellRenderer=function(t){return t.parentContext=e,Fe(e,t,n)},a.push(l)}}})),i.fcEnableAction&&"right"===i.fcActionPosition&&a.push(Te(t,n)),a}return[]}var Ne=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.getFieldsConfByAppid=function(e,n){return null==n&&(n=this.fcOption),this.getFieldsConfByApp(t.ParentBusiness.appService.getAppById(e),n)},n.getFieldsConfByApp=function(e,n){if(void 0===n&&(n=this.fcOption),e){var t=e.SYSAPPFIELDS,i=this,o=[];void 0!==n.fcCheckboxSelection&&n.fcCheckboxSelection&&(void 0!==n.fcTreeData&&!1!==n.fcTreeData||o.push(this.getCheckbox(n))),void 0!==n.fcTreeData&&!1!==n.fcTreeData||void 0!==n.fcEnableRownum&&!0!==n.fcEnableRownum||o.push(this.getRownum()),n.fcEnableAction&&"left"===n.fcActionPosition&&o.push(this.getAction(e));var a=0;return t.forEach((function(t){if((n.fcShowFields&&-1!==n.fcShowFields.indexOf(t.FIELDCODE)||void 0===n.fcShowFields)&&n.fcFieldsRender&&n.fcFieldsRender[t.FIELDCODE]){var c=t.LISTMAXLEN?13*t.LISTMAXLEN+10:75;o.push({headerName:t.FIELDNAME,field:t.FIELDCODE,enableRowGroup:!1,enablePivot:!1,allowedAggFuncs:[],suppressMovable:!0,suppressSizeToFit:20!==t.LISTMAXLEN,suppressFilter:!0,menuTabs:[],sortingOrder:[],cellRendererFramework:n.fcFieldsRender[t.FIELDCODE].renderContent,width:c})}else if(n.fcShowFields&&-1!==n.fcShowFields.indexOf(t.FIELDCODE)||void 0===n.fcShowFields){c=t.LISTMAXLEN?13*t.LISTMAXLEN+10:75;if("Y"===t.ENABLE&&"Y"===t.SHOWLIST){var s={headerName:t.FIELDNAME,field:t.FIELDCODE,enableRowGroup:!1,enablePivot:!0,suppressSizeToFit:20!==t.LISTMAXLEN,width:c,allowedAggFuncs:[],cellClass:"text-left",headerTooltip:t.FIELDNAME,tooltipField:t.FIELDCODE,editable:n.fcEnableEdit&&"Y"===t.ENABLEWRITE,cellEditor:"agTextCellEditor",lockPinned:!1,pinned:""};if(void 0!==t.ENABLELOCK&&null!==t.ENABLELOCK&&""!==t.ENABLELOCK&&"Y"===t.ENABLELOCK&&1===++a&&(s.lockPinned=!0,s.pinned="left",o.forEach((function(e){e.lockPinned=!0,e.pinned="left"}))),a>1&&(s.lockPinned=!0,s.pinned="right"),null!==t.DICCODE)if("N"!==t.ENABLEWRITE||n.fcEnableEdit){var l=e.SYSDIC.filter((function(e){return e.DICID===t.DICCODE}));if(0!==l.length){var r=l[0],f=[];"LISTVALUE"===r.DICTYPE&&(r.SYSDICDETAIL.forEach((function(e){f.push(e.DICDESC)})),s.cellEditorParams={values:f},s.cellEditor="agSelectCellEditor",s.field=t.FIELDCODE+"_DICDESC")}}else s.field=t.FIELDCODE+"_DICDESC";"STR"===t.DBTYPE&&(s.enableRowGroup=!0,s.enablePivot=!0),null===t.DICCODE&&"DATE"!==t.DBTYPE||(s.cellClass="text-center"),"url"===t.INPUTTYPE&&(s.cellClass="text-link"),"NUM"===t.DBTYPE&&(s.cellClass="text-right",s.allowedAggFuncs=["sum","min","max"]),s.cellRenderer=function(e){return e.parentContext=i,Fe(i,e,t)},o.push(s)}}})),n.fcEnableAction&&"right"===n.fcActionPosition&&o.push(this.getAction(e)),o}return[]},n.getCheckbox=function(e){return{field:"",suppressSizeToFit:!0,suppressResize:!0,suppressMovable:!1,suppressFilter:!0,headerCheckboxSelection:e.fcCheckboxSelection,checkboxSelection:e.fcCheckboxSelection,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:35}},n.getRownum=function(){return{headerName:"序号",field:"ROWNUM",suppressSizeToFit:!0,suppressResize:!0,cellClass:"text-center",suppressMovable:!1,suppressFilter:!0,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:50}},n.getAction=function(e){var n=110;return e&&(n=0,e.SYSAPPBUTTONS.filter((function(e){return"LISTONE"===e.BTNTYPE})).forEach((function(e){n+=17*e.BTNNAME.length+10}))),{headerName:"操作",field:"DOACTION",enableRowGroup:!1,enablePivot:!1,allowedAggFuncs:[],suppressMovable:!0,suppressSizeToFit:!0,suppressFilter:!0,menuTabs:[],sortingOrder:[],cellRendererFramework:_e,width:n}},n.selectRowById=function(e,n,t){e.forEachNode((function(i){n.filter((function(e){return i.data[t]===e})).length>0?i.selected=!0:i.selected=!1,e.updateRowData({update:[i.data]})}))},n.fcOption={fcClass:"ag-theme-blue",fcHeight:450,fcPaginationPageSize:20,fcRowHeight:28,fcEnableSearch:!1,fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!0,fcPagination:!0,fcRowGroupPanelShow:"none",fcEnableStatusBar:!0,fcEnableRangeSelection:!0,fcRowSelection:"multiple",fcEnableAction:!0,fcActionPosition:"right",fcCheckboxSelection:!0,fcEnableEdit:!0,fcEnableRownum:!0,fcAutoSave:!0,fcAutoSize:!0,fcSelect:!1,fcEnableDic:!1,fcFieldsRender:{}},n}(t.ParentBusiness);function Fe(e,n,i){if(n.data){if(!n.data[n.colDef.field]||"null"===n.data[n.colDef.field])return'<span title=""></span>';var o=i.VIEWPREFIX?i.VIEWPREFIX:"",a=i.VIEWSUFFIX?i.VIEWSUFFIX:"";if(void 0!==i.VIEWFORMAT&&""!==i.VIEWFORMAT&&null!==i.VIEWFORMAT){if("NUM"===i.DBTYPE)return'<span title="'+o+n.data[n.colDef.field]+'">'+o+t.CommonService.numberFormat(n.data[n.colDef.field],i.VIEWFORMAT)+a+"</span>";if("DATE"===i.DBTYPE)return'<span title="'+o+n.data[n.colDef.field]+'">'+o+t.CommonService.dateFormat(t.CommonService.stringToDate(String(n.data[n.colDef.field])),i.VIEWFORMAT)+a+"</span>"}else{if("checkbox"!==i.INPUTTYPE)return'<span title="'+o+n.data[n.colDef.field]+'">'+o+n.data[n.colDef.field]+a+"</span>";var c=n.colDef.field.replace("_DICDESC","");if("Y"===n.data[c])return'<input type="checkbox" id="'+n.data.ID+"."+i.FIELDCODE+'"value='+n.data[n.colDef.field]+' checked="checked"/>';if("N"===n.data[c])return'<input type="checkbox" id="'+n.data.ID+"."+i.FIELDCODE+'"value='+n.data[n.colDef.field]+"/>"}}}var Me={icons:{menu:'<i class="icon iconfont icon-pitchon"/>',filter:'<i class="icon iconfont icon-unfold"/>',columns:'<i class="icon iconfont icon-packup"/>'},localeText:{page:"页",more:"更多",to:"到",of:"共",next:"下一页",last:"尾页",first:"第一页",previous:"上一页",loadingOoo:"加载中",selectAll:"全选",searchOoo:"搜索",blanks:"daBlanc",filterOoo:"过滤",applyFilter:"daApplyFilter...",equals:"等于",notEqual:"不等于",lessThanOrEqual:"小于等于",greaterThanOrEqual:"大于等于",inRange:"范围",lessThan:"小于",greaterThan:"大于",contains:"包含",startsWith:"开始",endsWith:"结束",group:"分组",columns:"列",rowGroupColumns:"行组列",rowGroupColumnsEmptyMessage:"列分组",valueColumns:"合并单元格值",pivotMode:"显示列",groups:"分组",values:"值",pivots:"支点",valueColumnsEmptyMessage:"拖动列进行聚合",pivotColumnsEmptyMessage:"拖到这里",noRowsToShow:"暂无数据",valueAggregation:"价值聚合",autosizeThiscolumn:"调整本列",autosizeAllColumns:"调整所有",groupBy:"分组",ungroupBy:"取消分组",resetColumns:"重置列宽",expandAll:"展开全部",collapseAll:"全部收起",toolPanel:"工具面板",export:"导出",csvExport:"导出为csv",excelExport:"导出为excel",pinColumn:"移到",pinLeft:"最左边",pinRight:"最右边",noPin:"固定",sum:"合计",min:"最小值",max:"最大值",none:"无",count:"计数",average:"均值",copy:"复制",ctrlC:"按住ctrl+C",paste:"粘贴",ctrlV:"按住ctrl+V "}};var Ve={ADD:0,MODIFY:1};Ve[Ve.ADD]="ADD",Ve[Ve.MODIFY]="MODIFY";var Re={INLINE:"inline",HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ye=function(e){function i(n,t){var i=e.call(this,n,"fc-modallistdata")||this;return i.provider=n,i.subject=t,i._gridOptions={},i.test="罗红",i._gridOptions={},i._gridOptions.localeText=Me.localeText,i._gridOptions.icons=Me.icons,i._pageNum="1",i._pageSize=20,i}return h(i,e),i.prototype._searchEvent=function(e){switch(e.eventName){case"reset":break;case"search":this._searchCondition=e.param,this.fcReflesh()}},Object.defineProperty(i.prototype,"options",{set:function(e){this._options=e,this.fcOption=e.options,this.fcRowData=e.rowData,this.fcAppid=e.appId,this.fcCondition=e.condition,this.fcPageSize=e.pageSize,this.fcPageNum=e.pageNum,this.fcDeafultSelected=e.deafultSelected,this.fcSelectObjs=e.selectObjs,void 0!==this.fcPageSize&&null!==this.fcPageSize&&(this._pageSize=this.fcPageSize),this.ngOnChanges({})},enumerable:!0,configurable:!0}),i.prototype._afterParentInit=function(){this._selectIds=[],this._selectItems=[],this._selectIndex=1,void 0!==this.fcPageSize&&null!==this.fcPageSize&&(this._pageSize=this.fcPageSize),void 0===this.fcOption&&(this.fcOption={fcClass:"ag-theme-blue",fcHeight:450,fcRowHeight:22,fcPaginationPageSize:20,fcEnableSearch:!0,fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!0,fcPagination:!0,fcRowGroupPanelShow:"always",fcEnableStatusBar:!0,fcEnableRangeSelection:!0,fcRowSelection:"multiple",fcEnableAction:!0,fcCheckboxSelection:!0,fcEnableEdit:!1,fcAutoSave:!1}),""!==this.fcAppid&&(void 0===this.fcOption.fcPaginationPageSize&&(this.fcOption.fcPaginationPageSize=this.fcApp.PSIZE),void 0===this.fcOption.fcFields&&(this.fcOption.fcFields=this.getFieldsConfByAppid(this.fcAppid)),void 0===this.fcOption.fcOrder&&(this.fcOption.fcOrder=this.fcApp.SORTBY)),void 0===this.fcCondition||0===this.fcCondition.length?this._condition={}:this._condition=JSON.parse(this.fcCondition),this.fcOption.fcPagination&&"1"!==this._pageNum?this._pageNum="1":this.fcReflesh()},i.prototype._paginationEvent=function(e){switch(e.eventName){case"pageSizeChange":this._pageSize=e.param,this.fcOption.fcPagination&&this.fcReflesh();break;case"jumpPage":this._pageNum=e.param+"",this.fcOption.fcPagination&&this.fcReflesh()}},i.prototype.fcReflesh=function(){var e=this;if(""!==this.fcAppid){var n=this.appService.getDicByAppid(this.fcAppid);this.fcOption.fcPagination&&(void 0===this.fcPageSize&&(this.fcPageSize=this.fcApp.PSIZE),Object.assign(this._condition,{PAGENUM:this._pageNum,PAGESIZE:this._pageSize})),this.pushDestroy(this.appService.findWithQuery(this.fcAppid,this._condition).subscribe((function(t){"0"===t.CODE&&0!==t.DATA.length?(t.DATA.forEach((function(t,i){t.ROWNUM=i+1,t.DOACTION={providers:e.provider,appId:e.fcAppid,parentComponent:e},n.forEach((function(n){var i=e.appService.getDicdescByFieldCode(n,t[n.FIELDCODE]);i&&Object.assign(t,i)}))})),e.fcRowData=t.DATA,e._pageTotal=t.TOTALSIZE):(e.fcRowData=[],e._pageTotal=0)})))}},i.prototype.selectRowById=function(e){this._gridApi.forEachNode((function(n){e.filter((function(e){var t=Object.keys(e),i=!0,o=n.data;t.forEach((function(n){e[n]!==o[n]&&(i=!1)})),n.setSelected(i)}))}))},i.prototype._gridReady=function(e){var n=this;if(this._gridApi=e.api,this._gridColumnApi=e.columnApi,void 0!==this.fcOption.fcAutoSize&&1!=this.fcOption.fcAutoSize||this._gridApi.sizeColumnsToFit(),void 0!==this.fcDeafultSelected)var t=setInterval((function(){n._gridApi.getSelectedNodes().length>0&&clearInterval(t),n.selectRowById(n.fcDeafultSelected)}),800)},i.prototype._doAction=function(e){var n=e.data;this.event(e.ACTION,{ACTION:e.ACTION,PARAMS:n,APPID:this.fcAppid})},i.prototype._selected=function(e){var n=this._gridApi.getSelectedRows();this.fcSelectObjs=n,0!==n.length&&this.event("selected",n)},i.prototype._rowClick=function(e){this.event("rowClick",e)},i.prototype._rowDoubleClicked=function(e){this.event("rowDoubleClick",e)},i.prototype.getPrevObj=function(){var e=this;if(1!==this._selectIndex)return this._selectIndex=this._selectIndex-1,this._selectIds=[],this._selectItems=[],this.fcRowData.filter((function(n){return n.ROWNUM===e._selectIndex})).forEach((function(n){e._selectIds.push(n.ID),e._selectItems.push(n)})),this._selectItems[0]},i.prototype.getNextObj=function(){var e=this;if(this._selectIndex!==this.fcRowData.length+1)return this._selectIds=[],this._selectItems=[],this._selectIndex=this._selectIndex+1,this.fcRowData.filter((function(n){return n.ROWNUM===e._selectIndex})).forEach((function(n){e._selectIds.push(n.ID),e._selectItems.push(n)})),this._selectItems[0]},i.prototype._cellStopEdit=function(e){var n=e.data;n.oldValue=e.oldValue,n.newValue=e.newValue;var t=e.colDef.field;if(-1!==t.indexOf("_DICDESC")){var i=t.substr(0,t.length-8),o=this.appService.getDicByAppFieldcode(this.fcApp,i).filter((function(n){return n.DICDESC===e.newValue}));n[i]=o[0].DICVALUE;var a=n.DOACTION;this.fcOption.fcAutoSave&&this.pushDestroy(this.appService.updateObject(this.fcAppid,n).subscribe((function(e){e.CODE,n.DOACTION=a})))}this.event("modify",n)},i.prototype.getFieldsConfByAppid=function(e){var n=this,t=this.fcApp.SYSAPPFIELDS,i=this,o=[{field:"",suppressSizeToFit:!0,suppressResize:!0,suppressMovable:!1,suppressFilter:!0,headerCheckboxSelection:this.fcOption.fcCheckboxSelection,checkboxSelection:this.fcOption.fcCheckboxSelection,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:18},{headerName:"序号",field:"ROWNUM",suppressSizeToFit:!0,suppressResize:!0,suppressMovable:!1,suppressFilter:!0,suppressSorting:!0,menuTabs:[],sortingOrder:[],width:35}];return this.fcOption.fcEnableAction&&o.push({headerName:"操作",field:"DOACTION",enableRowGroup:!1,enablePivot:!1,allowedAggFuncs:[],suppressMovable:!0,suppressFilter:!0,menuTabs:[],sortingOrder:[],cellRendererFramework:_e,width:133}),t.forEach((function(e){var t=e.LISTMAXLEN?13*e.LISTMAXLEN+10:75;if("Y"===e.ENABLE&&"Y"===e.SHOWLIST){var a={headerName:e.FIELDNAME,field:e.FIELDCODE,enableRowGroup:!1,enablePivot:!0,width:t,allowedAggFuncs:[],cellClass:"text-left",headerTooltip:e.FIELDNAME,tooltipField:e.FIELDCODE,editable:n.fcOption.fcEnableEdit&&"Y"===e.ENABLEWRITE,cellEditor:"agTextCellEditor",lockPinned:!1,pinned:""};if(null!==e.DICCODE)if("N"!==e.ENABLEWRITE||n.fcOption.fcEnableEdit){var c=n.fcApp.SYSDIC.filter((function(n){return n.DICID===e.DICCODE}));if(0!==c.length){var s=c[0],l=[];"LISTVALUE"===s.DICTYPE&&(s.SYSDICDETAIL.forEach((function(e){l.push(e.DICDESC)})),a.cellEditorParams={values:l},a.cellEditor="agSelectCellEditor",a.field=e.FIELDCODE+"_DICDESC")}}else a.field=e.FIELDCODE+"_DICDESC";"NUM"!==e.DBTYPE?(a.enableRowGroup=!0,a.enablePivot=!0):null!==e.DICCODE||"NUM"===e.DBTYPE?a.cellClass="text-center":(a.cellClass="text-right",a.allowedAggFuncs=["sum","min","max"]),a.cellRenderer=function(e){return e.parentContext=i,function(e,n){if(e.data)return e.data[e.colDef.field]&&"null"!==e.data[e.colDef.field]?'<span title="'+e.data[e.colDef.field]+'">'+e.data[e.colDef.field]+"</span>":'<span title=""></span>'}(e)},o.push(a)}})),o},i.decorators=[{type:n.Component,args:[{selector:"fc-modallistdata",template:'\n    <div class="fc-listdata">   \n        <fc-modallistsearch [fcAppid]="fcAppid" class="fc-search" (fcEvent)="_searchEvent($event);" [fcModalSearchConfig]="{}"></fc-modallistsearch>\n        <div *ngIf="_options!==undefined" class="fc-listdata-content">\n            <ag-grid-angular  [localeText]="_gridOptions.localeText"\n                        style="width: 100%; height: 100%;" \n                        [pagination]="false"\n                        [paginationPageSize]="fcOption.fcPaginationPageSize"\n                        [rowData]="fcRowData" \n                        [autoSizePadding]="true" \n                        [class]="fcOption.fcClass"\n                        [columnDefs]="fcOption.fcFields"\n                        [rowGroupPanelShow]="fcOption.fcRowGroupPanelShow" \n                        [enableFilter]="fcOption.fcEnableFilter"\n                        enableValue="true" \n                        [rowGroupPanelShow]="rowGroupPanelShow"\n                        enableRowGroup="true" \n                        singleClickEdit="false"\n                        (cellValueChanged)="_cellStopEdit($event)"\n                        [checkboxSelection]="fcOption.fcCheckboxSelection"\n                        [rowSelection]="fcOption.fcRowSelection"\n                        [enableColResize]="fcOption.fcEnableColResize" \n                        [animateRows]="true"\n                        (selectionChanged)="_selected($event)"\n                        (rowClicked)="_rowClick($event)"\n                        (rowDoubleClicked)="_rowDoubleClicked($event)"\n                        [enableSorting]="fcOption.fcEnableSorting" \n                        (gridReady)="_gridReady($event)">\n            </ag-grid-angular>\n        </div>\n        <div class="fc-listdata-content" *ngIf="_options===undefined">\n            <ag-grid-angular [localeText]="_gridOptions.localeText"\n                            style="width: 100%;height:100%;" \n                            [pagination]="false"\n                            [paginationPageSize]="fcOption.fcPaginationPageSize"\n                            [rowData]="fcRowData" \n                            [autoSizePadding]="true" \n                            [class]="fcOption.fcClass"\n                            [columnDefs]="fcOption.fcFields"\n                            [rowGroupPanelShow]="fcOption.fcRowGroupPanelShow" \n                            [enableFilter]="fcOption.fcEnableFilter"\n                            enableValue="true" \n                            [rowGroupPanelShow]="rowGroupPanelShow"\n                            enableRowGroup="true" \n                            singleClickEdit="false"\n                            (cellValueChanged)="_cellStopEdit($event)"\n                            [checkboxSelection]="fcOption.fcCheckboxSelection"\n                            [rowSelection]="fcOption.fcRowSelection"\n                            [enableColResize]="fcOption.fcEnableColResize" \n                            [animateRows]="true"\n                            (selectionChanged)="_selected($event)"\n                            (rowClicked)="_rowClick($event)"\n                            (rowDoubleClicked)="_rowDoubleClicked($event)"\n                            [enableSorting]="fcOption.fcEnableSorting" \n                            (gridReady)="_gridReady($event)">\n                </ag-grid-angular>\n        </div>\n        <fc-pagination class="show" [fcTotal]="_pageTotal"  \n        [fcPageSize]="_pageSize"  \n        [fcPageSizeSelectorValues]="fcPageSizeSelectorValues" \n        (fcEvent)="_paginationEvent($event)" \n        [ngClass]="{\'hidden\':!fcOption.fcPagination}"></fc-pagination>\n    </div>\n    ',styles:["\n    .fc-listdata{\n        width: 100%;\n        height:100%;\n        display: flex;\n        -webkit-box-orient: vertical;\n        -webkit-box-direction: normal;\n        -ms-flex-direction: column;\n        flex-direction: column;    \n    }\n    :host ::ng-deep .fc-listdata .ant-modal-footer{\n        margin-top:20px;\n    }\n    .hidden{\n        display:none;\n    }\n    .show{\n        display:block;\n    }\n    :host ::ng-deep .fc-listdata .ant-modal-footer{\n        margin-top:20px;\n    }\n    fc-modallistsearch .fc-search{\n        height:20%;\n    }\n    .fc-listdata-content {\n        height:400px;\n        -webkit-box-flex: 1;\n        -ms-flex: 1;\n        flex: 1;    \n    }\n    :host ::ng-deep .ag-theme-blue .ag-paging-row-summary-panel {\n        width:auto;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-paging-button {\n        padding-left: 10px;\n        padding-right: 10px;\n        border-radius: 2px;\n        cursor: pointer;\n        background: #108EE9;\n        border: 1px solid #108EE9;\n        color: #ffffff;\n        transition: all .3s cubic-bezier(.645,.045,.355,1)\n    }\n    :host ::ng-deep .ag-theme-blue .ag-paging-button:hover{\n        background-color: #49a9ee;\n        border-color: #49a9ee;\n    }\n    :host ::ng-deep .ag-theme-blue ag-paging-page-summary-panel {\n        white-space: nowrap;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-row-odd {\n        background: #ffffff;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-row-selected {\n        background:rgba(0,0,0,.1);\n    }\n    :host ::ng-deep .ag-theme-blue .ag-row-hover {\n        background:rgba(0,0,0,.05);\n    }\n    :host ::ng-deep .ag-theme-blue .ag-ltr .ag-cell-no-focus {\n        border-right: 1px solid #d9d9d9;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-cell-no-focus {\n        border-bottom: 1px solid #d9d9d9;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-cell-no-focus:hover {\n        background: rgba(0,0,0,.05);\n    }\n    :host ::ng-deep .ag-theme-blue .ag-cell-focus {\n        border-color: #108EE9;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-header,\n    :host ::ng-deep .ag-theme-blue .ag-menu .ag-tab-header {\n        background: #108EE9;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-menu,:host ::ng-deep .ag-theme-blue .ag-filter-header-container {\n        border-color: #d9d9d9;\n    }\n    :host ::ng-deep .ag-theme-blue .ag-paging-panel{\n        text-align: center;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:l.NzModalService}]},i.propDecorators={fcPageSize:[{type:n.Input}],fcPageNum:[{type:n.Input}],fcPageSizeSelectorValues:[{type:n.Input}],fcRowData:[{type:n.Input}],fcOption:[{type:n.Input}],fcCondition:[{type:n.Input}],fcDeafultSelected:[{type:n.Input}],fcSelectObjs:[{type:n.Input}],test:[{type:n.Input}],options:[{type:n.Input}]},i}(S);var Be=function(e){function i(n,t){var i=e.call(this,n,"fc-modallist")||this;return i.provider=n,i.modalService=t,i.fcViewActionStrategy="[{FIELDCODE:'STATUS',FIELDVALUE:'起草',BUTTONS:['listAdd','listDelete','listView',]}]",i}return h(i,e),i.prototype.ngOnChanges=function(n){if(e.prototype.ngOnChanges.call(this,n),void 0===this.fcTitle)throw new Error("弹窗的fcTitle参数未传入");void 0===this.fcCondition&&(this.fcCondition="{}"),void 0===this.fcType||"single"===this.fcType?this._option={fcClass:"ag-theme-blue",fcHeight:450,fcRowHeight:22,fcPaginationPageSize:20,fcEnableSearch:!0,fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!1,fcPagination:!0,fcEnableStatusBar:!1,fcEnableRangeSelection:!0,fcRowSelection:"single",fcEnableAction:!1,fcCheckboxSelection:!1,fcEnableEdit:!1}:this._option={fcClass:"ag-theme-blue",fcHeight:450,fcRowHeight:22,fcPaginationPageSize:20,fcEnableSearch:!0,fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!1,fcPagination:!0,fcEnableStatusBar:!1,fcEnableRangeSelection:!0,fcRowSelection:this.fcType,fcEnableAction:!1,fcCheckboxSelection:!0,fcEnableEdit:!1}},i.prototype.showModal=function(){var e=this,n=this,t={options:this._option,rowData:this.fcRowData,appId:this.fcAppid,condition:this.fcCondition,pageSize:this.fcPageSize,pageNum:this.fcPageNum,deafultSelected:this.fcDeafultSelected,selectObjs:this.fcSelectObjs,fcCustomPagination:this.fcCustomPagination,viewActionStrategy:this.fcViewActionStrategy},i=this.modalService.create({nzTitle:this.fcTitle,nzContent:Ye,nzWrapClassName:"fc-modallist",nzWidth:"70%",nzStyle:{height:"70%"},nzOnOk:function(e){n.event("success",e.fcSelectObjs)},nzOnCancel:function(){n.event("cancle",[])},nzComponentParams:{options:t}});i.afterClose.subscribe((function(n){if(n instanceof Array&&(e._data=n),"single"===e.fcType&&n&&1===n.length){var t=!0,o=e.fcDeafultSelected;if(o&&o.length>0){var a=o[0];Object.keys(a).forEach((function(e){t&&void 0!==a[e]&&(t=!1)}))}t&&i.destroy("onOk")}}))},i.decorators=[{type:n.Component,args:[{selector:"fc-modallist",template:"",styles:["  \n      :host ::ng-deep .fc-modallist .ant-modal {\n        height:70%;\n      }\n      :host ::ng-deep .fc-modallist .ant-modal-content{\n        width:100%;\n        height:100%;\n      }\n      :host ::ng-deep .fc-modallist .ant-modal-body{\n        width: 100%;\n        height: calc(100% - 90px);\n      }\n    \n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:l.NzModalService}]},i.propDecorators={fcViewActionStrategy:[{type:n.Input}],fcCustomPagination:[{type:n.Input}],fcTitle:[{type:n.Input}],fcRowData:[{type:n.Input}],fcCondition:[{type:n.Input}],fcPageSize:[{type:n.Input}],fcPageNum:[{type:n.Input}],fcPageSizeSelectorValues:[{type:n.Input}],fcDeafultSelected:[{type:n.Input}],fcSelectObjs:[{type:n.Input}]},i}(S);var He=function(e){function o(n,t){var i=e.call(this,n,"fc-adform")||this;return i.provider=n,i.fb=t,i._tempCopyInfo={},i._modalOption={fcAppid:"",fcTitle:"",fcType:"",fcCondition:"{}"},i}return h(o,e),o.prototype._search=function(e,n,i){var o=i[0];if(this._tempCopyInfo.DICAPP=o,this._tempCopyInfo.FIELD=n,this._modalOption.fcAppid=o.APPID,this._modalOption.fcTitle="请选择"+n.FIELDNAME,"queryselectmutiple"===n.INPUTTYPE?this._modalOption.fcType="mutiple":this._modalOption.fcType="sinple",void 0!==o.APPFILTER&&""!==o.APPFILTER&&"null"!==o.APPFILTER){var a=o.APPFILTER.trim(),c=-1!==a.toUpperCase().indexOf("AND")?a.substr(3,a.length):a;this._modalOption.fcCondition='{"WHERE":"'+t.CommonService.getStringFilterByParam(this.fcOption.fcValidate.value,c)+'"}'}this.modalList.fcAppid=o.APPID,this.modalList.fcTitle=this._modalOption.fcTitle,this.modalList.fcCondition=this._modalOption.fcCondition,this.modalList.fcType=this._modalOption.fcType,this.modalList.showModal()},o.prototype._modalClose=function(e){var n=this;if("success"===e.eventName){var t="";e.param&&(e.param.forEach((function(e){t+=e[n._tempCopyInfo.DICAPP.FIELDCODE]+","})),""!==t&&(t=t.substr(0,t.length-1)),this.fcOption.fcValidate.controls[this._tempCopyInfo.FIELD.FIELDCODE].setValue(t))}},o.prototype._afterParentInit=function(){var e=this;this.fcOption.hasOwnProperty("fcLayout")&&void 0!==this.fcOption.fcLayout||(this.fcOption.fcLayout=je.HORIZONTAL),this.fcOption.hasOwnProperty("fcTitle")&&void 0!==this.fcOption.fcTitle||(this.fcOption.fcTitle=this.fcApp.APPNAME),this.fcOption.hasOwnProperty("fcFields")&&void 0!==this.fcOption.fcFields||(this.fcOption.fcFields=this.fcApp.SYSAPPFIELDS.filter((function(e){return"Y"===e.SHOWCARD})));var n={};this.fcOption.fcFields.forEach((function(t){var o=null,a=[i.Validators.maxLength(t.LENGTH)];void 0!==e.fcMainObj&&(o=e.fcMainObj[t.FIELDCODE]),"Y"===t.ISNULL&&a.push(i.Validators.required),n[t.FIELDCODE]=[o,a]})),this.fcOption.fcValidate=this.fb.group(n),this.fcOption.hasOwnProperty("fcFieldDics")&&void 0!==this.fcOption.fcFieldDics||(this.fcOption.fcFieldDics={},this.fcOption.fcFields.filter((function(e){return void 0!==e.DICCODE&&null!==e.DICCODE&&""!==e.DICCODE})).forEach((function(n){var t={},i=e.fcApp.SYSDIC.filter((function(e){return e.DICID===n.DICCODE}));0!==i.length&&(t.DICID=i[0].DICID,t.DICTYPE=i[0].DICTYPE,t.FIELDCODE=n.FIELDCODE,"LISTAPP"===t.DICTYPE?t.SYSDICAPP=i[0].SYSDICAPP:t.SYSDICDETAIL=i[0].SYSDICDETAIL),e.fcOption.fcFieldDics[n.FIELDCODE]=t}))),this.fcOption.hasOwnProperty("fcToolbar")&&void 0!==this.fcOption.fcToolbar||(this.fcOption.fcToolbar=this.fcApp.SYSAPPBUTTONS.filter((function(e){return"CARD"===e.BTNTYPE}))),this.fcOption.hasOwnProperty("fcSpans")&&void 0!==this.fcOption.fcSpans||(this.fcOption.fcSpans=24/this.fcApp.CARDCOLS)},o.prototype._back=function(e){this.event(e.ACTCODE,e)},o.prototype._event=function(e){var n=e.param;switch(n.ACTCODE){case De.NEXT:this._next();break;case De.PREV:this._prev();break;case De.CARDBACK:this._back(n);break;case De.CARDNEW:this.fcMainObj=this.appService.initObjDefaultValue(this.fcApp),this.fcMainObj.ID="",this.fcId=this.fcMainObj.ID,this.fcOption.fcValidate.patchValue(this.fcMainObj);break;case De.CARDSAVE:case De.CARDSAVECOPY:case De.CARDSAVENEW:case De.CARDSAVEBACK:this._doAct(n);break;default:this.event(n.ACTCODE,n)}},o.prototype._doAct=function(e){var n=this;Object.keys(this.fcOption.fcValidate.value).forEach((function(e){n.fcMainObj[e]=n.fcOption.fcValidate.value[e]})),void 0!==this.fcMainObj.ID&&""!==this.fcMainObj.ID?this.pushDestroy(this.appService.updateObject(this.fcApp.APPID,this.fcMainObj).subscribe((function(t){n._afterAct(e,t)}))):this.pushDestroy(this.appService.saveObject(this.fcApp.APPID,this.fcMainObj).subscribe((function(t){n._afterAct(e,t)})))},o.prototype._afterAct=function(e,n){if("0"===n.CODE){switch(this.event("AFTERSAVE",n.DATA[0]),e.ACTCODE){case De.CARDSAVE:this.fcMainObj=n.DATA[0],this.fcId=this.fcMainObj.ID,this.fcOption.fcValidate.patchValue(this.fcMainObj);break;case De.CARDSAVECOPY:this.fcMainObj=n.DATA[0],this.fcMainObj.ID="",this.fcId=this.fcMainObj.ID,this.fcOption.fcValidate.patchValue(this.fcMainObj);break;case De.CARDSAVENEW:this.fcMainObj=this.appService.initObjDefaultValue(this.fcApp),this.fcMainObj.ID="",this.fcId=this.fcMainObj.ID,this.fcOption.fcValidate.patchValue(this.fcMainObj);break;case De.CARDSAVEBACK:this._back(e)}this.msgService.message(n.MSG)}else this.msgService.error(n.MSG)},o.prototype._next=function(){this.event("next",this.fcMainObj)},o.prototype._prev=function(){this.event("prev",this.fcMainObj)},o.prototype._getFormControl=function(e){return this.fcOption.fcValidate.controls[e]},o.decorators=[{type:n.Component,args:[{selector:"fc-adform",template:'\n    <fc-layoutpanel class="fc-adform" *ngIf="fcOption.fcValidate!==undefined">\n        <fc-title [fcLabel]="fcOption.fcTitle" fcheader></fc-title>\n        <div fccontent>\n            <form nz-form [nzLayout]="fcOption.fcLayout" [formGroup]="fcOption.fcValidate">\n                <nz-row [nzGutter]="4">\n                    <nz-form-item nz-col [nzSpan]="fcOption.fcSpans" *ngFor="let field of fcOption.fcFields">\n                           <nz-form-label [nzSm]="8" [nzXs]="24">{{field.FIELDNAME}}</nz-form-label>\n                            <nz-form-control [nzSm]="16" [nzXs]="24" nzHasFeedback>\n                                <fc-text [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'STR\'&&field.INPUTTYPE===\'text\'"></fc-text>\n                                <fc-double [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'NUM\'&&field.SCALE!==\'0\'"></fc-double>\n                                <fc-long [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'NUM\'&&field.SCALE===\'0\'"></fc-long>\n                                <fc-radio [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'radio\'&&fcOption.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'" [fcOption]="fcOption.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode="DICVALUE" fcLabelCode="DICDESC"></fc-radio>\n                                <fc-check [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'check\'&&fcOption.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'" [fcOption]="fcOption.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode="DICVALUE" fcLabelCode="DICDESC"></fc-check>\n                                <fc-combo [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'combo\'&&fcOption.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'" [fcOption]="fcOption.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode="DICVALUE" fcLabelCode="DICDESC"></fc-combo>\n                                <fc-chosen [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'chosen\'&&fcOption.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'" [fcOption]="fcOption.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode="DICVALUE" fcLabelCode="DICDESC"></fc-chosen>\n                                <fc-text [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcAddOnAfter]="\'anticon anticon-search\'" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'STR\'&&field.INPUTTYPE.indexOf(\'queryselect\')!==-1" (fcEvent)="_search($event,field,fcOption.fcFieldDics[field.FIELDCODE].SYSAPPDICAPP)"></fc-text>\n                                <fc-textarea [formControlName]="field.FIELDCODE" fcShowLabel="Y" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'textarea\'"></fc-textarea>\n                                <nz-form-explain *ngIf="_getFormControl(field.FIELDCODE).dirty&&_getFormControl(field.FIELDCODE).hasError(\'required\')">校验异常：必填项}}!</nz-form-explain>\n                                <nz-form-explain *ngIf="_getFormControl(field.FIELDCODE).dirty&&_getFormControl(field.FIELDCODE).hasError(\'maxlength\')">校验异常：超出最大长度,最大长度为{{field.LENGTH}}!</nz-form-explain>\n                            </nz-form-control>\n                    </nz-form-item>\n                </nz-row>\n                <nz-form-item>\n                    <fc-tlbform [fcButtons]="fcOption.fcToolbar" (fcEvent)="_event($event)"></fc-tlbform>\n                    <fc-modallist #FcadformComponent [fcTitle]="_modalOption.fcTitle" [fcCondition]="_modalOption.fcCondition" [fcAppid]="_modalOption.fcAppid" [fcType]="_modalOption.fcType" (fcEvent)="_modalClose($event)"></fc-modallist>\n                </nz-form-item>\n            </form>\n        </div>\n    </fc-layoutpanel>\n    ',styles:["\n    .fc-adfform{\n        width:100%;\n        height:100%;\n    }\n    .fc-adfform-label {\n        display:block;\n        padding-right:10px;\n        text-align:right;\n    }\n    :host ::ng-deep .ant-select-dropdown-menu-item{\n        overflow: visible;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService},{type:i.FormBuilder}]},o.propDecorators={modalList:[{type:n.ViewChild,args:["FcadformComponent",{static:!1}]}],fcOption:[{type:n.Input}]},o}(S);var Ue={ADD:0,MODIFY:1};Ue[Ue.ADD]="ADD",Ue[Ue.MODIFY]="MODIFY";var je={INLINE:"inline",HORIZONTAL:"horizontal",VERTICAL:"vertical"},$e=function(e){function i(n){var t=e.call(this,n,"fc-layoutcol")||this;return t.provider=n,t._spans=[],void 0===t.fcSpans&&(t._spans=[12,12]),t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0!==this.fcSpans&&this.processSpans()},i.prototype.processSpans=function(){var e=this;this._spans=[];var n=this.fcSpans.split(","),t=0;n.forEach((function(e){t+=Number.parseInt(e)})),n.forEach((function(n){var i=Number.parseInt(n);e._spans.push(Math.round(24*i/t))}))},i.decorators=[{type:n.Component,args:[{selector:"fc-layoutcol",template:'\n    <div nz-row class="fc-layoutcol fc-full" [ngClass]="{fcClass:fcClass!==undefined}">\n        <div nz-col [nzSpan]="_spans[0]"  class="fc-content1">\n            <ng-content select="[fccontent1]" style="width:100%;height:100%;"></ng-content>\n        </div>\n        <div nz-col [nzSpan]="_spans[1]" class="fc-content2">\n            <ng-content select="[fccontent2]" style="width:100%;height:100%;"></ng-content>\n        </div>\n    </div>\n    ',styles:["\n    .fc-full{\n        width:100%;\n        height:100%;\n    }\n"]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcSpans:[{type:n.Input}]},i}(y);var Ge=function(e){function i(n){var t=e.call(this,n,"fc-layoutgroup")||this;return t.provider=n,t.fcFull=!1,t.fcMargin="15px 5px 5px",t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},i.decorators=[{type:n.Component,args:[{selector:"fc-layoutgroup",template:'\n    <section   class="fc-layoutgroup" [ngClass]="{\'fc-full\':fcFull,fcClass:fcClass!==undefined}" [style.margin]="fcMargin">\n        <div class="fc-header">\n            <span>{{fcTitle}}</span>\n        </div>\n        <div class="fc-content">\n            <ng-content select="[fccontent]" style="height:100%;"></ng-content>\n        </div>\n        <div class="fc-footer">\n            <ng-content select="[fcfooter]"></ng-content>\n        </div>\n    </section>\n    ',styles:["\n        .fc-layoutgroup {\n            width: calc(100% - 20px);\n            border: 1px solid #e9e9e9;\n            position: relative;\n        }\n        .fc-layoutgroup .fc-header{\n            font-size: 14px;\n            color: #777;\n            font-weight: 500;\n            padding: 1px 8px;\n            border-radius: 4px 4px 0 0;\n            background: #ffffff;\n            position:absolute;\n            top: -14px;\n            left:16px;\n        }\n        .fc-layoutgroup .fc-content {\n            padding:10px;\n        }\n        .fc-full .fc-content{\n            height:100%;\n        }\n        .fc-footer{\n            border-top:1px \n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcFull:[{type:n.Input}],fcTitle:[{type:n.Input}],fcMargin:[{type:n.Input}]},i}(y);var We=function(e){function i(n){var t=e.call(this,n,"fc-layoutrow")||this;return t.provider=n,t.fcSpan=46,t._span=t.fcSpan+"px",t}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),this._span=this.fcSpan+"px"},i.decorators=[{type:n.Component,args:[{selector:"fc-layoutrow",template:'\n    <div class="fc-layoutrow"  [ngClass]="{fcClass:fcClass!==undefined}"   >\n        <div class="fc-layoutrowcell fc-layoutrowcell1" [style.height]="_span" [style.minHeight]="_span">\n            <ng-content select="[fccontent1]" style="height:100%;"></ng-content>\n        </div>\n        <div class="fc-layoutrowcell fc-layoutrowcell2">\n            <ng-content select="[fccontent2]"></ng-content>\n        </div>\n    </div>\n    ',styles:["\n    .fc-layoutrow{\n        width:100%;\n        height:100%;\n        display:-webkit-flex;\n\t    display:flex;\n        flex-flow:column;\n        background-color:#ffffff;\n    }\n    .fc-layoutrowcell{\n        width:100%;\n    }\n    .fc-layoutrowcell1{\n       \n    }\n    .fc-layoutrowcell2{\n        flex:1;\n        overflow:hidden;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcSpan:[{type:n.Input}]},i}(y);var qe=function(e){function i(n){var t=e.call(this,n,"fc-layoutpanel")||this;return t.provider=n,t.fcFull=!1,t}return h(i,e),i.decorators=[{type:n.Component,args:[{selector:"fc-layoutpanel",template:'\n    <div class="fc-layoutpanel"    [ngClass]="{\'fc-full\':fcFull,fcClass:fcClass!==undefined}">\n        <div class="fc-header">\n            <ng-content select="[fcheader]"></ng-content>\n        </div>  \n        <div class="fc-toolbar">\n            <ng-content select="[fctoolbar]"></ng-content>\n        </div>      \n        <div class="fc-content">\n            <ng-content select="[fccontent]"></ng-content>\n        </div>\n        <div class="fc-footer">\n            <ng-content select="[fcfooter]"></ng-content>\n        </div>\n    </div>\n    ',styles:["\n    .fc-layoutpanel{\n        display: block;\n        width: 100%;\n        position: relative;\n        box-sizing:border-box;\n        background-color:#ffffff;\n    }  \n    .fc-full{\n        width:100%;\n        height:100%;\n    }\n    .fc-full .fc-content{\n        width:100%;\n        height:100%;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcFull:[{type:n.Input}]},i}(y);var Xe=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce],exports:[$e,Ge,We,qe],declarations:[$e,Ge,We,qe],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),Ke=function(e){function i(n){var t=e.call(this,n,"fc-tlblist")||this;return t.provider=n,t.fcButtons=[],void 0===t.fcHasGap&&(t._hasgap=!1),t}return h(i,e),i.prototype._afterParentInit=function(){var e=this;if(this._viewAction=[],this.fcViewActionStrategy)try{this._viewAction=JSON.parse(this.fcViewActionStrategy)}catch(e){this.logService.error('按钮显示策略值异常，请参考：[{"FIELDCODE":"STATUS","FIELDVALUE":"起草","BUTTONS":["listAdd","listDelete","listView"]}]格式')}if(void 0===this.fcButtons||0===this.fcButtons.length){if(void 0===this.fcAppid&&void 0===this.fcApp)throw new Error("缺少工具栏组件");if(this.fcViewActionStrategy){var n="",t="";this._viewAction.forEach((function(i){var o=e.params.data[i.FIELDCODE];(o===i.FIELDVALUE||"isnull"===i.FIELDVALUE&&(null==o||""===o)||"isnotnull"===i.FIELDVALUE&&null!=o&&""!==o)&&i.BUTTONS&&(n+=i.BUTTONS.join(",")),o===i.FIELDNOSHOWVALUE&&i.NOSHOWBUTTONS.forEach((function(e){t+=e+","}))})),this.fcButtons=this.fcApp.SYSAPPBUTTONS.filter((function(e){return(""===t||-1===t.indexOf(e.ACTCODE))&&(""!==n?-1!==n.indexOf(e.ACTCODE)&&"LIST"===e.BTNTYPE:"LIST"===e.BTNTYPE)}))}else this.fcButtons=this.fcApp.SYSAPPBUTTONS.filter((function(e){return"LIST"===e.BTNTYPE}))}"Y"===this.fcHasGap&&(this._hasgap=!0),void 0===this.fcLayout&&(this.fcLayout=Qe.LEFT)},i.decorators=[{type:n.Component,args:[{selector:"fc-tlblist",template:"\n    <div class=\"fc-tlblist\"   *ngIf=\"fcHasGap===undefined\"  [ngClass]=\"{'fc-tlblist-small':fcSize === 'small','fc-tlblist-default':fcSize === 'default','fc-tlblist-large':fcSize === 'large','fc-left':fcLayout==='left','fc-center':fcLayout==='center','fc-right':fcLayout==='right'}\">\n        <fc-button [fcSize]=\"fcSize\" fcMode=\"group\"   [fcGroup]=\"fcButtons\" [fcDisableds]=\"fcDisableds\" (fcEvent)=\"event($event.eventName,$event.param)\"></fc-button>\n    </div>\n    <div class=\"fc-tlblist\"   *ngIf=\"fcHasGap!==undefined\"  [ngClass]=\"{'fc-hasgap':fcHasGap==='Y','fc-tlblist-small':fcSize === 'small','fc-tlblist-default':fcSize === 'default','fc-tlblist-large':fcSize === 'large','fc-left':fcLayout==='left','fc-center':fcLayout==='center','fc-right':fcLayout==='right'}\">\n        <fc-button [fcSize]=\"fcSize\" fcMode=\"group\"  [fcGroup]=\"fcButtons\"  [fcDisableds]=\"fcDisableds\"  [fcDisableds]=\"fcDisableds\" (fcEvent)=\"event($event.eventName,$event.param)\"></fc-button>\n    </div>\n    ",styles:["\n        .fc-tlblist{\n            margin-top:5px;\n            margin-bottom:5px;\n            text-align: right;\n        }\n        .fc-center{\n            text-align: center;\n        }\n        .fc-right{\n            text-align: right;  \n        }\n        :host ::ng-deep .fc-tlblist .ant-btn{\n            // color:#333333;\n        }\n        :host ::ng-deep .fc-tlblist .ant-btn{\n            // border-color:#7d7d7d;\n         }\n        :host ::ng-deep .fc-tlblist .button-group .ant-btn:hover,:host ::ng-deep .fc-tlblist .button-group .ant-btn:focus {\n            color: #1890ff;\n        }\n        :host ::ng-deep .fc-hasgap .ant-btn-group > .ant-btn{\n            margin-right:10px;\n        }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcViewActionStrategy:[{type:n.Input}],fcButtons:[{type:n.Input}],fcLayout:[{type:n.Input}],fcDisableds:[{type:n.Input}],fcHasGap:[{type:n.Input}]},i}(S);var Qe={LEFT:"left",CENTER:"center",RIGHT:"right"},Ze=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce,Se],exports:[ze,Ke,_e],declarations:[ze,Ke,_e],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),Je=function(e){function i(n){var t=e.call(this,n,"fc-modalcard")||this;return t.provider=n,t.fcVisiable=!0,t}return h(i,e),i.prototype.ngOnInit=function(){var e=this;this.fcToken&&this.pushDestroy(t.CommonService.subscribe(this.fcToken+"-opened",(function(n){e.fcVisiable=!0,e.openTemplateDialog(e.template,n)})))},i.prototype.openTemplateDialog=function(e,n){var i=this;n||(n={param:{}});var o={mask:n.param.mask,title:n.param.fcTitle||this.fcTitle,closable:n.param.fcClosable||!0,className:n.param.fcClassName||"",content:e,width:this.fcWidth||n.param.fcWidth||"80%",footer:this.templateFooter||null,okFunc:function(e){i.event("okFunc",e)},cancelFunc:function(e){i.event("cancelFunc",e)},token:this.fcToken};t.CommonService.event(m.fcmodal.component,o)},i.prototype.ngOnDestroy=function(){t.CommonService.clearEmmitByKey(this.fcToken+"-opened")},i.decorators=[{type:n.Component,args:[{selector:"fc-modalcard",template:' \n        <ng-template #template>\n            <ng-content select="[fccontent]">\n            </ng-content> \n        </ng-template>\n        <ng-template #templateFooter>\n            <ng-content select="[fcfooter]">\n            </ng-content> \n        </ng-template>\n        <span (click)="openTemplateDialog(template);">\n            <ng-content select="[fcopen]"></ng-content>\n        </span>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcVisiable:[{type:n.Input}],template:[{type:n.ViewChild,args:["template",{static:!1}]}],templateFooter:[{type:n.ViewChild,args:["templateFooter",{static:!1}]}],fcToken:[{type:n.Input}],fcTitle:[{type:n.Input}],fcWidth:[{type:n.Input}],fcFooter:[{type:n.Input}]},i}(y);var en=function(e){function o(n,t){var i=e.call(this,n,"fc-modallistsearch")||this;return i.provider=n,i.fb=t,i._tempCopyInfo={},i._modalOption={fcAppid:"",fcTitle:"",fcType:"",fcCondition:"{}"},i}return h(o,e),o.prototype._afterParentInit=function(){var e=this;if(this.fcModalSearchConfig.fcLayout=Re.HORIZONTAL,this.fcModalSearchConfig.fcFields=[],void 0!==this.fcAppid){this.fcModalSearchConfig.fcFields=this.fcApp.SYSAPPFIELDS.filter((function(e){return"Y"===e.ENABLESEARCH}));var n={};this.fcModalSearchConfig.fcFields.forEach((function(t){var i=null;void 0!==e.fcMainObj&&(i=e.fcMainObj[t.FIELDCODE]),n[t.FIELDCODE]=[i]})),this.fcModalSearchConfig.fcValidate=this.fb.group(n);var t={};this.fcModalSearchConfig.fcFields.filter((function(e){return void 0!==e.DICCODE&&null!==e.DICCODE&&""!==e.DICCODE})).forEach((function(n){var i={},o=e.fcApp.SYSDIC.filter((function(e){return e.DICID===n.DICCODE}));0!==o.length&&(i.DICID=o[0].DICID,i.DICTYPE=o[0].DICTYPE,i.FIELDCODE=n.FIELDCODE,"LISTAPP"===i.DICTYPE?i.SYSDICAPP=o[0].SYSDICAPP:i.SYSDICDETAIL=o[0].SYSDICDETAIL),t[n.FIELDCODE]=i})),this.fcModalSearchConfig.fcFieldDics=t,this.fcModalSearchConfig.fcToolbar=[{BTNTYPE:"SEARCH",BTNICON:"",ACTCODE:"search",BTNCODE:"search",SORT:"0",ENABLE:"Y",APPID:"",QUICKKEYS:"",BTNNAME:"查询",ID:"1"},{BTNTYPE:"SEARCH",BTNICON:"",ACTCODE:"reset",BTNCODE:"reset",SORT:"1",ENABLE:"Y",APPID:"",QUICKKEYS:"",BTNNAME:"重置",ID:"0"}]}this.fcModalSearchConfig.fcSpans=8},o.prototype._search=function(e,n,i){if(this._tempCopyInfo.DICAPP=i,this._tempCopyInfo.FIELD=n,this._modalOption.fcAppid=i.APPID,this._modalOption.fcTitle="请选择"+n.FIELDNAME,"queryselectmutiple"===n.INPUTTYPE?this._modalOption.fcType="mutiple":this._modalOption.fcType="sinple",void 0!==i.APPFILTER&&""!==i.APPFILTER&&"null"!==i.APPFILTER){var o=i.APPFILTER.trim(),a=-1!==o.toUpperCase().indexOf("AND")?o.substr(3,o.length):o;this._modalOption.fcCondition='{"WHERE":"'+t.CommonService.getStringFilterByParam(this.fcMainObj,a)+'"}'}this.modalList.fcAppid=i.APPID,this.modalList.fcTitle=this._modalOption.fcTitle,this.modalList.fcCondition=this._modalOption.fcCondition,this.modalList.fcType=this._modalOption.fcType,this.modalList.showModal()},o.prototype._modalClose=function(e){var n=this;if("success"===e.eventName){var t="";e.param.forEach((function(e){t+=e[n._tempCopyInfo.DICAPP.FIELDCODE]+","})),""!==t&&(t=t.substr(0,t.length-1)),this.fcModalSearchConfig.fcValidate.controls[this._tempCopyInfo.FIELD.FIELDCODE].setValue(t)}},o.prototype._event=function(e){var n=this,t={};switch(e.eventName){case"search":Object.keys(this.fcModalSearchConfig.fcValidate.value).forEach((function(e){n.fcMainObj[e]=n.fcModalSearchConfig.fcValidate.value[e],void 0!==n.fcMainObj[e]&&null!==n.fcMainObj[e]&&0!==n.fcMainObj[e].length&&(t[e]=n.fcMainObj[e])})),this.event("search",t);break;case"reset":Object.keys(this.fcModalSearchConfig.fcValidate.controls).forEach((function(e){n.fcModalSearchConfig.fcValidate.controls[e].setValue("")})),this.event("reset",{})}},o.prototype._getFormControl=function(e){return this.fcModalSearchConfig.fcValidate.controls[e]},o.decorators=[{type:n.Component,args:[{selector:"fc-modallistsearch",template:'\n    <fc-layoutpanel class="fc-listsearch" *ngIf="fcModalSearchConfig.fcValidate!==undefined&&fcModalSearchConfig.fcFields.length!==0">\n        <div fccontent>\n            <form nz-form  [formGroup]="fcModalSearchConfig.fcValidate">\n                <div nz-row>\n                    <div nz-col [nzSpan]="fcModalSearchConfig.fcSpans" nz-form-item *ngFor="let field of fcModalSearchConfig.fcFields">\n                        <div nz-form-control>\n                            <div nz-form-label nz-col [nzSm]="10" [nzXs]="24">\n                                <label [for]="field.APPID+field.FIELDCODE">{{field.FIELDNAME}}</label>\n                            </div>\n                            <div nz-form-control nz-col [nzSm]="12" [nzXs]="24">\n                                <fc-text fcShowLabel="Y" [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'STR\'&&field.INPUTTYPE===\'text\'" ></fc-text>\n                                <fc-double fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'NUM\'&&field.SCALE!==\'0\'" ></fc-double>\n                                <fc-long fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'NUM\'&&field.SCALE===\'0\'" ></fc-long>\n                                <fc-radio fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'radio\'&&fcModalSearchConfig.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'"  [fcOption]="fcModalSearchConfig.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode=\'DICVALUE\' fcLabelCode=\'DICDESC\'></fc-radio>\n                                <fc-check fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'check\'&&fcModalSearchConfig.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'"  [fcOption]="fcModalSearchConfig.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode=\'DICVALUE\' fcLabelCode=\'DICDESC\'></fc-check>\n                                <fc-combo fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'combo\'&&fcModalSearchConfig.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'"  [fcOption]="fcModalSearchConfig.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode=\'DICVALUE\' fcLabelCode=\'DICDESC\'></fc-combo>\n                                <fc-chosen fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'chosen\'&&fcModalSearchConfig.fcFieldDics[field.FIELDCODE].DICTYPE===\'LISTVALUE\'"  [fcOption]="fcModalSearchConfig.fcFieldDics[field.FIELDCODE].SYSAPPDICDETAIL" fcValueCode=\'DICVALUE\' fcLabelCode=\'DICDESC\'></fc-chosen>\n                                <fc-text fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcAddonAfter]="\'anticon anticon-search\'" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.DBTYPE===\'STR\'&&field.INPUTTYPE.indexOf(\'queryselect\')!==-1" (fcEvent)="_search($event,field,fcModalSearchConfig.fcFieldDics[field.FIELDCODE].SYSAPPDICAPP)">\n                                </fc-text>                                \n                                <fc-textarea fcShowLabel="Y"  [formControlName]="field.FIELDCODE" [fcForId]="field.APPID+field.FIELDCODE" *ngIf="field.INPUTTYPE===\'textarea\'" ></fc-textarea>\n                            </div>\n                        </div>\n                    </div>\n                    <fc-tlbform [fcButtons]="fcModalSearchConfig.fcToolbar" (fcEvent)="_event($event)"></fc-tlbform>\n                </div>\n                <fc-modallist #FcmodallistsearchComponent [fcTitle]="_modalOption.fcTitle" [fcCondition]="_modalOption.fcCondition" [fcAppid]="_modalOption.fcAppid" [fcType]="_modalOption.fcType" (fcEvent)="_modalClose($event)"></fc-modallist>\n            </form>\n        </div>\n    </fc-layoutpanel>\n    ',styles:["\n    .fc-modallistsearch{\n        width:100%;\n    }\n    .fc-modallistsearch-label {\n        display:block;\n        padding-right:10px;\n        text-align:right;\n    }\n    :host ::ng-deep .ant-form-item{\n        margin-bottom:0;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService},{type:i.FormBuilder}]},o.propDecorators={modalList:[{type:n.ViewChild,args:["FcmodallistsearchComponent",{static:!1}]}],fcModalSearchConfig:[{type:n.Input}]},o}(S);var nn=function(){function e(e){this.modal=e}return Object.defineProperty(e.prototype,"options",{set:function(e){this._content=e.content},enumerable:!0,configurable:!0}),e.prototype.ok=function(e){this.modal.destroy({data:this._content})},e.prototype.cancel=function(e){this.modal.destroy()},e.decorators=[{type:n.Component,args:[{selector:"fc-modalinput",template:'\n    <fc-text  [(ngModel)]="_content"></fc-text>\n    <div class="customize-footer">\n        <fc-button  [fcType]="\'primary\'" fcLabel="确定" (click)="ok($event)">\n        </fc-button>\n        <fc-button [fcType]="\'default\'" fcLabel="取消"  (click)="cancel($event)">\n        </fc-button>\n    </div>\n    ',styles:["\n    .customize-footer{\n        text-align:right;\n    }\n    "]}]}],e.ctorParameters=function(){return[{type:l.NzModalRef}]},e.propDecorators={options:[{type:n.Input}]},e}();var tn=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce,Xe,Se,Ze,f.AgGridModule.withComponents([_e])],exports:[Je,Be,Ye,en,nn],declarations:[Je,Be,Ye,en,nn],entryComponents:[Je,Be,Ye,en,nn],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),on=function(e){function i(n,t){var i=e.call(this,n,"fc-adcarousel")||this;return i.provider=n,i.confirmServ=t,i}return h(i,e),i.prototype.uploadEvent=function(e){switch(e.eventName){case"selectedPic":this.event("selectedPic",e);for(var n=0;n<this._fcData.length;n++)if(this._fcData[n].uid===e.param.uid){this._slickGoTo=n+"";break}break;case"loaded":this._fcData=[],this._processPic(e.param);break;case"removeFile":this._fcData=[],this._processPic([e.param]);break;case"success":this._processPic([e.param])}},i.prototype._processPic=function(e){var n=this;(e=e||[]).forEach((function(e){n._fcData.push({uid:e.uid,label:e.name,src:e.url})}))},i.prototype._afterParentInit=function(){},i.decorators=[{type:n.Component,args:[{selector:"fc-adcarousel",template:'\n    <div class="fc-adcarousel">\n        <div class="fc-adcarousel-carousel">\n            <fc-carousel [fcData]="fcData" [fcAutoPlay]="fcAutoPlay" [fcSlickGoTo]="fcSlickGoTo" ></fc-carousel>\n        </div>\n        <div class="fc-adcarousel-upload">\n            <fc-upload  fcLabel="基本"  [fcListType]="\'picture-card\'" [fcOption]="fcOption" [fcPreview]="false"\n            (fcEvent)="uploadEvent($event)">\n            </fc-upload>\n        </div>\n    </div>\n    ',styles:["\n    .fc-adcarousel-upload{\n        padding-top:5px;\n    }\n    :host ::ng-deep .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o,\n    :host ::ng-deep .ant-upload-list-picture-card:hover .ant-upload-list-item-actions .anticon-eye-o{\n        width: 96px;\n        height: 96px;\n        display: block;\n        position: absolute;\n        left: 0;\n        top: 0;\n        color: transparent;\n    }\n    :host ::ng-deep .ant-upload-list-picture-card .ant-upload-list-item-actions {\n        position: absolute;\n        left: 0;\n        top: 0;\n        transform: translate(0, 0);\n        width: 96px;\n        height: 96px;\n        display: block;\n        transition: all 0s;\n    }\n    :host ::ng-deep .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{\n        position: absolute;\n        right: 10px;\n        top: 10px;\n    }\n    :host ::ng-deep .fc-adcarousel .slick-slide img{\n        width:auto;\n        height:100%;\n        display:block;\n        margin:auto;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:l.NzModalService}]},i.propDecorators={fcData:[{type:n.Input}],fcAutoPlay:[{type:n.Input}],fcSlickGoTo:[{type:n.Input}]},i}(S);var an=function(e){function i(n,i){var o=e.call(this,n,"fc-adprint")||this;return o.provider=n,o.sanitizer=i,o.token=t.CommonService.guid(),o}return h(i,e),i.prototype.ngOnChanges=function(n){var i=this;e.prototype.ngOnChanges.call(this,n);var o=t.CacheService.getS("userinfo");this.fcParam||(this.fcParam={}),this.fcReportlet&&(this.fcParam.reportlet=this.fcReportlet),this.fcParam.USERID=o.USERCODE,this._param="?",Object.keys(this.fcParam).forEach((function(e){i._param+=e+"="+i.fcParam[e]+"&"})),this.monitor=this.sanitizer.bypassSecurityTrustResourceUrl(t.FCCONFIG.reporturl+this._param)},i.decorators=[{type:n.Component,args:[{selector:"fc-adprint",template:'\n     \n        <fc-modalcard [fcTitle]="fcTitle" [fcToken]="token" [fcFooter]="null">\n        <fc-layoutpanel fccontent style="height:500px;">\n            <fc-title [fcLabel]="fcTitle" fcheader></fc-title>\n            <iframe fccontent style="width:100%;height:500px;" [src]="monitor"></iframe>\n            </fc-layoutpanel>\n        <fc-button [fcLabel]="fcLabel"  [fcIcon]="fcIcon" fcopen ></fc-button>\n    </fc-modalcard>\n    ',styles:["\n    .fc-icon-small{\n        font-size:18px;\n    }\n    .fc-icon-default{\n        font-size:22px;\n    }\n    .fc-icon-large{\n        font-size:30px;\n    }\n\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:p.DomSanitizer}]},i.propDecorators={fcLabel:[{type:n.Input}],fcParam:[{type:n.Input}],fcIcon:[{type:n.Input}],fcReportlet:[{type:n.Input}]},i}(y);var cn=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce,Se,Xe,Ze,tn],exports:[Ie,He,on,an],declarations:[Ie,He,on,an],providers:[]}]}],e}(),sn=function(e){function i(n,t){var i=e.call(this,n,"fc-listmodal")||this;return i.provider=n,i.modalService=t,i}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0===this.fcCondition&&(this.fcCondition="{}"),void 0===this.fcType||"single"===this.fcType?this._option={fcClass:"ag-theme-blue",fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!1,fcPagination:!0,fcEnableStatusBar:!1,fcEnableRangeSelection:!0,fcRowSelection:"single",fcEnableAction:!1,fcCheckboxSelection:!1,fcEnableEdit:!1}:this._option={fcClass:"ag-theme-blue",fcEnableSorting:!0,fcEnableFilter:!0,fcEnableColResize:!0,fcShowToolPanel:!1,fcPagination:!0,fcEnableStatusBar:!1,fcEnableRangeSelection:!0,fcRowSelection:this.fcType,fcEnableAction:!1,fcCheckboxSelection:!0,fcEnableEdit:!1}},i.prototype.showModal=function(){var e=this,n=this,t={options:this._option,rowData:this.fcRowData,appId:this.fcAppid,condition:this.fcCondition},o=this.modalService.create({nzTitle:this.fcTitle,nzContent:i,nzWrapClassName:"vertical-center-modal",nzWidth:"70%",nzOnOk:function(){n.event("success",n._data)},nzOnCancel:function(){n.event("cancle",[])},nzComponentParams:{fcOption:t}});o.afterClose.subscribe((function(n){n instanceof Array&&(e._data=n),"single"===e.fcType&&1===n.length&&o.destroy("onOk")}))},i.decorators=[{type:n.Component,args:[{selector:"fc-listmodal",template:"",styles:["\n    :host ::ng-deep .vertical-center-modal {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n      }\n      :host ::ng-deep .vertical-center-modal .ant-modal {\n        top: 0;\n      }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:l.NzModalService}]},i.propDecorators={fcTitle:[{type:n.Input}],fcRowData:[{type:n.Input}],fcCondition:[{type:n.Input}]},i}(S);var ln=function(e){function o(n,i){var o=e.call(this,n,"fc-listdata")||this;return o.provider=n,o.fb=i,o._gridOptions={},o._condition={},o._tempCopyInfo={},o._gridOptions={},o._gridOptions.localeText=Me.localeText,o._gridOptions.icons=Me.icons,o._modalOption={fcAppid:"",fcTitle:"",fcType:"",fcCondition:"{}"},o.fcSearchConfig={fcValidate:void 0,fcFields:void 0},o.pageNum="1",o.pageSize=20,o.pushDestroy(t.CommonService.subscribe(o.fcUuid+m.fclistdata.fclistdataShowFields,(function(e){e.param&&(o.fcOption.fcShowFields=e.param,o.fcOption.fcFields=we(o,o.fcBustype,o.fcAppid,o.fcOption))}))),o}return h(o,e),o.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},o.prototype.ngOnInit=function(){void 0!==this.externalFilter&&(this._gridOptions.doesExternalFilterPass=this.externalFilter,this._gridOptions.isExternalFilterPresent=function(){return!0})},Object.defineProperty(o.prototype,"options",{set:function(e){this._options=e,this.fcOption=e.options,this.fcRowData=e.rowData,this.fcAppid=e.appId,this.fcCondition=e.condition,this.fcViewActionStrategy=e.viewActionStrategy,this.ngOnChanges({})},enumerable:!0,configurable:!0}),o.prototype._afterParentInit=function(e){var n=this;!e.fcQuickFilter||e.fcQuickFilter.currentValue===e.fcQuickFilter.previousValue||e.fcQuickFilter.firstChange?((void 0===e.fcOption||e.fcOption&&e.fcOption.firstChange)&&void 0===this.fcOption&&(this.fcOption=Object.assign([],Ee)),e.fcAppid&&e.fcAppid.currentValue!==e.fcAppid.previousValue&&(this.fcApp=this.appService.apps[e.fcAppid.currentValue],void 0===this.fcOption.fcPaginationPageSize&&(this.fcApp?this.fcOption.fcPaginationPageSize=this.fcApp.PSIZE:this.fcOption.fcPaginationPageSize=50),this.fcOption.fcFields=void 0,this.fcOption.fcFields=we(this,this.fcBustype,e.fcAppid.currentValue,this.fcOption)),this.fcOption.fcFields&&(this.fcOption.fcFields=we(this,this.fcBustype,null,this.fcOption)),void 0===this.fcOption.fcOrder&&void 0!==this.fcApp&&(this.fcOption.fcOrder=this.fcApp.SORTBY),this._selectIds=[],this._selectItems=[],this._selectIndex=1,this.fcSelectedValues&&(this._selectIds=this.fcSelectedValues.split(",")),this.fcSelectedFieldName||(this.fcSelectedFieldName="ID"),void 0!==this.fcPageSize&&null!==this.fcPageSize&&(this.pageSize=this.fcPageSize),void 0===this.fcOption.fcPaginationPageSize&&(this.fcOption.fcPaginationPageSize=20),this.fcOption.fcPagination&&(this.pageSize=Number(this.fcOption.fcPaginationPageSize)),void 0===this.fcOption.fcRowHeight&&(this.fcOption.fcRowHeight=23),void 0===this.fcCondition||0===this.fcCondition.length?this._condition={}:"string"==typeof this.fcCondition?this._condition=JSON.parse(this.fcCondition):this._condition=this.fcCondition,this.fcOption.fcPagination?(this.pageNum!==this._condition.PAGENUM&&(this.pageNum="1"),this.fcReflesh()):this.fcReflesh()):setTimeout((function(){n._gridApi.setQuickFilter(n.fcQuickFilter)}),10)},o.prototype._getFormControl=function(e){return this.fcSearchConfig.fcValidate.controls[e]},o.prototype.paginationEvent=function(e){switch(e.eventName){case"pageSizeChange":this.pageSize=e.param,this.fcOption.fcPagination&&this.fcReflesh(),this.event("pageSizeChange",this.pageSize);break;case"jumpPage":this.pageNum=e.param+"",this.fcOption.fcPagination&&this.fcReflesh(),this.event("jumpPage",this.pageNum)}},o.prototype.fcReflesh=function(){var e=this;if(this.fcAppid&&""!==this.fcAppid){var n=this.appService.getDicByAppid(this.fcAppid);this.fcOption.fcPagination&&(void 0===this.fcPageSize&&void 0!==this.fcApp&&null!==this.fcApp&&(this.fcPageSize=this.fcApp.PSIZE),this._condition=Object.assign(this._condition,{PAGENUM:this.pageNum,PAGESIZE:this.pageSize})),this.fcSearchConfig&&this.fcSearchConfig.fcValidate&&this.fcSearchConfig.fcValidate.value&&(this._condition=Object.assign(this._condition,this.fcSearchConfig.fcValidate.value)),this._condition.AID=this.fcAppid,void 0===this.fcAutoSearch||"Y"===this.fcAutoSearch?this.pushDestroy(this.daoService.getFromApi(this.fcUrl,Object.assign({},this.fcRequestParam,this._condition)).subscribe((function(t){"0"===t.CODE||t.DATA&&0!==t.DATA.length?(e.fcTotalSize=t.TOTALSIZE,e.processData(n,t.DATA,t.TOTALSIZE)):(e.fcRowData=[],e.data=[],e.pageTotal=0)}))):this.processData(n,this.fcRowData,this.fcTotalSize)}else this.fcAutoSearch||"Y"===this.fcAutoSearch?this.pushDestroy(this.daoService.getFromApi(this.fcUrl,Object.assign({},this.fcRequestParam,this._condition)).subscribe((function(n){"0"===n.CODE||n.DATA&&0!==n.DATA.length?(e.fcTotalSize=n.TOTALSIZE,e.processData(null,n.DATA,n.TOTALSIZE)):(e.fcRowData=[],e.data=[],e.pageTotal=0)}))):this.processData(null,this.fcRowData,this.fcTotalSize)},o.prototype.processData=function(e,n,t){var i=this;n.forEach((function(n,t){n.ROWNUM=t+1,!0===i.fcOption.fcPagination&&(n.ROWNUM=Number(i.pageNum)*i.pageSize-i.pageSize+t+1),n.DOACTION={providers:i.provider,appId:i.fcAppid,parentComponent:i},e&&e.forEach((function(e){var t=i.appService.getDicdescByFieldCode(e,n[e.FIELDCODE]);t&&Object.assign(n,t)}))})),this.data=n,this.event(m.fclistdata.fclistdataDataLoaded,n),this._gridApi&&this._selectIds.length>0&&Le(this._gridApi,this._selectIds,this.fcSelectedFieldName),this.pageTotal=t},o.prototype.deleteRowDataById=function(e){var n=this;0!==e.length&&e.forEach((function(e){n.fcRowData=n.fcRowData.filter((function(n){return n.ID!==e})),n.data=n.data.filter((function(n){return n.ID!==e}))}))},o.prototype.doSelected=function(e,n,t){var i=setInterval((function(){var n=!1;e.forEachNode((function(e){n||(n=!0)})),n&&clearInterval(i)}),500)},o.prototype.firstDataRendered=function(e,n){var t=this;setTimeout((function(){n.api.sizeColumnsToFit(),t.event(e,n)}),1)},o.prototype._gridReady=function(e){this._gridApi=e.api,this._gridColumnApi=e.columnApi,this.event("gridReady",e),this.doSelected(this._gridApi,this._selectIds,this.fcSelectedFieldName)},o.prototype._doAction=function(e){var n=e.data,t={};Object.keys(n).forEach((function(e){"DOACTION"!==e&&(t[e]=n[e])})),this.event(e.ACTION,t)},o.prototype._selected=function(e){var n=this,t=this._gridApi.getSelectedRows(),i=[];this._selectIds=[],this.fcSelectedValues="",t.forEach((function(e){n._selectIds.push(e[n.fcSelectedFieldName]),n.fcSelectedValues+=e[n.fcSelectedFieldName]+",",i.push(Object.assign({},e,{DOACTION:""}))})),this.event("selected",i)},o.prototype._rowClick=function(e){var n=this._gridApi.getSelectedRows(),t=[];n.forEach((function(e){var n={};Object.keys(e).forEach((function(t){"DOACTION"!==t&&(n[t]=e[t])})),t.push(n)})),this.event("rowClick",t)},o.prototype._cellClick=function(e){var n=this._gridApi.getSelectedRows(),t=[];n.forEach((function(e){var n={};Object.keys(e).forEach((function(t){"DOACTION"!==t&&(n[t]=e[t])})),t.push(n)}));var i={FIELDCODE:e.colDef.field,FIELDNAME:e.colDef.headerName};if(this.fcApp){var o=this.fcApp.SYSAPPFIELDS.filter((function(n){return n.FIELDCODE===e.colDef.field||n.FIELDCODE+"_DICDESC"===e.colDef.field}));o&&0!==o.length&&(i=o[0])}var a={field:i,data:t[0]};this.event("cellClick",a)},o.prototype._rowDoubleClicked=function(e){var n=Object.assign({},e.data,{DOACTION:""});delete n.DOACTION,this.event("rowDoubleClick",n)},o.prototype.getPrevObj=function(){var e=this;if(1!==this._selectIndex)return this._selectIndex=this._selectIndex-1,this._selectIds=[],this._selectItems=[],this.fcRowData.filter((function(n){return n.ROWNUM===e._selectIndex})).forEach((function(n){e._selectIds.push(n.ID),e._selectItems.push(n)})),this._selectItems[0]},o.prototype.getNextObj=function(){var e=this;if(this._selectIndex!==this.fcRowData.length+1)return this._selectIds=[],this._selectItems=[],this._selectIndex=this._selectIndex+1,this.fcRowData.filter((function(n){return n.ROWNUM===e._selectIndex})).forEach((function(n){e._selectIds.push(n.ID),e._selectItems.push(n)})),this._selectItems[0]},o.prototype._cellStopEdit=function(e){var n=this;e.data.oldValue=e.oldValue,e.data.newValue=e.newValue;var t=e.data,i=e.colDef.field;if(-1!==i.indexOf("_DICDESC")){var o=i.substr(0,i.length-8),a=this.appService.getDicByAppFieldcode(this.fcApp,o).filter((function(n){return n.DICDESC===e.newValue}));if(t[o]=a[0].DICVALUE,this.fcOption.fcAutoSave){var c=Object.assign({},t,{DOACTION:""});this.pushDestroy(this.appService.updateObject(this.fcAppid,c).subscribe((function(e){"0"===e.CODE&&n.msgService.success("修改成功")})))}}this.event("modify",t)},o.prototype.setSelected=function(e){Le(this._gridApi,e,this.fcSelectedFieldName)},o.decorators=[{type:n.Component,args:[{selector:"fc-listdata",template:'\n    <div class="fc-listdata">\n        <div class="fc-flex">\n            <div *ngIf="_options!==undefined" class="fc-listdata-content">\n                <ag-grid-angular  [localeText]="_gridOptions.localeText"\n                            style="width: 100%; height: 100%;"\n                            [pagination]="false"\n                            [quickFilter]="fcQuickFilter"\n                            [paginationPageSize]="fcOption.fcPaginationPageSize"\n                            [rowData]="data"\n                            [autoSizePadding]="true"\n                            [rowClassRules]="fcRowClassRules"\n                            [class]="fcOption.fcClass"\n                            [columnDefs]="fcOption.fcFields"\n                            [rowGroupPanelShow]="fcOption.fcRowGroupPanelShow"\n                            [enableFilter]="fcOption.fcEnableFilter"\n                            [context]="fcContext"\n                            enableValue="true"\n                            enableRowGroup="true"\n                            singleClickEdit="true"\n                            [rowHeight]="fcOption.fcRowHeight"\n                            (cellValueChanged)="_cellStopEdit($event);"\n                            [checkboxSelection]="fcOption.fcCheckboxSelection"\n                            [rowSelection]="fcOption.fcRowSelection"\n                            [enableColResize]="fcOption.fcEnableColResize"\n                            [animateRows]="true"\n                            (firstDataRendered)="firstDataRendered(\'firstDataRendered\',$event)"\n                            [treeData]="fcOption.fcTreeData||false"\n                            [getDataPath]="fcOption.fcGetDataPath"\n                            [groupDefaultExpanded]="fcOption.fcGroupDefaultExpanded"\n                            [autoGroupColumnDef]="fcOption.fcAutoGroupColumnDef"\n                            (selectionChanged)="_selected($event)"\n                            (rowClicked)="_rowClick($event);"\n                            (cellClicked)="_cellClick($event);"\n                            (rowDoubleClicked)="_rowDoubleClicked($event);"\n                            [rowMultiSelectWithClick]="true"\n                            [enableSorting]="fcOption.fcEnableSorting"\n                            (gridReady)="_gridReady($event)">\n                </ag-grid-angular>\n            </div>\n            <div *ngIf="_options===undefined" class="fc-listdata-content">\n                <ag-grid-angular [localeText]="_gridOptions.localeText"\n                            style="width: 100%; height: 100%;"\n                            [pagination]="false"\n                            [quickFilter]="fcQuickFilter"\n                            [paginationPageSize]="fcOption.fcPaginationPageSize"\n                            [rowData]="data"\n                            [rowClassRules]="fcRowClassRules"\n                            [autoSizePadding]="true"\n                            [class]="fcOption.fcClass"\n                            (firstDataRendered)="firstDataRendered(\'firstDataRendered\',$event)"\n                            [columnDefs]="fcOption.fcFields"\n                            [rowGroupPanelShow]="fcOption.fcRowGroupPanelShow"\n                            [enableFilter]="fcOption.fcEnableFilter"\n                            enableValue="true"\n                            [context]="fcContext"\n                            enableRowGroup="true"\n                            singleClickEdit="true"\n                            [rowHeight]="fcOption.fcRowHeight"\n                            (cellValueChanged)="_cellStopEdit($event);"\n                            [checkboxSelection]="fcOption.fcCheckboxSelection"\n                            [rowSelection]="fcOption.fcRowSelection"\n                            [enableColResize]="fcOption.fcEnableColResize"\n                            [animateRows]="true"\n                            [treeData]="fcOption.fcTreeData||false"\n                            [groupDefaultExpanded]="fcOption.fcGroupDefaultExpanded"\n                            [autoGroupColumnDef]="fcOption.fcAutoGroupColumnDef"\n                            [getDataPath]="fcOption.fcGetDataPath"\n                            (selectionChanged)="_selected($event)"\n                            (rowClicked)="_rowClick($event);"\n                            [rowMultiSelectWithClick]="true"\n                            (cellClicked)="_cellClick($event);"\n                            (rowDoubleClicked)="_rowDoubleClicked($event);"\n                            [enableSorting]="fcOption.fcEnableSorting"\n                            (gridReady)="_gridReady($event)">\n                </ag-grid-angular>\n            </div>\n            <fc-pagination *ngIf="fcOption.fcPagination" [fcTotal]="pageTotal"\n            [fcPageIndex]="pageNum"\n            [fcPageSize]="pageSize" fcShowQuickJumper=\'Y\'\n            [fcSize]="fcSize" [fcSample]="fcOption.fcSample" [fcShowSizeChanger]="\'Y\'"\n             [fcPageSizeSelectorValues]="fcPageSizeSelectorValues"\n             (fcEvent)="paginationEvent($event)"></fc-pagination>\n        </div>\n    </div>\n    ',styles:["\n        .fc-listdata{\n        width: 100%;\n        height:100%;\n        }\n        .hidden{\n            display:none;\n        }\n        .show{\n            display:block;\n        }\n        .fc-flex{\n            width: 100%;\n            height:100%;\n            display: -moz-box;\n            display:-webkit-flex;\n            display: -ms-flexbox;\n            -moz-box-orient: vertical;\n            -webkit-flex-direction:column;\n            -ms-flex-direction:column;\n        }\n        .fc-search {\n            display:block;\n        }\n        .fc-listdata-content {\n            -moz-box-flex: 1;\n            -webkit-flex:1;\n            -ms-flex:1;\n            height:85%;\n            margin-bottom:5px;\n        }\n        :host ::ng-deep .fc-listdata .fc-layoutgroup .fc-content{\n            margin-bottom:20px;\n        }\n        :host ::ng-deep .ag-blue .ag-paging-row-summary-panel {\n            width:auto;\n        }\n        :host ::ng-deep .ag-blue .ag-paging-button {\n            padding-left: 10px;\n            padding-right: 10px;\n            border-radius: 2px;\n            cursor: pointer;\n            background: #108EE9;\n            border: 1px solid #108EE9;\n            color: #ffffff;\n            transition: all .3s cubic-bezier(.645,.045,.355,1)\n        }\n        :host ::ng-deep .ag-blue .ag-paging-button:hover{\n            background-color: #49a9ee;\n            border-color: #49a9ee;\n        }\n        :host ::ng-deep .ag-blue ag-paging-page-summary-panel {\n            white-space: nowrap;\n        }\n        :host ::ng-deep .ag-blue .ag-row-odd {\n            background: #F8F8F8;\n        }\n        :host ::ng-deep .ag-blue .ag-row-selected {\n            background:rgba(0,0,0,.1);\n        }\n        :host ::ng-deep .ag-blue .ag-row-hover {\n            background:rgba(0,0,0,.05);\n        }\n        :host ::ng-deep .ag-blue .ag-ltr .ag-cell-no-focus {\n            border-right: 1px solid #eeee;\n        }\n        :host ::ng-deep .ag-blue .ag-cell-no-focus {\n            border-bottom: 1px solid #eeee;\n        }\n        :host ::ng-deep .ag-blue .ag-cell-no-focus:hover {\n            background: rgba(0,0,0,.05);\n        }\n        :host ::ng-deep .ag-blue .ag-cell-focus {\n            border-color: #108EE9;\n        }\n        :host ::ng-deep .ag-blue .ag-header {\n            background: #2B88FF;\n            color:#333333;\n            border-bottom:1px solid #8B8C8D;\n            line-height:25px;\n            text-align:center\n        }\n        :host ::ng-deep .ag-blue .ag-paging-panel{\n            text-align:center;\n        }\n        :host ::ng-deep .ag-blue .ag-paging-panel{\n            padding: 4px 4px 0;\n        }\n        :host ::ng-deep .ag-blue .ag-cell{\n            text-align:left;\n        }\n        :host ::ng-deep .text-left{\n            text-align:left;\n        }\n        :host ::ng-deep .text-center{\n            text-align:center;\n        }\n        :host ::ng-deep .text-right{\n            text-align:right;\n        }\n        :host ::ng-deep .text-link span span{\n            text-decoration:none;\n            color:blue;\n            cursor: pointer;\n        }\n        :host ::ng-deep .ag-blue .ag-column-drop-horizontal {\n            padding: 2px;\n            border-top: 1px solid #7d7d7d;\n            border-left: 1px solid #7d7d7d;\n            border-right: 1px solid #7d7d7d;\n        }\n        :host ::ng-deep .ag-blue .ag-root{\n            border:none;\n            border:1px solid #7d7d7d;\n        }\n        :host ::ng-deep .ag-blue .ag-ltr .ag-header-cell{\n            border-right:1px solid #eeee;\n        }\n        :host ::ng-deep .ag-blue .ag-header-cell-label{\n            display:flex;\n            justify-content:center;\n        }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService},{type:i.FormBuilder}]},o.propDecorators={fcViewActionStrategy:[{type:n.Input}],externalFilter:[{type:n.Input}],fcRowData:[{type:n.Input}],fcOption:[{type:n.Input}],fclistmodal:[{type:n.ViewChild,args:["FclistmodalComponent",{static:!1}]}],fcSearchConfig:[{type:n.Input}],fcContext:[{type:n.Input}],fcRowClassRules:[{type:n.Input}],fcTotalSize:[{type:n.Input}],fcPageSize:[{type:n.Input}],fcPageSizeSelectorValues:[{type:n.Input}],fcSelectedValues:[{type:n.Input}],fcSelectedFieldName:[{type:n.Input}],fcFieldsRender:[{type:n.Input}],fcQuickFilter:[{type:n.Input}],fcAutoSearch:[{type:n.Input}],fcBustype:[{type:n.Input}],options:[{type:n.Input}]},o}(S);var rn=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce,Se,Ze,f.AgGridModule.withComponents([_e])],exports:[ln,sn],declarations:[ln,sn],entryComponents:[ln,sn],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}();function fn(e,n){var i=t.CommonService.getUrlBy("SYSTEM","SYSMENU","getMenuByToken");return t.ParentBusiness.daoService.getFromApi(i,{P_PID:e,P_MENUID:"",SCOMPANY_CODE:n})}function pn(e,n,t){e&&e.forEach((function(e){n&&-1!==n.indexOf(e.MENUID)&&(e.HIDDEN=t),e.P_CHILDMENUS&&e.P_CHILDMENUS.length>0&&pn(e.P_CHILDMENUS,n,t)}))}var dn=function(e){function i(n){var i=e.call(this,n,"fc-navbar")||this;return i.provider=n,i.events=m.fcnavbar,i.fcFixed=!1,i.fcZindex=100,i.fcFull=!1,i.fcLogo="fc-icon-bglist",i.parentMenus=[],i.simpleMenus=[],i.menuName="",i.moreMenus=[],i.fcUser="user",i.themesOption={title:"主题",label:["default","blue","dark"]},i.fcStatus="closed",void 0===i.fcOption&&(i.fcOption={fcMenus:[],fcToolbar:[]}),i.userInfo=i.provider.userService.getUserInfo(),void 0===i.fcLogo&&(i.fcLogo="fc-icon-bglist"),void 0===i.fcSwitchLayout&&(i.fcSwitchLayout="N"),void 0===i.fcSwitchTheme&&(i.fcSwitchTheme="N"),void 0===i.fcSwitchCompany&&(i.fcSwitchCompany="Y"),i.pushDestroy(t.CommonService.subscribe(i.events.fcnavbarLoadingMenu,(function(e){i.pushDestroy(fn(t.FCCONFIG.pid,e.param.SCOMPANY_CODE).subscribe((function(e){if("0"===e.CODE&&e.DATA&&e.DATA.length>0){i.menus=e.DATA,t.SystemBusiness.menus=i.menus;var n=t.CacheService.get("SELECTEDGRANDPARENTMENU"),o=void 0;if(n)(a=i.menus.filter((function(e){return e.ID===n.ID}))).length>0&&(o=a[0]);if(void 0===o&&(o=i.menus[0]),i.menus&&i.menus.length>0){o&&o.P_CHILDMENUS.length>6?(i.simpleMenus=o.P_CHILDMENUS.slice(0,5),i.moreMenus=o.P_CHILDMENUS.slice(5)):i.simpleMenus=o.P_CHILDMENUS,void 0===o&&(o=i.menus[0]),i.selectedMenuName=o.MENUNAME;var a,c=t.CacheService.get("SELECTEDPARENTMENU"),s=void 0;if(c)(a=o.P_CHILDMENUS.filter((function(e){return e.ID===c.ID}))).length>0&&(s=a[0]);void 0===s&&(s=o.P_CHILDMENUS[0]),i._event("selectMenu",s)}}else i.menus=[],i.selectedMenuName="",t.SystemBusiness.menus=[],i.simpleMenus=[],i.moreMenus=[];t.CommonService.event(i.events.fcnavbarEndLoadMenu,i.menus)})))}))),i.pushDestroy(t.CommonService.subscribe(m.fcnavbar.fcnavbarInvisible,(function(e){var n,t;pn(i.menus,e.param,!0),i.menus=Object.assign([],i.menus);var o=!1;try{for(var a=v(i.menus),c=a.next();!c.done;c=a.next()){var s=c.value;if(o){i.selectedMenuName=s.MENUNAME,i.simpleMenus=s.P_CHILDMENUS,i._event("selectMenu",s);break}if(s.MENUNAME===i.selectedMenuName&&-1!==e.param.indexOf(s.MENUID)){if(void 0!==s.HIDDEN&&!0===s.HIDDEN){o=!0,i.simpleMenus=[];continue}break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}}))),i.pushDestroy(t.CommonService.subscribe(m.fcnavbar.fcnavbarVisible,(function(e){pn(i.menus,e.param,!1),i.menus=Object.assign([],i.menus)}))),i}return h(i,e),i.prototype.ngOnInit=function(){t.CommonService.event(this.events.fcnavbarLoadingMenu,{SCOMPANY_CODE:this.userInfo.SYSLOGINHIS[0].SCOMPANY_CODE})},i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n),void 0===this.fcTheme&&(this.fcTheme="dark"),this.fcLayout&&"MENU"===this.fcLayout?this.layout=!0:this.layout=!1,void 0!==this.fcStatus&&""!==this.fcStatus||(this.fcStatus="closed"),this.shortName&&(this.shortName.length>14?this.shortNames=this.shortName.substr(0,14)+"...":this.shortNames=this.shortName)},i.prototype._event=function(n,i){switch(n){case"goHome":t.SystemBusiness.navigate(["/home"]);break;case"selectCompany":e.prototype.event.call(this,n,t.CacheService.getS("LASTLOGINCOMPANY"));break;case this.events.fcnavbarMessageToggle:"closed"===this.fcStatus?this.fcStatus="opened":"opened"===this.fcStatus&&(this.fcStatus="closed"),e.prototype.event.call(this,this.events.fcnavbarMessageToggle,this.fcStatus);break;case"selectParentMenudown":this.selectedMenuName=i.MENUNAME,this.moreMenus=[],i&&i.P_CHILDMENUS.length>6?(this.simpleMenus=i.P_CHILDMENUS.slice(0,5),this.moreMenus=i.P_CHILDMENUS.slice(5)):this.simpleMenus=i.P_CHILDMENUS,t.CacheService.set("SELECTEDGRANDPARENTMENU",i);break;case"selectMenu":case"selectDropdown":this.menuName="-"+i.MENUNAME,t.CacheService.set("SELECTEDPARENTMENU",i),e.prototype.event.call(this,n,i);break;default:e.prototype.event.call(this,n,i)}},i.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),clearInterval(this.interval)},i.decorators=[{type:n.Component,args:[{selector:"fc-navbar",template:'\n    <header class="fc-navbar"\n    [ngClass]="{\'fc-navbar-fixed\':fcFixed,\'fc-full\':fcFull,\'fc-navbar-small\':fcSize===\'small\',\'fc-navbar-default\':fcSize===\'default\',\'fc-navbar-large\':fcSize===\'large\'}"\n    [style.zIndex]="fcZindex" [style.backgroundColor]="fcColor">\n    <div class="logo">\n        <fc-icon class="logo-icon" fcSize="default"  (click)="_event(fcevent.fcnavbarHideOrShowMenu,$event)" title="切换菜单" [fcIcon]="fcLogo"></fc-icon>\n        <img class="logo-img"  (click)="_event(\'goHome\',$event)" title="回到首页" [src]="fcLogoSrc" width="30" height="30" *ngIf="fcLogoSrc!==undefined"/>\n        <span class="title">{{fcTitle}}<small>{{menuName}}</small></span>\n    </div>\n    <div class="fc-navbar-content">\n        <ul class="fc-navbar-menu">\n            <ng-container *ngFor="let item of simpleMenus">\n                <li class="fc-navbar-menu-item" *ngIf="item.HIDDEN==undefined || item.HIDDEN === false" (click)="_event(\'selectMenu\',item)" >\n                    <fc-icon fcSize="small" class="fcnavbar-item-icon" *ngIf="undefined!==item.MENUICON&&\'\'!==item.MENUICON&&null!==item.MENUICON" [fcIcon]="item.MENUICON"></fc-icon>\n                    {{ item.MENUNAME }}\n                </li>\n            </ng-container>\n            <li class="fc-navbar-menu-item ng-star-inserted" >\n                <ng-container *ngIf="moreMenus.length>0">\n                    <a class="ant-dropdown-link"  nz-dropdown style="color:hsla(0,0%,100%,.67);" [nzDropdownMenu]="moremenu">\n                            <fc-icon fcSize="small" style="margin-right:-2px;font-size:18px"\n                            *ngIf="undefined!==moreMenus[0].MENUICON&&\'\'!==moreMenus[0].MENUICON&&null!==moreMenus[0].MENUICON"\n                            [fcIcon]="moreMenus[0].MENUICON"></fc-icon>\n                            {{moreMenus[0].MENUNAME}}\n                            <i nz-icon type="down"></i>\n                    </a>\n                    <nz-dropdown-menu #moremenu="nzDropdownMenu" [nzTrigger]="\'click\'" class="develop-navdrop-down">\n                        <ul nz-menu>\n                            <ng-container *ngFor="let item of moreMenus">\n                                <li nz-menu-item *ngIf="item.HIDDEN==undefined || item.HIDDEN === false" (click)="_event(\'selectDropdown\',item)">\n                                    <a rel="noopener noreferrer" href="javascript:;">\n                                        <fc-icon fcSize="small" *ngIf="undefined!==item.MENUICON&&\'\'!==item.MENUICON&&null!==item.MENUICON" [fcIcon]="item.MENUICON"></fc-icon>\n                                        {{item.MENUNAME}}\n                                    </a>\n                                </li>\n                            </ng-container>\n                        </ul>\n                    </nz-dropdown-menu>\n                </ng-container>\n            </li>\n        </ul>\n        <div class="fc-navbar-icon" style="margin-left:0px;">\n            <ng-container *ngIf="menus&&menus.length!==0" >\n                <a class="ant-dropdown-link" nz-dropdown style="color:hsla(0,0%,100%,.67);"\n                [nzDropdownMenu]="menusD">\n                            {{selectedMenuName}}\n                            <i nz-icon nzType="down"></i>\n                </a>\n                <nz-dropdown-menu #menusD="nzDropdownMenu" [hidden]="menus.length==1">\n                    <ul nz-menu nzSelectable>\n                        <ng-container *ngFor="let menu of menus">\n                        <li nz-menu-item *ngIf="((menu.HIDDEN!==undefined&&menu.HIDDEN === false)||menu.HIDDEN==undefined)" (click)="_event(\'selectParentMenudown\',menu)">\n                            <a rel="noopener noreferrer" href="javascript:;">\n                                <fc-icon fcSize="small" class="fcnavbar-item-icon" style="margin-right:-4px;font-size:18px"\n                                *ngIf="menu.MENUICON&&\'\'!==menu.MENUICON"\n                                [fcIcon]="menu.MENUICON"></fc-icon>\n                                {{menu.MENUNAME}}\n                            </a>\n                        </li>\n                        </ng-container>\n                    </ul>\n                </nz-dropdown-menu>\n            </ng-container>\n            <ng-container *ngIf="fcOption.fcMenus!==undefined&&fcOption.fcMenus.length!==0" >\n                <a class="ant-dropdown-link" nz-dropdown style="color:hsla(0,0%,100%,.67);">\n                    更多...\n                    <fc-icon [fcIcon]="\'fc-icon-fall\'"></fc-icon>\n                </a>\n                <nz-dropdown-menu nzTrigger="click">\n                    <ul nz-menu>\n                        <li nz-menu-item *ngFor="let menu of fcOption.fcMenus" (click)="_event(\'selectDropdown\',menu)">\n                            <a>{{menu.label}}</a>\n                        </li>\n                    </ul>\n                </nz-dropdown-menu>\n            </ng-container>\n            <div [hidden]="true" class="fc-navbar-switch-layout" *ngIf="fcSwitchLayout===\'Y\'">\n                <fc-switch [(ngModel)]="layout" (ngModelChange)="_event(events.fcnavbarChangeLayout,$event?\'MENU\':\'TAB\')"  fcShowLabel="N" [fcCheckValue]="fcLayout" fcCheckedChildren="MENU"  fcUnCheckedChildren="TAB" fcOption=\'[{"label":"TAB","value":"TAB"},{"label":"MENU","value":"MENU"}]\'>\n                </fc-switch>\n            </div>\n            <nz-dropdown-menu nzTrigger="click" *ngIf="fcSwitchTheme===\'Y\'" [ngClass]="{\'fc-navdropdown-small\':fcSize === \'small\',\'fc-navdropdown-default\':fcSize === \'default\',\'fc-navdropdown-large\':fcSize === \'large\'}">\n                <a class="ant-dropdown-link" nz-dropdown>\n                    <span class="fcdropdowntitle">{{themesOption.title}}</span><i nz-icon type="down"></i>\n                </a>\n                <ul nz-menu>\n                    <li (click)="_event(\'changeThemes\',item)" *ngFor="let item of themesOption?.label" nz-menu-item>\n                        <a>{{item}}</a>\n                    </li>\n                </ul>\n            </nz-dropdown-menu>\n            <fc-icon fcSize="default" [fcIcon]="\'fc-icon-information\'" ngClass=" toolbar-control toolbar-control-message" [fcColor]="\'#ffffff\'" class="informationicon" (click)="_event(events.fcnavbarMessageToggle,$event)"></fc-icon>\n            <fc-tooltip *ngFor="let item of fcOption.fcToolbar" fcTitle="{{item.label}}" fcPosition="bottomRight" (click)="_event(\'selectToolbar\',item)">\n                <i *ngIf="item.href===undefined||item.href===\'\'" class="{{item.icon}}" fccontent></i>\n                <a *ngIf="item.href!==undefined&&item.href!==\'\'" href="{{item.href}}" fccontent>\n                    <i class="{{item.icon}}"></i>\n                </a>\n            </fc-tooltip>\n            <fc-avatar  fcToolTip="个人信息" [fcIcon]="fcUser" class="imghead" (click)="_event(\'editUser\',$event);" fccontent></fc-avatar>\n            <span class="name" *ngIf="userInfo!==undefined&&userInfo!==null">{{userInfo?.NAME}}</span>\n            <span class="line" *ngIf="fcSwitchCompany===\'Y\'"></span>\n            <nz-dropdown-menu style="margin-right:10px;" nzTrigger="click" *ngIf="fcSwitchTheme===\'Y\'" [ngClass]="{\'fc-navdropdown-small\':fcSize === \'small\',\'fc-navdropdown-default\':fcSize === \'default\',\'fc-navdropdown-large\':fcSize === \'large\'}">\n                <a class="ant-dropdown-link" nz-dropdown>\n                    <span class="fcdropdowntitle">{{themesOption.title}}</span><i nz-icon type="down"></i>\n                </a>\n                <ul nz-menu>\n                    <li (click)="_event(\'changeThemes\',item)" *ngFor="let item of themesOption?.label" nz-menu-item>\n                        <a>{{item}}</a>\n                    </li>\n                </ul>\n            </nz-dropdown-menu>\n            <span title="点击切换" style="cursor:pointer;" *ngIf="fcSwitchCompany===\'Y\'">\n                <span class="analyze" [title]="shortName" *ngIf="shortName!==undefined&&shortName!==null" (click)="_event(fcevent.fcnavbarSelectCompany,$event)">{{shortNames}}</span>\n                <span class="analyze-date" *ngIf="loginDate!==undefined&&loginDate!==null" (click)="_event(fcevent.fcnavbarSelectDate,$event)">{{loginDate|date:\'yyyy-MM-dd\'}}</span>\n            </span>\n            <span class="fc-navbar-exit" (click)="_event(events.fcnavbarLogout,$event)">\n                <fc-icon [fcColor]="\'#fff\'" [fcIcon]="\'fc-icon-logout\'" fcSize="large" class=" toolbar-control navbar-icon-size exitbutton exitbuttonout"></fc-icon>\n            </span>\n        </div>\n    </div>\n</header>\n    ',styles:["\n    .fc-navbar{\n        overflow:hidden;\n        white-space:nowrap;\n        display: flex;\n        justify-content: space-between;\n        box-shadow: 0 1px 8px rgba(0,0,0,.3);\n    }\n    .fc-navbar-fixed{\n        position: fixed;\n        width: 100%;\n        left: 0;\n    }\n    .fc-full{\n        width: 100%;\n        height: 100%;\n    }\n    .logo {\n        color:#fff;\n        font-size:20px;\n        padding-left:12px;\n        height: 100%;\n        display:flex;\n        align-items:center;\n        cursor:pointer;\n    }\n    .logo-icon {\n        margin-right:6px;\n        color:#ffffff;\n    }\n    .logo-img {\n        margin-right:10px;\n        color:#ffffff;\n        height: 14px;\n    }\n    .fc-navbar-content {\n        padding-right:8px;\n    }\n    .fc-navbar-content:after{\n        content:'';\n        display:block;\n        clear:both;\n    }\n    .fc-navbar .fc-navbar-menu {\n        float:left;\n        border-bottom:0;\n        height:100%;\n        line-height: 50px;\n    }\n    .fc-navbar .fc-navbar-menu:after{\n        content:'';\n        display:block;\n        clear:both;\n    }\n    .fc-navbar-menu .fc-navbar-menu-item{\n        height:100%;\n        padding-left:10px;\n        padding-right:10px;\n        color:hsla(0,0%,100%,.67);\n        box-sizing:border-box;\n        display: flex;\n        align-items: center;\n        cursor:pointer;\n        float:left;\n        font-size:16px;\n    }\n    .fc-navbar-menu .fc-navbar-menu-item:hover,.fc-navbar-menu .fc-navbar-menu-item-selected{\n        color:#ffffff;\n    }\n    .fc-navbar .fc-navbar-menu-item i{\n        margin-right:10px;\n    }\n    .fc-navbar .fc-navbar-icon{\n        height: 100%;\n        display:flex;\n        align-items:center;\n        float:left;\n    }\n    .clearfix:after{\n        content:'';\n        display:block;\n        clear：both\n    }\n    .navbar-icon-size{\n        font-size:20px;\n    }\n    .toolbar-control {\n        font-size:16px;\n        color:#000;\n        margin-left:13px;\n    }\n    :host ::ng-deep .toolbar-control .iconfont{\n        cursor:pointer;\n    }\n    .toolbar-control:hover{\n        color:#ffffff;\n    }\n    .settings {\n        width:150px;\n    }\n    :host ::ng-deep .ant-popover .ant-popover-inner-content {\n        padding:0;\n    }\n    .fc-navbar-exit{\n        height:46px;\n        line-height:46px;\n        border-left: 1px solid #187FEE;\n    }\n    .fc-navbar-exit:after{\n        content:'';\n        display:block;\n        clear:both;\n    }\n    .exittext{\n        margin-left:3px;\n        font-size:16px;\n        color:#ffffff;\n        float:right;\n        cursor:pointer;\n    }\n    .exitbutton{\n        float:left;\n        margin-left: 8px;\n        margin-top: 4px;\n    }\n    .exitall{\n        border-left:1px solid #1873e3;\n        height: 46px;\n        line-height: 46px;\n    }\n    .fallmaright{\n        margin-right:15px;\n        margin-left:10px;\n    }\n    .analyze{\n        font-size:16px;\n        color:#ffffff;\n        margin-right:5px;\n    }\n    .analyze-date{\n        border-left:1px solid #1873e3;\n        padding-left:5px;\n        font-size:12px;\n        color:#ffffff;\n        margin-right:13px;\n    }\n    .name{\n        margin-right:13px;\n        color:#ffffff;\n        font-size:16px;\n    }\n    .imghead{\n        width:30px;\n        height:30px;\n        margin-left:10px;\n        margin-right:4px;\n    }\n    :host ::ng-deep .imghead .ant-avatar-icon{\n        cursor:pointer;\n    }\n    ::ng-deep .imghead .ant-avatar{\n        width:100%;\n        height:100%;\n        line-height:27px;\n    }\n    .title{\n        font-size:20px;\n    }\n    .address{\n        margin-right:13px;\n        margin-left:13px;\n    }\n    .fc-navbar-switch-layout{\n        width: 50px;\n        margin-left: 10px;\n    }\n    .develop-navdrop-down{\n        height:100%;\n        margin-left:0px;\n        line-height:46px;\n    }\n    .develop-navdrop-down a{\n        font-size:16px;\n    }\n    .logo i{\n        font-size:14px;\n    }\n    ::ng-deep .address .fcdropdowntitle{\n        border-left:1px solid #ffffff;\n        padding-left:13px;\n    }\n    .line{\n        width:15px;\n        height:16px;\n        border-left:1px solid #ffffff;\n        display:inline-block;\n    }\n    :host ::ng-deep .exitbuttonout>i{\n        margin-top: 3px;\n        display: inline-block;\n    }\n    :host ::ng-deep .informationicon>i{\n        display: inline-block;\n        cursor:pointer;\n    }\n    :host ::ng-deep  .fc-icon-logout:before{\n        cursor:pointer;\n    }\n    .fcnavbar-item-icon{\n        margin-right:2px;\n    }\n    :host ::ng-deep .ant-dropdown-link.ant-dropdown-trigger .fcnavbar-item-icon.ng-star-inserted i{\n        font-size:20px;\n        margin-right:-3px;\n    }\n    .informationicon {\n        margin-top: 6px;\n        display: inline-block;\n    }\n    :host ::ng-deep .ant-dropdown-link{\n        color: #ffffff;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={shortName:[{type:n.Input}],loginDate:[{type:n.Input}],fcFixed:[{type:n.Input}],fcZindex:[{type:n.Input}],fcTitle:[{type:n.Input}],fcFull:[{type:n.Input}],fcColor:[{type:n.Input}],fcLogoSrc:[{type:n.Input}],fcLogo:[{type:n.Input}],fcOption:[{type:n.Input}],fcUser:[{type:n.Input}],fcSwitchLayout:[{type:n.Input}],fcSwitchCompany:[{type:n.Input}],fcLayout:[{type:n.Input}],fcSwitchTheme:[{type:n.Input}]},i}(y);var un=function(e){function o(n,t){var i=e.call(this,n,"fc-navmenu")||this;return i.provider=n,i.router=t,i.fcFull=!1,i.isCollapsed=!1,i.fcSelected=!1,i._toggleicon="fc-icon-left",i.fcStatus="opened",i._collapsed=!1,i}return h(o,e),o.prototype.ngOnChanges=function(n){var i=this;e.prototype.ngOnChanges.call(this,n),void 0===this.fcTheme&&(this.fcTheme="dark"),void 0===this.fcOption&&new Error("缺少fcOption属性"),void 0===this.fcOption.fcParentValue&&(this.fcOption.fcParentValue=""),void 0===this.fcMenus?(this.fcAppid=this.fcOption.fcAppid,this.pushDestroy(this.appService.findWithQuery(this.fcAppid,{ORDER:this.fcOption.fcOrderby||"",WHERE:this.fcOption.fcWhere}).subscribe((function(e){if("0"===e.CODE||0!==e.DATA.length){var n=t.CommonService.listtotree(e.DATA,i.fcOption.fcParentValue,i.fcOption.fcChildCode,i.fcOption.fcLabelCode,i.fcOption.fcParentCode);n.forEach((function(e){"Y"===e.HASCHILD?e.opened=!1:e.select=!1})),i.fcMenus=n}})))):this.fcMenus.forEach((function(e){"Y"===e.HASCHILD?e.opened=!1:e.select=!1}))},o.prototype._select=function(e){e.select=!0,this.event("select",e)},o.prototype._onToggle=function(e){this.fcStatus=this._collapsed?"opened":"closed",this._collapsed=!this._collapsed,this._toggleicon=this._collapsed?"fc-icon-right":"fc-icon-left",this.event("toggle",this.fcStatus)},o.prototype.ngOnDestroy=function(){this.fcMenus=[]},o.decorators=[{type:n.Component,args:[{selector:"fc-navmenu",template:'\n    <div class="fc-navmenu" [ngClass]="{\'fc-navmenu-small\':fcSize === \'small\',\'fc-navmenu-default\':fcSize === \'default\',\'fc-navmenu-large\':fcSize === \'large\'}">\n        <ul class="fc-navmenu-ul" nz-menu [nzMode]="_collapsed?\'vertical\':\'inline\'" [nzTheme]="fcTheme" [nzInlineCollapsed]="_collapsed">\n            <ng-container *ngFor="let menu of fcMenus">\n                <li nz-menu-item *ngIf="menu.HASCHILD===\'N\' && (menu.HIDDEN === undefined || menu.HIDDEN === false)" (click)="_select(menu)" (dbclick)="_select(menu)" [nzSelected]="menu.select" >\n                    <span title style="margin-left:-12px">\n                        <fc-icon [fcIcon]="menu.MENUICON"></fc-icon>\n                        <span class="text">{{menu.MENUNAME}}</span>\n                    </span>\n                </li>\n                <li nz-submenu *ngIf="menu.HASCHILD===\'Y\'&&menu.P_CHILDMENUS.length!==0  && (menu.HIDDEN === undefined || menu.HIDDEN === false)" [nzOpen]="menu.opened">\n                    <span title style="margin-left:-12px">\n                        <fc-icon [fcIcon]="menu.MENUICON" ></fc-icon>\n                        <span class="text">{{menu.MENUNAME}}</span>\n                    </span>\n                    <ul>\n                        <ng-container *ngFor="let childMenu of menu.P_CHILDMENUS">\n                            <li nz-menu-item *ngIf="childMenu.HASCHILD===\'N\'  && (childMenu.HIDDEN === undefined || childMenu.HIDDEN === false)" (click)="_select(childMenu)" (dbclick)="_select(menu)" [nzSelected]="childMenu.select">\n                                <fc-icon [fcIcon]="childMenu.MENUICON"></fc-icon>\n                                <span class="text">{{childMenu.MENUNAME}}</span>\n                            </li>\n                            <li nz-submenu *ngIf="childMenu.HASCHILD===\'Y\'&&childMenu.P_CHILDMENUS.length!==0  && (childMenu.HIDDEN === undefined || childMenu.HIDDEN === false)"  [nzOpen]="childMenu.opened">\n                                <span title>\n                                    <fc-icon [fcIcon]="childMenu.MENUICON"></fc-icon>\n                                    <span class="text">{{childMenu.MENUNAME}}</span>\n                                </span>\n                                <ul>\n                                    <ng-container *ngFor="let gMenu of childMenu.P_CHILDMENUS">\n                                        <li nz-menu-item *ngIf="gMenu.HASCHILD===\'N\' && (gMenu.HIDDEN === undefined || gMenu.HIDDEN === false)" (click)="_select(gMenu)" (dbclick)="_select(menu)"  [nzSelected]="gMenu.select" style="padding-left: 26px;">\n                                            <fc-icon [fcIcon]="gMenu.MENUICON"></fc-icon>\n                                            <span class="text">{{gMenu.MENUNAME}}</span>\n                                        </li>\n                                        <li nz-submenu *ngIf="gMenu.HASCHILD===\'Y\'&&gMenu.P_CHILDMENUS.length!==0 && (gMenu.HIDDEN === undefined || gMenu.HIDDEN === false)" [nzOpen]="gMenu.opened" style="padding-left: 26px;">\n                                            <span title>\n                                                <fc-icon [fcIcon]="gMenu.MENUICON"></fc-icon>\n                                                <span class="text">{{gMenu.MENUNAME}}</span>\n                                            </span>\n                                            <ul>\n                                                <ng-container *ngFor="let lchildMenu of gMenu.P_CHILDMENUS">\n                                                    <li nz-menu-item *ngIf="lchildMenu.HASCHILD===\'N\' && (lchildMenu.HIDDEN === undefined || lchildMenu.HIDDEN === false)" (click)="_select(lchildMenu)" (dbclick)="_select(menu)"  [nzSelected]="lchildMenu.select" style="padding-left: 36px;">\n                                                        <fc-icon [fcIcon]="lchildMenu.MENUICON"></fc-icon>\n                                                        <span class="text">{{lchildMenu.MENUNAME}}</span>\n                                                    </li>\n                                                    <li nz-submenu *ngIf="lchildMenu.HASCHILD===\'Y\' && (lchildMenu.HIDDEN === undefined || lchildMenu.HIDDEN === false)"  [nzOpen]="lchildMenu.opened" style="padding-left: 36px;">\n                                                        <span title>\n                                                            <fc-icon [fcIcon]="lchildMenu.MENUICON"></fc-icon>\n                                                            <span class="text">{{lchildMenu.MENUNAME}}</span>\n                                                        </span>\n                                                        <ul >\n                                                            <ng-container *ngFor="let ggMenu of lchildMenu.P_CHILDMENUS">\n                                                                <li nz-menu-item *ngIf="ggMenu.HASCHILD===\'Y\' && (ggMenu.HIDDEN === undefined || ggMenu.HIDDEN === false)" (click)="_select(ggMenu)" (dbclick)="_select(menu)"  [nzSelected]="ggMenu.select" style="padding-left: 46px;">\n                                                                    <fc-icon [fcIcon]="ggMenu.MENUICON"></fc-icon>\n                                                                    <span class="text">{{ggMenu.MENUNAME}}</span>\n                                                                </li>\n                                                            </ng-container>\n                                                        </ul>\n                                                    </li>\n                                                </ng-container>\n                                            </ul>\n                                        </li>\n                                    </ng-container>\n                                </ul>\n                            </li>\n                        </ng-container>\n                    </ul>\n                </li>\n            </ng-container>\n        </ul>\n        <div class="fcnavmenubottom">\n            <fc-icon [fcIcon]="_toggleicon" (click)="_onToggle($event)" [fcFontSize]="\'12px\'"></fc-icon>\n        </div>\n    <div>\n    ',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return o})),multi:!0}],styles:["\n    .fc-navmenu-fixed{\n        position:fixed;\n        left:0;\n        top:80px;\n        z-index:100;\n        height:100% - 80px;\n        overflow:auto;\n        box-shadow: 0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);\n    }\n    :host ::ng-deep .fc-navmenu {\n        width:100%;\n        height:100%;\n        position:relative;\n        background-color:#fff;\n        padding-top:5px;\n    }\n    .fc-navmenu-ul{\n        height: calc(100% - 24px);\n        overflow: auto;\n    }\n    :host ::ng-deep .logo {\n        height: 32px;\n        background: #333;\n        border-radius: 6px;\n        margin: 16px;\n    }\n    :host ::ng-deep .ant-layout-sider-collapsed .ant-menu-submenu-title:after {\n        display: none;\n    }\n    :host ::ng-deep .ant-menu-inline-collapsed .text{\n        display: none;\n    }\n    :host ::ng-deep .fc-navmenu-ul i{\n        margin-right: 5px;\n    }\n    :host ::ng-deep .ant-menu-inline-collapsed {\n        width: 100%;\n        text-align: center;\n        overflow:visible;\n    }\n    :host ::ng-deep .ant-layout-sider-collapsed .anticon {\n        font-size: 16px;\n        margin-left: 8px;\n    }\n    .fcnavmenubottom{\n        background-color: #f5f5f5;\n        height: 24px;\n        text-align: center;\n        line-height: 24px;\n        position: absolute;\n        bottom: 0px;\n        z-index: 999;\n        width: 100%;\n        left: 0;\n    }\n    :host ::ng-deep .fcnavmenubottom .icon{\n        background-color: #f5f5f5;\n        color:#333333;\n        cursor: pointer;\n    }\n    :host ::ng-deep .fcnavmenubottom:hover{\n        color:#1890FF;\n    }\n    :host ::ng-deep .ant-menu-submenu-inline > .ant-menu-submenu-title:after{\n        color:#666666;\n        right: 20px; \n    }\n    :host ::ng-deep .ant-menu-inline-collapsed > .ant-menu-item{\n        left: 0;\n        text-overflow: clip;\n        padding: 0 0px !important;\n    }\n    :host ::ng-deep .ant-menu-submenu-open>ul {\n        text-align: left;\n    }\n    "]}]}],o.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},o.propDecorators={fcId:[{type:n.Input}],fcMenus:[{type:n.Input}],fcOption:[{type:n.Input}],fcTheme:[{type:n.Input}],fcFull:[{type:n.Input}],fcSelected:[{type:n.Input}]},o}(S);var hn=function(e){function i(n,t){var i=e.call(this,n,"fc-navside")||this;return i.provider=n,i.elementRef=t,i.fcevent=m.fcnavside,i}return h(i,e),i.prototype._onOutsideClick=function(e){var n=e.target,t=n.classList,i=n.parentElement;if(i){var o=i.parentElement;o&&(t=o.classList)}this.elementRef.nativeElement.contains(e.target)||t.contains("toolbar-control-message")||this._event(this.fcevent.fcnavsideClick,null)},i.prototype.ngOnChanges=function(n){if(e.prototype.ngOnChanges.call(this,n),void 0===this.fcOption.fcLabelCode1)throw new Error("缺少fcLabelCode1参数")},i.prototype._event=function(n,i){switch(n){case this.fcevent.fcnavsideClick:if(null!==i){e.prototype.event.call(this,m.fcnavside.fcnavsideClick,i),this.fcOption.fcValues1=Object.assign([],this.fcOption.fcValues1.filter((function(e){return e.ID!==i.ID})));var o=Object.assign({ISREAD:"Y",WHERE:"{ID:{eq:'"+i.ID+"'}}"},i);this.pushDestroy(t.ParentBusiness.appService.updateObject("SYSMESSAGE",o).subscribe())}this.fcStatus="closed",e.prototype.event.call(this,m.fcnavside.fcnavsideToggle,this.fcStatus)}},i.decorators=[{type:n.Component,args:[{selector:"fc-navside",template:"\n    <div class=\"fc-navside\" \n    [ngClass]=\"{'fc-navside-opened':fcStatus==='opened','fc-navside-closed':fcStatus==='closed','fc-navside-small':fcSize==='small','fc-navside-default':fcSize==='default','fc-navside-large':fcSize==='large'}\">\n        <nz-tabset>\n            <nz-tab [nzTitle]=\"fcLabelCode1Template\">\n                <ng-template #fcLabelCode1Template>\n                    {{fcOption.fcLabelCode1}}\n                </ng-template>\n                <ul>\n                    <li class=\"tab-content\" *ngFor=\"let item of fcOption.fcValues1\" (click)=\"_event(fcevent.fcnavsideClick,item);\"\n                    [ngClass]=\"{'blue':item[fcOption.fcColorCode]==='normal','yellow':item[fcOption.fcColorCode]==='waring','red':item[fcOption.fcColorCode]==='danger','fc-isread':item[fcOption.fcReadCode]==='Y','fc-noread':item[fcOption.fcReadCode]==='N'}\">\n                        <i nz-icon iconfont=\"fc-icon-chat\"></i>\n                        <div class=\"main-content\">\n                            <h3 class=\"fc-title\">{{item[fcOption.fcTitleCode]}}</h3>\n                            <p class=\"fc-smark\">{{item[fcOption.fcSmarkCode]}}</p>\n                            <p class=\"fc-time\">{{item[fcOption.fcTimeCode]}}</p>\n                        </div>\n                    </li>\n                </ul>\n            </nz-tab>\n            <nz-tab [nzTitle]=\"fcLabelCode2Template\">\n                <ng-template #fcLabelCode2Template>\n                    {{fcOption.fcLabelCode2}}\n                </ng-template>\n                <ul>\n                    <li class=\"tab-content\" *ngFor=\"let item of fcOption.fcValues2\" (click)=\"_event(fcevent.fcnavsideClick,item);\"\n                    [ngClass]=\"{'blue':item[fcOption.fcColorCode]==='normal','yellow':item[fcOption.fcColorCode]==='waring','red':item[fcOption.fcColorCode]==='danger','fc-isread':item[fcOption.fcReadCode]==='Y','fc-noread':item[fcOption.fcReadCode]==='N'}\">\n                    <i nz-icon iconfont=\"fc-icon-chat\"></i>\n                        <div class=\"main-content\">\n                            <h3 class=\"fc-title\">{{item[fcOption.fcTitleCode]}}</h3>\n                            <p class=\"fc-smark\">{{item[fcOption.fcSmarkCode]}}</p>\n                            <p class=\"fc-time\">{{item[fcOption.fcTimeCode]}}</p>\n                        </div>\n                    </li>\n                </ul>\n            </nz-tab>\n        </nz-tabset>\n    </div>\n    ",styles:["\n    .fc-navside {\n        width:0px;\n        height:calc(100% - 50px);\n        background-color:#ffffff;\n        box-shadow: 0 8px 10px -5px rgba(0,0,0,.2), 0 16px 24px 2px rgba(0,0,0,.14), 0 6px 30px 5px rgba(0,0,0,.12);\n        position:absolute;\n        z-index:3;\n        transition:transform .3s ease-out;\n        visibility: hidden;\n        right:0;\n        top:50px;\n        transform:translate3d(300px,0px,0px);\n        display: block;\n    }\n    .fc-navside-opened {\n        width:300px;\n        transform: translate3d(0px, 0px, 0px);\n        visibility: visible;\n    }\n    .fc-navside-closed {\n        width:0;\n        transform:translate3d(300px,0px,0px);\n    }\n    .message-tips {\n        font-size:18px;\n        width:30px;\n        flex-shrink: 0;\n        display: inline-block;\n        padding-top:5px; \n    }\n    .main-content {\n        width:calc(100% - 30px);\n        flex-grow: 1;\n        margin-left:25px;\n    }\n    .yellow .message-tips {\n        color:#ffbf00;\n    }\n    .red .message-tips {\n        color:#f04134;\n    }\n    .blue .message-tips {\n        color:#108ee9;\n    }\n    :host ::ng-deep nz-tabset {\n        height:100%;\n    }\n    :host ::ng-deep .nt-tabs-nav {\n        width:100%;\n    }\n    :host ::ng-deep .ant-tabs-nav .ant-tabs-tab {\n        margin-right:0;\n    }\n    :host ::ng-deep .ant-tabs:not(.ant-tabs-vertical) > .ant-tabs-content {\n        height: calc(100% - 40px);\n    }\n    :host ::ng-deep .ant-tabs-tab {\n        width:50%;\n        text-align:center;\n    }\n    :host ::ng-deep .ant-tabs-tabpane {\n        height:calc(100%-32px);\n        overflow:auto;\n    }\n    .tab-content {\n        padding:10px 10px;\n        display: flex;\n        cursor:pointer;\n    }\n    .tab-content:hover {\n        background-color:#ecf6fd;\n    }\n    .fc-title{\n        width:100%;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        white-space: nowrap;\n        font-size: 14px;\n    }\n    .fc-smark {\n        width:100%;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        white-space: nowrap;\n    }\n    .fc-isread .fc-title{\n        color: #666;\n        font-weight: normal;\n    }\n    .fc-noread .fc-title,.fc-noread .fc-smark,.fc-noread .fc-time{\n        color:#333;\n        font-weight: bold;\n    }\n    :host ::ng-deep .ant-tabs-bar {\n        margin-bottom: 0px;\n    }\n    :host ::ng-deep .ant-tabs-content-animated{\n        padding-top:16px;\n    }\n    :host ::ng-deep .ant-tabs:not(.ant-tabs-vertical) > .ant-tabs-content{\n        height:88%;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:n.ElementRef}]},i.propDecorators={fcOption:[{type:n.Input}],_onOutsideClick:[{type:n.HostListener,args:["document:click",["$event"]]}]},i}(S);var gn=function(e){function i(n){var i=e.call(this,n,"fc-navtab")||this;return i.provider=n,i.fcevent=m.fcnavtab,i.fcShowPagination=!0,i.fcType="card",i.fcPosition="top",i.fcTabs=[],i.pushDestroy(t.CommonService.subscribe("selectedMenu",(function(e){if(null!==t.CacheService.getS("token")){if(e){var n=e.param;i.name=n.ROUTER;var o=i.fcTabs.filter((function(e){return e.data.MENUID===n.MENUID}));if(o.length>0){var a=o[0];if(n.refresh&&i.fcTabs.length>1){i.fcTabs.splice(i.fcTabs.indexOf(a),1);var c=0;if(i.fcTabs.forEach((function(e){e.index=c++})),n.refresh=!1,(l=i.fcRoutes.filter((function(e){return n.ROUTER===e.path}))).length>0){var s={index:a.index,disable:"Y",close:"Y",data:n,refresh:!1,module:a.module,component:l[0].component};i.fcTabs.splice(a.index,0,s),c=0,i.fcTabs.forEach((function(e){e.index=c++}))}}i.fcSelectedIndex=a.index}else{n.refresh=!1;a={index:i.fcTabs.length,disable:"Y",close:"Y",data:n,refresh:!1,module:""};var l,r=void 0;(l=i.fcRoutes.filter((function(e){return n.ROUTER===e.path}))).length>0&&(r=l[0].component,a.module=l[0].data.module,a.component=r),0===i.fcTabs.length&&(a.disable="N",a.close="N"),i.fcTabs.push(a),i.fcSelectedIndex=i.fcTabs.length-1}}if(i.fcTabs.length>10){i.fcTabs.splice(1,1);var f=0;i.fcTabs.forEach((function(e){e.index=f++})),setTimeout((function(){i.fcSelectedIndex=i.fcTabs.length-1}),200)}}else t.CacheService.clearS(),t.SystemBusiness.navigate(["/signin"])}))),i.pushDestroy(t.CommonService.subscribe(m.fcnavtab.fcnavtabClose,(function(e){if(null!==t.CacheService.getS("token")){if(e){var n=e.param;if(n&&n.MENUID){(o=i.fcTabs.filter((function(e){return e.data.MENUID===n.MENUID}))).length>0?(void 0!==n.toTab?i.fcSelectedIndex=n.toTab:i.fcSelectedIndex=o[0].index,i.event(m.fcnavtab.fcnavtabClosed,o[0]),i.closeTab(m.fcnavtab.fcnavtabClose,o[0])):t.ParentBusiness.msgService.error("关闭tab失败，找不到tab选项卡")}else{var o=i.fcTabs.filter((function(e){return e.index===i.fcSelectedIndex}));i.fcSelectedIndex=o[0].index,i.event(m.fcnavtab.fcnavtabSelected,o[0]),i.closeTab(m.fcnavtab.fcnavtabClose,o[0])}}}else t.CacheService.clearS(),t.SystemBusiness.navigate(["/signin"])}))),i.pushDestroy(t.CommonService.subscribe(m.fcnavtab.fcnavtabCloseOther,(function(e){if(e){var n=e.param;if(n&&n.MENUID)i.fcTabs.filter((function(e){return"N"!==e.close&&e.data.MENUID!==n.MENUID})).forEach((function(e){i.fcSelectedIndex=e.index,i.event(m.fcnavtab.fcnavtabClosed,e),i.closeTab(m.fcnavtab.fcnavtabClose,e)}))}}))),i}return h(i,e),i.prototype.ngOnInit=function(){var e=this;this.height=window.document.body.clientHeight-82+"px",window.onresize=function(){e.height=window.document.body.clientHeight-82+"px",t.CommonService.event(e.fcevent.fcnavtabResize,{height:window.document.body.clientHeight-82,width:window.document.body.clientWidth})}},i.prototype._afterParentInit=function(){void 0===this.fcDisabled||"N"===this.fcDisabled?this._disabled=!1:"Y"===this.fcDisabled&&(this._disabled=!0)},i.prototype.closeTab=function(e,n){if("Y"===n.close&&n.component.prototype.canClosed(n.component)){this.fcTabs.splice(this.fcTabs.indexOf(n),1);var i=0;if(this.fcTabs.forEach((function(e){e.index=i++})),this.fcTabs.length>0)if(this.fcSelectedIndex&&n.index===this.fcSelectedIndex)(o=this.fcTabs[this.fcSelectedIndex-1].data).refresh=!1,t.CommonService.event("selectedMenu",o);else if(this.fcSelectedIndex&&n.index<this.fcSelectedIndex){var o;this.fcSelectedIndex=n.index,(o=this.fcTabs[this.fcSelectedIndex].data).refresh=!1,t.CommonService.event("selectedMenu",o)}this.event(e,n)}},i.prototype.closeAllTab=function(e){this.fcTabs.splice(1,this.fcTabs.length-1);var n=0;if(this.fcTabs.forEach((function(e){e.index=n++})),this.fcTabs.length>0){this.fcSelectedIndex=this.fcTabs[0].index;var i=this.fcTabs[0].data;i.refresh=!1,t.CommonService.event("selectedMenu",i)}this.event(e,{})},i.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.fcTabs=[]},i.decorators=[{type:n.Component,args:[{selector:"fc-navtab",template:'\n    <nz-tabset class=\'fc-navtab\'  [nzType]=\'fcType\'\n    [nzShowPagination]=\'fcShowPagination\'\n    [nzSize]=\'fcSize\'\n    [nzTabPosition]=\'fcPosition\'\n    [(nzSelectedIndex)]=\'fcSelectedIndex\'\n    [nzTabBarExtraContent]=\'extraTemplate\'\n    >\n    <nz-tab *ngFor=\'let tab of fcTabs\' [nzForceRender]="true"\n        [nzTitle]=\'titleTemplate\' (nzSelect)=\'event(fcevent.fcnavtabSelected,tab)\' [nzDisabled]="_disabled">\n        <ng-template #titleTemplate>\n        <div>\n            <fc-icon [fcIcon]="tab.data.MENUICON" style="margin-right:2px"></fc-icon>\n            {{tab.data.MENUNAME}}\n            <i *ngIf="tab.close===\'Y\'" nz-icon nzType="close" (click)="closeTab(fcevent.fcnavtabClosed,tab)"></i>\n        </div>\n        </ng-template>\n        <div class="content-main" [ngStyle]="{\'height\':height}">\n             <fcnavtabtpl [tab]="tab"></fcnavtabtpl>\n        </div>\n    </nz-tab>\n    </nz-tabset>\n    <ng-template #extraTemplate>\n      <span title="关闭所有" style=\'cursor: pointer;line-height:28px\'>\n        <fc-icon fcSize="default" fcIcon="fc-icon-developclose" style="margin-right:10px" (click)="closeAllTab(fcevent.fcnavtabClosed)"></fc-icon>\n      </span>\n    </ng-template>\n    ',styles:["\n    :host ::ng-deep .ant-tabs-extra-content{\n      height:27px!important;\n    }\n    .ant-tabs-nav .ant-tabs-tab-disabled{\n\n    }\n    :host ::ng-deep .ant-tabs-nav-container{\n        height:30px!important;\n    }\n    .fc-navtab{\n        padding: 1px 0px 0px;\n        box-sizing: border-box;\n    }\n    :host ::ng-deep .fc-navtab .ant-tabs-bar{\n        margin-bottom:0px;\n        padding-left:5px;\n    }\n    :host ::ng-deep .ant-tabs-nav .ant-tabs-tab .anticon{\n        width: 12px;\n        margin-right: 0px;\n    }\n    :host ::ng-deep .ant-tabs-nav{\n        height:30px;\n    }\n    .fc-navtab .navtab-icon{\n        font-size:12px;\n    }\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService}]},i.propDecorators={fcRoutes:[{type:n.Input}],fcTabs:[{type:n.Input}],fcSelectedIndex:[{type:n.Input}],fcShowPagination:[{type:n.Input}],fcType:[{type:n.Input}],fcPosition:[{type:n.Input}]},i}(S);var vn=function(){function e(e){this.viewContainerRef=e}return e.decorators=[{type:n.Directive,args:[{selector:"[fcnavtabcontent]"}]}],e.ctorParameters=function(){return[{type:n.ViewContainerRef}]},e}();var mn=function(){function e(e){this.componentFactoryResolver=e,this.currentComponent=null}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loadComponent()}),0)},e.prototype.loadComponent=function(){var e;e=t.ParentBusiness.lazyService.loadModules[this.tab.module]?t.ParentBusiness.lazyService.loadModules[this.tab.module].componentFactoryResolver.resolveComponentFactory(this.tab.component):this.componentFactoryResolver.resolveComponentFactory(this.tab.component),this.tabHost.viewContainerRef.createComponent(e).instance.routerParam=void 0===this.tab.data?{}:void 0===this.tab.data.param?{}:this.tab.data.param},e.prototype.loadComponent0=function(){var e=this.componentFactoryResolver.resolveComponentFactory(this.tab.component);this.tabHost.viewContainerRef.createComponent(e)},e.prototype.loadAndPassParams=function(){var e=this;this.tab.data||(this.tab.data={});var t=Object.keys(this.tab.data).map((function(n){return{provide:n,useValue:e.tab.data[n]}})),i=n.ReflectiveInjector.resolve(t),o=this.tabHost.viewContainerRef,a=n.ReflectiveInjector.fromResolvedProviders(i,o.parentInjector),c=this.componentFactoryResolver.resolveComponentFactory(this.tab.component).create(a);o.insert(c.hostView),this.currentComponent&&this.currentComponent.destroy(),this.currentComponent=c},e.decorators=[{type:n.Component,args:[{selector:"fcnavtabtpl",template:"<ng-template fcnavtabcontent></ng-template>"}]}],e.ctorParameters=function(){return[{type:n.ComponentFactoryResolver}]},e.propDecorators={tab:[{type:n.Input}],tabHost:[{type:n.ViewChild,args:[vn,{static:!1}]}]},e}();var bn=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce,Se,tn,rn],exports:[dn,un,hn,gn,vn,mn],declarations:[dn,un,hn,gn,vn,mn],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),yn=function(e){function i(n,t){var i=e.call(this,n,"fc-progressbar")||this;return i.provider=n,i.router=t,i}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},i.prototype._afterParentInit=function(){this.fcPercent&&(this._percent=parseInt(this.fcPercent))},i.decorators=[{type:n.Component,args:[{selector:"fc-progressbar",template:"\n    <nz-progress  [ngClass] = \"{'fc-progressbar-small':fcSize === 'small','fc-progressbar-default':fcSize === 'default','fc-progressbar-large':fcSize === 'large'}\"\n    [nzPercent]=\"_percent\" [nzStrokeWidth]=\"fcStrokeWidth\" [nzStatus]=\"active\"></nz-progress>\n    ",styles:["\n\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},i.propDecorators={fcPercent:[{type:n.Input}],fcStrokeWidth:[{type:n.Input}]},i}(S);var Cn=function(e){function i(n,t){var i=e.call(this,n,"fc-progresscircle")||this;return i.provider=n,i.router=t,i}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},i.decorators=[{type:n.Component,args:[{selector:"fc-progresscircle",template:'\n    <nz-spin   [nzTip]="fcTip" [nzSize]="fcSize">\n\n    </nz-spin>\n    ',styles:["\n    \n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},i.propDecorators={fcTip:[{type:n.Input}]},i}(S);var Sn=function(e){function i(n,t){var i=e.call(this,n,"fc-progresspercent")||this;return i.provider=n,i.router=t,void 0===i.fcStrokeWidth&&(i._stroWidth=132),i}return h(i,e),i.prototype.ngOnChanges=function(n){e.prototype.ngOnChanges.call(this,n)},i.prototype._afterParentInit=function(){this.fcPercent&&(this._percent=parseInt(this.fcPercent)),this.fcStrokeWidth&&(this._stroWidth=parseInt(this.fcStrokeWidth))},i.decorators=[{type:n.Component,args:[{selector:"fc-progresspercent",template:'\n    <nz-progress [nzPercent]="_percent" nzType="circle" [nzWidth]="_stroWidth"></nz-progress>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},i.propDecorators={fcPercent:[{type:n.Input}],fcStrokeWidth:[{type:n.Input}]},i}(S);var In=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce],exports:[yn,Cn,Sn],declarations:[yn,Cn,Sn],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),zn=function(e){function i(n,t){var i=e.call(this,n,"fc-chartbar")||this;return i.provider=n,i.router=t,i.fcData=[],i.fcView=[],i.fcScheme={domain:["#5AA454","#A10A28","#C7B42C","#AAAAAA"]},i._showXAxis=!0,i._showYAxis=!0,i._gradient=!1,i._showLegend=!0,i.fcLegendTitle="图例",i._showXAxisLabel=!0,i._showYAxisLabel=!0,i.fcType="vertical",i._barPadding=8,i._groupPadding=16,i}return h(i,e),i.prototype._afterParentInit=function(){"N"===this.fcShowXAxis?this._showXAxis=!1:this._showXAxis=!0,"N"===this.fcShowYAxis?this._showYAxis=!1:this._showYAxis=!0,void 0!==this.fcXAxisLabel?this._showXAxisLabel=!0:this._showXAxisLabel=!1,void 0!==this.fcYAxisLabel?this._showYAxisLabel=!0:this._showYAxisLabel=!1,"N"===this.fcShowLegend?this._showLegend=!1:this._showLegend=!0,"Y"===this.fcGradient?this._gradient=!0:this._gradient=!1,void 0!==this.fcBarPadding&&(this._barPadding=Number(this.fcBarPadding)),void 0!==this.fcGroupPadding&&(this._groupPadding=Number(this.fcGroupPadding))},i.prototype._activate=function(e){this.event("activate",e)},i.prototype._deactivate=function(e){this.event("deactivate",e)},i.prototype._select=function(e){this.event("select",e)},i.decorators=[{type:n.Component,args:[{selector:"fc-chartbar",template:'\n    <ngx-charts-bar-vertical *ngIf="fcType===\'vertical\'"\n        [view]="fcView"\n        [scheme]="fcScheme"\n        [results]="fcData"\n        [gradient]="_gradient"\n        [xAxis]="_showXAxis"\n        [yAxis]="_showYAxis"\n        [legend]="_showLegend"\n        [legendTitle]="fcLegendTitle"\n        [showXAxisLabel]="_showXAxisLabel"\n        [showYAxisLabel]="_showYAxisLabel"\n        [xAxisLabel]="fcXAxisLabel"\n        [yAyisLabel]="fcYAxisLabel"\n        [barPadding]="_barPadding"\n        (select)="_select($event)"\n        (activate)="_activate($event)"\n        (deactivate)="_deactivate($event)">\n    </ngx-charts-bar-vertical>\n    <ngx-charts-bar-horizontal *ngIf="fcType===\'horizontal\'"\n        [view]="fcView"\n        [scheme]="fcScheme"\n        [results]="fcData"\n        [gradient]="_gradient"\n        [xAxis]="_showXAxis"\n        [yAxis]="_showYAxis"\n        [legend]="_showLegend"\n        [legendTitle]="fcLegendTitle"\n        [showXAxisLabel]="_showXAxisLabel"\n        [showYAxisLabel]="_showYAxisLabel"\n        [xAxisLabel]="fcXAxisLabel"\n        [yAyisLabel]="fcYAxisLabel"\n        [barPadding]="_barPadding"\n        (select)="_select($event)"\n        (activate)="_activate($event)"\n        (deactivate)="_deactivate($event)">\n    </ngx-charts-bar-horizontal>\n    <ngx-charts-bar-vertical-2d *ngIf="fcType===\'groupedVertical\'"\n        [view]="fcView"\n        [scheme]="fcScheme"\n        [results]="fcData"\n        [gradient]="_gradient"\n        [xAxis]="_showXAxis"\n        [yAxis]="_showYAxis"\n        [legend]="_showLegend"\n        [legendTitle]="fcLegendTitle"\n        [showXAxisLabel]="_showXAxisLabel"\n        [showYAxisLabel]="_showYAxisLabel"\n        [xAxisLabel]="fcXAxisLabel"\n        [yAyisLabel]="fcYAxisLabel"\n        [barPadding]="_barPadding"\n        (select)="_select($event)"\n        (activate)="_activate($event)"\n        (deactivate)="_deactivate($event)">\n    </ngx-charts-bar-vertical-2d>\n    <ngx-charts-bar-horizontal-2d *ngIf="fcType===\'groupedHorizontal\'"\n        [view]="fcView"\n        [scheme]="fcScheme"\n        [results]="fcData"\n        [gradient]="_gradient"\n        [xAxis]="_showXAxis"\n        [yAxis]="_showYAxis"\n        [legend]="_showLegend"\n        [legendTitle]="fcLegendTitle"\n        [showXAxisLabel]="_showXAxisLabel"\n        [showYAxisLabel]="_showYAxisLabel"\n        [xAxisLabel]="fcXAxisLabel"\n        [yAyisLabel]="fcYAxisLabel"\n        [barPadding]="_barPadding"\n        (select)="_select($event)"\n        (activate)="_activate($event)"\n        (deactivate)="_deactivate($event)">\n    </ngx-charts-bar-horizontal-2d>\n    ',styles:["\n\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},i.propDecorators={fcData:[{type:n.Input}],fcView:[{type:n.Input}],fcScheme:[{type:n.Input}],fcShowXAxis:[{type:n.Input}],fcShowYAxis:[{type:n.Input}],fcGradient:[{type:n.Input}],fcShowLegend:[{type:n.Input}],fcLegendTitle:[{type:n.Input}],fcXAxisLabel:[{type:n.Input}],fcYAxisLabel:[{type:n.Input}],fcType:[{type:n.Input}],fcBarPadding:[{type:n.Input}],fcGroupPadding:[{type:n.Input}]},i}(S);var On=function(e){function i(n,t){var i=e.call(this,n,"fc-chartpie")||this;return i.provider=n,i.router=t,i.fcData=[],i.fcView=[],i.fcScheme={domain:["#5AA454","#A10A28","#C7B42C","#AAAAAA"]},i._showXAxis=!0,i._showYAxis=!0,i._gradient=!1,i._showLegend=!0,i.fcLegendTitle="",i._showXAxisLabel=!0,i._showYAxisLabel=!0,i.fcType="default",i._barPadding=8,i._explodeSlices=!0,i._showLabels=!1,i._doughnut=!0,i}return h(i,e),i.prototype._afterParentInit=function(){"N"===this.fcShowXAxis?this._showXAxis=!1:this._showXAxis=!0,"N"===this.fcShowYAxis?this._showYAxis=!1:this._showYAxis=!0,void 0!==this.fcXAxisLabel?this._showXAxisLabel=!0:this._showXAxisLabel=!1,void 0!==this.fcYAxisLabel?this._showYAxisLabel=!0:this._showYAxisLabel=!1,"N"===this.fcShowLegend?this._showLegend=!1:this._showLegend=!0,"Y"===this.fcGradient?this._gradient=!0:this._gradient=!1,void 0!==this.fcBarPadding&&(this._barPadding=Number(this.fcBarPadding)),"N"===this.fcExplodeSlices?this._explodeSlices=!1:this._explodeSlices=!0,"Y"===this.fcShowLabel?this._showLabels=!0:this._showLabels=!1,"N"===this.fcDoughnut?this._doughnut=!1:this._doughnut=!0},i.prototype._activate=function(e){this.event("activate",e)},i.prototype._deactivate=function(e){this.event("deactivate",e)},i.prototype._select=function(e){this.event("select",e)},i.decorators=[{type:n.Component,args:[{selector:"fc-chartpie",template:'\n    <ngx-charts-pie-chart *ngIf="fcType===\'default\'"\n        [view]="fcView"\n        [scheme]="fcScheme"\n        [results]="fcData"\n        [legend]="_showLegend"\n        [legendTitle]="fcLegendTitle"\n        [explodeSlices]="_explodeSlices"\n        [labels]="false"\n        [doughnut]="_doughnut"\n        [gradient]="_gradient"\n        (select)="_select($event)"\n        (activate)="_activate($event)"\n        (deactivate)="_deactivate($event)">\n    </ngx-charts-pie-chart>\n    <ngx-charts-advanced-pie-chart *ngIf="false"\n      [view]="fcView"\n      [scheme]="fcScheme"\n      [results]="fcData"\n      [gradient]="_gradient"\n      (select)="_select($event)"\n      (activate)="_activate($event)"\n      (deactivate)="_deactivate($event)">\n    </ngx-charts-advanced-pie-chart>    \n    ',styles:["\n    \n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},i.propDecorators={fcData:[{type:n.Input}],fcView:[{type:n.Input}],fcScheme:[{type:n.Input}],fcShowXAxis:[{type:n.Input}],fcShowYAxis:[{type:n.Input}],fcGradient:[{type:n.Input}],fcShowLegend:[{type:n.Input}],fcLegendTitle:[{type:n.Input}],fcXAxisLabel:[{type:n.Input}],fcYAxisLabel:[{type:n.Input}],fcType:[{type:n.Input}],fcBarPadding:[{type:n.Input}],fcExplodeSlices:[{type:n.Input}],fcShowLabel:[{type:n.Input}],fcDoughnut:[{type:n.Input}]},i}(S);var Dn=function(e){function i(n,t){var i=e.call(this,n,"fc-chartline")||this;return i.provider=n,i.router=t,i.fcData=[],i.fcView=[],i.fcScheme={},i.fcCustomColors={},i._showXAxis=!0,i._showYAxis=!0,i._gradient=!0,i._showLegend=!0,i._showXAxisLabel=!0,i._showYAxisLabel=!0,i._doughnut=!0,i._autoScale=!0,i}return h(i,e),i.prototype._afterParentInit=function(){},i.prototype._activate=function(e){this.event("activate",e)},i.prototype._deactivate=function(e){this.event("deactivate",e)},i.prototype._select=function(e){this.event("select",e)},i.decorators=[{type:n.Component,args:[{selector:"fc-chartline",template:'\n    <ngx-charts-line-chart\n        [view]="fcView"\n        [scheme]="fcScheme"\n        [results]="fcData"\n        [gradient]="_gradient"\n        [xAxis]="_showXAxis"\n        [yAxis]="_showYAxis"\n        [legend]="_showLegend"\n        [legendTitle]="fcLegendTitle"\n        [showXAxisLabel]="_showXAxisLabel"\n        [showYAxisLabel]="_showYAxisLabel"\n        [xAxisLabel]="fcXAxisLabel"\n        [yAxisLabel]="fcYAxisLabel"\n        [autoScale]="_autoScale"\n        (select)="_select($event)"\n        (activate)="_activate($event)"\n        (deactivate)="_deactivate($event)">\n    </ngx-charts-line-chart>\n    ',styles:["\n    "]}]}],i.ctorParameters=function(){return[{type:t.ProvidersService},{type:c.Router}]},i.propDecorators={fcData:[{type:n.Input}],fcView:[{type:n.Input}],fcScheme:[{type:n.Input}],fcShowXAxis:[{type:n.Input}],fcShowYAxis:[{type:n.Input}],fcGradient:[{type:n.Input}],fcShowLegend:[{type:n.Input}],fcShowXAxisLabel:[{type:n.Input}],fcShowYAxisLabel:[{type:n.Input}],fcXAxisLabel:[{type:n.Input}],fcYAxisLabel:[{type:n.Input}],fcDoughnut:[{type:n.Input}],fcType:[{type:n.Input}],fcLegendTitle:[{type:n.Input}]},i}(S);var _n=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[Ce,d.NgxChartsModule],exports:[zn,On,Dn],declarations:[zn,On,Dn],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}(),xn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.initValid=function(e){var n={};return e.forEach((function(e){var t={show:"N",showValidator:""};t.validators={required:"Y"==e.ISNULL,maxLength:e.LENGTH,customVal:!1},t.errorMessages={required:e.FIELDNAME+"不能为空.",maxLength:"最大输入字数不能超过"+e.LENGTH+"字.",customVal:"自定义验证"},t.fieldCode=e.FIELDCODE,n[e.FIELDCODE]=t})),n},n.initValue=function(e,n){Object.keys(e).forEach((function(i){var o=n.filter((function(e){return e.FIELDCODE===i}));if(o.length>0){var a=o[0];switch(a.DBTYPE){case"DATE":e[a.FIELDCODE]=t.CommonService.stringToDate(e[a.FIELDCODE])}}}))},n.processValue=function(e,n){var i=Object.assign({},e);return Object.keys(e).forEach((function(o){var a=n.filter((function(e){return e.FIELDCODE===o}));if(a.length>0){var c=a[0];switch(c.DBTYPE){case"DATE":i[c.FIELDCODE]=t.CommonService.dateFormat(e[c.FIELDCODE],"yyyy-MM-dd hh:mm:ss")}}})),i},n.validator=function(e,n,t){var i=!0;return Object.keys(n).forEach((function(o){if(t&&t===o||null==t){var a=n[o];a.show="N";var c=e[a.fieldCode]||"",s=a.validators;a.errorMessages;!s.required||void 0!==c&&null!=c&&0!==c.length?c&&c.length>s.maxLength?(a.show="Y",a.showValidator="maxLength",i=!1):s.customVal&&(a.show="Y",a.showValidator="customVal",i=!1):(a.show="Y",a.showValidator="required",i=!1),n[o]=a}})),i},n.saveNew=function(e,n,i,o,a,c,s){this.validator(n,i)&&a()&&s.pushDestroy(t.ParentBusiness.appService.saveObject(e.APPID,this.processValue(n,o)).subscribe((function(i){"0"===i.CODE?(t.ParentBusiness.msgService.message("保存成功！"),c(),n=t.ParentBusiness.appService.initObjDefaultValue(e)):t.ParentBusiness.msgService.message("保存失败！")})))},n.cardSaveCopy=function(e,n,i,o,a,c,s){this.validator(n,i)&&a()&&s.pushDestroy(t.ParentBusiness.appService.saveObject(e.APPID,this.processValue(n,o)).subscribe((function(e){"0"===e.CODE?(t.ParentBusiness.msgService.message("保存成功！"),c(),n.ID=""):t.ParentBusiness.msgService.message("保存失败！")})))},n.cardSave=function(e,n,i,o,a,c,s){this.validator(n,i)&&a()&&s.pushDestroy(t.ParentBusiness.appService.saveObject(e.APPID,this.processValue(n,o)).subscribe((function(e){"0"===e.CODE?(t.ParentBusiness.msgService.message("保存成功！"),c()):t.ParentBusiness.msgService.message("保存失败！")})))},n.cardSaveBack=function(e,n,i,o,a,c,s,l){this.validator(n,i)&&a()&&l.pushDestroy(t.ParentBusiness.appService.saveObject(e.APPID,this.processValue(n,o)).subscribe((function(e){"0"===e.CODE?(t.ParentBusiness.msgService.message("保存成功！"),c(),s()):t.ParentBusiness.msgService.message("保存失败！")})))},n.setFieldValue=function(e,n,t){e[n]=t},n}(t.ParentBusiness),En=function(){function e(){}return e.init=function(n){var i=this;return e.modalService=n,[t.CommonService.subscribe(m.fcmodal.dialog,(function(e){i.open(e.param)})),t.CommonService.subscribe(m.fcmodal.confirm,(function(e){i.confirm(e.param)})),t.CommonService.subscribe(m.fcmodal.success,(function(e){i.success(e.param)})),t.CommonService.subscribe(m.fcmodal.error,(function(e){i.error(e.param)})),t.CommonService.subscribe(m.fcmodal.info,(function(e){i.info(e.param)})),t.CommonService.subscribe(m.fcmodal.warning,(function(e){i.warning(e.param)})),t.CommonService.subscribe(m.fcmodal.input,(function(e){i.input(e.param,e.param.input)})),t.CommonService.subscribe(m.fcmodal.component,(function(e){i.component(e.param,e.param)}))]},e.open=function(e){e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){});var n=this.modalService.create({nzTitle:e.title,nzContent:e.content,nzClosable:e.closable||!0,nzOnOk:function(){return e.okFunc()},nzOnCancel:function(){return e.cancelFunc()},nzComponentParams:e.componentParams,nzVisible:e.visible,nzZIndex:e.zIndex,nzWidth:e.width,nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzIconType:e.iconType,nzMask:e.mask,nzMaskClosable:e.maskClosable||!1,nzMaskStyle:e.maskStyle,nzBodyStyle:e.bodyStyle,nzFooter:e.footer,nzGetContainer:e.getContainer,nzOkText:e.okText||"确定",nzOkType:e.okType,nzOkLoading:e.okLoading,nzCancelText:e.cancelText||"取消",nzCancelLoading:e.cancelLoading});return n.afterClose.subscribe((function(n){t.CommonService.event(e.token,n)})),n},e.confirm=function(e){return e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){}),this.modalService.confirm({nzTitle:e.title,nzContent:e.content,nzWidth:e.width||"416",nzOkText:e.okText||"确定",nzCancelText:e.cancelText||"取消",nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzOnOk:function(){return e.okFunc()},nzOnCancel:function(){return e.cancelFunc()},nzMaskClosable:!0})},e.input=function(e,n){e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){});var i=this.modalService.create({nzTitle:e.title,nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzWidth:e.width||"416",nzContent:nn,nzClosable:e.closable||!0,nzOkText:e.okText||"确定",nzCancelText:e.cancelText||"取消",nzComponentParams:{options:n}});return i.afterClose.subscribe((function(n){t.CommonService.event(e.token,n)})),i},e.info=function(e){e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){});var n=this.modalService.info({nzTitle:e.title,nzContent:e.content,nzClosable:e.closable||!0,nzWidth:e.width||"416",nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzOnOk:function(){return e.okFunc()},nzOnCancel:function(){return e.cancelFunc()},nzComponentParams:e.componentParams,nzMaskClosable:!0,nzOkText:e.okText||"确定"});return n.afterClose.subscribe((function(n){t.CommonService.event(e.token,n)})),n},e.success=function(e){e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){});var n=this.modalService.success({nzTitle:e.title,nzContent:e.content,nzClosable:!0,nzMaskClosable:!0,nzOnOk:function(){return e.okFunc()},nzWidth:e.width||"416",nzOnCancel:function(){return e.cancelFunc()},nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzOkText:e.okText||"确定",nzComponentParams:e.componentParams});return n.afterClose.subscribe((function(n){t.CommonService.event(e.token,n)})),n},e.error=function(e){e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){});var n=this.modalService.error({nzTitle:e.title,nzContent:e.content,nzMaskClosable:!1,nzWidth:e.width||"416",nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzOnOk:function(){return e.okFunc()},nzOnCancel:function(){return e.cancelFunc()},nzComponentParams:e.componentParams,nzOkText:e.okText||"确定"});return n.afterClose.subscribe((function(n){t.CommonService.event(e.token,n)})),n},e.warning=function(e){e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){});var n=this.modalService.warning({nzTitle:e.title,nzContent:e.content,nzClosable:e.closable||!0,nzWrapClassName:e.wrapClassName,nzClassName:e.className,nzStyle:e.style,nzMaskClosable:!0,nzWidth:e.width||"416",nzOnOk:function(){return e.okFunc()},nzOnCancel:function(){return e.cancelFunc()},nzComponentParams:e.componentParams,nzOkText:e.okText||"确定"});return n.afterClose.subscribe((function(n){t.CommonService.event(e.token,n)})),n},e.component=function(e,n){var i=this;return e.cancelFunc||(e.cancelFunc=function(){}),e.okFunc||(e.okFunc=function(){}),this.modalRef=this.modalService.create({nzTitle:e.title,nzContent:e.content,nzClosable:e.closable||!0,nzClassName:e.className,nzWidth:e.width||"80%",nzOnOk:function(){return e.okFunc()},nzOnCancel:function(){return e.cancelFunc()},nzFooter:e.footer,nzMask:void 0===e.mask||e.mask,nzMaskClosable:e.maskClosable||!1,nzComponentParams:e.componentParams,nzOkText:e.okText||"确定",nzCancelText:e.cancelText||"取消"}),this.modalRef.afterClose.subscribe((function(n){t.CommonService.event(e.token+"-afterclose",n),i.modalRef.destroy()})),t.CommonService.subscribe(e.token+"-close",(function(){i.modalRef.destroy()})),t.CommonService.subscribe(e.token+"-cancel",(function(){i.modalRef.destroy()})),this.modalRef},e.modalService=void 0,e.modalRef=void 0,e}();var wn=function(){function e(){}return e.fcnavtabInit=function(e,n){e.pushDestroy(t.CommonService.subscribe(m.fcnavtab.fcnavtabClearTabs,(function(n){n&&(e.fcTabs=[{enabled:"Y",disable:"Y",close:"N",index:0,data:{ID:"0",MENUID:"0",MENUICON:"fc-icon-home",MENUNAME:"主页",MENUTYPE:"APP",PID:"",ROUTER:"home"}}])})))},e.fcnavtabClearTabs=function(e,n){},e}(),An=function(e){function n(n,i){var o=e.call(this)||this;return o.moduleId="",o.appId="",o.getMainObjWay=Pn.cache,o.userInfo=t.SystemBusiness.getUserinfo(),n&&0!==n.length&&i&&0!==i.length?(o.moduleId=n,o.appId=i,o.mainApp=t.ParentBusiness.appService.getAppById(o.appId),o.mainApp?(o.mainLinks=o.mainApp.SYSAPPLINKS,o.mainFldGroups=o.mainApp.SYSAPPFLDGROUP,o.routerParam=t.SystemBusiness.activatedRoute.snapshot.queryParams,void 0===o.routerParam&&(o.routerParam=t.SystemBusiness.activatedRoute.snapshot.params),o._init()):t.ParentBusiness.appService.findAppByAid(i,o.moduleId).subscribe((function(e){if("0"===e.CODE){var n=e.DATA;n&&n[i]&&(t.ParentBusiness.appService.apps[i]=n[i],o.mainApp=t.ParentBusiness.appService.getAppById(o.appId),o.mainApp&&(o.mainLinks=o.mainApp.SYSAPPLINKS,o.mainFldGroups=o.mainApp.SYSAPPFLDGROUP,o.routerParam=t.SystemBusiness.activatedRoute.snapshot.params,o._init()))}}))):(o.routerParam=t.SystemBusiness.activatedRoute.snapshot.params,o._init()),o}return h(n,e),n.prototype.ngOnInit=function(){},n.prototype.getRouteUrl=function(e){return this.getUrl(this.moduleId,this.appId,e)},n.prototype.getUrl=function(e,n,t){return"/"+e.toLocaleLowerCase()+"/"+n.toLocaleLowerCase()+t},n.prototype.navigate=function(e,n){return n?t.SystemBusiness.navigate([e],{queryParams:n}):t.SystemBusiness.navigate([e])},n.prototype.confirm=function(e,n,i,o){var a={title:n,content:e,okFunc:function(){return i()},cancelFunc:function(){return o()}};t.CommonService.event(m.fcmodal.confirm,a)},n.prototype.stopPropagation=function(e){e.stopPropagation(),e.preventDefault()},n}(b);var Pn={cache:0,async:1};Pn[Pn.cache]="cache",Pn[Pn.async]="async";var Tn=function(e){function n(n,i){var o=e.call(this,n,i)||this;return o.objStatus=t.ObjStatus.READ,o}return h(n,e),n.prototype._init=function(){var e=this;if(this.getMainObjWay=Pn.cache,this.selectedIndex=0,this.hasNext=!1,this.hasPrev=!1,this.mainObj={},this.mainFields=this.mainApp?t.ParentBusiness.appService.getFormFieldsByApp(this.mainApp):[],this.routerParam.ID)if(this.mainObjs=t.CacheService.getS(this.appId+"DATA"),this.objStatus=t.ObjStatus.READ,this.getMainObjWay===Pn.cache){if(this.mainObjs){var n=this.mainObjs.filter((function(n){return e.checkHasOne(),e.selectedIndex++,e.routerParam.ID===n.ID}));n&&0!==n.length&&(this.mainObj=n[0])}null===this.mainObj?this.pushDestroy(t.ParentBusiness.appService.findById(this.mainApp.APPID,this.routerParam.ID).subscribe((function(n){"0"===n.CODE&&(e.mainObj=n.DATA,e.checkHasOne()),e.init()}))):this.init()}else this.pushDestroy(t.ParentBusiness.appService.findById(this.appId,this.routerParam.ID).subscribe((function(n){"0"===n.CODE&&(e.mainObj=n.DATA,e.checkHasOne()),e.init()})));else this.objStatus=t.ObjStatus.READ,this.hasNext=!1,this.hasPrev=!1,this.mainObj=t.ParentBusiness.appService.initObjDefaultValue(this.mainApp),this.init()},n.prototype.checkHasOne=function(){this.mainObjs[this.selectedIndex+1]&&(this.hasNext=!0),this.mainObjs[this.selectedIndex-1]&&(this.hasPrev=!0)},n.prototype.prev=function(){-1!==this.selectedIndex&&this.mainObjs&&this.mainObjs.length>0&&(this.selectedIndex--,this.checkHasOne(),this.mainObj=this.mainObjs[this.selectedIndex])},n.prototype.next=function(){-1!==this.selectedIndex&&this.mainObjs&&this.mainObjs.length>0&&(this.selectedIndex++,this.mainObj=this.mainObjs[this.selectedIndex],this.checkHasOne())},n.prototype.cardBack=function(e){this.navigateList()},n.prototype.tlbformEvent=function(e){this.adformEvent(e)},n.prototype.adformEvent=function(e){switch(e.eventName){case"cardBack":this.cardBack(e.eventName);break;case"cardAdd":this.navigateAdd();case"cardEdit":this.navigateEdit();break;default:this.event(e.eventName,e)}},n.prototype.navigateAdd=function(){this.navigate(this.getRouteUrl("Edit"),{refresh:"Y"})},n.prototype.navigateEdit=function(){t.CacheService.setS(this.mainObj.ID,this.mainObj),this.navigate(this.getRouteUrl("Edit"),{ID:this.mainObj.ID,refresh:"Y"})},n.prototype.navigateList=function(e){this.navigate(this.getRouteUrl("List"),{refresh:e||"Y"})},n}(An);var Ln=function(e){function i(n,t){return e.call(this,n,t)||this}return h(i,e),i.prototype._init=function(){this.selectedObject={},this.selectedObjects=[],this.searchObj={},this.modifyObjs=[],this.pageList=[],this.pageNum=1,this.pageSize=this.mainApp&&this.mainApp.PSIZE?this.mainApp.PSIZE:20,this.mainFields=this.mainApp?t.ParentBusiness.appService.getListFieldsByApp(this.mainApp):[],this.mainListButtons=this.mainApp?t.ParentBusiness.appService.getListButtonsByApp(this.mainApp):[],this.pageTotal=0,this.enableAutoSearch=!0,this.init()},i.prototype.ngOnInit=function(){this.searchObj={},this._initCondition(),this.search()},i.prototype._initCondition=function(){this.condition=JSON.stringify(t.ParentBusiness.appService.initObjDefaultConditon(this.mainApp))},i.prototype.query=function(){var e=this,n={};this.condition&&this.condition.length>2&&(n.WHERE=this.condition),n.PAGESIZE=this.pageSize,n.PAGENUM=this.pageNum,n.ORDER=this.orderBy||"",this.condition=n,this.enableAutoSearch&&this.pushDestroy(t.ParentBusiness.appService.findWithQuery(this.appId,n).subscribe((function(n){"0"===n.CODE&&(e.pageList=n.DATA,e.pageTotal=n.TOTALSIZE)})))},i.prototype.reset=function(){var e=this;this.searchObj&&Object.keys(this.searchObj).length>0&&Object.keys(this.searchObj).forEach((function(n){e.searchObj[n]=""})),this.search()},i.prototype.searchObjModelChange=function(e,n){if(e){var t={};t[e]=n||"",this.search({eventName:"search",param:t})}else this.search()},i.prototype.search=function(e){var n=this;e&&(this.searchObj=Object.assign(this.searchObj,e.param));var t={};"object"==typeof this.searchObj&&Object.keys(this.searchObj).forEach((function(e){n.searchObj[e]&&""!==n.searchObj[e]&&(t[e]={like:"%"+n.searchObj[e]+"%"})}));var i=Object.assign(this.getDefaultQuery(),t);this.condition=JSON.stringify(i),this.query()},i.prototype.pageQuery=function(e){switch(e.eventName){case"pageSizeChange":this.pageSize=e.param,this.pageNum=1;break;case"jumpPage":this.pageNum=e.param}this.query()},i.prototype.beforeDelete=function(e){return!0},i.prototype.afterDelete=function(){},i.prototype.listAdd=function(e){this.navigateAdd({refresh:"Y",MENUICON:this.routerParam.MENUICON})},i.prototype.listEdit=function(e){this.selectedObjects&&1==this.selectedObjects.length?this.beforeEdit()&&this.navigateModify({eventName:e.eventName,param:this.selectedObject}):t.ParentBusiness.msgService.warm("请选择一条记录！")},i.prototype.listOneEdit=function(e){this.beforeEdit()&&this.navigateModify(e)},i.prototype.beforeEdit=function(){return!0},i.prototype.listOneDelete=function(e){var n=this;t.CommonService.event(m.fcmodal.confirm,{title:"确认删除记录吗？",okFunc:function(){var i=e.param;n.beforeDelete(i)&&n.pushDestroy(t.ParentBusiness.appService.deleteObject(n.mainApp.APPID,i.ID).subscribe((function(e){"0"===e.CODE?(n.afterDelete(),t.ParentBusiness.msgService.message("删除成功！"),n.search()):t.ParentBusiness.msgService.message("删除失败！")})))},cancelFunc:function(){}}),event.stopPropagation(),event.preventDefault()},i.prototype.listDelete=function(e){var n=this;if(0!==this.selectedObjects.length){for(var i=!0,o=0;o<this.selectedObjects.length;o++){var a=this.selectedObjects[o];if(!this.beforeDelete(a)){i=!1;break}}if(i){var c=[];this.selectedObjects.forEach((function(e){c.push({ID:e.ID})})),t.CommonService.event(m.fcmodal.confirm,{title:"确认删除记录吗？",okFunc:function(){n.pushDestroy(t.ParentBusiness.appService.deleteObjects(n.mainApp.APPID,c).subscribe((function(e){"0"===e.CODE?(n.afterDelete(),n.selectedObjects.forEach((function(e){})),t.ParentBusiness.msgService.message("删除成功！")):t.ParentBusiness.msgService.message("删除失败！")})))},cancelFunc:function(){}})}}else t.ParentBusiness.msgService.warm("请选择至少一条记录！")},i.prototype.listHelp=function(e){},i.prototype.import=function(e){},i.prototype.export=function(e){var n=this.selectedObjects,i=void 0;n&&n.length>0&&(i="AND ID in (",n.forEach((function(e){i+="'"+e.ID+"',"})),i+="'')"),void 0===i?window.open(t.FCCONFIG.apiurl+this.moduleId+"/SYSRESLIB/EXPORTEXCEL"):window.open(t.FCCONFIG.apiurl+this.moduleId+"/SYSRESLIB/EXPORTEXCEL?WHERE="+encodeURIComponent(i))},i.prototype.tlblistEvent=function(e){switch(e.eventName){case"listAdd":this.listAdd(e);break;case"listDelete":this.listDelete(e);break;case"listEdit":this.listEdit(e);break;case"listHelp":this.listHelp(e.eventName);break;case"importexcel":this.import(e.eventName);break;case"exportexcel":this.export(e.eventName);break;default:this.event(e.eventName,e)}},i.prototype.searchlistEvent=function(e){switch(e.eventName){case"search":this.search();break;default:this.event(e.eventName,e.param)}},i.prototype.navigateAdd=function(e){e?e.refresh="Y":e={refresh:"Y"},this.navigate(this.getRouteUrl("Edit"),e)},i.prototype.navigateModify=function(e){return t.CacheService.setS(this.appId+"DATA",t.CommonService.cloneArray([e.param],"DOACTION")),this.navigate(this.getRouteUrl("Edit"),{ID:e.param.ID,refresh:"Y",MENUICON:this.routerParam.MENUICON})},i.prototype.navigateDetail=function(e){var n=this;return t.CacheService.setS(this.appId+"DATA",t.CommonService.cloneArray([e.param],"DOACTION")),this.navigate(this.getRouteUrl("Detail"),{ID:e.param.ID,refresh:"Y"}).catch((function(){return n.navigateModify(e)}))},i.prototype.cellClick=function(e){e.param.field.INPUTTYPE&&"url"===e.param.field.INPUTTYPE&&window.open(e.param.data[e.param.field.FIELDCODE],"_blank")},i.prototype.listdataEvent=function(e){switch(e.eventName){case"listOneEdit":this.listOneEdit(e);break;case"listOneDelete":this.listOneDelete(e);break;case"listOneView":this.navigateDetail(e);break;case"cellClick":this.cellClick(e);break;case"rowClick":break;case"selected":this.onSelect(e);break;case"modify":this.onModify(e);break;case"pageSizeChange":this.pageSizeChange(e);break;case"jumpPage":this.jumpPage(e);break;default:this.tlblistEvent(e)}},i.prototype.pageSizeChange=function(e){this.pageSize=e.param},i.prototype.jumpPage=function(e){this.pageNum=e.param},i.prototype.onSelect=function(e){this.selectedObjects=e.param,this.selectedObjects.length>0&&(this.selectedObject=this.selectedObjects[0])},i.prototype.onModify=function(e){this.modifyObjs.push(e.param)},i.prototype.thumbUp=function(e){t.ParentBusiness.msgService.message("点赞功能正在开发中，敬请期待！"),this.stopPropagation(e)},i.prototype.download=function(e){t.ParentBusiness.msgService.message("下载功能正在开发中，敬请期待！"),this.stopPropagation(e)},i.prototype.evaluate=function(e){t.ParentBusiness.msgService.message("评论功能正在开发中，敬请期待！"),this.stopPropagation(e)},i.prototype.count=function(e){t.ParentBusiness.msgService.message("统计功能正在开发中，敬请期待！"),this.stopPropagation(e)},i.propDecorators={listWnd:[{type:n.ViewChild,args:[ln,{static:!1}]}]},i}(An);var kn=function(e){function n(n,i){var o=e.call(this,n,i)||this;return o.objStatus=t.ObjStatus.ADDED,o}return h(n,e),n.prototype._init=function(){var e=this;if(this.getMainObjWay=Pn.cache,this.selectedIndex=0,this.hasNext=!1,this.hasPrev=!1,this.mainObj={},this.mainFields=this.mainApp?t.ParentBusiness.appService.getFormFieldsByApp(this.mainApp):[],this.mainValid=xn.initValid(this.mainFields),this.routerParam.ID)if(this.mainObjs=t.CacheService.getS(this.appId+"DATA"),this.objStatus=t.ObjStatus.READ,this.getMainObjWay===Pn.cache){if(this.mainObjs){var n=this.mainObjs.filter((function(n){return e.checkHasOne(),e.selectedIndex++,e.routerParam.ID===n.ID}));n&&0!==n.length&&(this.mainObj=n[0],xn.initValue(this.mainObj,this.mainFields))}null===this.mainObj?this.pushDestroy(t.ParentBusiness.appService.findById(this.mainApp.APPID,this.routerParam.ID).subscribe((function(n){"0"===n.CODE&&(e.mainObj=n.DATA,xn.initValue(e.mainObj,e.mainFields),e.checkHasOne()),e.init()}))):this.init()}else this.pushDestroy(t.ParentBusiness.appService.findById(this.appId,this.routerParam.ID).subscribe((function(n){"0"===n.CODE&&(e.mainObj=n.DATA,xn.initValue(e.mainObj,e.mainFields),e.checkHasOne()),e.init()})));else this.objStatus=t.ObjStatus.ADDED,this.hasNext=!1,this.hasPrev=!1,this.mainObj=t.ParentBusiness.appService.initObjDefaultValue(this.mainApp),xn.initValue(this.mainObj,this.mainFields),this.init()},n.prototype.beforeSave=function(){return!0},n.prototype.afterSave=function(){},n.prototype.checkHasOne=function(){this.mainObjs[this.selectedIndex+1]&&(this.hasNext=!0),this.mainObjs[this.selectedIndex-1]&&(this.hasPrev=!0)},n.prototype.prev=function(){-1!==this.selectedIndex&&this.mainObjs&&this.mainObjs.length>0&&(this.selectedIndex--,this.checkHasOne(),this.mainObj=this.mainObjs[this.selectedIndex])},n.prototype.next=function(){-1!==this.selectedIndex&&this.mainObjs&&this.mainObjs.length>0&&(this.selectedIndex++,this.mainObj=this.mainObjs[this.selectedIndex],this.checkHasOne())},n.prototype.saveNew=function(e){xn.saveNew(this.mainApp,this.mainObj,this.mainValid,this.mainFields,this.beforeSave,this.afterSave,this)},n.prototype.cardSaveCopy=function(e){xn.cardSaveCopy(this.mainApp,this.mainObj,this.mainValid,this.mainFields,this.beforeSave,this.afterSave,this)},n.prototype.cardSave=function(e){xn.cardSave(this.mainApp,this.mainObj,this.mainValid,this.mainFields,this.beforeSave,this.afterSave,this)},n.prototype.cardSaveBack=function(e){xn.cardSaveBack(this.mainApp,this.mainObj,this.mainValid,this.mainFields,this.beforeSave,this.afterSave,this.cardBack,this)},n.prototype.cardBack=function(e){this.navigateList()},n.prototype.tlbformEvent=function(e){this.adformEvent(e)},n.prototype.adformEvent=function(e){switch(e.eventName){case"cardSave":this.cardSave(e.eventName);break;case"cardAdd":this.addNew(this.mainObj);break;case"cardSaveNew":this.saveNew(e.eventName);break;case"cardSaveBack":this.cardSaveBack(e.eventName);break;case"cardSaveCopy":this.cardSaveCopy(e.eventName);break;case"cardBack":this.cardBack(e.eventName);break;default:this.event(e.eventName,e)}},n.prototype.navigateAdd=function(){this.navigate(this.getRouteUrl("Edit"))},n.prototype.navigateDetail=function(){t.CacheService.setS(this.mainObj.ID,this.mainObj),this.navigate(this.getRouteUrl("Detail"),{ID:this.mainObj.ID})},n.prototype.navigateList=function(e){this.navigate(this.getRouteUrl("List"))},n}(An);function Nn(e){if(e){var n=t.ParentBusiness.appService.getAppById(e);if(n){var i=t.ParentBusiness.appService.getListFieldsByApp(n),o="";i.forEach((function(e){o+=e.FIELDCODE+","}));var a=t.ParentBusiness.appService.getFormFieldsByApp(n),c="";a.forEach((function(e){c+=e.FIELDCODE+","}));var s=function(e){var n={};return e.forEach((function(e){var t={show:"N",showValidator:""};t.validators={required:"Y"===e.ISNULL,maxLength:e.LENGTH,customVal:!1},t.errorMessages={required:e.FIELDNAME+"不能为空.",maxLength:"最大输入字数不能超过"+e.LENGTH+"字.",customVal:"自定义验证"},t.fieldCode=e.FIELDCODE,n[e.FIELDCODE]=t})),n}(a),l=t.ParentBusiness.appService.initObjDefaultValue(n),r=n.SYSAPPFIELDS.filter((function(e){return"Y"===e.ENABLESEARCH}));return{mainObj:l,showListFields:o,showFormFields:c,mainApp:n,mainListFields:i,mainFormFields:a,mainValid:s,searchObj:r}}}return null}var Fn=function(e){function i(i,o,a,c){var s=e.call(this)||this;s.fcEvent=new n.EventEmitter,s.parentProps=t.SystemBusiness.store.getState(),s.props=s.parentProps[i],s.pushDestroy(t.CommonService.subscribe(t.FcsystemEvent.storeStateGet,(function(e){s.parentProps=e.param,s.props=s.parentProps[i]}))),s.EVENT=o;var l={};return c&&null===(l=Nn(c))&&s.pushDestroy(t.SystemBusiness.appService.findAppByAid(c).subscribe((function(e){"0"===e.CODE&&(t.SystemBusiness.appService.apps[c]=e.DATA[c],s.data=g({},s.data,Nn(c)))}))),s.data=s.setData(g({mId:a,appId:c},l,s.initChildData(),s.initData())),s}return h(i,e),i.prototype.ngOnInit=function(){},i.prototype.confirm=function(e,n,i,o){var a={title:n,content:e,okFunc:function(){return i()},cancelFunc:function(){return o()}};t.CommonService.event(m.fcmodal.confirm,a)},i.prototype.stopPropagation=function(e){e.stopPropagation(),e.preventDefault()},i.propDecorators={fcEvent:[{type:n.Output}]},i}(b);var Mn={cache:0,async:1};Mn[Mn.cache]="cache",Mn[Mn.async]="async";var Vn=function(e){function n(n,t,i,o){return e.call(this,n,t,i,o)||this}return h(n,e),n.prototype.initChildData=function(){return{enableAutoSearch:!1,condition:"",searchObj:{},orderBy:"",pageTotal:0,pageNum:1,pageSize:50}},n.prototype.ngOnInit=function(){this.init(),this.search()},n.prototype.event=function(e,n){this.EVENT[e]?t.SystemBusiness.store.dispatch(this.EVENT[e].func(n)):this[e]&&this[e](n),this.fcEvent.emit({eventName:e,param:n})},n.prototype.query=function(){var e=this,n={};this.data.condition&&this.data.condition.length>2&&(n.WHERE=this.data.condition),n.PAGESIZE=this.data.pageSize,n.PAGENUM=this.data.pageNum,n.ORDER=this.data.orderBy||this.data.order||"",this.data.condition=n,this.data.enableAutoSearch&&this.pushDestroy(t.ParentBusiness.appService.findWithQuery(this.data.appId,n).subscribe((function(n){"0"===n.CODE&&(e.data.pageList=n.DATA,e.data.pageTotal=n.TOTALSIZE)})))},n.prototype.reset=function(e){var n=this;this.data.searchObj&&Object.keys(this.data.searchObj).length>0&&Object.keys(this.data.searchObj).forEach((function(e){n.data.searchObj[e]=""})),this.search()},n.prototype.searchObjModelChange=function(e,n){if(e){var t={};t[e]=n||"",this.search({eventName:"search",param:t})}else this.search()},n.prototype.search=function(e){var n=this;e&&(this.data.searchObj=Object.assign(this.data.searchObj,e.param));var t={};"object"==typeof this.data.searchObj&&Object.keys(this.data.searchObj).forEach((function(e){n.data.searchObj[e]&&""!==n.data.searchObj[e]&&(n.data.searchObj[e]instanceof Array?t[e]={between:n.data.searchObj[e]}:t[e]={like:"%"+n.data.searchObj[e]+"%"})}));var i=Object.assign(this.getDefaultQuery(),t);this.data.condition=JSON.stringify(i),this.query()},n.prototype.getDefaultQuery=function(){return{}},n.prototype.pageQuery=function(e){switch(e.eventName){case"pageSizeChange":this.data.pageSize=e.param,this.data.pageNum=1;break;case"jumpPage":this.data.pageNum=e.param}this.query()},n.prototype.searchlistEvent=function(e){switch(e.eventName){case"search":this.search();break;default:this.event(e.eventName,e.param)}},n.prototype.listdataEvent=function(e){switch(e.eventName){case"listOneEdit":this.listOneEdit(e);break;case"listOneDelete":this.listOneDelete(e);break;case"cellClick":this.cellClick(e);break;case"rowClick":break;case"selected":this.onSelect(e);break;case"modify":this.onModify(e);break;case"pageSizeChange":this.pageSizeChange(e);break;case"jumpPage":this.jumpPage(e);break;default:this.event(e.eventName,e.param)}},n.prototype.cellClick=function(e){e.param.field.INPUTTYPE&&e.param.field.INPUTTYPE},n.prototype.pageSizeChange=function(e){this.data.pageSize=e.param,this.data.enableAutoSearch&&this.query()},n.prototype.jumpPage=function(e){this.data.pageNum=e.param,this.data.enableAutoSearch&&this.query()},n.prototype.onSelect=function(e){this.data.selectedObjects=e.param,this.data.selectedObjects.length>0&&(this.data.selectedObject=this.data.selectedObjects[0])},n.prototype.onModify=function(e){this.data.modifyObjs.push(e.param)},n.prototype.listAdd=function(e){},n.prototype.listEdit=function(e){this.data.selectedObjects&&1===this.data.selectedObjects.length?this.beforeEdit():t.ParentBusiness.msgService.warm("请选择一条记录！")},n.prototype.listOneEdit=function(e){this.beforeEdit()},n.prototype.beforeEdit=function(){return!0},n.prototype.listOneDelete=function(e){var n=this;t.CommonService.event(m.fcmodal.confirm,{title:"确认删除记录吗？",okFunc:function(){var i=e.param;n.beforeDelete(i)&&n.pushDestroy(t.ParentBusiness.appService.deleteObject(n.data.mainApp.APPID,i.ID).subscribe((function(e){"0"===e.CODE?(n.afterDelete(),t.ParentBusiness.msgService.message("删除成功！"),n.search()):t.ParentBusiness.msgService.message("删除失败！")})))},cancelFunc:function(){}})},n.prototype.beforeDelete=function(e){return!0},n.prototype.afterDelete=function(){},n.prototype.listDelete=function(e){var n=this;if(0!==this.data.selectedObjects.length){var i=!0;if(this.data.selectedObjects.forEach((function(e){n.beforeDelete(e)||(i=!1)})),i){var o=[];this.data.selectedObjects.forEach((function(e){o.push({ID:e.ID})})),t.CommonService.event(m.fcmodal.confirm,{title:"确认删除记录吗？",okFunc:function(){n.pushDestroy(t.ParentBusiness.appService.deleteObjects(n.data.mainApp.APPID,o).subscribe((function(e){"0"===e.CODE?(n.afterDelete(),n.data.selectedObjects.forEach((function(e){})),t.ParentBusiness.msgService.message("删除成功！")):t.ParentBusiness.msgService.message("删除失败！")})))},cancelFunc:function(){}})}}else t.ParentBusiness.msgService.warm("请选择至少一条记录！")},n.prototype.listHelp=function(e){},n.prototype.import=function(e){},n.prototype.export=function(e){var n,i=this.data.selectedObjects;i&&i.length>0&&(n="AND ID in (",i.forEach((function(e){n+="'"+e.ID+"',"})),n+="'')"),void 0===n?window.open(t.FCCONFIG.apiurl+this.data.mId+"/SYSRESLIB/EXPORTEXCEL"):window.open(t.FCCONFIG.apiurl+this.data.mId+"/SYSRESLIB/EXPORTEXCEL?WHERE="+encodeURIComponent(n))},n.prototype.tlblistEvent=function(e){switch(e.eventName){case"listAdd":this.listAdd(e);break;case"listDelete":this.listDelete(e);break;case"listEdit":this.listEdit(e);break;case"listHelp":this.listHelp(e.eventName);break;case"importexcel":this.import(e.eventName);break;case"exportexcel":this.export(e.eventName);break;default:this.event(e.eventName,e)}},n}(Fn);var Rn=function(e){function n(n,t,i,o){return e.call(this,n,t,i,o)||this}return h(n,e),n.prototype.initChildData=function(){return{selectedIndex:0,hasNext:!1,hasPrev:!1,mainObj:{},mainObjs:t.CacheService.getS(this.appId+"DATA")||[],getMainObjWay:Pn.cache,objStatus:t.ObjStatus.ADDED}},n.prototype.ngOnInit=function(){this.init()},n.prototype.addNew=function(e){return!0},n.prototype.event=function(e,n){this.EVENT[e]?t.SystemBusiness.store.dispatch(this.EVENT[e].func(n)):this[e]&&this[e](n),this.fcEvent.emit({eventName:e,param:n})},n.prototype.beforeSave=function(){return!0},n.prototype.afterSave=function(){},n.prototype.checkHasOne=function(){this.data.mainObjs[this.data.selectedIndex+1]&&(this.data.hasNext=!0),this.data.mainObjs[this.data.selectedIndex-1]&&(this.data.hasPrev=!0)},n.prototype.prev=function(){-1!==this.data.selectedIndex&&this.data.mainObjs&&this.data.mainObjs.length>0&&(this.data.selectedIndex--,this.checkHasOne(),this.data.mainObj=this.data.mainObjs[this.data.selectedIndex])},n.prototype.next=function(){-1!==this.data.selectedIndex&&this.data.mainObjs&&this.data.mainObjs.length>0&&(this.data.selectedIndex++,this.data.mainObj=this.data.mainObjs[this.data.selectedIndex],this.checkHasOne())},n.prototype.saveNew=function(e){xn.saveNew(this.data.mainApp,this.data.mainObj,this.data.mainValid,this.data.mainFormFields,this.beforeSave,this.afterSave,this)},n.prototype.cardSaveCopy=function(e){xn.cardSaveCopy(this.data.mainApp,this.data.mainObj,this.data.mainValid,this.data.mainFormFields,this.beforeSave,this.afterSave,this)},n.prototype.cardSave=function(e){xn.cardSave(this.data.mainApp,this.data.mainObj,this.data.mainValid,this.data.mainFormFields,this.beforeSave,this.afterSave,this)},n.prototype.cardSaveBack=function(e){xn.cardSaveBack(this.data.mainApp,this.data.mainObj,this.data.mainValid,this.data.mainFormFields,this.beforeSave,this.afterSave,this.cardBack,this)},n.prototype.cardBack=function(e){},n.prototype.tlbformEvent=function(e){this.adformEvent(e)},n.prototype.adformEvent=function(e){switch(e.eventName){case"cardSave":this.cardSave(e.eventName);break;case"cardAdd":this.addNew(this.data.mainObj);break;case"cardSaveNew":this.saveNew(e.eventName);break;case"cardSaveBack":this.cardSaveBack(e.eventName);break;case"cardSaveCopy":this.cardSaveCopy(e.eventName);break;case"cardBack":this.cardBack(e.eventName);break;default:this.event(e.eventName,e)}},n}(Fn);var Yn=[Ce,cn,Se,Xe,rn,tn,bn,In,Ze,_n],Bn=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:Yn,exports:Yn,schemas:[n.CUSTOM_ELEMENTS_SCHEMA]}]}],e}();e.BTNPOSITION=E,e.BTNSHAPE={circle:"primary"},e.BTNTYPE=x,e.FCDATEMODE=M,e.FCSIZE=C,e.FCTEXTTYPE=Q,e.FORMACTION=Ue,e.FORMLAYOUT=je,e.FcComponent=y,e.FcEvent=m,e.FcadModule=cn,e.FcadcarouselComponent=on,e.FcaddetailComponent=Ie,e.FcadformComponent=He,e.FcadprintComponent=an,e.FcanyBusiness=I,e.FcanyComponent=z,e.FcavatarComponent=O,e.FcbacktopComponent=D,e.FcbadgeComponent=re,e.FcbasicModule=Se,e.FcbuttonComponent=_,e.FccalendarComponent=w,e.FccarouselComponent=A,e.FccascaderComponent=pe,e.FcchartModule=_n,e.FcchartbarComponent=zn,e.FcchartlineComponent=Dn,e.FcchartpieComponent=On,e.FccheckComponent=P,e.FcchosenBusiness=T,e.FcchosenComponent=L,e.FccomboBusiness=k,e.FccomboComponent=N,e.FccomponentModule=Bn,e.FcdateComponent=F,e.FcdatetimeComponent=V,e.Fcdetail=Rn,e.FcdividerComponent=Y,e.FcdoubleComponent=B,e.FceditBusiness=xn,e.FcfastpositionComponent=H,e.Fcgrand=Fn,e.FciconComponent=U,e.FcinputComponent=S,e.FclabelComponent=me,e.FclayoutModule=Xe,e.FclayoutcolComponent=$e,e.FclayoutgroupComponent=Ge,e.FclayoutpanelComponent=qe,e.FclayoutrowComponent=We,e.FclineComponent=ve,e.FclinkComponent=ge,e.Fclist=Vn,e.FclistComponent=de,e.FclistModule=rn,e.FclistdataBusiness=Ne,e.FclistdataComponent=ln,e.FclistmodalComponent=sn,e.FclongComponent=j,e.FcmanyBusiness=se,e.FcmanyComponent=le,e.FcmodalBusiness=En,e.FcmodalModule=tn,e.FcmodalcardComponent=Je,e.FcmodalinputComponent=nn,e.FcmodallistComponent=Be,e.FcmodallistsearchComponent=en,e.FcnavModule=bn,e.FcnavbarComponent=dn,e.FcnavmenuComponent=un,e.FcnavsideComponent=hn,e.FcnavtabBusiness=wn,e.FcnavtabComponent=gn,e.FcnavtabcontentDirective=vn,e.Fcomponent=b,e.FcpaginationComponent=be,e.FcpopoverComponent=$,e.FcprogressModule=In,e.FcprogressbarComponent=yn,e.FcprogresscircleComponent=Cn,e.FcprogresspercentComponent=Sn,e.FcradioComponent=G,e.FcrateComponent=W,e.FcshareModule=Ce,e.FcswitchComponent=q,e.FctableComponent=ae,e.FctagComponent=ue,e.FctextComponent=K,e.FctextareaComponent=X,e.FctimeComponent=R,e.FctimelineComponent=Z,e.FctitleComponent=ee,e.FctlbModule=Ze,e.FctlbformComponent=ze,e.FctlblistComponent=Ke,e.FctlblistitemComponent=_e,e.FctooltipComponent=fe,e.FctreeBusiness=ie,e.FctreeComponent=oe,e.FctreeselectComponent=ye,e.FcuploadComponent=ce,e.GRIDOPSLOCALE=Me,e.GetMainObjWay=Pn,e.GrandComponent=An,e.ParentDetailComponent=Tn,e.ParentEditComponent=kn,e.ParentlistComponent=Ln,e.SEARCHACTION=Ve,e.SEARCHLAYOUT=Re,e.TAGMODE=he,e.TimelineColor=J,e.TitleBorder=te,e.TitleLayout=ne,e.ToolbarFormAction=De,e.ToolbarFormLayout=Oe,e.ToolbarListAction={NEXT:"next  ",PREV:"prev",LISTADD:"listAdd",LISTDETELE:"listDelete",LISTHELP:"listHelp",EXPORT:"export",IMPORT:"import"},e.ToolbarListLayout=Qe,e.ToolbarListitemAction={NEXT:"next",PREV:"prev",LISTEDIT:"listOneEdit",LISTONEDETELE:"listOneDelete",LISTONEVIEW:"listOneView"},e.ToolbarListitemLayout=xe,e.cellRenderer=Fe,e.fclistOption=Ee,e.fcnavbarFindMenusByToken=fn,e.fcnavbarInvisible=function(e){t.CommonService.event(m.fcnavbar.fcnavbarInvisible,e)},e.fcnavbarVisible=function(e){t.CommonService.event(m.fcnavbar.fcnavbarVisible,e)},e.fcnavbarsetMenushoworhide=pn,e.findWithQuery=function(e,n,i,o,a,c){var s=g({},e,n,{PAGENUM:i});return c&&(c.fcPagination&&c.fcPaginationPageSize?s.PAGESIZE=c.fcPaginationPageSize:a&&(s.PAGESIZE=a.PSIZE)),a&&(s.AID=a.APPID),t.ParentBusiness.daoService.getFromApi(o,s)},e.getAction=Te,e.getCheckbox=Ae,e.getFieldsConfByApp=ke,e.getFieldsConfByAppid=we,e.getRownum=Pe,e.processData=function(e,n,i,o){var a=this;i.forEach((function(i,o){i.ROWNUM=o+1,!0===a.fcOption.fcPagination&&(i.ROWNUM=Number(a.pageNum)*a.pageSize-a.pageSize+o+1),i.DOACTION={providers:e.provider,appId:a.fcAppid,parentComponent:e},n&&n.forEach((function(e){var n=t.ParentBusiness.appService.getDicdescByFieldCode(e,i[e.FIELDCODE]);n&&Object.assign(i,n)}))})),this.data=i,this._gridApi&&this._selectIds.length>0&&Le(this._gridApi,this._selectIds,this.fcSelectedFieldName),this.pageTotal=o},e.selectRowById=Le,e.ɵa=Ye,e.ɵb=mn,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=fccomponent2.umd.min.js.map