# `viw_mitproductionapply`（视图）


- **是否可更新：** YES
- **定义者：** `xlyprint@%`

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `sMakePerson` | `varchar(255)` | NO |
| 6 | `iOrder` | `int` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sMemo` | `text` | YES |
| 10 | `bCheck` | `bit(1)` | NO |
| 11 | `tCheckDate` | `datetime` | YES |
| 12 | `sCheckPerson` | `varchar(255)` | YES |
| 13 | `bPrint` | `bit(1)` | NO |
| 14 | `bCopyLimit` | `bit(1)` | NO |
| 15 | `sStatus` | `varchar(255)` | YES |
| 16 | `bInvalid` | `bit(1)` | NO |
| 17 | `sMReserve1` | `varchar(255)` | YES |
| 18 | `sMReserve2` | `varchar(255)` | YES |
| 19 | `sMReserve3` | `varchar(255)` | YES |
| 20 | `sMReserve4` | `varchar(255)` | YES |
| 21 | `sMReserve5` | `varchar(255)` | YES |
| 22 | `sMReserve6` | `varchar(255)` | YES |
| 23 | `dMReserve1` | `decimal(18,6)` | YES |
| 24 | `dMReserve2` | `decimal(18,6)` | YES |
| 25 | `dMReserve3` | `decimal(18,6)` | YES |
| 26 | `iMReserve1` | `int` | YES |
| 27 | `iMReserve2` | `int` | YES |
| 28 | `iMReserve3` | `int` | YES |
| 29 | `tMReserve1` | `datetime` | YES |
| 30 | `tMReserve2` | `datetime` | YES |
| 31 | `sMachineId` | `varchar(100)` | NO |
| 32 | `iVouchermark` | `int` | YES |
| 33 | `sSlaveId` | `varchar(100)` | NO |
| 34 | `sParentId` | `varchar(100)` | NO |
| 35 | `iSlaveOrder` | `int` | NO |
| 36 | `sMaterialsId` | `varchar(100)` | NO |
| 37 | `sMaterialsStyle` | `varchar(255)` | NO |
| 38 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 39 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 40 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 41 | `dConversionQty` | `decimal(18,6)` | NO |
| 42 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 43 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 44 | `sSrcSlaveId` | `varchar(100)` | NO |
| 45 | `sSrcId` | `varchar(100)` | NO |
| 46 | `sSrcNo` | `varchar(255)` | NO |
| 47 | `dSrcQty` | `decimal(18,6)` | YES |
| 48 | `sSlaveMemo` | `text` | YES |
| 49 | `sTaxId` | `varchar(100)` | YES |
| 50 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 51 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 52 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 53 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 54 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 55 | `dRejectAuxiliaryQty` | `decimal(18,6)` | NO |
| 56 | `dRejectQty` | `decimal(18,6)` | NO |
| 57 | `tInStoreDate` | `datetime` | YES |
| 58 | `sBarcode` | `varchar(255)` | YES |
| 59 | `sOrderId` | `varchar(100)` | NO |
| 60 | `sOrderNo` | `varchar(255)` | NO |
| 61 | `sWorkOrderId` | `varchar(100)` | NO |
| 62 | `sWorkOrderNo` | `varchar(255)` | NO |
| 63 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 64 | `sSReserve1` | `varchar(255)` | YES |
| 65 | `sSReserve2` | `varchar(255)` | YES |
| 66 | `sSReserve3` | `varchar(255)` | YES |
| 67 | `sSReserve4` | `varchar(255)` | YES |
| 68 | `sSReserve5` | `varchar(255)` | YES |
| 69 | `sSReserve6` | `varchar(255)` | YES |
| 70 | `dSReserve1` | `decimal(18,6)` | YES |
| 71 | `dSReserve2` | `decimal(18,6)` | YES |
| 72 | `dSReserve3` | `decimal(18,6)` | YES |
| 73 | `iSReserve1` | `int` | YES |
| 74 | `iSReserve2` | `int` | YES |
| 75 | `iSReserve3` | `int` | YES |
| 76 | `tSReserve1` | `datetime` | YES |
| 77 | `tSReserve2` | `datetime` | YES |
| 78 | `sWareHouseId` | `varchar(100)` | NO |
| 79 | `sLocationId` | `varchar(100)` | NO |
| 80 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 81 | `sDefineNo` | `varchar(100)` | NO |
| 82 | `sDefineNo2` | `varchar(100)` | NO |
| 83 | `dReelAuxiliaryQty` | `decimal(18,6)` | NO |
| 84 | `sEmployeeId` | `varchar(100)` | NO |
| 85 | `sType` | `varchar(255)` | NO |
| 86 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 87 | `sOrderSlaveId` | `varchar(100)` | NO |
| 88 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 89 | `bProductionComplete` | `bit(1)` | NO |
| 90 | `dProductionAuxiliaryQty` | `decimal(18,6)` | NO |
| 91 | `iIncrement` | `int` | NO |
| 92 | `bComMaterials` | `decimal(18,6)` | NO |
| 93 | `dProductionQty` | `decimal(18,6)` | NO |
| 94 | `sCustomerId` | `varchar(100)` | NO |
| 95 | `sProductId` | `varchar(100)` | NO |
| 96 | `sSlaveType` | `varchar(255)` | YES |
| 97 | `dKGQty` | `decimal(18,6)` | YES |
| 98 | `sBackType` | `varchar(255)` | YES |
| 99 | `sUseDeptId` | `varchar(255)` | YES |
| 100 | `bPurchaseComplete` | `bit(1)` | YES |
| 101 | `dApplyAuxiliaryQty` | `decimal(18,6)` | NO |
| 102 | `dApplyQty` | `decimal(18,6)` | NO |
| 103 | `iSource` | `int` | YES |
| 104 | `sWorkCenterId` | `varchar(100)` | NO |
| 105 | `sWorkCenterName` | `varchar(100)` | NO |
| 106 | `sReelMaterialsStyle` | `varchar(255)` | NO |

## 定义

```sql
select `xlyweberp_saas_ai`.`mitproductionapplymaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`tMReserve2` AS `tMReserve2`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sMachineId` AS `sMachineId`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`iVouchermark` AS `iVouchermark`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sParentId` AS `sParentId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`iOrder` AS `iSlaveOrder`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sMaterialsId` AS `sMaterialsId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsQty` AS `dMaterialsQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dConversionQty` AS `dConversionQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dSrcQty` AS `dSrcQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSlaveMemo` AS `sSlaveMemo`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dRejectAuxiliaryQty` AS `dRejectAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dRejectQty` AS `dRejectQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`tInStoreDate` AS `tInStoreDate`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sBarcode` AS `sBarcode`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sOrderId` AS `sOrderId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sOrderNo` AS `sOrderNo`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkOrderId` AS `sWorkOrderId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSReserve1` AS `sSReserve1`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSReserve2` AS `sSReserve2`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSReserve3` AS `sSReserve3`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSReserve4` AS `sSReserve4`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSReserve5` AS `sSReserve5`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sSReserve6` AS `sSReserve6`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dSReserve1` AS `dSReserve1`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dSReserve2` AS `dSReserve2`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dSReserve3` AS `dSReserve3`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`iSReserve1` AS `iSReserve1`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`iSReserve2` AS `iSReserve2`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`iSReserve3` AS `iSReserve3`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`tSReserve1` AS `tSReserve1`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`tSReserve2` AS `tSReserve2`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWareHouseId` AS `sWareHouseId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sLocationId` AS `sLocationId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sDefineNo` AS `sDefineNo`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sDefineNo2` AS `sDefineNo2`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dReelAuxiliaryQty` AS `dReelAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sEmployeeId` AS `sEmployeeId`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sType` AS `sType`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`bProductionComplete` AS `bProductionComplete`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dProductionAuxiliaryQty` AS `dProductionAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`bComMaterials` AS `bComMaterials`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dProductionQty` AS `dProductionQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sType` AS `sSlaveType`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dKGQty` AS `dKGQty`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sBackType` AS `sBackType`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`sUseDeptId` AS `sUseDeptId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`bPurchaseComplete` AS `bPurchaseComplete`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dApplyAuxiliaryQty` AS `dApplyAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`dApplyQty` AS `dApplyQty`,`xlyweberp_saas_ai`.`mitproductionapplymaster`.`iSource` AS `iSource`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkCenterId` AS `sWorkCenterId`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sWorkCenterName` AS `sWorkCenterName`,`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sReelMaterialsStyle` AS `sReelMaterialsStyle` from (`xlyweberp_saas_ai`.`mitproductionapplymaster` join `xlyweberp_saas_ai`.`mitproductionapplyslave` on((`xlyweberp_saas_ai`.`mitproductionapplyslave`.`sParentId` = `xlyweberp_saas_ai`.`mitproductionapplymaster`.`sId`)))
```

## 说明

_暂无人工说明。_
