Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sqlalchemy import Column, NVARCHAR, DATETIME, INTEGER, FLOAT, SMALLINT, DECIMAL, func
- from sqlalchemy.dialects.mssql import TINYINT, BIT, TIMESTAMP, UNIQUEIDENTIFIER
- from .database import Base
- class Inventory(Base):
- __tablename__ = "Inventory"
- __table_args__ = {
- 'implicit_returning': False
- }
- cInvCode = Column('cInvCode', NVARCHAR(60), nullable=False, default=None, unique=True)
- cInvAddCode = Column('cInvAddCode', NVARCHAR(255), nullable=True, default=None)
- cInvName = Column('cInvName', NVARCHAR(255), nullable=True, default=None)
- cInvStd = Column('cInvStd', NVARCHAR(255), nullable=True, default=None)
- cInvCCode = Column('cInvCCode', NVARCHAR(12), nullable=True, default=None)
- cVenCode = Column('cVenCode', NVARCHAR(20), nullable=True, default=None)
- cReplaceItem = Column('cReplaceItem', NVARCHAR(60), nullable=True, default=None)
- cPosition = Column('cPosition', NVARCHAR(20), nullable=True, default=None)
- bSale = Column('bSale', BIT, nullable=False, default=1)
- bPurchase = Column('bPurchase', BIT, nullable=False, default=1)
- bSelf = Column('bSelf', BIT, nullable=False, default=0)
- bComsume = Column('bComsume', BIT, nullable=False, default=1)
- bProducing = Column('bProducing', BIT, nullable=False, default=0)
- bService = Column('bService', BIT, nullable=False, default=0)
- bAccessary = Column('bAccessary', BIT, nullable=False, default=0)
- iTaxRate = Column('iTaxRate', FLOAT, nullable=True, default=17)
- iInvWeight = Column('iInvWeight', FLOAT, nullable=True, default=None)
- iVolume = Column('iVolume', FLOAT, nullable=True, default=None)
- iInvRCost = Column('iInvRCost', FLOAT, nullable=True, default=None)
- iInvSPrice = Column('iInvSPrice', FLOAT, nullable=True, default=None)
- iInvSCost = Column('iInvSCost', FLOAT, nullable=True, default=None)
- iInvLSCost = Column('iInvLSCost', FLOAT, nullable=True, default=None)
- iInvNCost = Column('iInvNCost', FLOAT, nullable=True, default=None)
- iInvAdvance = Column('iInvAdvance', FLOAT, nullable=True, default=0)
- iInvBatch = Column('iInvBatch', FLOAT, nullable=True, default=None)
- iSafeNum = Column('iSafeNum', FLOAT, nullable=True, default=None)
- iTopSum = Column('iTopSum', FLOAT, nullable=True, default=None)
- iLowSum = Column('iLowSum', FLOAT, nullable=True, default=None)
- iOverStock = Column('iOverStock', FLOAT, nullable=True, default=None)
- cInvABC = Column('cInvABC', NVARCHAR(1), nullable=True, default=None)
- bInvQuality = Column('bInvQuality', BIT, nullable=False, default=1)
- bInvBatch = Column('bInvBatch', BIT, nullable=False, default=1)
- bInvEntrust = Column('bInvEntrust', BIT, nullable=False, default=0)
- bInvOverStock = Column('bInvOverStock', BIT, nullable=False, default=0)
- dSDate = Column('dSDate', DATETIME, nullable=True, default=None)
- dEDate = Column('dEDate', DATETIME, nullable=True, default=None)
- bFree1 = Column('bFree1', BIT, nullable=False, default=0)
- bFree2 = Column('bFree2', BIT, nullable=False, default=0)
- cInvDefine1 = Column('cInvDefine1', NVARCHAR(20), nullable=True, default=None)
- cInvDefine2 = Column('cInvDefine2', NVARCHAR(20), nullable=True, default=None)
- cInvDefine3 = Column('cInvDefine3', NVARCHAR(20), nullable=True, default=None)
- I_id = Column('I_id', INTEGER, primary_key=True) # identity
- bInvType = Column('bInvType', BIT, nullable=True, default=0)
- iInvMPCost = Column('iInvMPCost', FLOAT, nullable=True, default=None)
- cQuality = Column('cQuality', NVARCHAR(100), nullable=True, default=None)
- iInvSaleCost = Column('iInvSaleCost', FLOAT, nullable=True, default=None)
- iInvSCost1 = Column('iInvSCost1', FLOAT, nullable=True, default=None)
- iInvSCost2 = Column('iInvSCost2', FLOAT, nullable=True, default=None)
- iInvSCost3 = Column('iInvSCost3', FLOAT, nullable=True, default=None)
- bFree3 = Column('bFree3', BIT, nullable=False, default=0)
- bFree4 = Column('bFree4', BIT, nullable=False, default=0)
- bFree5 = Column('bFree5', BIT, nullable=False, default=0)
- bFree6 = Column('bFree6', BIT, nullable=False, default=0)
- bFree7 = Column('bFree7', BIT, nullable=False, default=0)
- bFree8 = Column('bFree8', BIT, nullable=False, default=0)
- bFree9 = Column('bFree9', BIT, nullable=False, default=0)
- bFree10 = Column('bFree10', BIT, nullable=False, default=0)
- cCreatePerson = Column('cCreatePerson', NVARCHAR(20), nullable=True, default=None)
- cModifyPerson = Column('cModifyPerson', NVARCHAR(20), nullable=True, default=None)
- dModifyDate = Column('dModifyDate', DATETIME, nullable=True, default=None)
- fSubscribePoint = Column('fSubscribePoint', FLOAT, nullable=True, default=None)
- fVagQuantity = Column('fVagQuantity', FLOAT, nullable=True, default=None)
- cValueType = Column('cValueType', NVARCHAR(20), nullable=True, default=None)
- bFixExch = Column('bFixExch', BIT, nullable=False, default=0)
- fOutExcess = Column('fOutExcess', FLOAT, nullable=True, default=200)
- fInExcess = Column('fInExcess', FLOAT, nullable=True, default=None)
- iMassDate = Column('iMassDate', SMALLINT, nullable=True, default=None)
- iWarnDays = Column('iWarnDays', SMALLINT, nullable=True, default=185)
- fExpensesExch = Column('fExpensesExch', FLOAT, nullable=True, default=None)
- bTrack = Column('bTrack', BIT, nullable=False, default=0)
- bSerial = Column('bSerial', BIT, nullable=False, default=0)
- bBarCode = Column('bBarCode', BIT, nullable=False, default=0)
- iId = Column('iId', INTEGER, nullable=True, default=None)
- cBarCode = Column('cBarCode', NVARCHAR(30), nullable=True, default=None)
- cInvDefine4 = Column('cInvDefine4', NVARCHAR(60), nullable=True, default=None)
- cInvDefine5 = Column('cInvDefine5', NVARCHAR(60), nullable=True, default=None)
- cInvDefine6 = Column('cInvDefine6', NVARCHAR(60), nullable=True, default=None)
- cInvDefine7 = Column('cInvDefine7', NVARCHAR(120), nullable=True, default=None)
- cInvDefine8 = Column('cInvDefine8', NVARCHAR(120), nullable=True, default=None)
- cInvDefine9 = Column('cInvDefine9', NVARCHAR(120), nullable=True, default=None)
- cInvDefine10 = Column('cInvDefine10', NVARCHAR(120), nullable=True, default=None)
- cInvDefine11 = Column('cInvDefine11', INTEGER, nullable=True, default=None)
- cInvDefine12 = Column('cInvDefine12', INTEGER, nullable=True, default=None)
- cInvDefine13 = Column('cInvDefine13', FLOAT, nullable=True, default=None)
- cInvDefine14 = Column('cInvDefine14', FLOAT, nullable=True, default=None)
- cInvDefine15 = Column('cInvDefine15', DATETIME, nullable=True, default=None)
- cInvDefine16 = Column('cInvDefine16', DATETIME, nullable=True, default=None)
- iGroupType = Column('iGroupType', TINYINT, nullable=False, default=0)
- cGroupCode = Column('cGroupCode', NVARCHAR(35), nullable=True, default=None)
- cComUnitCode = Column('cComUnitCode', NVARCHAR(35), nullable=True, default=None)
- cAssComUnitCode = Column('cAssComUnitCode', NVARCHAR(35), nullable=True, default=None)
- cSAComUnitCode = Column('cSAComUnitCode', NVARCHAR(35), nullable=True, default=None)
- cPUComUnitCode = Column('cPUComUnitCode', NVARCHAR(35), nullable=True, default=None)
- cSTComUnitCode = Column('cSTComUnitCode', NVARCHAR(35), nullable=True, default=None)
- cCAComUnitCode = Column('cCAComUnitCode', NVARCHAR(35), nullable=True, default=None)
- cFrequency = Column('cFrequency', NVARCHAR(10), nullable=True, default=None)
- iFrequency = Column('iFrequency', SMALLINT, nullable=True, default=None)
- iDays = Column('iDays', SMALLINT, nullable=True, default=None)
- dLastDate = Column('dLastDate', DATETIME, nullable=True, default=None)
- iWastage = Column('iWastage', FLOAT, nullable=True, default=None)
- bSolitude = Column('bSolitude', BIT, nullable=False, default=0)
- cEnterprise = Column('cEnterprise', NVARCHAR(100), nullable=True, default=None)
- cAddress = Column('cAddress', NVARCHAR(255), nullable=True, default=None)
- cFile = Column('cFile', NVARCHAR(40), nullable=True, default=None)
- cLabel = Column('cLabel', NVARCHAR(30), nullable=True, default=None)
- cCheckOut = Column('cCheckOut', NVARCHAR(30), nullable=True, default=None)
- cLicence = Column('cLicence', NVARCHAR(30), nullable=True, default=None)
- bSpecialties = Column('bSpecialties', BIT, nullable=False, default=0)
- cDefWareHouse = Column('cDefWareHouse', NVARCHAR(10), nullable=True, default=None)
- iHighPrice = Column('iHighPrice', FLOAT, nullable=True, default=None)
- iExpSaleRate = Column('iExpSaleRate', FLOAT, nullable=True, default=None)
- cPriceGroup = Column('cPriceGroup', NVARCHAR(20), nullable=True, default=None)
- cOfferGrade = Column('cOfferGrade', NVARCHAR(20), nullable=True, default=None)
- iOfferRate = Column('iOfferRate', FLOAT, nullable=True, default=None)
- cMonth = Column('cMonth', NVARCHAR(6), nullable=True, default=None)
- iAdvanceDate = Column('iAdvanceDate', SMALLINT, nullable=True, default=None)
- cCurrencyName = Column('cCurrencyName', NVARCHAR(60), nullable=True, default=None)
- cProduceAddress = Column('cProduceAddress', NVARCHAR(255), nullable=True, default=None)
- cProduceNation = Column('cProduceNation', NVARCHAR(60), nullable=True, default=None)
- cRegisterNo = Column('cRegisterNo', NVARCHAR(60), nullable=True, default=None)
- cEnterNo = Column('cEnterNo', NVARCHAR(60), nullable=True, default=None)
- cPackingType = Column('cPackingType', NVARCHAR(60), nullable=True, default=None)
- cEnglishName = Column('cEnglishName', NVARCHAR(100), nullable=True, default=None)
- bPropertyCheck = Column('bPropertyCheck', BIT, nullable=False, default=0)
- cPreparationType = Column('cPreparationType', NVARCHAR(30), nullable=True, default=None)
- cCommodity = Column('cCommodity', NVARCHAR(60), nullable=True, default=None)
- iRecipeBatch = Column('iRecipeBatch', TINYINT, nullable=False, default=0)
- cNotPatentName = Column('cNotPatentName', NVARCHAR(30), nullable=True, default=None)
- pubufts = Column('pubufts', TIMESTAMP, nullable=True, default=None)
- bPromotSales = Column('bPromotSales', BIT, nullable=False, default=0)
- iPlanPolicy = Column('iPlanPolicy', SMALLINT, nullable=True, default=None)
- iROPMethod = Column('iROPMethod', SMALLINT, nullable=True, default=None)
- iBatchRule = Column('iBatchRule', SMALLINT, nullable=True, default=None)
- fBatchIncrement = Column('fBatchIncrement', FLOAT, nullable=True, default=None)
- iAssureProvideDays = Column('iAssureProvideDays', INTEGER, nullable=True, default=None)
- iTestStyle = Column('iTestStyle', SMALLINT, nullable=True, default=None)
- iDTMethod = Column('iDTMethod', SMALLINT, nullable=True, default=None)
- fDTRate = Column('fDTRate', FLOAT, nullable=True, default=None)
- fDTNum = Column('fDTNum', FLOAT, nullable=True, default=None)
- cDTUnit = Column('cDTUnit', NVARCHAR(35), nullable=True, default=None)
- iDTStyle = Column('iDTStyle', SMALLINT, nullable=True, default=None)
- iQTMethod = Column('iQTMethod', INTEGER, nullable=True, default=None)
- PictureGUID = Column('PictureGUID', UNIQUEIDENTIFIER, nullable=True, default=None)
- bPlanInv = Column('bPlanInv', BIT, nullable=False, default=0)
- bProxyForeign = Column('bProxyForeign', BIT, nullable=False, default=0)
- bATOModel = Column('bATOModel', BIT, nullable=False, default=0)
- bCheckItem = Column('bCheckItem', BIT, nullable=False, default=0)
- bPTOModel = Column('bPTOModel', BIT, nullable=False, default=0)
- bEquipment = Column('bEquipment', BIT, nullable=False, default=0)
- cProductUnit = Column('cProductUnit', NVARCHAR(35), nullable=True, default=None)
- fOrderUpLimit = Column('fOrderUpLimit', FLOAT, nullable=True, default=None)
- cMassUnit = Column('cMassUnit', SMALLINT, nullable=True, default=0)
- fRetailPrice = Column('fRetailPrice', FLOAT, nullable=True, default=None)
- cInvDepCode = Column('cInvDepCode', NVARCHAR(12), nullable=True, default=None)
- iAlterAdvance = Column('iAlterAdvance', INTEGER, nullable=True, default=None)
- fAlterBaseNum = Column('fAlterBaseNum', FLOAT, nullable=True, default=None)
- cPlanMethod = Column('cPlanMethod', NVARCHAR(1), nullable=True, default='L')
- bMPS = Column('bMPS', BIT, nullable=False, default=0)
- bROP = Column('bROP', BIT, nullable=False, default=0)
- bRePlan = Column('bRePlan', BIT, nullable=False, default=0)
- cSRPolicy = Column('cSRPolicy', NVARCHAR(2), nullable=True, default='PE')
- bBillUnite = Column('bBillUnite', BIT, nullable=False, default=0)
- iSupplyDay = Column('iSupplyDay', INTEGER, nullable=True, default=None)
- fSupplyMulti = Column('fSupplyMulti', FLOAT, nullable=True, default=None)
- fMinSupply = Column('fMinSupply', FLOAT, nullable=True, default=None)
- bCutMantissa = Column('bCutMantissa', BIT, nullable=False, default=0)
- cInvPersonCode = Column('cInvPersonCode', NVARCHAR(20), nullable=True, default=None)
- iInvTfId = Column('iInvTfId', INTEGER, nullable=True, default=None)
- cEngineerFigNo = Column('cEngineerFigNo', NVARCHAR(60), nullable=True, default=None)
- bInTotalCost = Column('bInTotalCost', BIT, nullable=False, default=1)
- iSupplyType = Column('iSupplyType', SMALLINT, nullable=False, default=0)
- bConfigFree1 = Column('bConfigFree1', BIT, nullable=False, default=0)
- bConfigFree2 = Column('bConfigFree2', BIT, nullable=False, default=0)
- bConfigFree3 = Column('bConfigFree3', BIT, nullable=False, default=0)
- bConfigFree4 = Column('bConfigFree4', BIT, nullable=False, default=0)
- bConfigFree5 = Column('bConfigFree5', BIT, nullable=False, default=0)
- bConfigFree6 = Column('bConfigFree6', BIT, nullable=False, default=0)
- bConfigFree7 = Column('bConfigFree7', BIT, nullable=False, default=0)
- bConfigFree8 = Column('bConfigFree8', BIT, nullable=False, default=0)
- bConfigFree9 = Column('bConfigFree9', BIT, nullable=False, default=0)
- bConfigFree10 = Column('bConfigFree10', BIT, nullable=False, default=0)
- iDTLevel = Column('iDTLevel', SMALLINT, nullable=True, default=None)
- cDTAQL = Column('cDTAQL', NVARCHAR(20), nullable=True, default=None)
- bPeriodDT = Column('bPeriodDT', BIT, nullable=False, default=0)
- cDTPeriod = Column('cDTPeriod', NVARCHAR(30), nullable=True, default=None)
- iBigMonth = Column('iBigMonth', INTEGER, nullable=True, default=None)
- iBigDay = Column('iBigDay', INTEGER, nullable=True, default=None)
- iSmallMonth = Column('iSmallMonth', INTEGER, nullable=True, default=None)
- iSmallDay = Column('iSmallDay', INTEGER, nullable=True, default=None)
- bOutInvDT = Column('bOutInvDT', BIT, nullable=False, default=0)
- bBackInvDT = Column('bBackInvDT', BIT, nullable=False, default=0)
- iEndDTStyle = Column('iEndDTStyle', SMALLINT, nullable=True, default=None)
- bDTWarnInv = Column('bDTWarnInv', BIT, nullable=True, default=0)
- fBackTaxRate = Column('fBackTaxRate', FLOAT, nullable=True, default=None)
- cCIQCode = Column('cCIQCode', NVARCHAR(30), nullable=True, default=None)
- cWGroupCode = Column('cWGroupCode', NVARCHAR(35), nullable=True, default=None)
- cWUnit = Column('cWUnit', NVARCHAR(35), nullable=True, default=None)
- fGrossW = Column('fGrossW', FLOAT, nullable=True, default=None)
- cVGroupCode = Column('cVGroupCode', NVARCHAR(35), nullable=True, default=None)
- cVUnit = Column('cVUnit', NVARCHAR(35), nullable=True, default=None)
- fLength = Column('fLength', FLOAT, nullable=True, default=None)
- fWidth = Column('fWidth', FLOAT, nullable=True, default=None)
- fHeight = Column('fHeight', FLOAT, nullable=True, default=None)
- iDTUCounter = Column('iDTUCounter', INTEGER, nullable=True, default=None)
- iDTDCounter = Column('iDTDCounter', INTEGER, nullable=True, default=None)
- iBatchCounter = Column('iBatchCounter', INTEGER, nullable=True, default=None)
- cShopUnit = Column('cShopUnit', NVARCHAR(35), nullable=True, default='01')
- cPurPersonCode = Column('cPurPersonCode', NVARCHAR(20), nullable=True, default=None)
- bImportMedicine = Column('bImportMedicine', BIT, nullable=False, default=0)
- bFirstBusiMedicine = Column('bFirstBusiMedicine', BIT, nullable=False, default=0)
- bForeExpland = Column('bForeExpland', BIT, nullable=False, default=0)
- cInvPlanCode = Column('cInvPlanCode', NVARCHAR(20), nullable=True, default=None)
- fConvertRate = Column('fConvertRate', FLOAT, nullable=False, default=1)
- dReplaceDate = Column('dReplaceDate', DATETIME, nullable=True, default=None)
- bInvModel = Column('bInvModel', BIT, nullable=False, default=0)
- bKCCutMantissa = Column('bKCCutMantissa', BIT, nullable=False, default=0)
- bReceiptByDT = Column('bReceiptByDT', BIT, nullable=False, default=0)
- iImpTaxRate = Column('iImpTaxRate', FLOAT, nullable=True, default=17)
- iExpTaxRate = Column('iExpTaxRate', FLOAT, nullable=True, default=None)
- bExpSale = Column('bExpSale', BIT, nullable=False, default=0)
- iDrawBatch = Column('iDrawBatch', FLOAT, nullable=True, default=None)
- bCheckBSATP = Column('bCheckBSATP', BIT, nullable=False, default=0)
- cInvProjectCode = Column('cInvProjectCode', NVARCHAR(16), nullable=True, default=None)
- iTestRule = Column('iTestRule', SMALLINT, nullable=True, default=None)
- cRuleCode = Column('cRuleCode', NVARCHAR(20), nullable=True, default=None)
- bCheckFree1 = Column('bCheckFree1', BIT, nullable=False, default=0)
- bCheckFree2 = Column('bCheckFree2', BIT, nullable=False, default=0)
- bCheckFree3 = Column('bCheckFree3', BIT, nullable=False, default=0)
- bCheckFree4 = Column('bCheckFree4', BIT, nullable=False, default=0)
- bCheckFree5 = Column('bCheckFree5', BIT, nullable=False, default=0)
- bCheckFree6 = Column('bCheckFree6', BIT, nullable=False, default=0)
- bCheckFree7 = Column('bCheckFree7', BIT, nullable=False, default=0)
- bCheckFree8 = Column('bCheckFree8', BIT, nullable=False, default=0)
- bCheckFree9 = Column('bCheckFree9', BIT, nullable=False, default=0)
- bCheckFree10 = Column('bCheckFree10', BIT, nullable=False, default=0)
- bBomMain = Column('bBomMain', BIT, nullable=False, default=1)
- bBomSub = Column('bBomSub', BIT, nullable=False, default=1)
- bProductBill = Column('bProductBill', BIT, nullable=False, default=1)
- iCheckATP = Column('iCheckATP', SMALLINT, nullable=False, default=0)
- iInvATPId = Column('iInvATPId', INTEGER, nullable=True, default=None)
- iPlanTfDay = Column('iPlanTfDay', INTEGER, nullable=True, default=None)
- iOverlapDay = Column('iOverlapDay', INTEGER, nullable=True, default=None)
- bPiece = Column('bPiece', BIT, nullable=False, default=0)
- bSrvItem = Column('bSrvItem', BIT, nullable=False, default=0)
- bSrvFittings = Column('bSrvFittings', BIT, nullable=False, default=0)
- fMaxSupply = Column('fMaxSupply', FLOAT, nullable=True, default=None)
- fMinSplit = Column('fMinSplit', FLOAT, nullable=True, default=None)
- bSpecialOrder = Column('bSpecialOrder', BIT, nullable=False, default=0)
- bTrackSaleBill = Column('bTrackSaleBill', BIT, nullable=False, default=0)
- cInvMnemCode = Column('cInvMnemCode', NVARCHAR(40), nullable=True, default=None)
- iPlanDefault = Column('iPlanDefault', SMALLINT, nullable=True, default=1)
- iPFBatchQty = Column('iPFBatchQty', FLOAT, nullable=True, default=None)
- iAllocatePrintDgt = Column('iAllocatePrintDgt', INTEGER, nullable=True, default=4)
- bCheckBatch = Column('bCheckBatch', BIT, nullable=False, default=0)
- bMngOldpart = Column('bMngOldpart', BIT, nullable=False, default=0)
- iOldpartMngRule = Column('iOldpartMngRule', SMALLINT, nullable=True, default=-1)
- class BasPart(Base):
- __tablename__ = "bas_part"
- PartId = Column('PartId', INTEGER, nullable=False, primary_key=True, autoincrement=False)
- InvCode = Column('InvCode', NVARCHAR(60), nullable=False, default=None)
- Free1 = Column('Free1', NVARCHAR(20), nullable=False, default='')
- Free2 = Column('Free2', NVARCHAR(20), nullable=False, default='')
- Free3 = Column('Free3', NVARCHAR(20), nullable=False, default='')
- Free4 = Column('Free4', NVARCHAR(20), nullable=False, default='')
- Free5 = Column('Free5', NVARCHAR(20), nullable=False, default='')
- Free6 = Column('Free6', NVARCHAR(20), nullable=False, default='')
- Free7 = Column('Free7', NVARCHAR(20), nullable=False, default='')
- Free8 = Column('Free8', NVARCHAR(20), nullable=False, default='')
- Free9 = Column('Free9', NVARCHAR(20), nullable=False, default='')
- Free10 = Column('Free10', NVARCHAR(20), nullable=False, default='')
- SafeQty = Column('SafeQty', DECIMAL(28, 6), nullable=True, default=0)
- MinQty = Column('MinQty', DECIMAL(28, 6), nullable=True, default=0)
- MulQty = Column('MulQty', DECIMAL(28, 6), nullable=True, default=0)
- FixQty = Column('FixQty', DECIMAL(28, 6), nullable=True, default=0)
- bVirtual = Column('bVirtual', BIT, nullable=True, default=1)
- DrawCode = Column('DrawCode', NVARCHAR(60), nullable=True, default=None)
- Ufts = Column('Ufts', TIMESTAMP, nullable=True, default=None)
- LLC = Column('LLC', INTEGER, nullable=True, default=0)
- cBasEngineerFigNo = Column('cBasEngineerFigNo', NVARCHAR(60), nullable=True, default=None)
- fBasMaxSupply = Column('fBasMaxSupply', FLOAT, nullable=True, default=None)
- iSurenessType = Column('iSurenessType', SMALLINT, nullable=False, default=1)
- iDateType = Column('iDateType', SMALLINT, nullable=True, default=None)
- iDateSum = Column('iDateSum', INTEGER, nullable=True, default=None)
- iDynamicSurenessType = Column('iDynamicSurenessType', SMALLINT, nullable=True, default=None)
- iBestrowSum = Column('iBestrowSum', FLOAT, nullable=True, default=None)
- iPercentumSum = Column('iPercentumSum', FLOAT, nullable=True, default=None)
- RoundingFactor = Column('RoundingFactor', DECIMAL(28, 6), nullable=True)
- FreeStockFlag = Column('FreeStockFlag', BIT, nullable=True, default=0)
- bFreeStop = Column('bFreeStop', BIT, nullable=False, default=0)
- class InventorySub(Base):
- __tablename__ = 'Inventory_Sub'
- cInvSubCode = Column('cInvSubCode', NVARCHAR(60), nullable=False, primary_key=True, autoincrement=False)
- fBuyExcess = Column('fBuyExcess', FLOAT, nullable=True, default=None)
- iSurenessType = Column('iSurenessType', SMALLINT, nullable=False, default=1)
- iDateType = Column('iDateType', SMALLINT, nullable=True, default=None)
- iDateSum = Column('iDateSum', INTEGER, nullable=True, default=None)
- iDynamicSurenessType = Column('iDynamicSurenessType', SMALLINT, nullable=True, default=None)
- iBestrowSum = Column('iBestrowSum', FLOAT, nullable=True, default=None)
- iPercentumSum = Column('iPercentumSum', FLOAT, nullable=True, default=None)
- bIsAttachFile = Column('bIsAttachFile', BIT, nullable=True, default=0)
- bInByProCheck = Column('bInByProCheck', BIT, nullable=False, default=0)
- iRequireTrackStyle = Column('iRequireTrackStyle', SMALLINT, nullable=False, default=0)
- iExpiratDateCalcu = Column('iExpiratDateCalcu', SMALLINT, nullable=True, default=1)
- iBOMExpandUnitType = Column('iBOMExpandUnitType', SMALLINT, nullable=False, default=1)
- bPurPriceFree1 = Column('bPurPriceFree1', BIT, nullable=False, default=1)
- bPurPriceFree2 = Column('bPurPriceFree2', BIT, nullable=False, default=0)
- bPurPriceFree3 = Column('bPurPriceFree3', BIT, nullable=False, default=0)
- bPurPriceFree4 = Column('bPurPriceFree4', BIT, nullable=False, default=0)
- bPurPriceFree5 = Column('bPurPriceFree5', BIT, nullable=False, default=0)
- bPurPriceFree6 = Column('bPurPriceFree6', BIT, nullable=False, default=0)
- bPurPriceFree7 = Column('bPurPriceFree7', BIT, nullable=False, default=0)
- bPurPriceFree8 = Column('bPurPriceFree8', BIT, nullable=False, default=0)
- bPurPriceFree9 = Column('bPurPriceFree9', BIT, nullable=False, default=0)
- bPurPriceFree10 = Column('bPurPriceFree10', BIT, nullable=False, default=0)
- bOMPriceFree1 = Column('bOMPriceFree1', BIT, nullable=False, default=0)
- bOMPriceFree2 = Column('bOMPriceFree2', BIT, nullable=False, default=0)
- bOMPriceFree3 = Column('bOMPriceFree3', BIT, nullable=False, default=0)
- bOMPriceFree4 = Column('bOMPriceFree4', BIT, nullable=False, default=0)
- bOMPriceFree5 = Column('bOMPriceFree5', BIT, nullable=False, default=0)
- bOMPriceFree6 = Column('bOMPriceFree6', BIT, nullable=False, default=0)
- bOMPriceFree7 = Column('bOMPriceFree7', BIT, nullable=False, default=0)
- bOMPriceFree8 = Column('bOMPriceFree8', BIT, nullable=False, default=0)
- bOMPriceFree9 = Column('bOMPriceFree9', BIT, nullable=False, default=0)
- bOMPriceFree10 = Column('bOMPriceFree10', BIT, nullable=False, default=0)
- bSalePriceFree1 = Column('bSalePriceFree1', BIT, nullable=False, default=1)
- bSalePriceFree2 = Column('bSalePriceFree2', BIT, nullable=False, default=0)
- bSalePriceFree3 = Column('bSalePriceFree3', BIT, nullable=False, default=0)
- bSalePriceFree4 = Column('bSalePriceFree4', BIT, nullable=False, default=0)
- bSalePriceFree5 = Column('bSalePriceFree5', BIT, nullable=False, default=0)
- bSalePriceFree6 = Column('bSalePriceFree6', BIT, nullable=False, default=0)
- bSalePriceFree7 = Column('bSalePriceFree7', BIT, nullable=False, default=0)
- bSalePriceFree8 = Column('bSalePriceFree8', BIT, nullable=False, default=0)
- bSalePriceFree9 = Column('bSalePriceFree9', BIT, nullable=False, default=0)
- bSalePriceFree10 = Column('bSalePriceFree10', BIT, nullable=False, default=0)
- fInvOutUpLimit = Column('fInvOutUpLimit', FLOAT, nullable=True, default=None)
- bBondedInv = Column('bBondedInv', BIT, nullable=False, default=0)
- bBatchCreate = Column('bBatchCreate', BIT, nullable=False, default=1)
- bBatchProperty1 = Column('bBatchProperty1', BIT, nullable=False, default=1)
- bBatchProperty2 = Column('bBatchProperty2', BIT, nullable=False, default=1)
- bBatchProperty3 = Column('bBatchProperty3', BIT, nullable=False, default=0)
- bBatchProperty4 = Column('bBatchProperty4', BIT, nullable=False, default=0)
- bBatchProperty5 = Column('bBatchProperty5', BIT, nullable=False, default=0)
- bBatchProperty6 = Column('bBatchProperty6', BIT, nullable=False, default=1)
- bBatchProperty7 = Column('bBatchProperty7', BIT, nullable=False, default=1)
- bBatchProperty8 = Column('bBatchProperty8', BIT, nullable=False, default=1)
- bBatchProperty9 = Column('bBatchProperty9', BIT, nullable=False, default=1)
- bBatchProperty10 = Column('bBatchProperty10', BIT, nullable=False, default=1)
- bControlFreeRange1 = Column('bControlFreeRange1', BIT, nullable=False, default=0)
- bControlFreeRange2 = Column('bControlFreeRange2', BIT, nullable=False, default=0)
- bControlFreeRange3 = Column('bControlFreeRange3', BIT, nullable=False, default=0)
- bControlFreeRange4 = Column('bControlFreeRange4', BIT, nullable=False, default=0)
- bControlFreeRange5 = Column('bControlFreeRange5', BIT, nullable=False, default=0)
- bControlFreeRange6 = Column('bControlFreeRange6', BIT, nullable=False, default=0)
- bControlFreeRange7 = Column('bControlFreeRange7', BIT, nullable=False, default=0)
- bControlFreeRange8 = Column('bControlFreeRange8', BIT, nullable=False, default=0)
- bControlFreeRange9 = Column('bControlFreeRange9', BIT, nullable=False, default=0)
- bControlFreeRange10 = Column('bControlFreeRange10', BIT, nullable=False, default=1)
- fInvCIQExch = Column('fInvCIQExch', FLOAT, nullable=True, default=None)
- iWarrantyPeriod = Column('iWarrantyPeriod', INTEGER, nullable=True, default=None)
- iWarrantyUnit = Column('iWarrantyUnit', SMALLINT, nullable=False, default=0)
- bInvKeyPart = Column('bInvKeyPart', BIT, nullable=False, default=1)
- iAcceptEarlyDays = Column('iAcceptEarlyDays', INTEGER, nullable=False, default=0)
- fProcessCost = Column('fProcessCost', FLOAT, nullable=True, default=None)
- fCurLLaborCost = Column('fCurLLaborCost', FLOAT, nullable=True, default=None)
- fCurLVarManuCost = Column('fCurLVarManuCost', FLOAT, nullable=True, default=None)
- fCurLFixManuCost = Column('fCurLFixManuCost', FLOAT, nullable=True, default=None)
- fCurLOMCost = Column('fCurLOMCost', FLOAT, nullable=True, default=None)
- fNextLLaborCost = Column('fNextLLaborCost', FLOAT, nullable=True, default=None)
- fNextLVarManuCost = Column('fNextLVarManuCost', FLOAT, nullable=True, default=None)
- fNextLFixManuCost = Column('fNextLFixManuCost', FLOAT, nullable=True, default=None)
- fNextLOMCost = Column('fNextLOMCost', FLOAT, nullable=True, default=None)
- dInvCreateDatetime = Column('dInvCreateDatetime', DATETIME, nullable=False, default=func.getdate())
- cInvAppDocNo = Column('cInvAppDocNo', NVARCHAR(50), nullable=True, default=None)
- bPUQuota = Column('bPUQuota', BIT, nullable=False, default=0)
- bInvROHS = Column('bInvROHS', BIT, nullable=False, default=0)
- bPrjMat = Column('bPrjMat', BIT, nullable=False, default=0)
- fPrjMatLimit = Column('fPrjMatLimit', DECIMAL(28, 6), nullable=True, default=None)
- bInvAsset = Column('bInvAsset', BIT, nullable=False, default=0)
- bSrvProduct = Column('bSrvProduct', BIT, nullable=False, default=0)
- iAcceptDelayDays = Column('iAcceptDelayDays', INTEGER, nullable=False, default=0)
- iPlanCheckDay = Column('iPlanCheckDay', INTEGER, nullable=True, default=None)
- iMaterialsCycle = Column('iMaterialsCycle', INTEGER, nullable=True, default=None)
- iDrawType = Column('iDrawType', SMALLINT, nullable=True, default=0)
- bSCkeyProjections = Column('bSCkeyProjections', BIT, nullable=True, default=0)
- iSupplyPeriodType = Column('iSupplyPeriodType', INTEGER, nullable=False, default=1)
- iTimeBucketId = Column('iTimeBucketId', INTEGER, nullable=True, default=None)
- iAvailabilityDate = Column('iAvailabilityDate', INTEGER, nullable=False, default=1)
- fMaterialCost = Column('fMaterialCost', FLOAT, nullable=True, default=None)
- bImport = Column('bImport', BIT, nullable=True, default=0)
- iNearRejectDays = Column('iNearRejectDays', INTEGER, nullable=True, default=None)
- bCheckSubitemCost = Column('bCheckSubitemCost', BIT, nullable=True, default=1)
- fRoundFactor = Column('fRoundFactor', FLOAT, nullable=True, default=0)
- bConsiderFreeStock = Column('bConsiderFreeStock', BIT, nullable=True, default=1)
- bSuitRetail = Column('bSuitRetail', BIT, nullable=True, default=0)
- class InventoryExtraDefine(Base):
- __tablename__ = 'Inventory_extradefine'
- cInvCode = Column('cInvCode', NVARCHAR(60), nullable=False, primary_key=True, autoincrement=False)
- cidefine1 = Column('cidefine1', NVARCHAR(400), nullable=True, default=None)
- cidefine2 = Column('cidefine2', NVARCHAR(60), nullable=True, default=None)
- cidefine3 = Column('cidefine3', NVARCHAR(60), nullable=True, default=None)
- cidefine4 = Column('cidefine4', NVARCHAR(60), nullable=True, default=None)
- cidefine5 = Column('cidefine5', NVARCHAR(400), nullable=True, default=None)
- cidefine6 = Column('cidefine6', NVARCHAR(50), nullable=True, default=None)
- cidefine7 = Column('cidefine7', NVARCHAR(10), nullable=True, default=None)
- cidefine8 = Column('cidefine8', NVARCHAR(120), nullable=True, default=None)
- cidefine9 = Column('cidefine9', NVARCHAR(400), nullable=True, default=None)
- cidefine10 = Column('cidefine10', NVARCHAR(400), nullable=True, default=None)
- cidefine11 = Column('cidefine11', NVARCHAR(400), nullable=True, default=None)
- cidefine12 = Column('cidefine12', NVARCHAR(400), nullable=True, default=None)
- cidefine13 = Column('cidefine13', NVARCHAR(400), nullable=True, default=None)
- cidefine14 = Column('cidefine14', NVARCHAR(400), nullable=True, default=None)
- cidefine15 = Column('cidefine15', NVARCHAR(400), nullable=True, default=None)
- cidefine16 = Column('cidefine16', NVARCHAR(400), nullable=True, default=None)
- cidefine17 = Column('cidefine17', NVARCHAR(400), nullable=True, default=None)
- class Department(Base):
- __tablename__ = "Department"
- cDepCode = Column('cDepCode', NVARCHAR(12), primary_key=True)
- bDepEnd = Column('bDepEnd', BIT)
- cDepName = Column('cDepName', NVARCHAR(255))
- iDepGrade = Column('iDepGrade', TINYINT)
- cDepPerson = Column('cDepPerson', NVARCHAR(20))
- cDepProp = Column('cDepProp', NVARCHAR(10))
- cDepPhone = Column('cDepPhone', NVARCHAR(100))
- cDepAddress = Column('cDepAddress', NVARCHAR(255))
- cDepMemo = Column('cDepMemo', NVARCHAR(20))
- iCreLine = Column('iCreLine', FLOAT)
- cCreGrade = Column('cCreGrade', NVARCHAR(20))
- iCreDate = Column('iCreDate', INTEGER)
- cOfferGrade = Column('cOfferGrade', NVARCHAR(20))
- iOfferRate = Column('iOfferRate', FLOAT)
- pubufts = Column('pubufts', TIMESTAMP)
- bShop = Column('bShop', BIT)
- cDepGUID = Column('cDepGUID', UNIQUEIDENTIFIER)
- dDepBeginDate = Column('dDepBeginDate', DATETIME)
- dDepEndDate = Column('dDepEndDate', DATETIME)
- vAuthorizeDoc = Column('vAuthorizeDoc', NVARCHAR(50))
- vAuthorizeUnit = Column('vAuthorizeUnit', NVARCHAR(100))
- cDepFax = Column('cDepFax', NVARCHAR(20))
- cDepPostCode = Column('cDepPostCode', NVARCHAR(6))
- cDepEmail = Column('cDepEmail', NVARCHAR(100))
- cDepType = Column('cDepType', NVARCHAR(20))
- bInheritDutyBasic = Column('bInheritDutyBasic', INTEGER)
- bInheritWorkCalendar = Column('bInheritWorkCalendar', INTEGER)
- cDutyCode = Column('cDutyCode', NVARCHAR(50))
- cRestCode = Column('cRestCode', NVARCHAR(50))
- bIM = Column('bIM', BIT)
- cDepNameEn = Column('cDepNameEn', NVARCHAR(255))
- bRetail = Column('bRetail', BIT)
- cDepFullName = Column('cDepFullName', NVARCHAR(800))
- iDepOrder = Column('iDepOrder', INTEGER)
- cDepLeader = Column('cDepLeader', NVARCHAR(20))
- dModifyDate = Column('dModifyDate', DATETIME)
- cESpaceMembID = Column('cESpaceMembID', NVARCHAR(50))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement