Sp_Calc_sEtpCH (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(5000) |
| 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_sEtpCH'._
Narrative
Business context: 设备管理 → 设备单据 — equipment-maintain-plan-change audit on eptmachinemaintainchangemaster (COMMENT '设备保养时间变更'). Approves a 设备保养时间变更 (reschedule request against an existing 设备保养计划), and on approval pushes the new date back into the original plan slave so the plan reflects the change.
What it does: Validates sGuid. With iFlag=1: guards on bCheck=1, Update eptmachinemaintainchangemaster to set bCheck=1, sStatus=1, sCheckPerson, tCheckDate, then Update eptmachinemaintainplanslave to overwrite tPlanMaintainDate with the change-bill's new date for the referenced plan slave. Uncheck reverses the master flags (does not undo the plan-slave date — flag for audit if reversibility matters).
Invocation: Status: appears orphaned. No live gdsmodule.sProcName binding, no sSaveProName hook, no other-routine CALLs, no xly-src reference (no install script, no Java) — candidate for maintainer audit. Likely either deprecated or bound only in customer-specific overrides for the 设备保养时间变更 form.