Difference between revisions of "Production.WorkOrder (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Production.WorkOrder | | Production.WorkOrder | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Manufacturing work orders. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| WorkOrderID | | WorkOrderID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_WorkOrder_WorkOrderID | + | | Primary key for WorkOrder records.<br />PK_WorkOrder_WorkOrderID |
− | + | |- valign="top" | |
− | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Product identification number. Foreign key to Product.ProductID.<br />IX_WorkOrder_ProductID |
− | + | |- valign="top" | |
− | |- | ||
| OrderQty | | OrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Product quantity to build.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| StockedQty | | StockedQty | ||
| | | | ||
| | | | ||
| | | | ||
− | | | + | | Quantity built and put in inventory.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| ScrappedQty | | ScrappedQty | ||
| smallint | | smallint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Quantity that failed inspection.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Work order start date.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
− | | | + | | Work order end date.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| DueDate | | DueDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Work order due date.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| ScrapReasonID | | ScrapReasonID | ||
| smallint | | smallint | ||
| null | | null | ||
| | | | ||
− | | | + | | Reason for inspection failure.<br />IX_WorkOrder_ScrapReasonID |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 134: | Line 126: | ||
| ON UPDATE | | ON UPDATE | ||
|} | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | | '''Child Type | ||
+ | | '''Child Object | ||
+ | |||
+ | |- | ||
+ | | Insert | ||
+ | | Table | ||
+ | | [[Production.TransactionHistory_(table)|Production.TransactionHistory]] | ||
+ | |||
+ | | Trigger | ||
+ | | iWorkOrder | ||
+ | |- | ||
+ | | Insert | ||
+ | | Table | ||
+ | | [[Production.TransactionHistory_(table)|Production.TransactionHistory]] | ||
+ | |||
+ | | Trigger | ||
+ | | uWorkOrder | ||
+ | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
+ | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
+ | |||
+ | | Trigger | ||
+ | | iWorkOrder | ||
+ | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
+ | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
+ | |||
+ | | Trigger | ||
+ | | uWorkOrder | ||
+ | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
+ | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
+ | |||
+ | | Trigger | ||
+ | | uWorkOrder | ||
+ | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
+ | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
+ | |||
+ | | Trigger | ||
+ | | iWorkOrder | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:55, 28 December 2009
wikibot
Table | Production.WorkOrder |
Description | Manufacturing work orders. |
Column | Data Type | Nullable | Default | Description / PK / Index |
WorkOrderID | int | not null | Primary key for WorkOrder records. PK_WorkOrder_WorkOrderID | |
ProductID | int | not null | Product identification number. Foreign key to Product.ProductID. IX_WorkOrder_ProductID | |
OrderQty | int | not null | Product quantity to build. | |
StockedQty | Quantity built and put in inventory. | |||
ScrappedQty | smallint | not null | Quantity that failed inspection. | |
StartDate | datetime | not null | Work order start date. | |
EndDate | datetime | null | Work order end date. | |
DueDate | datetime | not null | Work order due date. | |
ScrapReasonID | smallint | null | Reason for inspection failure. IX_WorkOrder_ScrapReasonID | |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Production.Product | ProductID | ProductID |
Production.ScrapReason | ScrapReasonID | ScrapReasonID |
Detail Table | Column | Referencing Column |
Production.WorkOrderRouting | WorkOrderID | WorkOrderID |
Triggers | Type |
iWorkOrder | ON INSERT |
uWorkOrder | ON UPDATE |
Dependency Type | Object Type | Referenced Object | Child Type | Child Object |
Insert | Table | Production.TransactionHistory | Trigger | iWorkOrder |
Insert | Table | Production.TransactionHistory | Trigger | uWorkOrder |
Execute | Procedure | dbo.uspLogError | Trigger | iWorkOrder |
Execute | Procedure | dbo.uspLogError | Trigger | uWorkOrder |
Execute | Procedure | dbo.uspPrintError | Trigger | uWorkOrder |
Execute | Procedure | dbo.uspPrintError | Trigger | iWorkOrder |
automatically generated
Table | Production.WorkOrder |
Description | Manufacturing work orders. |
Column | Data Type | Nullable | Default | Description / PK / Index |
WorkOrderID | int | not null | Primary key for WorkOrder records. PK_WorkOrder_WorkOrderID | |
ProductID | int | not null | Product identification number. Foreign key to Product.ProductID. IX_WorkOrder_ProductID | |
OrderQty | int | not null | Product quantity to build. | |
StockedQty | Quantity built and put in inventory. | |||
ScrappedQty | smallint | not null | Quantity that failed inspection. | |
StartDate | datetime | not null | Work order start date. | |
EndDate | datetime | null | Work order end date. | |
DueDate | datetime | not null | Work order due date. | |
ScrapReasonID | smallint | null | Reason for inspection failure. IX_WorkOrder_ScrapReasonID | |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Production.Product | ProductID | ProductID |
Production.ScrapReason | ScrapReasonID | ScrapReasonID |
Detail Table | Column | Referencing Column |
Production.WorkOrderRouting | WorkOrderID | WorkOrderID |
Triggers | Type |
iWorkOrder | ON INSERT |
uWorkOrder | ON UPDATE |
Dependency Type | Object Type | Referenced Object | Child Type | Child Object |
Schema | Schema | Production | ||
Insert | Table | Production.TransactionHistory | Trigger | iWorkOrder |
Insert | Table | Production.TransactionHistory | Trigger | uWorkOrder |
Execute | Procedure | dbo.uspLogError | Trigger | iWorkOrder |
Execute | Procedure | dbo.uspLogError | Trigger | uWorkOrder |
Execute | Procedure | dbo.uspPrintError | Trigger | uWorkOrder |
Execute | Procedure | dbo.uspPrintError | Trigger | iWorkOrder |