LP1952931 ASN receiving UI
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Dec 2021 22:07:32 +0000 (17:07 -0500)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 20 Oct 2022 13:56:09 +0000 (06:56 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/acq/asn/asn.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/asn/asn.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/asn/asn.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/asn/asn.service.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/asn/routing.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/routing.module.ts

diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.component.html b/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.component.html
new file mode 100644 (file)
index 0000000..78438dd
--- /dev/null
@@ -0,0 +1,2 @@
+<eg-staff-banner bannerText="Advanced Shipment Notifications" i18n-bannerText>
+</eg-staff-banner>
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.component.ts
new file mode 100644 (file)
index 0000000..aa8babe
--- /dev/null
@@ -0,0 +1,17 @@
+import {Component, OnInit} from '@angular/core';
+import {Router, ActivatedRoute, ParamMap} from '@angular/router';
+import {IdlObject} from '@eg/core/idl.service';
+
+@Component({
+  templateUrl: 'asn.component.html'
+})
+export class AsnComponent implements OnInit {
+
+    constructor(
+        private route: ActivatedRoute,
+    ) {}
+
+    ngOnInit() {
+    }
+}
+
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.module.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.module.ts
new file mode 100644 (file)
index 0000000..1f4e459
--- /dev/null
@@ -0,0 +1,31 @@
+import {NgModule} from '@angular/core';
+import {StaffCommonModule} from '@eg/staff/common.module';
+import {HttpClientModule} from '@angular/common/http';
+import {CatalogCommonModule} from '@eg/share/catalog/catalog-common.module';
+import {LineitemModule} from '@eg/staff/acq/lineitem/lineitem.module';
+import {HoldingsModule} from '@eg/staff/share/holdings/holdings.module';
+import {AsnRoutingModule} from './routing.module';
+import {AsnService} from './asn.service';
+import {AsnComponent} from './asn.component';
+import {AsnReceiveComponent} from './receive.component';
+
+
+@NgModule({
+  declarations: [
+    AsnComponent,
+    AsnReceiveComponent
+  ],
+  imports: [
+    StaffCommonModule,
+    CatalogCommonModule,
+    LineitemModule,
+    HoldingsModule,
+    AsnRoutingModule
+  ],
+  providers: [
+    AsnService
+  ]
+})
+
+export class AsnModule {
+}
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.service.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/asn.service.ts
new file mode 100644 (file)
index 0000000..2bb0fb1
--- /dev/null
@@ -0,0 +1,20 @@
+import {Injectable, EventEmitter} from '@angular/core';
+import {Observable, from} from 'rxjs';
+import {switchMap, map, tap, merge} from 'rxjs/operators';
+import {IdlObject, IdlService} from '@eg/core/idl.service';
+import {EventService} from '@eg/core/event.service';
+import {NetService} from '@eg/core/net.service';
+import {AuthService} from '@eg/core/auth.service';
+import {PcrudService} from '@eg/core/pcrud.service';
+import {LineitemService, FleshCacheParams} from '@eg/staff/acq/lineitem/lineitem.service';
+
+@Injectable()
+export class AsnService {
+
+    constructor(
+        private evt: EventService,
+        private net: NetService,
+        private auth: AuthService
+    ) {}
+}
+
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.html
new file mode 100644 (file)
index 0000000..567fc04
--- /dev/null
@@ -0,0 +1,17 @@
+<eg-staff-banner bannerText="Receive Shipment" i18n-bannerText>
+</eg-staff-banner>
+
+<div class="col-lg-4">
+  <div class="input-group">
+    <div class="input-group-prepend">
+      <span class="input-group-text" i18n>Container Barcode:</span>
+    </div>
+    <input type='text' id='barcode-search-input' class="form-control" 
+      placeholder="Barcode" i18n-placeholder [ngModel]='barcode'/>
+    <div class="input-group-append">
+      <button class="btn btn-outline-secondary" 
+        (click)="findContainer()" i18n>Submit</button>
+    </div>
+  </div>
+</div>
+
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts
new file mode 100644 (file)
index 0000000..5d25969
--- /dev/null
@@ -0,0 +1,20 @@
+import {Component, OnInit} from '@angular/core';
+import {Router, ActivatedRoute, ParamMap} from '@angular/router';
+import {IdlObject} from '@eg/core/idl.service';
+
+@Component({
+  templateUrl: 'receive.component.html'
+})
+export class AsnReceiveComponent implements OnInit {
+
+    constructor(
+        private route: ActivatedRoute,
+    ) {}
+
+    ngOnInit() {
+    }
+
+    findContainer() {
+    }
+}
+
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/routing.module.ts
new file mode 100644 (file)
index 0000000..ca60120
--- /dev/null
@@ -0,0 +1,23 @@
+import {NgModule} from '@angular/core';
+import {RouterModule, Routes} from '@angular/router';
+import {LineitemListComponent} from '../lineitem/lineitem-list.component';
+import {LineitemDetailComponent} from '../lineitem/detail.component';
+import {LineitemCopiesComponent} from '../lineitem/copies.component';
+import {BriefRecordComponent} from '../lineitem/brief-record.component';
+import {LineitemHistoryComponent} from '../lineitem/history.component';
+import {LineitemWorksheetComponent} from '../lineitem/worksheet.component';
+import {AsnComponent} from './asn.component';
+import {AsnReceiveComponent} from './receive.component';
+
+const routes: Routes = [{
+  path: 'receive',
+  component: AsnReceiveComponent
+}];
+
+@NgModule({
+  imports: [RouterModule.forChild(routes)],
+  exports: [RouterModule],
+  providers: []
+})
+
+export class AsnRoutingModule {}
index 0c9afce..926a680 100644 (file)
@@ -13,6 +13,9 @@ const routes: Routes = [{
   path: 'po',
   loadChildren: () => import('./po/po.module').then(m => m.PoModule)
 }, {
+  path: 'asn',
+  loadChildren: () => import('./asn/asn.module').then(m => m.AsnModule)
+}, {
   path: 'picklist',
   loadChildren: () =>
     import('./picklist/picklist.module').then(m => m.PicklistModule)