# `viw_mftproductionplan_plate` (view)


- **Updatable:** NO

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sSlaveId` | `varchar(100)` | NO |
| 3 | `iOrder` | `int` | NO |
| 4 | `sCustomerId` | `varchar(100)` | NO |
| 5 | `sManualNo` | `varchar(11)` | YES |
| 6 | `sCustomerOrderNo` | `varchar(11)` | YES |
| 7 | `sProductId` | `varchar(100)` | NO |
| 8 | `sProcessId` | `varchar(100)` | NO |
| 9 | `dProductQty` | `decimal(18,6)` | NO |
| 10 | `sPartsName` | `varchar(255)` | YES |
| 11 | `sMachineId` | `varchar(100)` | YES |
| 12 | `dProductionReportQty` | `decimal(18,6)` | NO |
| 13 | `dHour` | `decimal(18,6)` | NO |
| 14 | `tStartDate` | `datetime` | YES |
| 15 | `tEndDate` | `datetime` | YES |
| 16 | `sMaterialsId` | `varchar(100)` | YES |
| 17 | `bProductionReportComplete` | `bit(1)` | NO |
| 18 | `sEmployeeId` | `varchar(100)` | NO |
| 19 | `sTeamId` | `varchar(100)` | NO |
| 20 | `sWorkCenterId` | `varchar(100)` | NO |
| 21 | `iComplete` | `int` | YES |
| 22 | `sSrcSlaveId` | `varchar(100)` | NO |
| 23 | `sSrcId` | `varchar(100)` | NO |
| 24 | `sSrcNo` | `varchar(255)` | NO |
| 25 | `dProductPQty` | `decimal(18,6)` | YES |
| 26 | `sSlaveMemo` | `text` | YES |
| 27 | `sWebOrderNo` | `varchar(255)` | NO |
| 28 | `sWebOrderId` | `varchar(100)` | NO |
| 29 | `sBarcode` | `varchar(255)` | YES |
| 30 | `sOrderId` | `varchar(100)` | NO |
| 31 | `sOrderNo` | `varchar(255)` | NO |
| 32 | `sOrderSlaveId` | `varchar(100)` | NO |
| 33 | `sWorkOrderId` | `varchar(100)` | NO |
| 34 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 35 | `sWorkOrderNo` | `varchar(255)` | NO |
| 36 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 37 | `sWorkOrderProcessTbId` | `varchar(100)` | NO |
| 38 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 39 | `sMaterialsStyle` | `varchar(50)` | YES |
| 40 | `dAuxiliaryQty` | `decimal(18,6)` | YES |
| 41 | `sState` | `varchar(11)` | NO |
| 42 | `bFrozen` | `bit(1)` | NO |
| 43 | `sSReserve1` | `varchar(255)` | YES |
| 44 | `sSReserve2` | `varchar(255)` | YES |
| 45 | `sSReserve3` | `varchar(255)` | YES |
| 46 | `sSReserve4` | `varchar(255)` | YES |
| 47 | `sSReserve5` | `varchar(255)` | YES |
| 48 | `sSReserve6` | `varchar(255)` | YES |
| 49 | `dSReserve1` | `decimal(18,6)` | YES |
| 50 | `dSReserve2` | `decimal(18,6)` | YES |
| 51 | `dSReserve3` | `decimal(18,6)` | YES |
| 52 | `iSReserve1` | `int` | YES |
| 53 | `iSReserve2` | `int` | YES |
| 54 | `iSReserve3` | `int` | YES |
| 55 | `tSReserve1` | `datetime` | YES |
| 56 | `tSReserve2` | `datetime` | YES |
| 57 | `sType` | `varchar(255)` | YES |
| 58 | `dPlateQty` | `decimal(40,6)` | YES |
| 59 | `dPrintQty` | `decimal(18,6)` | YES |
| 60 | `iLevel` | `int` | YES |
| 61 | `sMemo` | `text` | YES |
| 62 | `dAdjustHour` | `decimal(18,6)` | YES |
| 63 | `bCut` | `bit(1)` | NO |
| 64 | `bMat` | `bit(1)` | NO |
| 65 | `bPublish` | `bit(1)` | NO |
| 66 | `sAfterProcess` | `text` | YES |
| 67 | `sPackage` | `varchar(100)` | YES |
| 68 | `sDeliveryMode` | `varchar(100)` | YES |
| 69 | `sSubsidiaryId` | `varchar(100)` | NO |
| 70 | `sBrandsId` | `varchar(100)` | NO |
| 71 | `tCreateDate` | `datetime` | NO |
| 72 | `sMakePerson` | `varchar(255)` | NO |
| 73 | `bMakeup` | `bit(1)` | NO |
| 74 | `tMakeup` | `datetime` | YES |
| 75 | `sMakeup` | `varchar(255)` | YES |
| 76 | `bInking` | `bit(1)` | NO |
| 77 | `tInkingDate` | `datetime` | YES |
| 78 | `sInkingPerson` | `varchar(50)` | NO |
| 79 | `dInkingQty` | `decimal(18,6)` | NO |
| 80 | `dInkingMoney` | `decimal(18,6)` | NO |
| 81 | `bMould` | `bit(1)` | NO |
| 82 | `sMouldPerson` | `varchar(50)` | NO |
| 83 | `tMouldDate` | `datetime` | YES |
| 84 | `sMouldNo` | `varchar(50)` | YES |
| 85 | `sCutPerson` | `varchar(255)` | YES |
| 86 | `tCutDate` | `datetime` | YES |
| 87 | `dCutMoney` | `decimal(18,6)` | NO |
| 88 | `dPublishMoney` | `decimal(18,6)` | NO |
| 89 | `dMakeupMoney` | `decimal(18,6)` | NO |
| 90 | `dMakeupBuQty` | `decimal(18,6)` | NO |
| 91 | `dCalcQty1` | `decimal(18,6)` | NO |
| 92 | `dCalcQty2` | `decimal(18,6)` | NO |
| 93 | `dCalcHour1` | `decimal(18,6)` | NO |
| 94 | `sColorSerialMemo` | `varchar(255)` | NO |
| 95 | `sReportParams` | `longtext` | YES |
| 96 | `tLimitReportDate` | `datetime` | YES |
| 97 | `dPublishBuQty` | `decimal(18,6)` | NO |
| 98 | `tPublishDate` | `datetime` | YES |
| 99 | `sPublishPerson` | `varchar(255)` | YES |
| 100 | `sGroupId` | `varchar(200)` | NO |
| 101 | `sSrcFormId` | `varchar(100)` | NO |
| 102 | `iPublishQty` | `int` | YES |
| 103 | `iUsePublishQty` | `int` | YES |
| 104 | `sUsePublishType` | `varchar(50)` | YES |
| 105 | `iCtPStyle` | `int` | YES |
| 106 | `bPublishComplete` | `bit(1)` | YES |
| 107 | `bOnePublish` | `bit(1)` | YES |
| 108 | `sPColorSerial` | `varchar(50)` | YES |
| 109 | `iPFace` | `int` | YES |
| 110 | `iPColor` | `int` | YES |
| 111 | `iPSpecialColor` | `int` | YES |

## Definition

```sql
select `mftproductionplanslave`.`sId` AS `sId`,`mftproductionplanslave`.`sId` AS `sSlaveId`,`mftproductionplanslave`.`iOrder` AS `iOrder`,`mftproductionplanslave`.`sCustomerId` AS `sCustomerId`,`mftproductionplanslave`.`sManualNo` AS `sManualNo`,`mftproductionplanslave`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`mftproductionplanslave`.`sProductId` AS `sProductId`,`mftproductionplanslave`.`sProcessId` AS `sProcessId`,`mftproductionplanslave`.`dProductQty` AS `dProductQty`,`mftproductionplanslave`.`sPartsName` AS `sPartsName`,`mftproductionplanslave`.`sMachineId` AS `sMachineId`,`mftproductionplanslave`.`dProductionReportQty` AS `dProductionReportQty`,`mftproductionplanslave`.`dHour` AS `dHour`,`mftproductionplanslave`.`tStartDate` AS `tStartDate`,`mftproductionplanslave`.`tEndDate` AS `tEndDate`,`mftproductionplanslave`.`sMaterialsId` AS `sMaterialsId`,`mftproductionplanslave`.`bProductionReportComplete` AS `bProductionReportComplete`,`mftproductionplanslave`.`sEmployeeId` AS `sEmployeeId`,`mftproductionplanslave`.`sTeamId` AS `sTeamId`,`mftproductionplanslave`.`sWorkCenterId` AS `sWorkCenterId`,`mftproductionplanslave`.`iComplete` AS `iComplete`,`mftproductionplanslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`mftproductionplanslave`.`sSrcId` AS `sSrcId`,`mftproductionplanslave`.`sSrcNo` AS `sSrcNo`,`mftproductionplanslave`.`dProductPQty` AS `dProductPQty`,`mftproductionplanslave`.`sSlaveMemo` AS `sSlaveMemo`,`mftproductionplanslave`.`sWebOrderNo` AS `sWebOrderNo`,`mftproductionplanslave`.`sWebOrderId` AS `sWebOrderId`,`mftproductionplanslave`.`sBarcode` AS `sBarcode`,`mftproductionplanslave`.`sOrderId` AS `sOrderId`,`mftproductionplanslave`.`sOrderNo` AS `sOrderNo`,`mftproductionplanslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`mftproductionplanslave`.`sWorkOrderId` AS `sWorkOrderId`,`mftproductionplanslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`mftproductionplanslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`mftproductionplanslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`mftproductionplanslave`.`sWorkOrderProcessTbId` AS `sWorkOrderProcessTbId`,`mftproductionplanslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`mftproductionplanslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`mftproductionplanslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`mftproductionplanslave`.`sState` AS `sState`,`mftproductionplanslave`.`bFrozen` AS `bFrozen`,`mftproductionplanslave`.`sSReserve1` AS `sSReserve1`,`mftproductionplanslave`.`sSReserve2` AS `sSReserve2`,`mftproductionplanslave`.`sSReserve3` AS `sSReserve3`,`mftproductionplanslave`.`sSReserve4` AS `sSReserve4`,`mftproductionplanslave`.`sSReserve5` AS `sSReserve5`,`mftproductionplanslave`.`sSReserve6` AS `sSReserve6`,`mftproductionplanslave`.`dSReserve1` AS `dSReserve1`,`mftproductionplanslave`.`dSReserve2` AS `dSReserve2`,`mftproductionplanslave`.`dSReserve3` AS `dSReserve3`,`mftproductionplanslave`.`iSReserve1` AS `iSReserve1`,`mftproductionplanslave`.`iSReserve2` AS `iSReserve2`,`mftproductionplanslave`.`iSReserve3` AS `iSReserve3`,`mftproductionplanslave`.`tSReserve1` AS `tSReserve1`,`mftproductionplanslave`.`tSReserve2` AS `tSReserve2`,`mftproductionplanslave`.`sType` AS `sType`,sum(ifnull(`mftproductionplanslave`.`dPlateQty`,0)) AS `dPlateQty`,`mftproductionplanslave`.`dPrintQty` AS `dPrintQty`,`mftproductionplanslave`.`iLevel` AS `iLevel`,`mftproductionplanslave`.`sMemo` AS `sMemo`,`mftproductionplanslave`.`dAdjustHour` AS `dAdjustHour`,`mftproductionplanslave`.`bCut` AS `bCut`,`mftproductionplanslave`.`bMat` AS `bMat`,`mftproductionplanslave`.`bPublish` AS `bPublish`,`mftproductionplanslave`.`sAfterProcess` AS `sAfterProcess`,`mftproductionplanslave`.`sPackage` AS `sPackage`,`mftproductionplanslave`.`sDeliveryMode` AS `sDeliveryMode`,`mftproductionplanslave`.`sSubsidiaryId` AS `sSubsidiaryId`,`mftproductionplanslave`.`sBrandsId` AS `sBrandsId`,`mftproductionplanslave`.`tCreateDate` AS `tCreateDate`,`mftproductionplanslave`.`sMakePerson` AS `sMakePerson`,`mftproductionplanslave`.`bMakeup` AS `bMakeup`,`mftproductionplanslave`.`tMakeup` AS `tMakeup`,`mftproductionplanslave`.`sMakeup` AS `sMakeup`,`mftproductionplanslave`.`bInking` AS `bInking`,`mftproductionplanslave`.`tInkingDate` AS `tInkingDate`,`mftproductionplanslave`.`sInkingPerson` AS `sInkingPerson`,`mftproductionplanslave`.`dInkingQty` AS `dInkingQty`,`mftproductionplanslave`.`dInkingMoney` AS `dInkingMoney`,`mftproductionplanslave`.`bMould` AS `bMould`,`mftproductionplanslave`.`sMouldPerson` AS `sMouldPerson`,`mftproductionplanslave`.`tMouldDate` AS `tMouldDate`,`mftproductionplanslave`.`sMouldNo` AS `sMouldNo`,`mftproductionplanslave`.`sCutPerson` AS `sCutPerson`,`mftproductionplanslave`.`tCutDate` AS `tCutDate`,`mftproductionplanslave`.`dCutMoney` AS `dCutMoney`,`mftproductionplanslave`.`dPublishMoney` AS `dPublishMoney`,`mftproductionplanslave`.`dMakeupMoney` AS `dMakeupMoney`,`mftproductionplanslave`.`dMakeupBuQty` AS `dMakeupBuQty`,`mftproductionplanslave`.`dCalcQty1` AS `dCalcQty1`,`mftproductionplanslave`.`dCalcQty2` AS `dCalcQty2`,`mftproductionplanslave`.`dCalcHour1` AS `dCalcHour1`,`mftproductionplanslave`.`sColorSerialMemo` AS `sColorSerialMemo`,`mftproductionplanslave`.`sReportParams` AS `sReportParams`,(`mftproductionplanslave`.`tStartDate` + interval 3 day) AS `tLimitReportDate`,`mftproductionplanslave`.`dPublishBuQty` AS `dPublishBuQty`,`mftproductionplanslave`.`tPublishDate` AS `tPublishDate`,`mftproductionplanslave`.`sPublishPerson` AS `sPublishPerson`,concat(`mftproductionplanslave`.`sSrcId`,`mftproductionplanslave`.`sWorkOrderControlId`) AS `sGroupId`,`mftproductionplanslave`.`sSrcFormId` AS `sSrcFormId`,`mftproductionplanslave`.`iPublishQty` AS `iPublishQty`,`mftproductionplanslave`.`iUsePublishQty` AS `iUsePublishQty`,`mftproductionplanslave`.`sUsePublishType` AS `sUsePublishType`,`mftproductionplanslave`.`iCTPStyle` AS `iCtPStyle`,`mftproductionplanslave`.`bPublishComplete` AS `bPublishComplete`,`mftproductionplanslave`.`bOnePublish` AS `bOnePublish`,`mftproductionplanslave`.`sPColorSerial` AS `sPColorSerial`,`mftproductionplanslave`.`iPFace` AS `iPFace`,`mftproductionplanslave`.`iPColor` AS `iPColor`,`mftproductionplanslave`.`iPSpecialColor` AS `iPSpecialColor` from `mftproductionplanslave` where (`mftproductionplanslave`.`sType` = 1) group by `mftproductionplanslave`.`sSrcNo`,`mftproductionplanslave`.`sSrcId`,`mftproductionplanslave`.`sWorkOrderControlId`,`mftproductionplanslave`.`sWorkOrderProcessTbId`,`mftproductionplanslave`.`dCalcQty2`,`mftproductionplanslave`.`dCalcQty1`
```

## Narrative

_No human-written narrative yet._
