# `viw_ai_mitproductionmaterialsll` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sParentId` | `varchar(100)` | NO |
| 3 | `sBrandsId` | `varchar(100)` | NO |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `tUpdateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(255)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sFormId` | `varchar(100)` | NO |
| 10 | `sBillNo` | `varchar(255)` | NO |
| 11 | `sMemo` | `text` | YES |
| 12 | `bCheck` | `bit(1)` | NO |
| 13 | `tCheckDate` | `datetime` | YES |
| 14 | `sCheckPerson` | `varchar(255)` | YES |
| 15 | `bPrint` | `bit(1)` | NO |
| 16 | `bCopyLimit` | `bit(1)` | NO |
| 17 | `sStatus` | `varchar(255)` | YES |
| 18 | `bInvalid` | `bit(1)` | NO |
| 19 | `sMReserve1` | `varchar(255)` | YES |
| 20 | `sMReserve2` | `varchar(255)` | YES |
| 21 | `sMReserve3` | `varchar(255)` | YES |
| 22 | `sMReserve4` | `varchar(255)` | YES |
| 23 | `sMReserve5` | `varchar(255)` | YES |
| 24 | `sMReserve6` | `varchar(255)` | YES |
| 25 | `dMReserve1` | `decimal(18,6)` | YES |
| 26 | `dMReserve2` | `decimal(18,6)` | YES |
| 27 | `dMReserve3` | `decimal(18,6)` | YES |
| 28 | `iMReserve1` | `int` | YES |
| 29 | `iMReserve2` | `int` | YES |
| 30 | `iMReserve3` | `int` | YES |
| 31 | `tMReserve1` | `datetime` | YES |
| 32 | `tMReserve2` | `datetime` | YES |
| 33 | `sMachineId` | `varchar(100)` | NO |
| 34 | `iVouchermark` | `int` | YES |
| 35 | `sSlaveId` | `varchar(100)` | NO |
| 36 | `iSlaveOrder` | `int` | NO |
| 37 | `sMaterialsId` | `varchar(100)` | NO |
| 38 | `sMaterialsStyle` | `varchar(255)` | NO |
| 39 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 40 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 41 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 42 | `dConversionQty` | `decimal(18,6)` | NO |
| 43 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 44 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 45 | `dProductMoney` | `decimal(18,6)` | NO |
| 46 | `sSrcSlaveId` | `varchar(100)` | NO |
| 47 | `sSrcId` | `varchar(100)` | NO |
| 48 | `sSrcNo` | `varchar(255)` | NO |
| 49 | `dSrcQty` | `decimal(18,6)` | YES |
| 50 | `sSlaveMemo` | `text` | YES |
| 51 | `sTaxId` | `varchar(100)` | YES |
| 52 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 53 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 54 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 55 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 56 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 57 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 58 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 59 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 60 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 61 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 62 | `dRejectAuxiliaryQty` | `decimal(18,6)` | NO |
| 63 | `dRejectQty` | `decimal(18,6)` | NO |
| 64 | `tInStoreDate` | `datetime` | YES |
| 65 | `sBarcode` | `varchar(255)` | YES |
| 66 | `sOrderId` | `varchar(100)` | NO |
| 67 | `sOrderNo` | `varchar(255)` | NO |
| 68 | `sWorkOrderId` | `varchar(100)` | NO |
| 69 | `sWorkOrderNo` | `varchar(255)` | NO |
| 70 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 71 | `sSReserve1` | `varchar(255)` | YES |
| 72 | `sSReserve2` | `varchar(255)` | YES |
| 73 | `sSReserve3` | `varchar(255)` | YES |
| 74 | `sSReserve4` | `varchar(255)` | YES |
| 75 | `sSReserve5` | `varchar(255)` | YES |
| 76 | `sSReserve6` | `varchar(255)` | YES |
| 77 | `dSReserve1` | `decimal(18,6)` | YES |
| 78 | `dSReserve2` | `decimal(18,6)` | YES |
| 79 | `dSReserve3` | `decimal(18,6)` | YES |
| 80 | `iSReserve1` | `int` | YES |
| 81 | `iSReserve2` | `int` | YES |
| 82 | `iSReserve3` | `int` | YES |
| 83 | `tSReserve1` | `datetime` | YES |
| 84 | `tSReserve2` | `datetime` | YES |
| 85 | `sWareHouseId` | `varchar(100)` | NO |
| 86 | `sLocationId` | `varchar(100)` | NO |
| 87 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 88 | `sDefineNo` | `varchar(100)` | NO |
| 89 | `sDefineNo2` | `varchar(100)` | NO |
| 90 | `dReelAuxiliaryQty` | `decimal(18,6)` | NO |
| 91 | `sEmployeeId` | `varchar(100)` | NO |
| 92 | `sType` | `varchar(255)` | NO |
| 93 | `sBussinessType` | `varchar(255)` | NO |
| 94 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 95 | `sOrderSlaveId` | `varchar(100)` | NO |
| 96 | `sVoucherBillNo` | `varchar(255)` | NO |
| 97 | `sVoucherBillId` | `varchar(255)` | NO |
| 98 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 99 | `iIncrement` | `int` | NO |
| 100 | `sCostCenterId` | `varchar(100)` | NO |
| 101 | `sCurrency` | `varchar(3)` | NO |
| 102 | `dCurrencyRate` | `int` | NO |
| 103 | `sMinusSrcId` | `varchar(255)` | NO |
| 104 | `sSrcFormId` | `varchar(255)` | NO |
| 105 | `dKGQty` | `decimal(18,6)` | YES |
| 106 | `sOldWorkOrderNo` | `varchar(50)` | YES |
| 107 | `sUseDeptId` | `varchar(255)` | YES |
| 108 | `bRdCost` | `bit(1)` | NO |
| 109 | `bConfirmComplete` | `bit(1)` | YES |
| 110 | `tConfirmDate` | `datetime` | YES |
| 111 | `sConfirmPerson` | `varchar(255)` | YES |
| 112 | `sMaterialsType` | `varchar(50)` | YES |
| 113 | `bRejectStatus` | `bit(1)` | YES |
| 114 | `sBackType` | `varchar(255)` | YES |
| 115 | `sWorkCenterId` | `varchar(100)` | NO |
| 116 | `sWorkCenterName` | `varchar(100)` | NO |
| 117 | `iCigPack` | `int` | YES |
| 118 | `sWareHouseName` | `varchar(255)` | NO |
| 119 | `sMaterialsName` | `varchar(100)` | NO |
| 120 | `sCigPack` | `varchar(1)` | NO |
| 121 | `sApplySlaveId` | `varchar(255)` | NO |

