# `viw_mftqualityaccident` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(100)` | NO |
| 3 | `sSrcId` | `varchar(100)` | NO |
| 4 | `sSrcSlaveId` | `varchar(100)` | NO |
| 5 | `sBrandsId` | `varchar(100)` | NO |
| 6 | `sSubsidiaryId` | `varchar(100)` | NO |
| 7 | `tCreateDate` | `datetime` | NO |
| 8 | `sMakePerson` | `varchar(255)` | NO |
| 9 | `iOrder` | `int` | NO |
| 10 | `sFormId` | `varchar(100)` | NO |
| 11 | `sBillNo` | `varchar(255)` | NO |
| 12 | `sCustomerId` | `varchar(100)` | NO |
| 13 | `sWorkOrderId` | `varchar(100)` | NO |
| 14 | `sProductId` | `varchar(100)` | NO |
| 15 | `dRewardPunishmentMoney` | `decimal(18,6)` | YES |
| 16 | `sReporter` | `varchar(255)` | YES |
| 17 | `tReportDate` | `datetime` | YES |
| 18 | `sResponsibleSupplyId` | `varchar(100)` | YES |
| 19 | `dProductQty` | `decimal(18,6)` | YES |
| 20 | `dProductTestQty` | `decimal(18,6)` | YES |
| 21 | `dMajorDefectQty` | `decimal(18,6)` | YES |
| 22 | `dReplenishmentQty` | `decimal(18,6)` | YES |
| 23 | `sAccidentMemo` | `text` | YES |
| 24 | `sReasonAnalyse` | `text` | YES |
| 25 | `sReason` | `varchar(255)` | YES |
| 26 | `sType` | `varchar(255)` | YES |
| 27 | `sSrctype` | `varchar(100)` | NO |
| 28 | `bFile` | `varchar(255)` | YES |
| 29 | `sMemo` | `text` | YES |
| 30 | `dLoseMoney` | `decimal(18,6)` | YES |
| 31 | `sResponsiblePerson` | `varchar(255)` | YES |
| 32 | `bCheck` | `bit(1)` | NO |
| 33 | `tCheckDate` | `datetime` | YES |
| 34 | `sCheckPerson` | `varchar(255)` | YES |
| 35 | `bPrint` | `bit(1)` | NO |
| 36 | `bCopyLimit` | `bit(1)` | NO |
| 37 | `sStatus` | `varchar(255)` | YES |
| 38 | `sMachineId` | `varchar(100)` | NO |
| 39 | `bInvalid` | `bit(1)` | NO |
| 40 | `sMReserve1` | `varchar(255)` | YES |
| 41 | `sMReserve2` | `varchar(255)` | YES |
| 42 | `sMReserve3` | `varchar(255)` | YES |
| 43 | `sMReserve4` | `varchar(255)` | YES |
| 44 | `sMReserve5` | `varchar(255)` | YES |
| 45 | `sMReserve6` | `varchar(255)` | YES |
| 46 | `dMReserve1` | `decimal(18,6)` | YES |
| 47 | `dMReserve2` | `decimal(18,6)` | YES |
| 48 | `dMReserve3` | `decimal(18,6)` | YES |
| 49 | `iMReserve1` | `int` | YES |
| 50 | `iMReserve2` | `int` | YES |
| 51 | `iMReserve3` | `int` | YES |
| 52 | `tMReserve1` | `datetime` | YES |
| 53 | `tMReserve2` | `datetime` | YES |
| 54 | `sSrcNo` | `varchar(100)` | YES |
| 55 | `bPendingComplete` | `bit(1)` | NO |
| 56 | `sSlaveId` | `varchar(100)` | NO |
| 57 | `iSlaveOrder` | `int` | NO |
| 58 | `sParentId` | `varchar(100)` | NO |
| 59 | `sProcessId` | `varchar(100)` | NO |
| 60 | `sMaterialsId` | `varchar(100)` | NO |
| 61 | `sSlaveResponsibleSupplyId` | `varchar(100)` | NO |
| 62 | `sResponsiblePersonId` | `varchar(100)` | NO |
| 63 | `dResponsibleMoney` | `decimal(18,6)` | NO |
| 64 | `sSlaveSReserve1` | `varchar(255)` | YES |
| 65 | `sSlaveSReserve2` | `varchar(255)` | YES |
| 66 | `sSlaveSReserve3` | `varchar(255)` | YES |
| 67 | `sSlaveSReserve4` | `varchar(255)` | YES |
| 68 | `sSlaveSReserve5` | `varchar(255)` | YES |
| 69 | `sSlaveSReserve6` | `varchar(255)` | YES |
| 70 | `dSlaveSReserve1` | `decimal(18,6)` | YES |
| 71 | `dSlaveSReserve2` | `decimal(18,6)` | YES |
| 72 | `dSlaveSReserve3` | `decimal(18,6)` | YES |
| 73 | `iSlaveSReserve1` | `int` | YES |
| 74 | `iSlaveSReserve2` | `int` | YES |
| 75 | `iSlaveSReserve3` | `int` | YES |
| 76 | `tSlaveSReserve1` | `datetime` | YES |
| 77 | `tSlaveSReserve2` | `datetime` | YES |
| 78 | `sSlaveMakePerson` | `varchar(255)` | NO |
| 79 | `sSlaveMachineId` | `varchar(100)` | NO |
| 80 | `sTeamId` | `varchar(100)` | NO |
| 81 | `sSlaveSrcId` | `varchar(100)` | NO |
| 82 | `sSlaveSrcSlaveId` | `varchar(100)` | NO |
| 83 | `sSlaveSrcNo` | `varchar(100)` | NO |
| 84 | `sDefineNo` | `varchar(100)` | NO |
| 85 | `sDefineNo2` | `varchar(100)` | NO |
| 86 | `sSlaveMemo` | `text` | YES |
| 87 | `bReplenishment` | `bit(1)` | NO |
| 88 | `dSlaveReplenishmentQty` | `decimal(18,6)` | NO |
| 89 | `bReplenishmentComplete` | `bit(1)` | NO |
| 90 | `sSlaveProductId` | `varchar(100)` | NO |
| 91 | `sPicturePath` | `varchar(100)` | NO |
| 92 | `sFileName` | `varchar(100)` | NO |
| 93 | `sSlaveReasonAnalyse` | `varchar(255)` | NO |
| 94 | `sSlaveAccidentMemo` | `varchar(255)` | NO |
| 95 | `sRectificationMemo` | `varchar(255)` | NO |
| 96 | `sValidationMemo` | `varchar(255)` | NO |
| 97 | `sSlaveWorkOrderId` | `varchar(100)` | YES |
| 98 | `sWorkOrderNo` | `varchar(100)` | YES |
| 99 | `tDeliverDate` | `datetime` | YES |
| 100 | `sDeptId` | `varchar(100)` | YES |
| 101 | `dExamineMoney1` | `decimal(18,2)` | NO |
| 102 | `sOrderNo` | `varchar(100)` | NO |
| 103 | `sReprint` | `varchar(100)` | YES |
| 104 | `bDeductionCustomer` | `bit(1)` | YES |
| 105 | `sCheckMemo` | `varchar(4000)` | YES |
| 106 | `sJzMemo` | `varchar(1000)` | YES |
| 107 | `bDeductionSupply` | `bit(1)` | YES |
| 108 | `bDeductionMaterials` | `bit(1)` | YES |
| 109 | `sOrderId` | `varchar(100)` | YES |
| 110 | `sOrderSlaveId` | `varchar(100)` | YES |
| 111 | `sWorkOrderSlaveId` | `varchar(100)` | YES |
| 112 | `sDeptName` | `varchar(255)` | YES |
| 113 | `bEvaluate` | `bit(1)` | YES |
| 114 | `iReason` | `int` | YES |
| 115 | `bComplainComplete` | `bit(1)` | YES |
| 116 | `sOrderId1` | `varchar(255)` | YES |
| 117 | `sOrderSlaveId1` | `varchar(255)` | YES |
| 118 | `sOrderNo1` | `varchar(255)` | YES |
| 119 | `sWorkOrderNo1` | `varchar(100)` | YES |
| 120 | `sWorkOrderId1` | `varchar(100)` | YES |
| 121 | `sWorkOrderSlaveId1` | `varchar(255)` | YES |
| 122 | `dDeductionCustomerMoney` | `decimal(18,6)` | YES |
| 123 | `dDeductionSupplyMoney` | `decimal(18,6)` | YES |
| 124 | `dDeductionMaterialsMoney` | `decimal(18,6)` | YES |
| 125 | `iWork` | `int` | YES |

