# `Sp_Con_FormsReset` (procedure)

> 配置还原


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sFormGuid` | `varchar(100)` |

## Body

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

## Narrative

**Business context:** 系统平台 → 表单配置 — 配置还原 ("config restore") helper for a single parent form. Wipes the bill-check-result child config under a given parent form-guid and re-inserts the canonical 审批信息 (approval-info) layout — the same definition shipped with the standard form templates — so a damaged or customized approval-tab config can be reset on one form at a time.

**What it does:** When `sFormGuid` is non-empty, `INSERT INTO gdsconfigformmaster` a fresh `sysbillcheckresult`-bound child row (table-type=`table`, the standard `biz_todo_item` × `biz_flow` join SQL that pulls audit info from the workflow engine), then `INSERT INTO gdsconfigformslave` a full set of column definitions (`sItemName`, `sNodeName`, `bView`, `bHandle`, `tToDate`, `tHandleDate`, etc.) under the new master.

**Invocation:** Status: appears orphaned. No `gdsmodule` hook, `gdsconfigformmaster.sSqlStr` self-reference, or other-routine caller; xly-src only ships the install script `script/标版/30100101/Sp_Con_FormsReset.sql`. Per-form variant of `Sp_Con_Reset`; intended for maintenance/seeding (one-shot dev-tool), not normal runtime traffic.
