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AK3D,CAEIC,uCACL,OAAOxJ,KAAKqJ,mCAAmCI,oBAC7C,GAAGzJ,KAAKqB,qBAAqBqI,uCAC7B,qCAEJ,WAbWP,0CAAiC/F,MAAAC,KAAAD,MAAAE,OAAA,4BAAjC6F,EAAiC5F,QAAjC4F,EAAiC3F,YAAjC2F,CAAiC,qOCkBvC,IAAMQ,EAA4B,UAAAC,EAAnC,MAAOD,qDAA4B,yBAA5BA,iCARA,CACTE,IACA,CAACC,QAASC,IAA2BC,SAAU9I,KAC/C,CAAC4I,QAASG,IAAsBD,SAAUvG,KAC1C,CAACqG,QAASI,IAAgCF,SAAUb,MACrDgB,QAAA,CANSC,IAA+BC,IAAyBC,MAAkCC,OASzFZ,CAA4B,WAFxBa,IAA2C,kBAAAlH,IAAA","names":["getColoredYarnSetPaths","productionSchedulePathsOfColoredYarnSets","reedDensityInDentsPerMeter","map","productionSchedulePathsOfColoredYarnSet","coloredYarnSet","productionScheduleColoredYarnSet","result","toJSON","technicalWidthInDents","commercialWidthInMM","convertCommercialUnit","from","unit","Unit","METER","value","convertDentsToWidthInMeter","to","MILLIMETER","OverviewListProductionOrderWeaving","constructor","id","name","status","weaveProduct","machine","plannedLength","dateCreated","dueDate","actualStartDate","actualEndDate","this","_id","_name","_status","_weaveProduct","_machine","_plannedLength","_dateCreated","_dueDate","_actualStartDate","_actualEndDate","fromJSON","overviewListWeaveProductionOrderJSON","OverviewListWeaveProduct","OverviewListWeavingMachine","Date","canDuplicate","getReasonForPreventingDuplicate","HttpProductionOrdersWeavingService","_HttpProductionOrdersWeavingService","httpClient","backendConfiguration","getAll","get","getProductionOrderEndpoint","pipe","weaveProductionOrdersJSON","weaveProductionOrderJSON","getById","productionOrderWeavingJSON","ProductionOrderWeaving","save","item","post","response","saveAndPlan","runId","getAggregatorEndpoint","update","put","updateAndPlan","delete","checkCompatibilityWithMachine","productionOrderLiteId","machineId","getListOfCustomSettings","hasAlreadyAdjustedCustomSettings","alreadyAdjustedCustomSettings","saveCustomSettings","chosenSettings","getNameGenerationProperties","generateName","i0","i1","i2","factory","ɵfac","HttpProductionSchedulesService","_HttpProductionSchedulesService","isIdentifierAvailable","params","HttpParams","set","rxjsMap","productionScheduleNameAvailable","createProductionSchedule","machineSummary","machineQuality","practicalPickDensityInPicksPerMM","coloredYarnSets","creel","mappingForCurrentPositionOnMachine","productConfiguration","isSample","canAddJute","hmiVersion","addToPlanboard","preselectionId","getProductionScheduleEndpoint","productionScheduleJSON","ProductionSchedule","decreateProductionOrder","decreatedProductionOrder","switchMap","saveDesignsAndOrderLines","designs","orderLines","of","productionSchedule","updateWithMachineQualityChanged","isMachineQualityChanged","query","getConflicts","conflictsJSON","conflictJSON","Conflict","setProductionSchedulePlan","productionScheduleId","patch","coloredYarnSetPaths","productionSchedulePlanJSON","verifyProductionSchedule","manualSave","productionSchedulePhase","cancelTemporarySavedChanges","checkVerifyProductionSchedule","type","startDent","coloredYarnSetPathNr","completeAndPlan","completeAndQueue","process","designIds","drawing","orderLineIds","orderLine","getEndpoint","savePreselectionList","orderLinesIds","gridModel","configurationIds","filter","updatePreselectionList","getDesignsAndOrderLines","ProductionScheduleStatus","designJSON","isEqual","DrawingType","drawingType","BMP","BmpDrawing","EP","EpDrawing","orderLineJSON","ProductionScheduleOrderLine","getPreselectionListById","orderlinesIds","checkPossibleConflictsWithOrderLines","getDuplicatedProductionOrder","productionscheduleJSON","duplicateProductionOrder","productionOrderToDuplicate","tap","productionOrderJSON","getGeneratedProductionOrderName","qualityId","creelId","SignalrProductionOrderLiteService","_SignalrProductionOrderLiteService","signalrHubConnectionFactoryService","productionOrderLiteStatusChangeSubject","Subject","getProductionOrdersLiteStatusChanges","getSignalrHubEvents","getProcessingHubEndPoint","ProductionOrderWeavingModule","_ProductionOrderWeavingModule","UnsavedChangesNotifierService","provide","PRODUCTION_ORDERS_WEAVING","useClass","PRODUCTION_SCHEDULES","REALTIME_PRODUCTION_ORDER_LITE","imports","productionOrderWeavingRouting","TextileDataSharedModule","CanShowErrorForFormControlModule","SharedModule","ProductionOrderWeavingOverviewPageComponent"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./apps/texconnect/src/app/infrastructure/http/helper/get-colored-yarn-sets-path.ts","./apps/texconnect/src/app/presentation/pages/texfab/production-order-lite/overview/overview-list-production-order-weaving.ts","./apps/texconnect/src/app/infrastructure/http/production-order-weaving/http-production-orders-weaving.service.ts","./apps/texconnect/src/app/infrastructure/http/production-schedule/http-production-schedules.service.ts","./apps/texconnect/src/app/infrastructure/signalr/production-order-lite/signalr-production-order-lite.service.ts","./apps/texconnect/src/app/presentation/pages/texfab/production-order-lite/production-order-weaving.module.ts"],"sourcesContent":["import {ProductionSchedulePathsOfColoredYarnSet} from '@domain/production-schedule/production-schedule-paths-of-colored-yarn-set';\nimport {OverviewListColoredYarnSetWithStartDent} from '@domain/textile-data/creel/overview-list-colored-yarn-set-with-start-dent';\nimport {convertCommercialUnit, convertDentsToWidthInMeter, Unit} from '@vdw/angular-component-library';\nimport {map} from 'lodash-es';\n\nexport function getColoredYarnSetPaths(productionSchedulePathsOfColoredYarnSets: ProductionSchedulePathsOfColoredYarnSet[], reedDensityInDentsPerMeter: number): any {\n return map(productionSchedulePathsOfColoredYarnSets, (productionSchedulePathsOfColoredYarnSet: ProductionSchedulePathsOfColoredYarnSet) => {\n const coloredYarnSet: OverviewListColoredYarnSetWithStartDent = productionSchedulePathsOfColoredYarnSet.productionScheduleColoredYarnSet;\n const result: any = productionSchedulePathsOfColoredYarnSet.toJSON();\n\n result.technicalWidthInDents = coloredYarnSet.technicalWidthInDents;\n result.commercialWidthInMM = convertCommercialUnit({\n from: {unit: Unit.METER, value: convertDentsToWidthInMeter(coloredYarnSet.technicalWidthInDents, reedDensityInDentsPerMeter)},\n to: Unit.MILLIMETER\n });\n\n return result;\n });\n}\n","import {ProductionScheduleStatus} from '@domain/production-schedule/production-schedule-status.enum';\nimport {OverviewListWeaveProduct} from '@presentation/pages/textile-data/weave-product/overview/overview-list-weave-product';\nimport {OverviewListWeavingMachine} from './overview-list-weaving-machine';\n\nexport class OverviewListProductionOrderWeaving {\n private _id: number;\n private _name: string;\n private _status: ProductionScheduleStatus;\n private _weaveProduct: OverviewListWeaveProduct;\n private _machine: OverviewListWeavingMachine;\n private _plannedLength: number;\n private _dateCreated: Date;\n private _dueDate: Date;\n private _actualStartDate: Date;\n private _actualEndDate: Date;\n\n public constructor(\n id: number,\n name: string,\n status: ProductionScheduleStatus,\n weaveProduct: OverviewListWeaveProduct,\n machine: OverviewListWeavingMachine,\n plannedLength: number,\n dateCreated: Date,\n dueDate: Date,\n actualStartDate: Date,\n actualEndDate: Date\n ) {\n this._id = id;\n this._name = name;\n this._status = status;\n this._weaveProduct = weaveProduct;\n this._machine = machine;\n this._plannedLength = plannedLength;\n this._dateCreated = dateCreated;\n this._dueDate = dueDate;\n this._actualStartDate = actualStartDate;\n this._actualEndDate = actualEndDate;\n }\n\n public get id(): number {\n return this._id;\n }\n\n public get name(): string {\n return this._name;\n }\n\n public get status(): ProductionScheduleStatus {\n return this._status;\n }\n\n public set status(value: ProductionScheduleStatus) {\n this._status = value;\n }\n\n public get weaveProduct(): OverviewListWeaveProduct {\n return this._weaveProduct;\n }\n\n public get machine(): {id: number; name: string} {\n return this._machine;\n }\n\n public get plannedLength(): number {\n return this._plannedLength;\n }\n\n public get dateCreated(): Date {\n return this._dateCreated;\n }\n\n public get dueDate(): Date {\n return this._dueDate;\n }\n\n public get actualStartDate(): Date {\n return this._actualStartDate;\n }\n\n public get actualEndDate(): Date {\n return this._actualEndDate;\n }\n\n public static fromJSON(overviewListWeaveProductionOrderJSON: any): OverviewListProductionOrderWeaving {\n return new OverviewListProductionOrderWeaving(\n overviewListWeaveProductionOrderJSON.id,\n overviewListWeaveProductionOrderJSON.name,\n overviewListWeaveProductionOrderJSON.status,\n OverviewListWeaveProduct.fromJSON(overviewListWeaveProductionOrderJSON.weaveProduct),\n overviewListWeaveProductionOrderJSON.machine ? OverviewListWeavingMachine.fromJSON(overviewListWeaveProductionOrderJSON.machine) : null,\n overviewListWeaveProductionOrderJSON.plannedLength,\n new Date(overviewListWeaveProductionOrderJSON.dateCreated),\n overviewListWeaveProductionOrderJSON.dueDate ? new Date(overviewListWeaveProductionOrderJSON.dueDate) : null,\n overviewListWeaveProductionOrderJSON.actualStartDate ? new Date(overviewListWeaveProductionOrderJSON.actualStartDate) : null,\n overviewListWeaveProductionOrderJSON.actualEndDate ? new Date(overviewListWeaveProductionOrderJSON.actualEndDate) : null\n );\n }\n\n public canDuplicate(): boolean {\n return true;\n }\n\n public getReasonForPreventingDuplicate(): string {\n return '';\n }\n}\n","import {HttpClient} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {BackendConfiguration} from '@application/configuration/backend-configuration';\nimport {ProductionOrderWeaving} from '@domain/production-order-lite/production-order-weaving/production-order-weaving';\nimport {PropertyValue} from '@domain/property-value';\nimport {OverviewListProductionOrderWeaving} from '@presentation/pages/texfab/production-order-lite/overview/overview-list-production-order-weaving';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {ProductionOrdersWeaving} from './production-orders-weaving';\n\n@Injectable()\nexport class HttpProductionOrdersWeavingService implements ProductionOrdersWeaving {\n private httpClient: HttpClient;\n private backendConfiguration: BackendConfiguration;\n\n public constructor(httpClient: HttpClient, backendConfiguration: BackendConfiguration) {\n this.httpClient = httpClient;\n this.backendConfiguration = backendConfiguration;\n }\n\n public getAll(): Observable {\n return this.httpClient\n .get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving`)\n .pipe(map((weaveProductionOrdersJSON: any) => weaveProductionOrdersJSON.map((weaveProductionOrderJSON: any) => OverviewListProductionOrderWeaving.fromJSON(weaveProductionOrderJSON))));\n }\n\n public getById(id: number): Observable {\n return this.httpClient\n .get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/${id}`)\n .pipe(map((productionOrderWeavingJSON: any) => ProductionOrderWeaving.fromJSON(productionOrderWeavingJSON)));\n }\n\n public save(item: ProductionOrderWeaving): Observable {\n return this.httpClient.post(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving`, item.toJSON()).pipe(map((response: {id: number}) => response.id));\n }\n\n public saveAndPlan(item: ProductionOrderWeaving, runId: number): Observable {\n return this.httpClient\n .post(`${this.backendConfiguration.getAggregatorEndpoint()}productionorders/lite/save-and-plan`, {...item.toJSON(), runId})\n .pipe(map((response: {id: number}) => response.id));\n }\n\n public update(item: ProductionOrderWeaving): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/${item.id}`, item.toJSON());\n }\n\n public updateAndPlan(item: ProductionOrderWeaving, runId: number): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getAggregatorEndpoint()}productionorders/lite/${item.id}/save-and-plan`, {...item.toJSON(), runId});\n }\n\n public delete(id: number): Observable {\n return this.httpClient.delete(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/${id}`);\n }\n\n public checkCompatibilityWithMachine(productionOrderLiteId: number, machineId: number): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getAggregatorEndpoint()}productionorders/lite/${productionOrderLiteId}/is-compatible-machine/${machineId}`);\n }\n\n public getListOfCustomSettings(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/custom-settings`);\n }\n\n public hasAlreadyAdjustedCustomSettings(): Observable {\n return this.httpClient\n .get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/custom-settings/already-adjusted`)\n .pipe(map((response: {alreadyAdjustedCustomSettings: boolean}) => response.alreadyAdjustedCustomSettings));\n }\n\n public saveCustomSettings(chosenSettings: PropertyValue[]): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/custom-settings`, chosenSettings);\n }\n\n public getNameGenerationProperties(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/custom-settings/name-generation-properties`);\n }\n\n public generateName(item: ProductionOrderWeaving): Observable {\n return this.httpClient.post(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/weaving/custom-settings/generate-name`, item.toJSON());\n }\n}\n","import {HttpClient, HttpParams} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {BackendConfiguration} from '@application/configuration/backend-configuration';\nimport {BmpDrawing} from '@domain/production-schedule/bmp-drawing';\nimport {CreelForProductionSchedule} from '@domain/production-schedule/creel-for-production-schedule';\nimport {Drawing} from '@domain/production-schedule/drawing';\nimport {DrawingType} from '@domain/production-schedule/drawing-type.enum';\nimport {EpDrawing} from '@domain/production-schedule/ep-drawing';\nimport {MachineQualityForProductionSchedule} from '@domain/production-schedule/machine-quality-for-production-schedule';\nimport {MachineSummary} from '@domain/production-schedule/machine-summary';\nimport {ProductionSchedule} from '@domain/production-schedule/production-schedule';\nimport {ProductionScheduleOrderLine} from '@domain/production-schedule/production-schedule-order-line';\nimport {ProductionSchedulePathsOfColoredYarnSet} from '@domain/production-schedule/production-schedule-paths-of-colored-yarn-set';\nimport {ProductionSchedulePhase} from '@domain/production-schedule/production-schedule-phase.enum';\nimport {ProductionScheduleProductConfiguration} from '@domain/production-schedule/production-schedule-product-configuration';\nimport {ProductionScheduleStatus} from '@domain/production-schedule/production-schedule-status.enum';\nimport {CreelMap} from '@domain/textile-data/creel/creel-map';\nimport {OverviewListColoredYarnSetWithStartDent} from '@domain/textile-data/creel/overview-list-colored-yarn-set-with-start-dent';\nimport {ZoneType} from '@domain/zone-type.enum';\nimport {ProductionSchedules} from '@infrastructure/http/production-schedule/production-schedules';\nimport {ParametersForPreselection} from '@presentation/pages/texfab/production-schedule/add/plan/parameters-for-preselection';\nimport {ConflictedOrderLine} from '@presentation/pages/texfab/production-schedule/confirm/conflicted-order-line';\nimport {Conflict, GridModel} from '@vdw/angular-component-library';\nimport {isEqual, map} from 'lodash-es';\nimport {Observable, of} from 'rxjs';\nimport {map as rxjsMap, switchMap, tap} from 'rxjs/operators';\nimport {getColoredYarnSetPaths} from '../helper/get-colored-yarn-sets-path';\n\n@Injectable()\nexport class HttpProductionSchedulesService implements ProductionSchedules {\n private httpClient: HttpClient;\n private backendConfiguration: BackendConfiguration;\n\n public constructor(httpClient: HttpClient, backendConfiguration: BackendConfiguration) {\n this.httpClient = httpClient;\n this.backendConfiguration = backendConfiguration;\n }\n\n public isIdentifierAvailable(name: string): Observable {\n const params = new HttpParams().set('name', name);\n\n return this.httpClient.get(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/check-name`, {params}).pipe(\n rxjsMap((response: {productionScheduleNameAvailable: boolean}) => {\n return response.productionScheduleNameAvailable;\n })\n );\n }\n\n public createProductionSchedule(\n machineSummary: MachineSummary,\n machineQuality: MachineQualityForProductionSchedule,\n practicalPickDensityInPicksPerMM: number,\n coloredYarnSets: OverviewListColoredYarnSetWithStartDent[],\n creel: CreelForProductionSchedule,\n runId: number,\n mappingForCurrentPositionOnMachine: CreelMap[],\n productConfiguration: ProductionScheduleProductConfiguration,\n isSample: boolean,\n canAddJute: boolean,\n hmiVersion: string,\n addToPlanboard: boolean,\n preselectionId: number\n ): Observable {\n return this.httpClient\n .post(`${this.backendConfiguration.getProductionScheduleEndpoint(2)}productionschedules/initial-create`, {\n machine: machineSummary.toJSON(),\n machineQuality: machineQuality.toJSON(),\n practicalPickDensityInPicksPerMM,\n coloredYarnSets: map(coloredYarnSets, (productionScheduleColoredYarnSet: OverviewListColoredYarnSetWithStartDent) => productionScheduleColoredYarnSet.toJSON()),\n creel: creel.toJSON(),\n runId,\n mappingForCurrentPositionOnMachine,\n productConfiguration: productConfiguration?.toJSON(),\n isSample,\n canAddJute,\n hmiVersion,\n addToPlanboard,\n preselectionId\n })\n .pipe(rxjsMap((productionScheduleJSON: any) => ProductionSchedule.fromJSON(productionScheduleJSON)));\n }\n\n public decreateProductionOrder(decreatedProductionOrder: ProductionSchedule): Observable {\n return this.httpClient\n .post(`${this.backendConfiguration.getProductionScheduleEndpoint(2)}productionschedules/initial-create`, decreatedProductionOrder.toJSON(true))\n .pipe(switchMap(() => this.saveDesignsAndOrderLines(decreatedProductionOrder.id, decreatedProductionOrder.designs, decreatedProductionOrder.orderLines, decreatedProductionOrder.name)));\n }\n\n public delete(id: number | string): Observable {\n return this.httpClient.delete(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${id}`);\n }\n\n public getAll(): Observable {\n return of([]);\n }\n\n public getById(id: number | string): Observable {\n return this.httpClient\n .get(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${id}`)\n .pipe(rxjsMap((productionScheduleJSON: any) => ProductionSchedule.fromJSON(productionScheduleJSON)));\n }\n\n public save(productionSchedule: ProductionSchedule): Observable {\n return of();\n }\n\n public update(productionSchedule: ProductionSchedule): Observable {\n return of();\n }\n\n public updateWithMachineQualityChanged(productionSchedule: ProductionSchedule, isMachineQualityChanged: boolean = false): Observable {\n const query = isMachineQualityChanged ? '?updatePaths=true' : '';\n\n return this.httpClient.put(\n `${this.backendConfiguration.getProductionScheduleEndpoint()}productionschedules/${productionSchedule.id}${query}`,\n productionSchedule.toJSON(false, isMachineQualityChanged)\n );\n }\n\n public getConflicts(id: number): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${id}/conflicts`).pipe(\n rxjsMap((conflictsJSON: any) => {\n return map(conflictsJSON, (conflictJSON: any) => {\n return Conflict.fromJSON(conflictJSON);\n });\n })\n );\n }\n\n public setProductionSchedulePlan(\n productionScheduleId: string,\n productionSchedulePathsOfColoredYarnSets: ProductionSchedulePathsOfColoredYarnSet[],\n reedDensityInDentsPerMeter: number\n ): Observable {\n return this.httpClient\n .patch(`${this.backendConfiguration.getProductionScheduleEndpoint()}productionschedules/${productionScheduleId}`, {\n coloredYarnSetPaths: getColoredYarnSetPaths(productionSchedulePathsOfColoredYarnSets, reedDensityInDentsPerMeter)\n })\n .pipe(rxjsMap((productionSchedulePlanJSON: any) => ProductionSchedule.fromJSON(productionSchedulePlanJSON)));\n }\n\n public verifyProductionSchedule(id: string, manualSave: boolean = false, productionSchedulePhase: ProductionSchedulePhase = null): Observable {\n const query = manualSave ? `?manualSave=true&step=${productionSchedulePhase}` : `?manualSave=false&step=${productionSchedulePhase}`;\n\n return this.httpClient\n .get(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${id}/verify${query}`)\n .pipe(rxjsMap((productionSchedulePlanJSON: any) => ProductionSchedule.fromJSON(productionSchedulePlanJSON)));\n }\n\n public cancelTemporarySavedChanges(id: string): Observable {\n return this.httpClient.delete(`${this.backendConfiguration.getProductionOrderEndpoint()}productionschedules/${id}`);\n }\n\n public checkVerifyProductionSchedule(productionScheduleId: string, type: ZoneType, startDent: number, value: number, coloredYarnSetPathNr: number): Observable {\n return this.httpClient\n .post(`${this.backendConfiguration.getProductionScheduleEndpoint()}productionschedules/${productionScheduleId}/verify/check`, {\n type,\n startDent,\n value,\n coloredYarnSetPathNr\n })\n .pipe(rxjsMap((productionSchedulePlanJSON: any) => ProductionSchedule.fromJSON(productionSchedulePlanJSON)));\n }\n\n public completeAndPlan(productionSchedule: ProductionSchedule): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${productionSchedule.id}/complete-and-plan`, productionSchedule.toJSON(true));\n }\n\n public completeAndQueue(productionSchedule: ProductionSchedule): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${productionSchedule.id}/complete-and-queue`, productionSchedule.toJSON(true));\n }\n\n public process(productionSchedule: ProductionSchedule): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${productionSchedule.id}/complete`, productionSchedule.toJSON(true));\n }\n\n public saveDesignsAndOrderLines(id: number | string, designs: Drawing[], orderLines: ProductionScheduleOrderLine[], name: string): Observable {\n const designIds: number[] = designs.map((drawing: Drawing) => drawing.id);\n const orderLineIds: number[] = orderLines.map((orderLine: ProductionScheduleOrderLine) => orderLine.id);\n\n return this.httpClient.post(`${this.backendConfiguration.getEndpoint()}productionschedules/${id}/designs-and-order-lines`, {designIds, orderLineIds, name});\n }\n\n public savePreselectionList(id: number | string, designIds: number[], orderLinesIds: number[], gridModel: GridModel, configurationIds: number[] = []): Observable {\n return this.httpClient\n .post(`${this.backendConfiguration.getProductionOrderEndpoint()}preselections`, {id, designIds, orderLinesIds, configurationIds, filter: gridModel})\n .pipe(rxjsMap((response: any) => response));\n }\n\n public updatePreselectionList(id: number | string, designIds: number[], orderLinesIds: number[], gridModel: GridModel, configurationIds: number[] = []): Observable {\n return this.httpClient.put(`${this.backendConfiguration.getProductionOrderEndpoint()}preselections`, {id, designIds, orderLinesIds, configurationIds, filter: gridModel});\n }\n\n public getDesignsAndOrderLines(id: number | string, status: ProductionScheduleStatus): Observable<{designs: Drawing[]; orderLines: ProductionScheduleOrderLine[]}> {\n return this.httpClient.get(`${this.backendConfiguration.getEndpoint()}productionschedules/${id}/designs-and-order-lines?status=${ProductionScheduleStatus[status]}`).pipe(\n rxjsMap((response: any) => {\n return {\n designs: map(response.designs, (designJSON: any) => {\n let result: Drawing;\n\n if (isEqual(DrawingType[designJSON.drawingType], DrawingType.BMP)) {\n result = BmpDrawing.fromJSON(designJSON);\n } else if (isEqual(DrawingType[designJSON.drawingType], DrawingType.EP)) {\n result = EpDrawing.fromJSON(designJSON);\n }\n\n return result;\n }),\n orderLines: map(response.orderLines, (orderLineJSON: any) => ProductionScheduleOrderLine.fromJSON(orderLineJSON))\n };\n })\n );\n }\n\n public getPreselectionListById(id: number | string): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getProductionOrderEndpoint()}preselections/${id}`).pipe(\n rxjsMap((response: any) => {\n return {\n designIds: response.designIds,\n configurationIds: response.configurationIds,\n orderlinesIds: response.orderlinesIds,\n gridModel: response.filter\n } as ParametersForPreselection;\n })\n );\n }\n\n public checkPossibleConflictsWithOrderLines(id: string): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${id}/order-lines/amount-check`);\n }\n\n public getDuplicatedProductionOrder(id: number | string): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/${id}/duplicate`).pipe(\n rxjsMap((productionscheduleJSON: any) => {\n return ProductionSchedule.fromJSON(productionscheduleJSON);\n })\n );\n }\n\n public duplicateProductionOrder(productionOrderToDuplicate: ProductionSchedule): Observable {\n return this.httpClient.post(`${this.backendConfiguration.getProductionScheduleEndpoint(2)}productionschedules/initial-create`, productionOrderToDuplicate.toJSON(true)).pipe(\n tap((productionOrderJSON: any) => {\n productionOrderToDuplicate.id = productionOrderJSON.id;\n productionOrderToDuplicate.status = ProductionScheduleStatus[productionOrderJSON.status];\n }),\n switchMap(() => this.saveDesignsAndOrderLines(productionOrderToDuplicate.id, productionOrderToDuplicate.designs, productionOrderToDuplicate.orderLines, productionOrderToDuplicate.name)),\n rxjsMap(() => productionOrderToDuplicate)\n );\n }\n\n public getGeneratedProductionOrderName(machineId: number, qualityId: number, creelId: number): Observable {\n return this.httpClient\n .post(`${this.backendConfiguration.getAggregatorEndpoint()}productionschedules/generate-name?machineId=${machineId}&qualityId=${qualityId}&creelId=${creelId}`, null)\n .pipe(rxjsMap((response: string) => response));\n }\n}\n","import {Injectable} from '@angular/core';\nimport {BackendConfiguration} from '@application/configuration/backend-configuration';\nimport {SignalrHubConnectionFactoryService} from '@vdw/angular-component-library';\nimport {Observable, Subject} from 'rxjs';\nimport {ProductionOrderLiteStatusChange} from './production-order-lite-status-change';\nimport {RealtimeProductionOrderLite} from './realtime-production-order-lite';\n\n@Injectable()\nexport class SignalrProductionOrderLiteService implements RealtimeProductionOrderLite {\n private readonly productionOrderLiteStatusChangeSubject = new Subject();\n\n public constructor(\n private readonly backendConfiguration: BackendConfiguration,\n private readonly signalrHubConnectionFactoryService: SignalrHubConnectionFactoryService\n ) {}\n\n public getProductionOrdersLiteStatusChanges(): Observable {\n return this.signalrHubConnectionFactoryService.getSignalrHubEvents(\n `${this.backendConfiguration.getProcessingHubEndPoint()}processing`,\n 'OnProductionOrderLiteStatusChanged'\n );\n }\n}\n","import {NgModule} from '@angular/core';\nimport {UnsavedChangesNotifierService} from '@application/helper/unsaved-changes-notifier/unsaved-changes-notifier.service';\nimport {HttpProductionOrdersWeavingService} from '@infrastructure/http/production-order-weaving/http-production-orders-weaving.service';\nimport {PRODUCTION_ORDERS_WEAVING} from '@infrastructure/http/production-order-weaving/production-orders-weaving';\nimport {HttpProductionSchedulesService} from '@infrastructure/http/production-schedule/http-production-schedules.service';\nimport {PRODUCTION_SCHEDULES} from '@infrastructure/http/production-schedule/production-schedules';\nimport {REALTIME_PRODUCTION_ORDER_LITE} from '@infrastructure/signalr/production-order-lite/realtime-production-order-lite';\nimport {SignalrProductionOrderLiteService} from '@infrastructure/signalr/production-order-lite/signalr-production-order-lite.service';\nimport {TextileDataSharedModule} from '@presentation/pages/textile-data/textile-data-shared.module';\nimport {SharedModule} from '@shared/shared.module';\nimport {CanShowErrorForFormControlModule} from '@vdw/angular-component-library';\nimport {AddProductionOrderWeavingPageComponent} from './add/add-production-order-weaving-page.component';\nimport {ProductionOrderWeavingOverviewPageComponent} from './overview/production-order-weaving-overview-page.component';\nimport {productionOrderWeavingRouting} from './production-order-weaving.routing';\nimport {ProductionOrderWeavingSettingsComponent} from './settings/production-order-weaving-settings.component';\n\n@NgModule({\n imports: [productionOrderWeavingRouting, TextileDataSharedModule, CanShowErrorForFormControlModule, SharedModule],\n providers: [\n UnsavedChangesNotifierService,\n {provide: PRODUCTION_ORDERS_WEAVING, useClass: HttpProductionOrdersWeavingService},\n {provide: PRODUCTION_SCHEDULES, useClass: HttpProductionSchedulesService},\n {provide: REALTIME_PRODUCTION_ORDER_LITE, useClass: SignalrProductionOrderLiteService}\n ],\n declarations: [ProductionOrderWeavingOverviewPageComponent, AddProductionOrderWeavingPageComponent, ProductionOrderWeavingSettingsComponent]\n})\nexport class ProductionOrderWeavingModule {}\n"],"x_google_ignoreList":[]}