トップ/TECHS 解説/詳細/シーケンス図
05-sequence-diagrams.md

14 業務フローの時系列図

05 — TECHS-S Critical Flow Sequence Diagrams

Companion to 00-architecture.md. Each section pins the flow to: (a) help-PDF screen IDs from analysis/help_txt/, (b) decompiled class & method names (file:line), (c) the tables touched (with H/D split where evident).

Notation:

  • (inferred) = derived from screen IDs / enums / domain naming where the per-screen BE/SI assemblies are not in the _t2_* dump.
  • "H" = header row, "D" = detail row. TECHS-S commonly persists *Hd / *Dt siblings (Header/Detail) plus Wrk* work tables.
  • 赤伝 = "red-slip" reversal entry. 取消 = cancel.

Conventions used by every flow


Flow 1 — Login & menu load

Actors

Trigger

User starts Technoa.Techs.Menu.exe (or runs the auto-update launcher which spawns it).

Pre-conditions

Post-conditions

Sequence

Tables touched

Source pins

Edge cases


Flow 2 — Order entry → Seiban creation → Production indication

Screens

Actors

Trigger

User picks 受注入力 from menu / MyMenu / drill-through.

Pre-conditions

Post-conditions

Sequence

Tables touched (H/D)

TableRoleOp
TblOrderHd (H)Order headerI/U
TblOrderDt (D)Order detail (lines)I/U/D
TblSeiban*Seiban registry / numberingI
MstCustomer, MstItemNo, MstPersonLookupsR
MstApCtrl (ApCd=0201001)Per-screen control flagsR
CtmCompLock, CtmCompLockKey, CtmCompLockCondition, CtmCompLockQuery, CtmCompLockQueryKeyLock specR
CtlCompLockLive lockI/D
SysUpdRec, SysUpdKeyRecAuditI

Notes / edge cases

Source pins


Flow 3 — Allocation (引当) → Purchase Order issuance

Screens

Actors

Trigger

After Order entry produces a Seiban and BOM, the planner runs 引当 to reserve stock and create purchase requirements.

Pre-conditions

Post-conditions

Sequence

Tables touched

TableRoleOp
TblBomHd / TblBomDtBOM header / linesR/U
TblPurchaseHd / TblPurchaseDt (inferred)Purchase order H/DI/U
MstItemNoItem master (kind, unit conversion)R
MstSupplierSupplier masterR
MstWhs / MstShelf (inferred)Warehouse / shelf masterR
CtmCompLock*, CtlCompLockLockI/D
SysUpdRec / SysUpdKeyRecAuditI

Notes / edge cases

Source pins


Flow 4 — Outsourcing instruction → Delivery → Inspection

Screens

Actors

Trigger

A Seiban detail line marked 外作 (outsourced) with completed BOM exists. Manager issues the indication, supplier delivers, manager inspects.

Pre-conditions

Post-conditions

Sequence

Tables touched

TableRoleOp
TblOutsrcIndHd/Dt (inferred)Outsourcing indication H/DI/U
TblOutsrcDeliHd/Dt (inferred)Outsourcing delivery H/DI
TblAcceptHd/Dt (inferred)Acceptance / inspection H/DI
TblStock / WrkInOutInventory ledgerI
MstSupplierLookupR
CtlCompLock, SysUpdRec, SysUpdKeyRecCross-cuttingI/D

Notes / edge cases

Source pins


Flow 5 — Goods receipt → Inspection → AP creation

Screens

Actors

Trigger

A TblPurchase* line (from Flow 3) reaches the supplier delivery date.

Pre-conditions

Post-conditions

Sequence

Tables touched

TableRoleOp
TblPurchaseHd/DtPO from Flow 3R/U
TblDeliHd/DtDelivery H/DI/U
TblAcceptHd/DtInspection / acceptance H/DI/U
TblStock, WrkInOut, WrkStockInventory motionI
TblPayHd/Dt (inferred from PayInfo enums)AP H/DI
MstSupplier, MstItemNoLookupsR

Notes / edge cases

Source pins


Flow 6 — Work order → Daily report → Cost reflection

Screens

Actors

Trigger

After Allocation completes (Flow 3), the in-house process (内作) lines need a 作業指示書 printed; workers report time/qty against it; cost module rolls everything up.

Pre-conditions

Post-conditions

Sequence

Tables touched

TableRoleOp
TblWorkIndHd/Dt (inferred)Work-order H/DI/U
OpeMrDB (or related — see OpeMrDBInfo.cs)Daily report fact tableI
TblProc*, MstProcProcess master / instancesR
TblExpHd/Dt (inferred)Expense H/DI
TblCostHd/Dt (inferred)Cost roll-up H/DI/U
WrkInOutStock motion (issue / complete)I
WrkLock / WrkLockCtrlPessimistic table lock during 0903001R/W

Notes / edge cases

Source pins


Flow 7 — Shipment → Sales recognition → Claim/Billing → Receipt matching

Screens

Actors

Trigger

Production complete (Flow 6) for a Seiban → ship to customer → recognise sales → bill → receive payment.

Sequence

Tables touched

