<h2>SOF-Project Notes</h2>
<h3>home // 登入後的預設頁面(全白) </h3>
預設網址後路徑為空(' ')時會導向的頁面

```
{
path: '',
redirectTo: 'home'
},
```
<hr>
<h3>layout-routing.models // 去往各個頁面的路徑 </h3>
```
const routes: Routes = [
{
path: '',
component: MainComponent,
children: [
{
path: 'home',
// loadChildren: () => import('../../pages/home/home.module').then(mod => mod.HomeModule)
},
{
path: 'blacklistMgmt',
loadChildren: () => import('../../pages/blacklist/blacklist.module').then(mod => mod.BlacklistModule)
},
{
path: 'applicationMgmt',
loadChildren: () => import('../../pages/application/application.module').then(mod => mod.ApplicationModule)
},
{
path: 'formMgmt',
loadChildren: () => import('../../pages/formMgmt/formMgmt.module').then(mod => mod.FormMgmtModule)
},
{
path: 'licenseMgmt',
loadChildren: () => import('../../pages/licenseMgmt/licenseMgmt.module').then(mod => mod.LicenseMgmtModule)
},
{
path: 'sysadmin',
loadChildren: () => import('../../pages/sysadmin/sysadmin.module').then(mod => mod.SysadminModule)
},
{
path: 'orderValidation',
loadChildren: () => import('../../pages/orderValidation/order-validation.module').then(mod => mod.OrderValidationModule)
},
{
path: 'sellingPriceMgmt',
loadChildren: () => import('../../pages/sellingPriceMgmt/selling-price-mgmt.module').then(mod => mod.SellingPriceModule)
},
{
path: 'validationException/download',
component: AsyncDownloadComponent,
},
{
path: '',
redirectTo: 'home'
},
]
}
];
```
<hr>
<h3>1. 我的表單 // 'applicationMgmt' </h3>

<h4>i. 代簽核項目:[ path: 'pending' ] --> PendingApprovalComponent </h4>
<h5>代簽核項目:`PendingList`</h5>

<h5>已處理&通知:`CompletedAndNotification`</h5>

<h4>ii. 新表單申請:[ path: 'new' ] --> NewApplicationComponent</h4>
<h4>iii. 表單查詢:[ path: 'my-application' ] --> MyApplicationComponent</h4>
<h5>我的表單:`MyForm`</h5>

<h5>表單追蹤:`TrackForm`</h5>

<hr>
<h3>2. 表單管理 // 'formMgmt' </h3>

**i. 代理人設定**:[ path: 'maintain/delegation' ] **-->** DelegationComponent
**ii. 表單權限**:[ path: 'form-type-auth' ] **-->** FormTypeAuthComponent
**iii. 取得管制文件**:[ path: 'form-file-query' ] **-->** FormFileQueryComponent
<hr>
<h3>3. 黑名單管理 // 'blacklistMgmt' </h3>

<h4>i. 黑名單檢核查詢:[ path: 'dpl-result' ] --> DplResultComponent</h4>
<h5>交易檢核結果查詢:`TransactionCheckResultQuery`</h5>

<h5>批次檢核結果查詢:`BatchCheckResultQuery`</h5>

<h4>ii. 黑名單維護:[ path: 'black-mtn' ] --> BlackMtnComponent</h4>
<h4>iii. 暫時性白名單維護:[ path: 'white-list-temp-mtn' ] --> WhiteListTempMtnComponent</h4>
<h4>iv. 白名單維護:[ path: 'white-list-mtn' ] --> WhiteListMtnComponent</h4>
<h4>v. 不受ERP管轄料號維護:[ path: 'non-ear-item-mtn' ] --> NonEarItemMtnComponent</h4>
<h4>vi. Sample Out DPL Check:[ path: 'sample-out-dpl' ] --> SampleOutDPLComponent</h4>
<h5>單筆查詢:`SingleQuery`</h5>

<h5>多筆查詢:`BatchQuery`</h5>

<h5>DPL Log(單筆):`DPLLog`</h5>

<hr>
<h3>4. 進出口管制管理 // 'licenseMgmt' </h3>

<h4>i. 規則設定:[ path: 'rule-setup' ] --> RuleSetupComponent</h4>
<h4>ii. 進出口許可證管理:[ path: impexp-license-mtn ] --> ImpExpLicenseMtnComponent</h4>
<h5>進口許可證:`ImpLicenseMtn`</h5>

<h5>出口許可證:`ExpLicenseMtn`</h5>

<h4>iii. Licence Exception 規則設定:[ path: license-exception-setup ] --> LicenseViewerHeaderComponent</h4>
<h4>iv. 最終用途最終用戶保證書(EUC)管理:[ path: euc-license-mtn ] --> EucLicenseMtnComponent</h4>
<h4>v. 貿易合規客戶確認函(SOA)管理:[ path: soa-license-mtn ] --> SoaLicenseMtnComponent</h4>
<h5>客戶控管:`SoaControlSetupByUser`</h5>

<h5>料號控管:`SoaControlSetupByItem`</h5>

<h5>排除控管:`SoaExclusionControl`</h5>

<h4>vi. HK特別條款(SC047/SC054)管理:[ path: ''sc047-license-mtn ] --> Sc047LicenseMtnComponent</h4>
<h4>vii. Area ECCN 設定:[ path: eccn-mtn ] --> EccnMtnComponent</h4>
<h4>viii. 貿易合規控管設定:[ path: soa-control-setup ] --> SoaControlSetupByUserComponent、
SoaControlSetupByItemComponent、SoaExclusionControlComponent
</h4>
<h4>ix. ECCN維護:[ path: eccn-status-mtn ] --> LicenseViewerHeaderComponent</h4>
<h4>x. BAFA Licence 管理:[ path: bafa-license-mtn ] --> BafaLicenseMtnComponent</h4>
<hr>
<h3>5. 售價管理 // 'sellingPriceMgmt' </h3>

<h4>i. Sales Margin Tolerance 設定:[ path: 'sales-margin-tolerance-setup' ] --> SalesMarginToleranceSetupComponent</h4>
<h5>from-table</h5>

<h5>新增(點擊button彈窗) --> sales-margin-tolerance-setup.component</h5>

<h5>刪除(點擊button彈窗) --> sales-margin-tolerance-setup.component</h5>

<h5>編輯(點擊button彈窗) --> sales-margin-tolerance-upload-dialog.component</h5>

<h5>篩選(點擊button彈窗) --> sales-margin-tolerance-setup.component</h5>

<h4>ii. Freight Adder 設定:[ path: 'freight-query-condition.component' ] --> FreightQueryConditionComponent</h4>
<h5>新增(點擊button彈窗) --> freight-adder-add-dialog.component</h5>

<hr>
<h3>6. 系統管理 // 'sysadmin' </h3>

<h4>i. 群組管理:[ path: 'authgroup/main' ] --> AuthgroupComponent</h4>
<h4>ii. 角色權限管理:[ path: 'role/main' ] --> RoleComponent</h4>
<hr>
<h3>7. 信用額度管控 // AsyncDownloadComponent </h3>
<hr>