## Definition

```sql
select `m`.`iIncrement` AS `iIncrement`,`m`.`sId` AS `sId`,`m`.`sSrcId` AS `sSrcId`,`m`.`sSrcSlaveId` AS `sSrcSlaveId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`m`.`sCustomerId` AS `sCustomerId`,`m`.`sWorkOrderId` AS `sWorkOrderId`,`m`.`sProductId` AS `sProductId`,`m`.`dRewardPunishmentMoney` AS `dRewardPunishmentMoney`,`m`.`sReporter` AS `sReporter`,`m`.`tReportDate` AS `tReportDate`,`m`.`sResponsibleSupplyId` AS `sResponsibleSupplyId`,`m`.`dProductQty` AS `dProductQty`,`m`.`dProductTestQty` AS `dProductTestQty`,`m`.`dMajorDefectQty` AS `dMajorDefectQty`,`m`.`dReplenishmentQty` AS `dReplenishmentQty`,`m`.`sAccidentMemo` AS `sAccidentMemo`,`m`.`sReasonAnalyse` AS `sReasonAnalyse`,`m`.`sReason` AS `sReason`,`m`.`sType` AS `sType`,`m`.`sSrctype` AS `sSrctype`,`m`.`bFile` AS `bFile`,`m`.`sMemo` AS `sMemo`,`m`.`dLoseMoney` AS `dLoseMoney`,`m`.`sResponsiblePerson` AS `sResponsiblePerson`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sStatus` AS `sStatus`,`s`.`sMachineId` AS `sMachineId`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,`m`.`sSrcNo` AS `sSrcNo`,`m`.`bPendingComplete` AS `bPendingComplete`,`s`.`sId` AS `sSlaveId`,`s`.`iOrder` AS `iSlaveOrder`,`s`.`sParentId` AS `sParentId`,`s`.`sProcessId` AS `sProcessId`,`s`.`sMaterialsId` AS `sMaterialsId`,`s`.`sResponsibleSupplyId` AS `sSlaveResponsibleSupplyId`,`s`.`sResponsiblePersonId` AS `sResponsiblePersonId`,`s`.`dResponsibleMoney` AS `dResponsibleMoney`,`s`.`sSReserve1` AS `sSlaveSReserve1`,`s`.`sSReserve2` AS `sSlaveSReserve2`,`s`.`sSReserve3` AS `sSlaveSReserve3`,`s`.`sSReserve4` AS `sSlaveSReserve4`,`s`.`sSReserve5` AS `sSlaveSReserve5`,`s`.`sSReserve6` AS `sSlaveSReserve6`,`s`.`dSReserve1` AS `dSlaveSReserve1`,`s`.`dSReserve2` AS `dSlaveSReserve2`,`s`.`dSReserve3` AS `dSlaveSReserve3`,`s`.`iSReserve1` AS `iSlaveSReserve1`,`s`.`iSReserve2` AS `iSlaveSReserve2`,`s`.`iSReserve3` AS `iSlaveSReserve3`,`s`.`tSReserve1` AS `tSlaveSReserve1`,`s`.`tSReserve2` AS `tSlaveSReserve2`,`s`.`sMakePerson` AS `sSlaveMakePerson`,`s`.`sMachineId` AS `sSlaveMachineId`,`s`.`sTeamId` AS `sTeamId`,`s`.`sSrcId` AS `sSlaveSrcId`,`s`.`sSrcSlaveId` AS `sSlaveSrcSlaveId`,`s`.`sSrcNo` AS `sSlaveSrcNo`,`s`.`sDefineNo` AS `sDefineNo`,`s`.`sDefineNo2` AS `sDefineNo2`,`s`.`sMemo` AS `sSlaveMemo`,`s`.`bReplenishment` AS `bReplenishment`,`s`.`dReplenishmentQty` AS `dSlaveReplenishmentQty`,`s`.`bReplenishmentComplete` AS `bReplenishmentComplete`,`s`.`sProductId` AS `sSlaveProductId`,`s`.`sPicturePath` AS `sPicturePath`,`s`.`sFileName` AS `sFileName`,`s`.`sReasonAnalyse` AS `sSlaveReasonAnalyse`,`s`.`sAccidentMemo` AS `sSlaveAccidentMemo`,`s`.`sRectificationMemo` AS `sRectificationMemo`,`s`.`sValidationMemo` AS `sValidationMemo`,`s`.`sWorkOrderId` AS `sSlaveWorkOrderId`,`s`.`sWorkOrderNo` AS `sWorkOrderNo`,`s`.`tDeliverDate` AS `tDeliverDate`,`s`.`sDeptId` AS `sDeptId`,`s`.`dExamineMoney1` AS `dExamineMoney1`,`m`.`sOrderNo` AS `sOrderNo`,`m`.`sReprint` AS `sReprint`,`m`.`bDeductionCustomer` AS `bDeductionCustomer`,`m`.`sCheckMemo` AS `sCheckMemo`,`m`.`sJzMemo` AS `sJzMemo`,`m`.`bDeductionSupply` AS `bDeductionSupply`,`m`.`bDeductionMaterials` AS `bDeductionMaterials`,`m`.`sOrderId` AS `sOrderId`,`m`.`sOrderSlaveId` AS `sOrderSlaveId`,`m`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`s`.`sDeptName` AS `sDeptName`,`s`.`bEvaluate` AS `bEvaluate`,`m`.`iReason` AS `iReason`,`s`.`bComplainComplete` AS `bComplainComplete`,`s`.`sOrderId` AS `sOrderId1`,`s`.`sOrderSlaveId` AS `sOrderSlaveId1`,`s`.`sOrderNo` AS `sOrderNo1`,`s`.`sWorkOrderNo` AS `sWorkOrderNo1`,`s`.`sWorkOrderId` AS `sWorkOrderId1`,`s`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId1`,`m`.`dDeductionCustomerMoney` AS `dDeductionCustomerMoney`,`m`.`dDeductionSupplyMoney` AS `dDeductionSupplyMoney`,`m`.`dDeductionMaterialsMoney` AS `dDeductionMaterialsMoney`,`m`.`iWork` AS `iWork` from (`mftqualityaccidentmaster` `m` join `mftqualityaccidentslave` `s` on((`m`.`sId` = `s`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
