Difference between revisions of "Production.WorkOrder (table)"
| Line 134: | Line 134: | ||
| ON UPDATE | | ON UPDATE | ||
|} | |} | ||
| − | |||
== automatically generated == | == automatically generated == | ||
| Line 156: | Line 155: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description / PK / Index |
| − | |||
| − | |- | + | |- valign="top" |
| WorkOrderID | | WorkOrderID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key for WorkOrder records. | + | | Primary key for WorkOrder records.PK_WorkOrder_WorkOrderID |
| − | + | |- valign="top" | |
| − | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | Product identification number. Foreign key to Product.ProductID. | + | | Product identification number. Foreign key to Product.ProductID.IX_WorkOrder_ProductID |
| − | + | |- valign="top" | |
| − | |- | ||
| OrderQty | | OrderQty | ||
| int | | int | ||
| Line 179: | Line 175: | ||
| | | | ||
| Product quantity to build. | | Product quantity to build. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| StockedQty | | StockedQty | ||
| | | | ||
| Line 186: | Line 181: | ||
| | | | ||
| Quantity built and put in inventory. | | Quantity built and put in inventory. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| ScrappedQty | | ScrappedQty | ||
| smallint | | smallint | ||
| Line 193: | Line 187: | ||
| | | | ||
| Quantity that failed inspection. | | Quantity that failed inspection. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| Line 200: | Line 193: | ||
| | | | ||
| Work order start date. | | Work order start date. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| Line 207: | Line 199: | ||
| | | | ||
| Work order end date. | | Work order end date. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| DueDate | | DueDate | ||
| datetime | | datetime | ||
| Line 214: | Line 205: | ||
| | | | ||
| Work order due date. | | Work order due date. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| ScrapReasonID | | ScrapReasonID | ||
| smallint | | smallint | ||
| null | | null | ||
| | | | ||
| − | | Reason for inspection failure. | + | | Reason for inspection failure.IX_WorkOrder_ScrapReasonID |
| − | + | |- valign="top" | |
| − | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| Line 228: | Line 217: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
| − | |||
|} | |} | ||
| Line 274: | Line 262: | ||
| uWorkOrder | | uWorkOrder | ||
| ON UPDATE | | ON UPDATE | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Referenced Object | ||
| + | | '''Object Type | ||
| + | | '''Dependency Type | ||
| + | |||
| + | |- | ||
| + | | [[Production.TransactionHistory_(table)|Production.TransactionHistory]] | ||
| + | | Table | ||
| + | | Insert | ||
| + | |- | ||
| + | | [[Production.TransactionHistory_(table)|Production.TransactionHistory]] | ||
| + | | Table | ||
| + | | Insert | ||
| + | |- | ||
| + | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
| + | | Procedure | ||
| + | | Execute | ||
| + | |- | ||
| + | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
| + | | Procedure | ||
| + | | Execute | ||
| + | |- | ||
| + | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
| + | | Procedure | ||
| + | | Execute | ||
| + | |- | ||
| + | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
| + | | Procedure | ||
| + | | Execute | ||
|} | |} | ||
Revision as of 23:58, 26 November 2009
wikibot
| Table | Production.WorkOrder |
| Column | Data Type | Nullable | Default | PK | Index |
| WorkOrderID | int | not null | PK_WorkOrder_WorkOrderID | ||
| ProductID | int | not null | IX_WorkOrder_ProductID | ||
| OrderQty | int | not null | |||
| StockedQty | |||||
| ScrappedQty | smallint | not null | |||
| StartDate | datetime | not null | |||
| EndDate | datetime | null | |||
| DueDate | datetime | not null | |||
| ScrapReasonID | smallint | null | IX_WorkOrder_ScrapReasonID | ||
| ModifiedDate | datetime | not null | (getdate()) |
| 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 |
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 |
| Referenced Object | Object Type | Dependency Type |
| Production.TransactionHistory | Table | Insert |
| Production.TransactionHistory | Table | Insert |
| dbo.uspLogError | Procedure | Execute |
| dbo.uspLogError | Procedure | Execute |
| dbo.uspPrintError | Procedure | Execute |
| dbo.uspPrintError | Procedure | Execute |