# `salsalesordercontrol`

> 订单控制表


- **Engine:** InnoDB
- **Collation:** utf8mb3_general_ci

## Columns

| # | Name | Type | Null | Key | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| 1 | `iIncrement` | `int` | NO | PRI |  | auto_increment | 自增列 |
| 2 | `sId` | `varchar(100)` | NO | MUL |  |  | 唯一ID |
| 3 | `sBrandsId` | `varchar(100)` | NO |  |  |  | 加工商ID |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |  |  |  | 子公司ID |
| 5 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 6 | `sParentId` | `varchar(100)` | NO | MUL |  |  | 父级ID |
| 7 | `sControlParentId` | `varchar(100)` | NO |  |  |  | 部件的父级ID |
| 8 | `sChildren` | `varchar(255)` | YES |  |  |  | 是否为最子级 |
| 9 | `sSlaveId` | `varchar(100)` | NO |  |  |  | 从表Id |
| 10 | `sPartsName` | `varchar(255)` | NO |  |  |  | 部件名称 |
| 11 | `dPartsQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 部件数量 |
| 12 | `iPositiveColor` | `int` | NO |  | 0 |  | 正面颜色 |
| 13 | `iPositiveSpecialColor` | `int` | NO |  | 0 |  | 正面专色 |
| 14 | `iOppositeColor` | `int` | NO |  | 0 |  | 反面颜色 |
| 15 | `iOppositeSpecialColor` | `int` | NO |  | 0 |  | 反面专色 |
| 16 | `dMachineLength` | `decimal(18,6)` | NO |  | 0.000000 |  | 上机长度 |
| 17 | `dMachineWidth` | `decimal(18,6)` | NO |  | 0.000000 |  | 上机宽度 |
| 18 | `dSinglePQty` | `decimal(18,6)` | YES |  |  |  | 单面P数 |
| 19 | `dSumPQty` | `decimal(18,0)` | YES |  |  |  | 总P数 |
| 20 | `dMachineQty` | `decimal(18,6)` | YES |  |  |  | 上机数量 |
| 21 | `dSumMachineQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 总上机数量 |
| 22 | `dStretchPrintQty` | `decimal(18,6)` | YES |  |  |  | 印刷放张 |
| 23 | `dStretchPrintAfterQty` | `decimal(18,6)` | YES |  |  |  | 印后放张 |
| 24 | `dSumStretchQty` | `decimal(18,6)` | YES |  |  |  | 总放张 |
| 25 | `dPlateQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 印版付数 |
| 26 | `dSumPlateQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 印版张数 |
| 27 | `iPrintModePo` | `int` | NO |  | 0 |  | 印刷类型 |
| 28 | `iPrintMode` | `int` | NO |  | 0 |  | 印刷方式 |
| 29 | `iStick` | `int` | NO |  | 0 |  | 贴数 |
| 30 | `iPage` | `int` | YES |  |  |  | 倍率 |
| 31 | `sMachinePicturePath` | `varchar(255)` | YES |  |  |  | 上机图片地址 |
| 32 | `sMaterialsPicturePath` | `varchar(255)` | YES |  |  |  | 开料图片地址 |
| 33 | `sPrintModeMemo` | `text` | YES |  |  |  | 印刷信息 |
| 34 | `sMaterials` | `varchar(255)` | YES |  |  |  | 材料名称 |
| 35 | `sPrintAfterProcess` | `varchar(255)` | YES |  |  |  | 印后工序名称 |
| 36 | `bAllOut` | `bit(1)` | NO |  | b'0' |  | 部件是否发外 |
| 37 | `sAllId` | `varchar(255)` | YES |  |  |  | 本ID与父级ID |
| 38 | `iPullGauge` | `int` | YES |  |  |  | 拉规 |
| 39 | `sControlMemo` | `text` | YES |  |  |  | 备注 |
| 40 | `sCReserve1` | `varchar(255)` | YES |  |  |  | 预留字符1 |
| 41 | `sCReserve2` | `varchar(255)` | YES |  |  |  | 预留字符2 |
| 42 | `sCReserve3` | `varchar(255)` | YES |  |  |  | 预留字符3 |
| 43 | `sCReserve4` | `varchar(255)` | YES |  |  |  | 预留字符4 |
| 44 | `sCReserve5` | `varchar(255)` | YES |  |  |  | 预留字符5 |
| 45 | `sCReserve6` | `varchar(255)` | YES |  |  |  | 预留字符6 |
| 46 | `dCReserve1` | `decimal(18,6)` | YES |  |  |  | 预留数字1 |
| 47 | `dCReserve2` | `decimal(18,6)` | YES |  |  |  | 预留数字2 |
| 48 | `dCReserve3` | `decimal(18,6)` | YES |  |  |  | 预留数字3 |
| 49 | `iCReserve1` | `int` | YES |  |  |  | 预留整型1 |
| 50 | `iCReserve2` | `int` | YES |  |  |  | 预留整型2 |
| 51 | `iCReserve3` | `int` | YES |  |  |  | 预留整型3 |
| 52 | `tCReserve1` | `datetime` | YES |  |  |  | 预留日期1 |
| 53 | `tCReserve2` | `datetime` | YES |  |  |  | 预留日期2 |
| 54 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 制单人 |
| 55 | `sCombinedMemo` | `text` | YES |  |  |  | 合版信息 |
| 56 | `iCol` | `int` | YES |  |  |  | 上下排版 |
| 57 | `iRow` | `int` | YES |  |  |  | 左右排版 |
| 58 | `dColGap` | `decimal(18,6)` | YES |  |  |  | 上下间距 |
| 59 | `dRowGap` | `decimal(18,6)` | YES |  |  |  | 左右间距 |
| 60 | `dCutEdge` | `decimal(18,6)` | YES |  |  |  | 单边留边 |
| 61 | `dCoefficient` | `decimal(18,6)` | NO |  | 1.000000 |  | 系数 |
| 62 | `dBookPaperQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 书刊印张数 |
| 63 | `dCoupletQty` | `decimal(18,6)` | YES |  |  |  | 对联数 |
| 64 | `dMaterialsKQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 开料开数 |
| 65 | `dMachineLengthA` | `decimal(18,6)` | NO |  | 0.000000 |  | 上机长 |
| 66 | `dMachineWidthB` | `decimal(18,6)` | NO |  | 0.000000 |  | 上机宽 |
| 67 | `dPartsLength` | `decimal(18,6)` | NO |  | 0.000000 |  | 部件长 |
| 68 | `dPartsWidth` | `decimal(18,6)` | NO |  | 0.000000 |  | 部件宽 |
| 69 | `sPositiveColor` | `longtext` | YES |  |  |  | 正面颜色 |
| 70 | `sOppositeColor` | `longtext` | YES |  |  |  | 反面颜色 |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_salsalesordercontrol` |  | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId`, `sParentId` |
| `IndexU_salsalesordercontrol` | ✓ | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_salsalesordercontrol_ParentId` | ✓ | BTREE | `sParentId`, `sSlaveId`, `sPartsName`, `sBrandsId`, `sSubsidiaryId` |
| `PRIMARY` | ✓ | BTREE | `iIncrement` |

## Narrative

_No human-written narrative yet — when this table is exercised by a [vertical slice](../../slices/index.md), link from there back to this page._
