# `Sp_PlanList_BtnEventInkingFinished` (procedure)


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sProInParam` | `varchar(10000)` |
| 2 | IN | `sMakePerson` | `varchar(100)` |
| 3 | IN | `sBrId` | `varchar(100)` |
| 4 | IN | `sSuId` | `varchar(100)` |
| 5 | OUT | `sReturn` | `varchar(1000)` |
| 6 | OUT | `sCode` | `int` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_PlanList_BtnEventInkingFinished`'`._

## Narrative

**Business context:** 生产管理 → 计划、排程 → 计划列表 — toolbar button on the production-plan slave grid that records 印油 (ink) completion for the selected plan rows. Sister handlers: `Sp_PlanList_BtnEventMouldFinished` (覆膜/模具), `Sp_PlanListCTP_BtnEventFinished` (CTP出版), etc.

**What it does:** Parses `$.params[*].value[*].sId` from `sProInParam` for the picked `mftproductionplanslave` rows, computes `p_dMoney` from `$.changeValue` (the ink-cost figure), then `UPDATE mftproductionplanslave SET dInkingMoney = p_dMoney`, and runs the bMagic-string driven `Sp_System_ReplaceField` to flip an `bInkingFinish`-style boolean plus timestamp/operator columns whose names are passed in `$.valueKey`. Returns `sCode=-1` + localised paramsErro (via `Sp_Sis_GetConst`) if `sProInParam` is invalid.

**Invocation:** Dispatched by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` (POST `/procedureCall/doGenericProcedureCall`) — the 计划列表 toolbar's 印油完工 button names this proc as its action. No xly-src install script ships it; it lives only in the DB.
