@hitsoft/uretim-yonetimi 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +44 -0
- package/config/ng-package.json +7 -0
- package/config/src/enums/route-names.ts +3 -0
- package/config/src/providers/create-barcode-route.provider.ts +21 -0
- package/config/src/providers/issues-for-production-route.provider.ts +21 -0
- package/config/src/providers/production-order-route.provider.ts +21 -0
- package/config/src/providers/receipt-from-production-route.provider.ts +21 -0
- package/config/src/providers/route.provider.ts +26 -0
- package/config/src/uretim-yonetimi-config.module.ts +22 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +14 -42
- package/src/lib/components/hit-create-barcodes/hit-create-barcodes-component.css +10 -0
- package/src/lib/components/hit-create-barcodes/hit-create-barcodes-routing.module.ts +19 -0
- package/src/lib/components/hit-create-barcodes/hit-create-barcodes.component.html +80 -0
- package/src/lib/components/hit-create-barcodes/hit-create-barcodes.component.ts +219 -0
- package/src/lib/components/hit-create-barcodes/hit-create-barcodes.module.ts +39 -0
- package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions-routing.module.ts +19 -0
- package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.componenet.css +7 -0
- package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.html +100 -0
- package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.ts +276 -0
- package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.module.ts +46 -0
- package/src/lib/components/hit-production-orders/hit-production-orders-routing.module.ts +19 -0
- package/src/lib/components/hit-production-orders/hit-production-orders.component.html +79 -0
- package/src/lib/components/hit-production-orders/hit-production-orders.component.ts +213 -0
- package/src/lib/components/hit-production-orders/hit-production-orders.module.ts +39 -0
- package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-production-component.css +10 -0
- package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-production-routing.module.ts +19 -0
- package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.html +106 -0
- package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.ts +259 -0
- package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.module.ts +38 -0
- package/src/lib/components/uretim-yonetimi.component.ts +9 -0
- package/src/lib/hit-proxy/devexpress-query-builder/devexpress-load-options.model.ts +20 -0
- package/src/lib/hit-proxy/devexpress-query-builder/devexpress-query-builder.ts +51 -0
- package/src/lib/hit-proxy/hit-create-barcodes/hit-create-barcodes.service.ts +41 -0
- package/src/lib/hit-proxy/hit-create-barcodes/models.ts +6 -0
- package/src/lib/hit-proxy/hit-issues-for-productions/hit-issues-for-productions.service.ts +39 -0
- package/src/lib/hit-proxy/hit-issues-for-productions/models.ts +42 -0
- package/src/lib/hit-proxy/hit-production-orders/hit-production-orders.service.ts +60 -0
- package/src/lib/hit-proxy/hit-production-orders/models.ts +137 -0
- package/src/lib/hit-proxy/hit-receipt-from-productions/hit-receipt-from-productions.service.ts +32 -0
- package/src/lib/hit-proxy/hit-receipt-from-productions/models.ts +44 -0
- package/src/lib/hit-proxy/models.ts +116 -0
- package/src/lib/uretim-yonetimi-routing.module.ts +30 -0
- package/src/lib/uretim-yonetimi.component.spec.ts +24 -0
- package/src/lib/uretim-yonetimi.module.ts +52 -0
- package/src/lib/uretim-yonetimi.service.spec.ts +15 -0
- package/{public-api.d.ts → src/public-api.ts} +4 -0
- package/src/test.ts +29 -0
- package/tsconfig.lib.json +20 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/config/enums/route-names.d.ts +0 -3
- package/config/index.d.ts +0 -5
- package/config/providers/create-barcode-route.provider.d.ts +0 -9
- package/config/providers/issues-for-production-route.provider.d.ts +0 -9
- package/config/providers/production-order-route.provider.d.ts +0 -9
- package/config/providers/receipt-from-production-route.provider.d.ts +0 -9
- package/config/providers/route.provider.d.ts +0 -8
- package/config/uretim-yonetimi-config.module.d.ts +0 -8
- package/esm2020/config/enums/index.mjs +0 -2
- package/esm2020/config/enums/route-names.mjs +0 -2
- package/esm2020/config/hitsoft-uretim-yonetimi-config.mjs +0 -5
- package/esm2020/config/providers/create-barcode-route.provider.mjs +0 -19
- package/esm2020/config/providers/index.mjs +0 -2
- package/esm2020/config/providers/issues-for-production-route.provider.mjs +0 -19
- package/esm2020/config/providers/production-order-route.provider.mjs +0 -19
- package/esm2020/config/providers/receipt-from-production-route.provider.mjs +0 -19
- package/esm2020/config/providers/route.provider.mjs +0 -24
- package/esm2020/config/public-api.mjs +0 -4
- package/esm2020/config/uretim-yonetimi-config.module.mjs +0 -28
- package/esm2020/hitsoft-uretim-yonetimi.mjs +0 -5
- package/esm2020/lib/components/hit-create-barcodes/hit-create-barcodes-routing.module.mjs +0 -26
- package/esm2020/lib/components/hit-create-barcodes/hit-create-barcodes.component.mjs +0 -186
- package/esm2020/lib/components/hit-create-barcodes/hit-create-barcodes.module.mjs +0 -65
- package/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions-routing.module.mjs +0 -26
- package/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.mjs +0 -252
- package/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions.module.mjs +0 -68
- package/esm2020/lib/components/hit-production-orders/hit-production-orders-routing.module.mjs +0 -26
- package/esm2020/lib/components/hit-production-orders/hit-production-orders.component.mjs +0 -153
- package/esm2020/lib/components/hit-production-orders/hit-production-orders.module.mjs +0 -65
- package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-production-routing.module.mjs +0 -26
- package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.mjs +0 -217
- package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.module.mjs +0 -62
- package/esm2020/lib/components/uretim-yonetimi.component.mjs +0 -11
- package/esm2020/lib/hit-proxy/devexpress-query-builder/devexpress-load-options.model.mjs +0 -2
- package/esm2020/lib/hit-proxy/devexpress-query-builder/devexpress-query-builder.mjs +0 -54
- package/esm2020/lib/hit-proxy/hit-create-barcodes/hit-create-barcodes.service.mjs +0 -35
- package/esm2020/lib/hit-proxy/hit-create-barcodes/models.mjs +0 -3
- package/esm2020/lib/hit-proxy/hit-issues-for-productions/hit-issues-for-productions.service.mjs +0 -35
- package/esm2020/lib/hit-proxy/hit-issues-for-productions/models.mjs +0 -24
- package/esm2020/lib/hit-proxy/hit-production-orders/hit-production-orders.service.mjs +0 -44
- package/esm2020/lib/hit-proxy/hit-production-orders/models.mjs +0 -65
- package/esm2020/lib/hit-proxy/hit-receipt-from-productions/hit-receipt-from-productions.service.mjs +0 -30
- package/esm2020/lib/hit-proxy/hit-receipt-from-productions/models.mjs +0 -20
- package/esm2020/lib/hit-proxy/models.mjs +0 -85
- package/esm2020/lib/uretim-yonetimi-routing.module.mjs +0 -33
- package/esm2020/lib/uretim-yonetimi.module.mjs +0 -55
- package/esm2020/public-api.mjs +0 -6
- package/fesm2015/hitsoft-uretim-yonetimi-config.mjs +0 -121
- package/fesm2015/hitsoft-uretim-yonetimi-config.mjs.map +0 -1
- package/fesm2015/hitsoft-uretim-yonetimi.mjs +0 -1548
- package/fesm2015/hitsoft-uretim-yonetimi.mjs.map +0 -1
- package/fesm2020/hitsoft-uretim-yonetimi-config.mjs +0 -121
- package/fesm2020/hitsoft-uretim-yonetimi-config.mjs.map +0 -1
- package/fesm2020/hitsoft-uretim-yonetimi.mjs +0 -1526
- package/fesm2020/hitsoft-uretim-yonetimi.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/hit-create-barcodes/hit-create-barcodes-routing.module.d.ts +0 -7
- package/lib/components/hit-create-barcodes/hit-create-barcodes.component.d.ts +0 -45
- package/lib/components/hit-create-barcodes/hit-create-barcodes.module.d.ts +0 -16
- package/lib/components/hit-issues-for-productions/hit-issues-for-productions-routing.module.d.ts +0 -7
- package/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.d.ts +0 -48
- package/lib/components/hit-issues-for-productions/hit-issues-for-productions.module.d.ts +0 -16
- package/lib/components/hit-production-orders/hit-production-orders-routing.module.d.ts +0 -7
- package/lib/components/hit-production-orders/hit-production-orders.component.d.ts +0 -44
- package/lib/components/hit-production-orders/hit-production-orders.module.d.ts +0 -16
- package/lib/components/hit-receipt-from-productions/hit-receipt-from-production-routing.module.d.ts +0 -7
- package/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.d.ts +0 -57
- package/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.module.d.ts +0 -16
- package/lib/components/uretim-yonetimi.component.d.ts +0 -5
- package/lib/hit-proxy/devexpress-query-builder/devexpress-load-options.model.d.ts +0 -17
- package/lib/hit-proxy/devexpress-query-builder/devexpress-query-builder.d.ts +0 -18
- package/lib/hit-proxy/hit-create-barcodes/hit-create-barcodes.service.d.ts +0 -23
- package/lib/hit-proxy/hit-create-barcodes/models.d.ts +0 -6
- package/lib/hit-proxy/hit-issues-for-productions/hit-issues-for-productions.service.d.ts +0 -17
- package/lib/hit-proxy/hit-issues-for-productions/models.d.ts +0 -30
- package/lib/hit-proxy/hit-production-orders/hit-production-orders.service.d.ts +0 -19
- package/lib/hit-proxy/hit-production-orders/models.d.ts +0 -85
- package/lib/hit-proxy/hit-receipt-from-productions/hit-receipt-from-productions.service.d.ts +0 -16
- package/lib/hit-proxy/hit-receipt-from-productions/models.d.ts +0 -39
- package/lib/hit-proxy/models.d.ts +0 -21
- package/lib/uretim-yonetimi-routing.module.d.ts +0 -7
- package/lib/uretim-yonetimi.module.d.ts +0 -17
- /package/config/{enums/index.d.ts → src/enums/index.ts} +0 -0
- /package/config/{providers/index.d.ts → src/providers/index.ts} +0 -0
- /package/config/{public-api.d.ts → src/public-api.ts} +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"*.ts"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"project": [
|
|
13
|
+
"projects/uretim-yonetimi/tsconfig.lib.json",
|
|
14
|
+
"projects/uretim-yonetimi/tsconfig.spec.json"
|
|
15
|
+
],
|
|
16
|
+
"createDefaultProgram": true
|
|
17
|
+
},
|
|
18
|
+
"rules": {
|
|
19
|
+
"@angular-eslint/directive-selector": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
"type": "attribute",
|
|
23
|
+
"prefix": "lib",
|
|
24
|
+
"style": "camelCase"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"@angular-eslint/component-selector": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
"type": "element",
|
|
31
|
+
"prefix": "lib",
|
|
32
|
+
"style": "kebab-case"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"files": [
|
|
39
|
+
"*.html"
|
|
40
|
+
],
|
|
41
|
+
"rules": {}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eUretimYonetimiRouteNames } from '../enums/route-names';
|
|
4
|
+
|
|
5
|
+
export const CREATE_BARCODES_CREATE_BARCODE_ROUTE_PROVIDER = [
|
|
6
|
+
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
function configureRoutes(routes: RoutesService) {
|
|
10
|
+
return () => {
|
|
11
|
+
routes.add([
|
|
12
|
+
{
|
|
13
|
+
path: '/uretim-yonetimi/create-barcodes',
|
|
14
|
+
parentName: eUretimYonetimiRouteNames.UretimYonetimi,
|
|
15
|
+
name: 'UretimYonetimi::Menu:CreateBarcodes',
|
|
16
|
+
layout: eLayoutType.application,
|
|
17
|
+
requiredPolicy: 'UretimYonetimi.CreateBarcodes',
|
|
18
|
+
},
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eUretimYonetimiRouteNames } from '../enums/route-names';
|
|
4
|
+
|
|
5
|
+
export const ISSUES_FOR_PRODUCTIONS_ISSUES_FOR_PRODUCTION_ROUTE_PROVIDER = [
|
|
6
|
+
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
function configureRoutes(routes: RoutesService) {
|
|
10
|
+
return () => {
|
|
11
|
+
routes.add([
|
|
12
|
+
{
|
|
13
|
+
path: '/uretim-yonetimi/issues-for-productions',
|
|
14
|
+
parentName: eUretimYonetimiRouteNames.UretimYonetimi,
|
|
15
|
+
name: 'UretimYonetimi::Menu:IssuesForProductions',
|
|
16
|
+
layout: eLayoutType.application,
|
|
17
|
+
requiredPolicy: 'UretimYonetimi.IssuesForProductions',
|
|
18
|
+
},
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eUretimYonetimiRouteNames } from '../enums/route-names';
|
|
4
|
+
|
|
5
|
+
export const PRODUCTION_ORDERS_PRODUCTION_ORDER_ROUTE_PROVIDER = [
|
|
6
|
+
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
function configureRoutes(routes: RoutesService) {
|
|
10
|
+
return () => {
|
|
11
|
+
routes.add([
|
|
12
|
+
{
|
|
13
|
+
path: '/uretim-yonetimi/production-orders',
|
|
14
|
+
parentName: eUretimYonetimiRouteNames.UretimYonetimi,
|
|
15
|
+
name: 'UretimYonetimi::Menu:ProductionOrders',
|
|
16
|
+
layout: eLayoutType.application,
|
|
17
|
+
requiredPolicy: 'UretimYonetimi.ProductionOrders',
|
|
18
|
+
},
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eUretimYonetimiRouteNames } from '../enums/route-names';
|
|
4
|
+
|
|
5
|
+
export const RECEIPT_FROM_PRODUCTIONS_RECEIPT_FROM_PRODUCTION_ROUTE_PROVIDER = [
|
|
6
|
+
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
function configureRoutes(routes: RoutesService) {
|
|
10
|
+
return () => {
|
|
11
|
+
routes.add([
|
|
12
|
+
{
|
|
13
|
+
path: '/uretim-yonetimi/receipt-from-productions',
|
|
14
|
+
parentName: eUretimYonetimiRouteNames.UretimYonetimi,
|
|
15
|
+
name: 'UretimYonetimi::Menu:ReceiptFromProductions',
|
|
16
|
+
layout: eLayoutType.application,
|
|
17
|
+
requiredPolicy: 'UretimYonetimi.ReceiptFromProductions',
|
|
18
|
+
},
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eUretimYonetimiRouteNames } from '../enums';
|
|
4
|
+
|
|
5
|
+
export const URETIM_YONETIMI_ROUTE_PROVIDERS = [
|
|
6
|
+
{
|
|
7
|
+
provide: APP_INITIALIZER,
|
|
8
|
+
useFactory: configureRoutes,
|
|
9
|
+
deps: [RoutesService],
|
|
10
|
+
multi: true,
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export function configureRoutes(routes: RoutesService) {
|
|
15
|
+
return () => {
|
|
16
|
+
routes.add([
|
|
17
|
+
{
|
|
18
|
+
path: '/uretim-yonetimi',
|
|
19
|
+
name: eUretimYonetimiRouteNames.UretimYonetimi,
|
|
20
|
+
iconClass: 'fas fa-book',
|
|
21
|
+
layout: eLayoutType.application,
|
|
22
|
+
order: 3,
|
|
23
|
+
},
|
|
24
|
+
]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
+
import { URETIM_YONETIMI_ROUTE_PROVIDERS } from './providers';
|
|
3
|
+
import { PRODUCTION_ORDERS_PRODUCTION_ORDER_ROUTE_PROVIDER } from './providers/production-order-route.provider';
|
|
4
|
+
import { ISSUES_FOR_PRODUCTIONS_ISSUES_FOR_PRODUCTION_ROUTE_PROVIDER } from './providers/issues-for-production-route.provider';
|
|
5
|
+
import { RECEIPT_FROM_PRODUCTIONS_RECEIPT_FROM_PRODUCTION_ROUTE_PROVIDER } from './providers/receipt-from-production-route.provider';
|
|
6
|
+
import { CREATE_BARCODES_CREATE_BARCODE_ROUTE_PROVIDER } from './providers/create-barcode-route.provider';
|
|
7
|
+
|
|
8
|
+
@NgModule()
|
|
9
|
+
export class UretimYonetimiConfigModule {
|
|
10
|
+
static forRoot(): ModuleWithProviders<UretimYonetimiConfigModule> {
|
|
11
|
+
return {
|
|
12
|
+
ngModule: UretimYonetimiConfigModule,
|
|
13
|
+
providers: [
|
|
14
|
+
URETIM_YONETIMI_ROUTE_PROVIDERS,
|
|
15
|
+
PRODUCTION_ORDERS_PRODUCTION_ORDER_ROUTE_PROVIDER,
|
|
16
|
+
ISSUES_FOR_PRODUCTIONS_ISSUES_FOR_PRODUCTION_ROUTE_PROVIDER,
|
|
17
|
+
RECEIPT_FROM_PRODUCTIONS_RECEIPT_FROM_PRODUCTION_ROUTE_PROVIDER,
|
|
18
|
+
CREATE_BARCODES_CREATE_BARCODE_ROUTE_PROVIDER,
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
package/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/uretim-yonetimi'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,42 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hitsoft/uretim-yonetimi",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Turkuaz Uretim Yonetim",
|
|
5
|
-
"peerDependencies": {
|
|
6
|
-
"@angular/common": ">=9",
|
|
7
|
-
"@angular/core": ">=9",
|
|
8
|
-
"@abp/ng.core": ">=6.0.2",
|
|
9
|
-
"@abp/ng.theme.shared": ">=6.0.2"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"tslib": "^2.1.0"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
"es2020": "fesm2020/hitsoft-uretim-yonetimi.mjs",
|
|
16
|
-
"esm2020": "esm2020/hitsoft-uretim-yonetimi.mjs",
|
|
17
|
-
"fesm2020": "fesm2020/hitsoft-uretim-yonetimi.mjs",
|
|
18
|
-
"fesm2015": "fesm2015/hitsoft-uretim-yonetimi.mjs",
|
|
19
|
-
"typings": "index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
"./package.json": {
|
|
22
|
-
"default": "./package.json"
|
|
23
|
-
},
|
|
24
|
-
".": {
|
|
25
|
-
"types": "./index.d.ts",
|
|
26
|
-
"esm2020": "./esm2020/hitsoft-uretim-yonetimi.mjs",
|
|
27
|
-
"es2020": "./fesm2020/hitsoft-uretim-yonetimi.mjs",
|
|
28
|
-
"es2015": "./fesm2015/hitsoft-uretim-yonetimi.mjs",
|
|
29
|
-
"node": "./fesm2015/hitsoft-uretim-yonetimi.mjs",
|
|
30
|
-
"default": "./fesm2020/hitsoft-uretim-yonetimi.mjs"
|
|
31
|
-
},
|
|
32
|
-
"./config": {
|
|
33
|
-
"types": "./config/index.d.ts",
|
|
34
|
-
"esm2020": "./esm2020/config/hitsoft-uretim-yonetimi-config.mjs",
|
|
35
|
-
"es2020": "./fesm2020/hitsoft-uretim-yonetimi-config.mjs",
|
|
36
|
-
"es2015": "./fesm2015/hitsoft-uretim-yonetimi-config.mjs",
|
|
37
|
-
"node": "./fesm2015/hitsoft-uretim-yonetimi-config.mjs",
|
|
38
|
-
"default": "./fesm2020/hitsoft-uretim-yonetimi-config.mjs"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"sideEffects": false
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@hitsoft/uretim-yonetimi",
|
|
3
|
+
"version": "1.0.17",
|
|
4
|
+
"description": "Turkuaz Uretim Yonetim",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": ">=9",
|
|
7
|
+
"@angular/core": ">=9",
|
|
8
|
+
"@abp/ng.core": ">=6.0.2",
|
|
9
|
+
"@abp/ng.theme.shared": ">=6.0.2"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "^2.1.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {AuthGuard, PermissionGuard} from '@abp/ng.core';
|
|
2
|
+
import {NgModule} from '@angular/core';
|
|
3
|
+
import {RouterModule, Routes} from '@angular/router';
|
|
4
|
+
import {HitCreateBarcodesComponent} from "./hit-create-barcodes.component";
|
|
5
|
+
|
|
6
|
+
const routes: Routes = [
|
|
7
|
+
{
|
|
8
|
+
path: '',
|
|
9
|
+
component: HitCreateBarcodesComponent,
|
|
10
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
imports: [RouterModule.forChild(routes)],
|
|
16
|
+
exports: [RouterModule],
|
|
17
|
+
})
|
|
18
|
+
export class HitCreateBarcodesRoutingModule {
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<abp-page [breadcrumb]="false">
|
|
2
|
+
<abp-page-toolbar-container class="col">
|
|
3
|
+
<div class="row">
|
|
4
|
+
<h3 class="page-title">
|
|
5
|
+
{{ 'UretimYonetimi::CreateBarcodes.Title' | abpLocalization }}
|
|
6
|
+
</h3>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="row text-lg-end pt-2">
|
|
9
|
+
<div class="col-8">
|
|
10
|
+
<button class="btn btn-success btn-sm" type="button" [disabled]="!this.selectedReceiptFromProductions"
|
|
11
|
+
(click)="showModal=true">
|
|
12
|
+
<i class="fa fa-plus me-1"></i>
|
|
13
|
+
{{ 'UretimYonetimi::CreateBarcodes.Print' | abpLocalization }}
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-4">
|
|
17
|
+
<button class="btn btn-warning btn-sm" type="button" (click)="clearAll()">
|
|
18
|
+
<i class="fa fa-broom me-1"></i>
|
|
19
|
+
{{ 'UretimYonetimi::CreateBarcodes.Clean' | abpLocalization }}
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</abp-page-toolbar-container>
|
|
24
|
+
<div class="card mt-2">
|
|
25
|
+
<div class="card-body" style="height: calc(100vh - 241px); overflow: auto;">
|
|
26
|
+
<div style="display: flex; align-items: center;">
|
|
27
|
+
<dx-number-box #barkodNumarasiRef class="me-1" style="width:100%;"
|
|
28
|
+
[label]="'UretimYonetimi::CreateBarcodes.WorkOrderNo' | abpLocalization"
|
|
29
|
+
[(value)]="isEmriBarkodu"
|
|
30
|
+
(onChange)="getProductionOrder()" (onEnterKey)="getProductionOrder()"
|
|
31
|
+
[disabled]="searchBasildiMi || isEmriBarkoduGecerliMi">
|
|
32
|
+
</dx-number-box>
|
|
33
|
+
<dx-button style="margin-top: 7.5px;" icon="search" type="default" (onClick)="getProductionOrder()"
|
|
34
|
+
[disabled]="searchBasildiMi || isEmriBarkoduGecerliMi">
|
|
35
|
+
</dx-button>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="mt-3" *ngIf="isEmriBarkoduGecerliMi">
|
|
39
|
+
<dx-text-box style="width:100%;" [label]="'UretimYonetimi::CreateBarcodes.ItemCode' | abpLocalization"
|
|
40
|
+
[(value)]="productionOrder.itemNo" [disabled]="true">
|
|
41
|
+
</dx-text-box>
|
|
42
|
+
<dx-text-box style="width:100%;" [label]="'UretimYonetimi::CreateBarcodes.ItemName' | abpLocalization"
|
|
43
|
+
[(value)]="productionOrder.productDescription" [disabled]="true">
|
|
44
|
+
</dx-text-box>
|
|
45
|
+
<dx-text-box style="width:100%;" [label]="'UretimYonetimi::CreateBarcodes.BatchNumber' | abpLocalization"
|
|
46
|
+
[(value)]="productionOrder.u_trkBatch" [disabled]="true">
|
|
47
|
+
</dx-text-box>
|
|
48
|
+
<dx-number-box style="width:100%;" [label]="'UretimYonetimi::CreateBarcodes.PrintingQuantity' | abpLocalization"
|
|
49
|
+
[(value)]="printingQuantity">
|
|
50
|
+
</dx-number-box>
|
|
51
|
+
<dx-data-grid #gridRFP class="mt-3" [dataSource]="receiptFromProductions" [columnAutoWidth]="true"
|
|
52
|
+
(onSelectionChanged)="selectReceiptFromProductions($event)">
|
|
53
|
+
<dxi-column dataField="quantity"
|
|
54
|
+
[caption]="'UretimYonetimi::CreateBarcodes.Quantity' | abpLocalization"></dxi-column>
|
|
55
|
+
<dxi-column dataField="docDateString"
|
|
56
|
+
[caption]="'UretimYonetimi::CreateBarcodes.Date' | abpLocalization"></dxi-column>
|
|
57
|
+
<dxo-selection mode="single"></dxo-selection>
|
|
58
|
+
</dx-data-grid>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</abp-page>
|
|
63
|
+
|
|
64
|
+
<abp-modal [(visible)]="showModal" (appear)="generateReport()">
|
|
65
|
+
<ng-template #abpHeader>
|
|
66
|
+
<h3>{{ 'UretimYonetimi::CreateBarcodes.BarcodePreview' | abpLocalization }}</h3>
|
|
67
|
+
</ng-template>
|
|
68
|
+
<ng-template #abpBody>
|
|
69
|
+
<iframe *ngIf="pdfSrc" [src]="pdfSrc" width="100%" height="300"
|
|
70
|
+
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
|
71
|
+
</ng-template>
|
|
72
|
+
<ng-template #abpFooter>
|
|
73
|
+
<button (click)="downloadPdf(blobUrl)" type="button"
|
|
74
|
+
class="btn btn-secondary mobilde-gorunur" abpClose> İndir
|
|
75
|
+
</button>
|
|
76
|
+
<button type="button"
|
|
77
|
+
class="btn btn-secondary" abpClose> {{ 'UretimYonetimi::CreateBarcodes.Close' | abpLocalization }}
|
|
78
|
+
</button>
|
|
79
|
+
</ng-template>
|
|
80
|
+
</abp-modal>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import {ListService, TrackByService} from '@abp/ng.core';
|
|
2
|
+
import {
|
|
3
|
+
Confirmation,
|
|
4
|
+
ConfirmationService,
|
|
5
|
+
} from '@abp/ng.theme.shared';
|
|
6
|
+
import {DateAdapter} from '@abp/ng.theme.shared/extensions';
|
|
7
|
+
import {ChangeDetectionStrategy, Component, ViewChild, NgZone} from '@angular/core';
|
|
8
|
+
import {NgbDateAdapter} from '@ng-bootstrap/ng-bootstrap';
|
|
9
|
+
import {HitCreateBarcodesService} from '../../hit-proxy/hit-create-barcodes/hit-create-barcodes.service';
|
|
10
|
+
import {HitProductionOrdersService} from '../../hit-proxy/hit-production-orders/hit-production-orders.service';
|
|
11
|
+
import {DxDataGridComponent, DxTextBoxComponent} from 'devextreme-angular';
|
|
12
|
+
import {GetProductionOrderDto} from '../../hit-proxy/hit-receipt-from-productions/models';
|
|
13
|
+
import {ReceiptFromProductions} from '../../hit-proxy/hit-create-barcodes/models';
|
|
14
|
+
import {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'lib-hit-create-barcodes',
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
19
|
+
providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }],
|
|
20
|
+
templateUrl: './hit-create-barcodes.component.html',
|
|
21
|
+
styles: [],
|
|
22
|
+
styleUrls: ['./hit-create-barcodes-component.css'],
|
|
23
|
+
})
|
|
24
|
+
export class HitCreateBarcodesComponent {
|
|
25
|
+
@ViewChild('barkodNumarasiRef', {static: false}) nmbBoxBarkodNumarasi: DxTextBoxComponent;
|
|
26
|
+
@ViewChild('gridRFP', {static: false}) dataGrid: DxDataGridComponent;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
private ngZone: NgZone,
|
|
31
|
+
public readonly list: ListService,
|
|
32
|
+
public readonly track: TrackByService,
|
|
33
|
+
public readonly service: HitCreateBarcodesService,
|
|
34
|
+
private confirmation: ConfirmationService,
|
|
35
|
+
private productionOrdersService: HitProductionOrdersService,
|
|
36
|
+
private sanitizer: DomSanitizer
|
|
37
|
+
) {}
|
|
38
|
+
|
|
39
|
+
isLoading: boolean = false;
|
|
40
|
+
isEmriBarkoduGecerliMi: boolean = false;
|
|
41
|
+
searchBasildiMi: boolean = false;
|
|
42
|
+
isEmriBarkodu: number;
|
|
43
|
+
productionOrder: GetProductionOrderDto;
|
|
44
|
+
printingQuantity: number = 1;
|
|
45
|
+
showModal: boolean = false;
|
|
46
|
+
pdfSrc: SafeResourceUrl | null = null;
|
|
47
|
+
blobUrl: string;
|
|
48
|
+
|
|
49
|
+
async getProductionOrder() {
|
|
50
|
+
if (!this.isEmriBarkodu) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
this.isLoading = true;
|
|
55
|
+
this.isEmriBarkoduGecerliMi = false;
|
|
56
|
+
this.searchBasildiMi = true;
|
|
57
|
+
|
|
58
|
+
this.productionOrdersService.get(this.isEmriBarkodu).subscribe({
|
|
59
|
+
next: response => {
|
|
60
|
+
if (response?.isSuccessful) {
|
|
61
|
+
this.productionOrder = response.items;
|
|
62
|
+
this.isEmriBarkoduGecerliMi = true;
|
|
63
|
+
this.getReceiptFromProductions();
|
|
64
|
+
} else {
|
|
65
|
+
this.isEmriBarkoduGecerliMi = false;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
error: e => {
|
|
69
|
+
this.isEmriBarkoduGecerliMi = false;
|
|
70
|
+
this.searchBasildiMi = true;
|
|
71
|
+
this.confirmation.status$.subscribe({
|
|
72
|
+
next: () => {
|
|
73
|
+
this.clearAll();
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
this.isLoading = false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
ngAfterViewInit() {
|
|
82
|
+
this.focusOnBarkodNumarasi();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
clearAll() {
|
|
86
|
+
this.isEmriBarkoduGecerliMi = false;
|
|
87
|
+
this.searchBasildiMi = false;
|
|
88
|
+
this.isEmriBarkodu = null;
|
|
89
|
+
this.productionOrder = null;
|
|
90
|
+
this.receiptFromProductions = null;
|
|
91
|
+
this.focusOnBarkodNumarasi();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
generateReport() {
|
|
95
|
+
this.service
|
|
96
|
+
.getBarcodeInfo(
|
|
97
|
+
this.isEmriBarkodu,
|
|
98
|
+
this.selectedReceiptFromProductions.docEntry,
|
|
99
|
+
this.printingQuantity
|
|
100
|
+
)
|
|
101
|
+
.subscribe({
|
|
102
|
+
next: response => {
|
|
103
|
+
const base64Data = response.base64; // base64 string (sadece veri kısmı, "data:application/pdf;base64,..." değilse)
|
|
104
|
+
|
|
105
|
+
// Base64'ü decode edip binary veriye çeviriyoruz
|
|
106
|
+
const byteCharacters = atob(base64Data);
|
|
107
|
+
const byteNumbers = new Array(byteCharacters.length);
|
|
108
|
+
for (let i = 0; i < byteCharacters.length; i++) {
|
|
109
|
+
byteNumbers[i] = byteCharacters.charCodeAt(i);
|
|
110
|
+
}
|
|
111
|
+
const byteArray = new Uint8Array(byteNumbers);
|
|
112
|
+
|
|
113
|
+
// Blob oluşturuyoruz
|
|
114
|
+
const blob = new Blob([byteArray], { type: 'application/pdf' });
|
|
115
|
+
|
|
116
|
+
// Blob'tan URL oluşturup yeni sekmede açıyoruz (veya download edebilirsin)
|
|
117
|
+
this.blobUrl = URL.createObjectURL(blob);
|
|
118
|
+
this.pdfSrc = this.bypassAndSanitize(this.blobUrl);
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
bypassAndSanitize(url): SafeResourceUrl {
|
|
124
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
downloadPdf(blobUrl) {
|
|
128
|
+
const a = document.createElement('a');
|
|
129
|
+
a.href = blobUrl;
|
|
130
|
+
const parts = blobUrl.split('/');
|
|
131
|
+
const lastPart = parts.pop(); // "myfile.pdf"
|
|
132
|
+
a.download = lastPart + '.pdf'; // Kaydedilecek dosya adı
|
|
133
|
+
a.style.display = 'none';
|
|
134
|
+
|
|
135
|
+
// iOS'ta desteklenmesi için target=_blank eklenebilir
|
|
136
|
+
a.target = '_blank';
|
|
137
|
+
|
|
138
|
+
// DOM'a ekleyip tıklat
|
|
139
|
+
document.body.appendChild(a);
|
|
140
|
+
a.click();
|
|
141
|
+
document.body.removeChild(a);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
receiptFromProductions: ReceiptFromProductions[];
|
|
145
|
+
|
|
146
|
+
async getReceiptFromProductions() {
|
|
147
|
+
if (!this.isEmriBarkodu) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
this.isLoading = true;
|
|
152
|
+
|
|
153
|
+
this.service.getReceiptFromProductions(this.isEmriBarkodu + '').subscribe({
|
|
154
|
+
next: response => {
|
|
155
|
+
if (response?.isSuccessful) {
|
|
156
|
+
this.receiptFromProductions = response.items;
|
|
157
|
+
this.receiptFromProductions.forEach((item: ReceiptFromProductions) => {
|
|
158
|
+
item.docDateString = this.formatDate(item.docDate);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
if (this.receiptFromProductions?.length === 1) {
|
|
163
|
+
const key = this.receiptFromProductions[0];
|
|
164
|
+
this.dataGrid.instance.selectRows([key], false);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
} else {
|
|
168
|
+
this.confirmation.status$.subscribe({
|
|
169
|
+
next: () => {
|
|
170
|
+
this.clearAll();
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
error: e => {
|
|
176
|
+
this.confirmation.status$.subscribe({
|
|
177
|
+
next: () => {
|
|
178
|
+
this.clearAll();
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
this.isLoading = false;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
selectedReceiptFromProductions: ReceiptFromProductions;
|
|
188
|
+
|
|
189
|
+
selectReceiptFromProductions(e) {
|
|
190
|
+
e.component.byKey(e.currentSelectedRowKeys[0]).done(receiptFromProductions => {
|
|
191
|
+
if (receiptFromProductions) {
|
|
192
|
+
this.selectedReceiptFromProductions = receiptFromProductions;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
formatDate(date: Date): string {
|
|
198
|
+
if (!date) return '';
|
|
199
|
+
|
|
200
|
+
const pad = (n: number) => n.toString().padStart(2, '0');
|
|
201
|
+
const d = new Date(date);
|
|
202
|
+
|
|
203
|
+
const day = pad(d.getDate());
|
|
204
|
+
const month = pad(d.getMonth() + 1); // Aylar 0-indexli
|
|
205
|
+
const year = d.getFullYear();
|
|
206
|
+
const hour = pad(d.getHours());
|
|
207
|
+
const minute = pad(d.getMinutes());
|
|
208
|
+
|
|
209
|
+
return `${day}/${month}/${year} ${hour}:${minute}`;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
focusOnBarkodNumarasi() {
|
|
213
|
+
this.ngZone.run(() => {
|
|
214
|
+
setTimeout(() => {
|
|
215
|
+
this.nmbBoxBarkodNumarasi.instance.focus();
|
|
216
|
+
}, 0);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|