Sp_MftPlanPhase_BtnEventConvertPlanA.md 1.7 KB

Sp_MftPlanPhase_BtnEventConvertPlanA (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 PROCEDURESpMftPlanPhase_BtnEventConvertPlanA'._

Narrative

Business context: 生产管理 → 生产计划 → 备用生产计划跟进(部件) — "转入常规计划" button: flips the selected backup-plan rows back to the regular (常规) plan track by clearing the bPlanB flag on mftworkordercontrol and the denormalised CalcProductContralsPhase. Inverse of Sp_MftPlanPhase_BtnEventConvertPlanB.

What it does: Validates sProInParam length, parses $.params[*].value[*].sId, and for each id sets bPlanB=0 on both mftworkordercontrol and CalcProductContralsPhase (scoped by sBrandsId=sBrId / sSubsidiaryId=sSuId). Returns the standard sReturn/sCode pair (paramsErro short-circuit when input is empty).

Invocation: Dispatched dynamically by GenericProcedureCallServiceImpl.doGenericProcedureCall() on the 备用生产计划跟进(部件) grid's 转入常规计划 toolbar button. xly-src ships script/标版/30100101/schedule/Sp_MftPlanPhase_BtnEventConvertPlanA.sql (install). No gdsmodule.sProcName / gdsconfigformmaster.sSqlStr reference — the binding lives in the grid's sBtnContent JSON.