Sp_Calc_sDesign.md 1.61 KB

Sp_Calc_sDesign (procedure)

设计单审核

  • Type: PROCEDURE
  • Deterministic: NO
  • SQL data access: CONTAINS SQL

Parameters

# Mode Name Type
1 IN iFlag int
2 IN iTmpCheck int
3 IN sFormGuid varchar(100)
4 IN sGuid varchar(100)
5 IN sLoginId varchar(100)
6 OUT sReturn varchar(4000)
7 IN sBrId varchar(100)
8 IN sSuId varchar(100)
9 OUT sCode int

Body

Body is not pre-cached. To inspect: mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURESpCalc_sDesign'._

Narrative

Business context: 设计排版单 (design / layout-imposition document) — check / uncheck on salsalesdesignmaster. Approves a 设计排版单 (the pre-press design / layout artifact for a sales order) so production planning can pick it up.

What it does: Validates sGuid and SysLocking (refuses if the doc is being edited). With iFlag=1: refuses if salsalesdesignmaster.bCheck=1; sets bCheck=1, sStatus=1, sCheckPerson=sLoginId, tCheckDate=NOW(). With iFlag=0: refuses if already unchecked, then clears the same fields. Standard lightweight Sp_Calc_s* audit — no slave-row posting in the visible body.

Invocation: Status: appears orphaned. No gdsmodule.sProcName/sSaveProName/sDeleteProName/sSaveProNameBefore binding, no gdsconfigformmaster reference, no other procedure or function calls it, no xly-src reference. The salsalesdesignmaster table exists; the audit handler is unwired in this DB instance. Candidate for maintainer audit.