TableRoleOp
TblShipHd/Dt (inferred)Shipment H/DI/U
TblSalesHd/Dt (inferred)Sales H/DI
TblClaimHd/Dt (inferred)Bill H/DI/U
TblReceiptHd/Dt (inferred)Receipt H/DI
TblReceiptApplyHd/Dt (inferred)Receipt application H/DI
TblOrderDtDriving orderU (ShipFinishKbn / SalesFinishKbn)
MstCustomerClosing day, terms, tax rulesR
WrkInOutStock motion (Ship=7)I

Notes / edge cases

Source pins


Flow 8 — Period close (AR / AP / Cost / Journal export)

Screens

Actors

Trigger

Calendar end-of-month / closing day per MstCustomer.ClosingDay and MstSupplier.ClosingDay.

Pre-conditions

Post-conditions

Sequence

Journal export

Tables touched

TableRoleOp
TblSalesDt / TblAcceptDt / TblWorkIndDtSource rows being flagged closedU (MKbn/CloseKbn)
TblClaimHd/Dt / TblPayHd/Dt / TblCostHd/DtPeriod summary rowsI
CtlApLockSingle-user-per-AP lockI/D
WrkLock / WrkLockCtrlStop-the-worldR
TblExportLog (inferred)Export auditI
MstAccount (inferred)Account-code mappingR

Notes / edge cases

Source pins


Flow 9 — Master CRUD with locking (the canonical CtmCompLock + WrkLock pattern)

Screens

Actors

Trigger

User opens a master maintenance screen.

Pre-conditions

Post-conditions

Sequence

Tables touched

TableRoleOp
CtmCompLock (+Key/Condition/Query/QueryKey)Lock specR
CtlCompLockLive lock rowI/D (PartEndLock)
Business master (e.g. MstCustomer, MstItemNo, MstSupplier, MstPerson, MstHouse)Edited rowI/U/D
SysUpdRec, SysUpdKeyRecAuditI

Notes / edge cases

Source pins


Flow 10 — Inventory in/out/move and Stocktake

Screens

Actors

Trigger

Pre-conditions

Post-conditions

Sequence (in / out / move)

Sequence (stocktake)

Tables touched

TableRoleOp
WrkInOut (inferred)Stock-motion ledger keyed by InOutSeqI
TblStock / TblWhsStock (inferred)Per-key stock balanceI/U
TblInvHd/Dt (inferred)Stocktake H/DI
MstWhs, MstShelf, MstItemNoLookupsR
CtlCompLock / CtlApLock / WrkLockLockR/W

Notes / edge cases

Source pins


Cross-flow lookup index

ConceptWhere defined
OrderTypeCd (S0 normal / S1 inner / S2 precede)OrderInfo.cs:9-14
OrderKindKbn (S0 each / S1 all / S2 OrderSeiban / S3 SeibanProd)OrderInfo.cs:17-23
OrderUpKbn (Formal / Temp)OrderInfo.cs:26-30
SalesUnitKbn (Order / Seiban / Prod)OrderInfo.cs:33-38
ClaimUnitKbn (PkgClaim / EachClaim)OrderInfo.cs:41-45
SalesFinishKbn (UnFinish / PartFinish / HalfFinish / Finish)OrderInfo.cs:48-54
OrderStatusKbn (UnLock / ImmediateLock / LockTempRel / Lock / ClearLock)OrderInfo.cs:57-64
CancelFlg (Normal / Cancel)OrderInfo.cs:67-71
ReceiveKbn (None / Paid / Free)OrderInfo.cs:74-79
EDIFlgOrderInfo.cs:82-86
RedBlackKbn (Red / Black)OrderInfo.cs:124-129
AdjFlg (Normal / Adjust)OrderInfo.cs:131-136
MKbn (None / TempClose / Close)OrderInfo.cs:117-122
SeibanInfo.SeibanStatusKbnSeibanInfo.cs:22-28
AllocateInfo.InputFinishFlgAllocateInfo.cs:9-14
AllocateInfo.IssueIndFlgAllocateInfo.cs:16-22
DeliInfo.AcceptFinishKbn / DeliFinishKbn / LotNoCtrlFlg etc.DeliInfo.cs:55-99
AcceptInfo.*AcceptInfo.cs:10-92
InOutInfo.InOutOccurCdInOutInfo.cs:42-55
PayInfo.PayDealKbn (Tap / Cash) / CloseKbnPayInfo.cs:9-30
ReceiptInfo.ReceiptKindKbn (Normal / Advance) / CheckDecideFlgReceiptInfo.cs:9-22
ShipInfo.DelFlgShipInfo.cs:9-15
Lock VO / SQL templatesDACtlLock.cs, DACtlApLock.cs, DACtlCompLock.cs, DACtlSameStartLock.cs
Pessimistic table lockLockInfo.cs:13-53
Audit (Upd)UpdRecInfo.cs
Wire shape (UIParam)RefillParameter.cs (server)

All file paths above are relative to /home/rmondo/repos/fab-forward-techs/analysis/decomp/. Help PDF extracts referenced live in /home/rmondo/repos/fab-forward-techs/analysis/help_txt/.

← 前へ
ER 図
次へ →
ユースケース