# `viw_elematerials`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(50)` | NO |
| 3 | `sSlaveId` | `varchar(50)` | NO |
| 4 | `sBrandsId` | `varchar(50)` | NO |
| 5 | `sSubsidiaryId` | `varchar(50)` | NO |
| 6 | `tCreateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(50)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sParentId` | `varchar(50)` | YES |
| 10 | `sMaterialsType` | `varchar(50)` | YES |
| 11 | `sMaterialsNo` | `varchar(50)` | NO |
| 12 | `sMaterialsName` | `varchar(100)` | NO |
| 13 | `sMaterialsShort` | `varchar(50)` | YES |
| 14 | `sMaterialsUnit` | `varchar(50)` | YES |
| 15 | `sAuxiliaryUnit` | `varchar(6)` | NO |
| 16 | `dCoefficient` | `decimal(18,6)` | YES |
| 17 | `sConversionUnit` | `varchar(50)` | YES |
| 18 | `sComputeId` | `varchar(50)` | YES |
| 19 | `bInverse` | `bit(1)` | NO |
| 20 | `sReComputeId` | `varchar(50)` | YES |
| 21 | `sAutoComputeId` | `varchar(50)` | YES |
| 22 | `sConversionComputeId` | `varchar(50)` | YES |
| 23 | `sReConversionComputeId` | `varchar(50)` | YES |
| 24 | `dGramWeight` | `decimal(18,6)` | YES |
| 25 | `bPurchase` | `bit(1)` | NO |
| 26 | `bReel` | `bit(1)` | NO |
| 27 | `bSales` | `bit(1)` | NO |
| 28 | `bCorrugate` | `bit(1)` | NO |
| 29 | `dPurchasePrice` | `decimal(18,6)` | YES |
| 30 | `dSalesPrice` | `decimal(18,6)` | YES |
| 31 | `dRecentPurchasePrice` | `decimal(18,6)` | YES |
| 32 | `dDesignateSalesPrice` | `decimal(18,6)` | YES |
| 33 | `dProcurementCycle` | `decimal(18,6)` | YES |
| 34 | `sSupplyId` | `varchar(50)` | YES |
| 35 | `bCheck` | `bit(1)` | NO |
| 36 | `bInvalid` | `bit(1)` | NO |
| 37 | `sMemo` | `text` | YES |
| 38 | `sMReserve1` | `varchar(50)` | YES |
| 39 | `sMReserve2` | `varchar(50)` | YES |
| 40 | `sMReserve3` | `varchar(50)` | YES |
| 41 | `sMReserve4` | `varchar(50)` | YES |
| 42 | `sMReserve5` | `varchar(50)` | YES |
| 43 | `sMReserve6` | `varchar(50)` | YES |
| 44 | `dMReserve1` | `decimal(18,6)` | YES |
| 45 | `dMReserve2` | `decimal(18,6)` | YES |
| 46 | `dMReserve3` | `decimal(18,6)` | YES |
| 47 | `iMReserve1` | `int` | YES |
| 48 | `iMReserve2` | `int` | YES |
| 49 | `iMReserve3` | `int` | YES |
| 50 | `tMReserve1` | `datetime` | YES |
| 51 | `tMReserve2` | `datetime` | YES |
| 52 | `bComMaterials` | `bit(1)` | NO |
| 53 | `iTestType` | `int` | NO |
| 54 | `sTestStandardId` | `varchar(50)` | YES |
| 55 | `dGuarantee` | `decimal(18,6)` | NO |
| 56 | `sICP` | `varchar(50)` | NO |
| 57 | `tICPLimitDate` | `datetime` | YES |
| 58 | `sStorageLocatLabel` | `varchar(50)` | NO |
| 59 | `bIsHomemade` | `bit(1)` | NO |
| 60 | `sQuotationMoneyComputeId` | `varchar(50)` | NO |
| 61 | `bQuotation` | `bit(1)` | NO |
| 62 | `sAccountNo` | `varchar(50)` | NO |
| 63 | `bAutoCalcKQty` | `bit(1)` | NO |
| 64 | `sPurchaseMode` | `varchar(50)` | NO |
| 65 | `bBidding` | `bit(1)` | NO |
| 66 | `bAssessment` | `bit(1)` | NO |
| 67 | `bBomMaterials` | `bit(1)` | NO |
| 68 | `bWarranty` | `bit(1)` | NO |
| 69 | `bBatch` | `bit(1)` | NO |
| 70 | `bTurnover` | `bit(1)` | NO |
| 71 | `bFocus` | `bit(1)` | NO |
| 72 | `bQuoted` | `bit(1)` | NO |
| 73 | `bCustoms` | `bit(1)` | NO |
| 74 | `sMinPackUint` | `varchar(50)` | NO |
| 75 | `dMinPackQty` | `decimal(18,6)` | NO |
| 76 | `bFSC` | `bit(1)` | NO |
| 77 | `sBrand` | `varchar(50)` | YES |
| 78 | `sOldNo` | `varchar(50)` | YES |
| 79 | `dThickness` | `decimal(18,6)` | YES |
| 80 | `bGreenPrint` | `bit(1)` | NO |
| 81 | `sCostFrameId` | `varchar(50)` | NO |
| 82 | `dGuidePrice` | `decimal(24,13)` | NO |
| 83 | `sOneId` | `varchar(255)` | YES |
| 84 | `sTwoId` | `varchar(255)` | YES |
| 85 | `sThreeId` | `varchar(255)` | YES |
| 86 | `sFourId` | `varchar(255)` | YES |
| 87 | `sFiveId` | `varchar(255)` | YES |
| 88 | `sOneParentId` | `varchar(100)` | YES |
| 89 | `sOneParentName` | `varchar(50)` | YES |
| 90 | `sTwoParentId` | `varchar(100)` | YES |
| 91 | `sTwoParentName` | `varchar(50)` | YES |
| 92 | `tCheckDate` | `datetime` | YES |
| 93 | `sCheckPerson` | `varchar(50)` | YES |
| 94 | `sStatus` | `varchar(5)` | YES |
| 95 | `iAssort` | `int` | YES |
| 96 | `iLineWareHouse` | `int` | YES |
| 97 | `iAlways` | `int` | YES |
| 98 | `sOldMaterialsNo` | `varchar(50)` | NO |
| 99 | `iMetre` | `int` | YES |
| 100 | `iImputation` | `int` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`elematerials`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`elematerials`.`sId` AS `sId`,`xlyweberp_saas_ai`.`elematerials`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`elematerials`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`elematerials`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`elematerials`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`elematerials`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`elematerials`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`elematerials`.`sParentId` AS `sParentId`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsType` AS `sMaterialsType`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsNo` AS `sMaterialsNo`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsName` AS `sMaterialsName`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsShort` AS `sMaterialsShort`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsUnit` AS `sMaterialsUnit`,`xlyweberp_saas_ai`.`elematerials`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`xlyweberp_saas_ai`.`elematerials`.`dCoefficient` AS `dCoefficient`,`xlyweberp_saas_ai`.`elematerials`.`sConversionUnit` AS `sConversionUnit`,`xlyweberp_saas_ai`.`elematerials`.`sComputeId` AS `sComputeId`,`xlyweberp_saas_ai`.`elematerials`.`bInverse` AS `bInverse`,`xlyweberp_saas_ai`.`elematerials`.`sReComputeId` AS `sReComputeId`,`xlyweberp_saas_ai`.`elematerials`.`sAutoComputeId` AS `sAutoComputeId`,`xlyweberp_saas_ai`.`elematerials`.`sConversionComputeId` AS `sConversionComputeId`,`xlyweberp_saas_ai`.`elematerials`.`sReConversionComputeId` AS `sReConversionComputeId`,`xlyweberp_saas_ai`.`elematerials`.`dGramWeight` AS `dGramWeight`,`xlyweberp_saas_ai`.`elematerials`.`bPurchase` AS `bPurchase`,`xlyweberp_saas_ai`.`elematerials`.`bReel` AS `bReel`,`xlyweberp_saas_ai`.`elematerials`.`bSales` AS `bSales`,`xlyweberp_saas_ai`.`elematerials`.`bCorrugate` AS `bCorrugate`,`xlyweberp_saas_ai`.`elematerials`.`dPurchasePrice` AS `dPurchasePrice`,`xlyweberp_saas_ai`.`elematerials`.`dSalesPrice` AS `dSalesPrice`,`xlyweberp_saas_ai`.`elematerials`.`dRecentPurchasePrice` AS `dRecentPurchasePrice`,`xlyweberp_saas_ai`.`elematerials`.`dDesignateSalesPrice` AS `dDesignateSalesPrice`,`xlyweberp_saas_ai`.`elematerials`.`dProcurementCycle` AS `dProcurementCycle`,`xlyweberp_saas_ai`.`elematerials`.`sSupplyId` AS `sSupplyId`,`xlyweberp_saas_ai`.`elematerials`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`elematerials`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`elematerials`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`elematerials`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`elematerials`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`elematerials`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`elematerials`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`elematerials`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`elematerials`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`elematerials`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`elematerials`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`elematerials`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`elematerials`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`elematerials`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`elematerials`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`elematerials`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`elematerials`.`tMReserve2` AS `tMReserve2`,`xlyweberp_saas_ai`.`elematerials`.`bComMaterials` AS `bComMaterials`,`xlyweberp_saas_ai`.`elematerials`.`iTestType` AS `iTestType`,`xlyweberp_saas_ai`.`elematerials`.`sTestStandardId` AS `sTestStandardId`,`xlyweberp_saas_ai`.`elematerials`.`dGuarantee` AS `dGuarantee`,`xlyweberp_saas_ai`.`elematerials`.`sICP` AS `sICP`,`xlyweberp_saas_ai`.`elematerials`.`tICPLimitDate` AS `tICPLimitDate`,`xlyweberp_saas_ai`.`elematerials`.`sStorageLocatLabel` AS `sStorageLocatLabel`,`xlyweberp_saas_ai`.`elematerials`.`bIsHomemade` AS `bIsHomemade`,`xlyweberp_saas_ai`.`elematerials`.`sQuotationMoneyComputeId` AS `sQuotationMoneyComputeId`,`xlyweberp_saas_ai`.`elematerials`.`bQuotation` AS `bQuotation`,`xlyweberp_saas_ai`.`elematerials`.`sAccountNo` AS `sAccountNo`,`xlyweberp_saas_ai`.`elematerials`.`bAutoCalcKQty` AS `bAutoCalcKQty`,`xlyweberp_saas_ai`.`elematerials`.`sPurchaseMode` AS `sPurchaseMode`,`xlyweberp_saas_ai`.`elematerials`.`bBidding` AS `bBidding`,`xlyweberp_saas_ai`.`elematerials`.`bAssessment` AS `bAssessment`,`xlyweberp_saas_ai`.`elematerials`.`bBomMaterials` AS `bBomMaterials`,`xlyweberp_saas_ai`.`elematerials`.`bWarranty` AS `bWarranty`,`xlyweberp_saas_ai`.`elematerials`.`bBatch` AS `bBatch`,`xlyweberp_saas_ai`.`elematerials`.`bTurnover` AS `bTurnover`,`xlyweberp_saas_ai`.`elematerials`.`bFocus` AS `bFocus`,`xlyweberp_saas_ai`.`elematerials`.`bQuoted` AS `bQuoted`,`xlyweberp_saas_ai`.`elematerials`.`bCustoms` AS `bCustoms`,`xlyweberp_saas_ai`.`elematerials`.`sMinPackUint` AS `sMinPackUint`,`xlyweberp_saas_ai`.`elematerials`.`dMinPackQty` AS `dMinPackQty`,`xlyweberp_saas_ai`.`elematerials`.`bFSC` AS `bFSC`,`xlyweberp_saas_ai`.`elematerials`.`sBrand` AS `sBrand`,`xlyweberp_saas_ai`.`elematerials`.`sOldNo` AS `sOldNo`,`xlyweberp_saas_ai`.`elematerials`.`dThickness` AS `dThickness`,`xlyweberp_saas_ai`.`elematerials`.`bGreenPrint` AS `bGreenPrint`,`xlyweberp_saas_ai`.`elematerials`.`sCostFrameId` AS `sCostFrameId`,`xlyweberp_saas_ai`.`elematerials`.`dGuidePrice` AS `dGuidePrice`,`xlyweberp_saas_ai`.`elematerials`.`sOneId` AS `sOneId`,`xlyweberp_saas_ai`.`elematerials`.`sTwoId` AS `sTwoId`,`xlyweberp_saas_ai`.`elematerials`.`sThreeId` AS `sThreeId`,`xlyweberp_saas_ai`.`elematerials`.`sFourId` AS `sFourId`,`xlyweberp_saas_ai`.`elematerials`.`sFiveId` AS `sFiveId`,`xlyweberp_saas_ai`.`elematerials`.`sOneParentId` AS `sOneParentId`,`xlyweberp_saas_ai`.`elematerials`.`sOneParentName` AS `sOneParentName`,`xlyweberp_saas_ai`.`elematerials`.`sTwoParentId` AS `sTwoParentId`,`xlyweberp_saas_ai`.`elematerials`.`sTwoParentName` AS `sTwoParentName`,`xlyweberp_saas_ai`.`elematerials`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`elematerials`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`elematerials`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`elematerials`.`iAssort` AS `iAssort`,`xlyweberp_saas_ai`.`elematerials`.`iLineWareHouse` AS `iLineWareHouse`,`xlyweberp_saas_ai`.`elematerials`.`iAlways` AS `iAlways`,`xlyweberp_saas_ai`.`elematerials`.`sOldMaterialsNo` AS `sOldMaterialsNo`,`xlyweberp_saas_ai`.`elematerials`.`iMetre` AS `iMetre`,`xlyweberp_saas_ai`.`elematerials`.`iImputation` AS `iImputation` from `xlyweberp_saas_ai`.`elematerials`
```

## 说明

_暂无人工说明。_