## Definition

```sql
select `mitproductionmaterialsmaster`.`sId` AS `sId`,`mitproductionmaterialsmaster`.`sId` AS `sParentId`,`mitproductionmaterialsmaster`.`sBrandsId` AS `sBrandsId`,`mitproductionmaterialsmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`mitproductionmaterialsmaster`.`tCreateDate` AS `tCreateDate`,`mitproductionmaterialsmaster`.`tCreateDate` AS `tUpdateDate`,`mitproductionmaterialsmaster`.`sMakePerson` AS `sMakePerson`,`mitproductionmaterialsmaster`.`iOrder` AS `iOrder`,`mitproductionmaterialsmaster`.`sFormId` AS `sFormId`,`mitproductionmaterialsmaster`.`sBillNo` AS `sBillNo`,`mitproductionmaterialsmaster`.`sMemo` AS `sMemo`,`mitproductionmaterialsmaster`.`bCheck` AS `bCheck`,`mitproductionmaterialsmaster`.`tCheckDate` AS `tCheckDate`,`mitproductionmaterialsmaster`.`sCheckPerson` AS `sCheckPerson`,`mitproductionmaterialsmaster`.`bPrint` AS `bPrint`,`mitproductionmaterialsmaster`.`bCopyLimit` AS `bCopyLimit`,`mitproductionmaterialsmaster`.`sStatus` AS `sStatus`,`mitproductionmaterialsmaster`.`bInvalid` AS `bInvalid`,`mitproductionmaterialsmaster`.`sMReserve1` AS `sMReserve1`,`mitproductionmaterialsmaster`.`sMReserve2` AS `sMReserve2`,`mitproductionmaterialsmaster`.`sMReserve3` AS `sMReserve3`,`mitproductionmaterialsmaster`.`sMReserve4` AS `sMReserve4`,`mitproductionmaterialsmaster`.`sMReserve5` AS `sMReserve5`,`mitproductionmaterialsmaster`.`sMReserve6` AS `sMReserve6`,`mitproductionmaterialsmaster`.`dMReserve1` AS `dMReserve1`,`mitproductionmaterialsmaster`.`dMReserve2` AS `dMReserve2`,`mitproductionmaterialsmaster`.`dMReserve3` AS `dMReserve3`,`mitproductionmaterialsmaster`.`iMReserve1` AS `iMReserve1`,`mitproductionmaterialsmaster`.`iMReserve2` AS `iMReserve2`,`mitproductionmaterialsmaster`.`iMReserve3` AS `iMReserve3`,`mitproductionmaterialsmaster`.`tMReserve1` AS `tMReserve1`,`mitproductionmaterialsmaster`.`tMReserve2` AS `tMReserve2`,`mitproductionmaterialsmaster`.`sMachineId` AS `sMachineId`,`mitproductionmaterialsmaster`.`iVouchermark` AS `iVouchermark`,`mitproductionmaterialsslave`.`sId` AS `sSlaveId`,`mitproductionmaterialsslave`.`iOrder` AS `iSlaveOrder`,`mitproductionmaterialsslave`.`sMaterialsId` AS `sMaterialsId`,`mitproductionmaterialsslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`mitproductionmaterialsslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`mitproductionmaterialsslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`mitproductionmaterialsslave`.`dMaterialsQty` AS `dMaterialsQty`,`mitproductionmaterialsslave`.`dConversionQty` AS `dConversionQty`,`mitproductionmaterialsslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`mitproductionmaterialsslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`mitproductionmaterialsslave`.`dMaterialsMoney` AS `dProductMoney`,`mitproductionmaterialsslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`mitproductionmaterialsslave`.`sSrcId` AS `sSrcId`,`mitproductionmaterialsslave`.`sSrcNo` AS `sSrcNo`,`mitproductionmaterialsslave`.`dSrcQty` AS `dSrcQty`,`mitproductionmaterialsslave`.`sSlaveMemo` AS `sSlaveMemo`,`mitproductionmaterialsslave`.`sTaxId` AS `sTaxId`,`mitproductionmaterialsslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`mitproductionmaterialsslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`mitproductionmaterialsslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`mitproductionmaterialsslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`mitproductionmaterialsslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`mitproductionmaterialsslave`.`dMaterialsNoTaxPrice` AS `dProductNoTaxPrice`,`mitproductionmaterialsslave`.`dMaterialsNoTaxMoney` AS `dProductNoTaxMoney`,`mitproductionmaterialsslave`.`dMaterialsTaxMoney` AS `dProductTaxMoney`,`mitproductionmaterialsslave`.`dMaterialsTaxForeignMoney` AS `dProductTaxForeignMoney`,`mitproductionmaterialsslave`.`dMaterialsForeignMoney` AS `dProductForeignMoney`,`mitproductionmaterialsslave`.`dRejectAuxiliaryQty` AS `dRejectAuxiliaryQty`,`mitproductionmaterialsslave`.`dRejectQty` AS `dRejectQty`,`mitproductionmaterialsslave`.`tInStoreDate` AS `tInStoreDate`,`mitproductionmaterialsslave`.`sBarcode` AS `sBarcode`,`mitproductionmaterialsslave`.`sOrderId` AS `sOrderId`,`mitproductionmaterialsslave`.`sOrderNo` AS `sOrderNo`,`mitproductionmaterialsslave`.`sWorkOrderId` AS `sWorkOrderId`,`mitproductionmaterialsslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`mitproductionmaterialsslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`mitproductionmaterialsslave`.`sSReserve1` AS `sSReserve1`,`mitproductionmaterialsslave`.`sSReserve2` AS `sSReserve2`,`mitproductionmaterialsslave`.`sSReserve3` AS `sSReserve3`,`mitproductionmaterialsslave`.`sSReserve4` AS `sSReserve4`,`mitproductionmaterialsslave`.`sSReserve5` AS `sSReserve5`,`mitproductionmaterialsslave`.`sSReserve6` AS `sSReserve6`,`mitproductionmaterialsslave`.`dSReserve1` AS `dSReserve1`,`mitproductionmaterialsslave`.`dSReserve2` AS `dSReserve2`,`mitproductionmaterialsslave`.`dSReserve3` AS `dSReserve3`,`mitproductionmaterialsslave`.`iSReserve1` AS `iSReserve1`,`mitproductionmaterialsslave`.`iSReserve2` AS `iSReserve2`,`mitproductionmaterialsslave`.`iSReserve3` AS `iSReserve3`,`mitproductionmaterialsslave`.`tSReserve1` AS `tSReserve1`,`mitproductionmaterialsslave`.`tSReserve2` AS `tSReserve2`,`mitproductionmaterialsslave`.`sWareHouseId` AS `sWareHouseId`,`mitproductionmaterialsslave`.`sLocationId` AS `sLocationId`,`mitproductionmaterialsslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`mitproductionmaterialsslave`.`sDefineNo` AS `sDefineNo`,`mitproductionmaterialsslave`.`sDefineNo2` AS `sDefineNo2`,`mitproductionmaterialsslave`.`dReelAuxiliaryQty` AS `dReelAuxiliaryQty`,`mitproductionmaterialsmaster`.`sEmployeeId` AS `sEmployeeId`,`mitproductionmaterialsmaster`.`sType` AS `sType`,`mitproductionmaterialsmaster`.`sBussinessType` AS `sBussinessType`,`mitproductionmaterialsslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`mitproductionmaterialsslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`mitproductionmaterialsslave`.`sVoucherBillNo` AS `sVoucherBillNo`,`mitproductionmaterialsslave`.`sVoucherBillId` AS `sVoucherBillId`,`mitproductionmaterialsslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`mitproductionmaterialsslave`.`iIncrement` AS `iIncrement`,`mitproductionmaterialsmaster`.`sCostCenterId` AS `sCostCenterId`,'人名币' AS `sCurrency`,1 AS `dCurrencyRate`,`mitproductionmaterialsmaster`.`sMinusSrcId` AS `sMinusSrcId`,`mitproductionmaterialsslave`.`sSrcFormId` AS `sSrcFormId`,`mitproductionmaterialsslave`.`dKGQty` AS `dKGQty`,`mitproductionmaterialsslave`.`sOldWorkOrderNo` AS `sOldWorkOrderNo`,`mitproductionmaterialsmaster`.`sUseDeptId` AS `sUseDeptId`,`mitproductionmaterialsslave`.`bRdCost` AS `bRdCost`,`mitproductionmaterialsmaster`.`bConfirmComplete` AS `bConfirmComplete`,`mitproductionmaterialsmaster`.`tConfirmDate` AS `tConfirmDate`,`mitproductionmaterialsmaster`.`sConfirmPerson` AS `sConfirmPerson`,`elematerials`.`sMaterialsType` AS `sMaterialsType`,`mitproductionmaterialsmaster`.`bRejectStatus` AS `bRejectStatus`,`mitproductionmaterialsmaster`.`sBackType` AS `sBackType`,`mitproductionmaterialsslave`.`sWorkCenterId` AS `sWorkCenterId`,`mitproductionmaterialsslave`.`sWorkCenterName` AS `sWorkCenterName`,`mitproductionmaterialsmaster`.`iCigPack` AS `iCigPack`,`siswarehouse`.`sName` AS `sWareHouseName`,`elematerials`.`sMaterialsName` AS `sMaterialsName`,(case `mitproductionmaterialsmaster`.`iCigPack` when 1 then '是' else '否' end) AS `sCigPack`,`mitproductionmaterialsslave`.`sApplySlaveId` AS `sApplySlaveId` from (((`mitproductionmaterialsmaster` join `mitproductionmaterialsslave` on((`mitproductionmaterialsslave`.`sParentId` = `mitproductionmaterialsmaster`.`sId`))) join `elematerials` on((`mitproductionmaterialsslave`.`sMaterialsId` = `elematerials`.`sId`))) join `siswarehouse` on((`mitproductionmaterialsmaster`.`sWareHouseId` = `siswarehouse`.`sId`))) where (`mitproductionmaterialsmaster`.`sFormId` in ('192116810113315226492535760','101251240115015959856790260'))
```

## Narrative

_No human-written narrative yet._
