¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation MasterPlanReleaseWorkOrderTabulation_MasterPlanReleaseWorkOrder_MasterPlanReleaseWorkOrder_MasterPlanReleaseWorkOrderTabulation |
| | | { |
| | | #keys: '1[414702.0.224201190]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MasterPlanReleaseWorkOrder |
| | | { |
| | | #keys: '3[414702.0.224201192][414702.0.224201191][414702.0.224201193]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MasterPlanReleaseWorkOrderTabulation |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide MasterPlanReleaseWorkOrderTabulation |
| | | { |
| | | #keys: '3[414702.0.224201195][414702.0.224201194][414702.0.224201196]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MasterPlanReleaseWorkOrder |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation MasterPlanReleaseWorkOrder_MacroPlan_MacroPlan_MasterPlanReleaseWorkOrder |
| | | { |
| | | #keys: '1[414702.0.224201157]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[414702.0.224201159][414702.0.224201158][414702.0.224201160]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MasterPlanReleaseWorkOrder |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide MasterPlanReleaseWorkOrder |
| | | { |
| | | #keys: '3[414702.0.224201162][414702.0.224201161][414702.0.224201163]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsGenerateAndPublishWorkOrders |
| | | { |
| | | #keys: '3[414702.0.224201173][414702.0.224201172][414702.0.224201174]' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GenerateAndDistributeWorkOrders ( |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | macroPlan.MasterPlanReleaseWorkOrder( relflush ); |
| | | |
| | | newMasterPlanReleaseWorkOrder := macroPlan.MasterPlanReleaseWorkOrder( relnew, IsGenerateAndPublishWorkOrders := true ); |
| | | |
| | | universalPrefixForWorkOrderNumber := [String]Date::ActualDate().Year() + ( [String]Date::ActualDate().Month() ) + |
| | | [String]Date::ActualDate().Day() + [String]DateTime::ActualTime().HourOfDay() + |
| | | [String]DateTime::ActualTime().MinuteOfHour(); |
| | | orderNumber := 1; |
| | | |
| | | traverse ( macroPlan, Product_MP.ProductInStockingPoint_MP, pisp, pisp.IsLeaf() and not pisp.IsSystem() ) { |
| | | traverse ( pisp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl ) { |
| | | plannedQuantity := sum( pispippl, NewSupply, ns, guard( not isnull( ns.Process_MP().astype( Operation ) ), false ), ns.Quantity() ); |
| | | if ( plannedQuantity > 0 ) { |
| | | newMasterPlanReleaseWorkOrder.MasterPlanReleaseWorkOrderTabulation( relnew, |
| | | ProductionWorkOrderNumber := universalPrefixForWorkOrderNumber + [String]orderNumber, |
| | | ProductModel := pisp.ProductID(), |
| | | MaterialDescription := pisp.ProductID(), |
| | | StartDate := pispippl.Start().Date(), |
| | | EndDate := pispippl.End().Date(), |
| | | PlannedQuantity := plannedQuantity |
| | | ); |
| | | orderNumber++; |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type MasterPlanReleaseWorkOrder |
| | | { |
| | | #keys: '5[414702.0.224201152][414702.0.224201150][0.0.0][414702.0.224201151][414702.0.224201153]' |
| | | BaseType: Object |
| | | StructuredName: 'MasterPlanReleaseWorkOrders' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute EndDate |
| | | { |
| | | #keys: '3[414702.0.224201255][414702.0.224201254][414702.0.224201256]' |
| | | Description: 'ç»ææ¶é´' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MaterialDescription |
| | | { |
| | | #keys: '3[414702.0.224201232][414702.0.224201231][414702.0.224201233]' |
| | | Description: 'ç©ææè¿°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PlannedQuantity |
| | | { |
| | | #keys: '3[414702.0.224201265][414702.0.224201264][414702.0.224201266]' |
| | | Description: 'è®¡åæ°é' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductModel |
| | | { |
| | | #keys: '3[414702.0.224201216][414702.0.224201215][414702.0.224201217]' |
| | | Description: '产ååå·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductionWorkOrderNumber |
| | | { |
| | | #keys: '3[414702.0.224201206][414702.0.224201205][414702.0.224201207]' |
| | | Description: 'ç产工åå·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StartDate |
| | | { |
| | | #keys: '3[414702.0.224201245][414702.0.224201244][414702.0.224201246]' |
| | | Description: 'å¼å§æ¶é´' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute WorkOrderStatus |
| | | { |
| | | #keys: '3[414702.0.224201285][414702.0.224201284][414702.0.224201286]' |
| | | Description: 'å·¥åç¶æ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute WorkOrderType |
| | | { |
| | | #keys: '3[414702.0.224201275][414702.0.224201274][414702.0.224201276]' |
| | | Description: 'å·¥åç±»å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Export ( |
| | | MasterPlanReleaseWorkOrderTabulations masterPlanReleaseWorkOrderTabulations |
| | | ) as BinaryValue |
| | | { |
| | | TextBody: |
| | | [* |
| | | text:= '<?xml version="1.0" encoding="utf-8" standalone="yes"?><table><name>ç产工å</name><column><name>ç产工åå·</name><type>String</type></column><column><name>产ååå·</name><type>String</type></column><column><name>ç©ææè¿°</name><type>String</type></column><column><name>å¼å§æ¶é´</name><type>String</type></column><column><name>ç»ææ¶é´</name><type>String</type></column><column><name>è®¡åæ°é</name><type>Number</type></column><column><name>å·¥åç±»å</name><type>String</type></column><column><name>å·¥åç¶æ</name><type>String</type></column></table>'; |
| | | |
| | | xmlDOMImplementation := XMLDOMImplementation::Create(); |
| | | xmlDOMDocument := xmlDOMImplementation.CreateDocumentFromString( text ); |
| | | |
| | | mprwots := selectsortedset( masterPlanReleaseWorkOrderTabulations, Elements, tempMPRWOT, true, tempMPRWOT.ProductionWorkOrderNumber() ); |
| | | tableElement:= xmlDOMDocument.GetElementByTagName( "table", 0 ); |
| | | |
| | | traverse ( mprwots, Elements, mprwot ) { |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.ProductionWorkOrderNumber(), "ç产工åå·" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.ProductModel(), "产ååå·" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.MaterialDescription(), "ç©ææè¿°" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.StartDate().Format( "Y-M2-D2" ), "å¼å§æ¶é´" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.EndDate().Format( "Y-M2-D2" ), "ç»ææ¶é´" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, [String]mprwot.PlannedQuantity().Round( 0 ), "è®¡åæ°é" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.WorkOrderType(), "å·¥åç±»å" ); |
| | | MatAttrSettingAndPlanStrategy::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, mprwot.WorkOrderStatus(), "å·¥åç¶æ" ); |
| | | } |
| | | |
| | | xmlDOMSerializer := xmlDOMImplementation.CreateSerializer(); |
| | | xmlTableString := xmlDOMSerializer.WriteToString( xmlDOMDocument ); |
| | | |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( xmlTableString ) ); |
| | | tableGroupHandle := TableGroupHandle::Create( "ç产工å" ); |
| | | tableGroupHandle.Add( tableHandle ); |
| | | tableBinaryData := XLS::SaveTableGroupToBinaryData( tableGroupHandle, true ); |
| | | |
| | | return tableBinaryData.AsBinaryValue(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type MasterPlanReleaseWorkOrderTabulation |
| | | { |
| | | #keys: '5[414702.0.224201184][414702.0.224201182][0.0.0][414702.0.224201183][414702.0.224201185]' |
| | | BaseType: Object |
| | | StructuredName: 'MasterPlanReleaseWorkOrderTabulations' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[414702.0.223820969]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[414702.0.223820973]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'OK' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[414702.0.223820975]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Cancel' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | Border: true |
| | | ExcludeFromActiveComponent: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Padding: 'true' |
| | | Style: 'footer' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent |
| | | { |
| | | #keys: '[414702.0.223820967]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component efProductModel |
| | | { |
| | | #keys: '[414702.0.226423878]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.ProductModel' |
| | | Enabled: false |
| | | Label: '产ååå·' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component efMaterialDescription |
| | | { |
| | | #keys: '[414702.0.226423897]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.MaterialDescription' |
| | | Enabled: false |
| | | Label: 'ç©ææè¿°' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dsStart |
| | | { |
| | | #keys: '[414702.0.226423917]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.StartDate' |
| | | Enabled: false |
| | | Label: 'å¼å§' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dsEnd |
| | | { |
| | | #keys: '[414702.0.226423929]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.EndDate' |
| | | Enabled: false |
| | | Label: 'ç»æ' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component efPlannedQuantity |
| | | { |
| | | #keys: '[414702.0.226690631]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderDialogData.Data.PlannedQuantity' |
| | | Label: 'è®¡åæ°é' |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component ddlWorkOrderType |
| | | { |
| | | #keys: '[414702.0.226592544]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'WorkOrderType' |
| | | Children: |
| | | [ |
| | | Component deContent |
| | | { |
| | | #keys: '[414702.0.226592546]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'GlobalOTDTable' |
| | | Source: 'GlobalOTDTable' |
| | | Taborder: 0 |
| | | Transformation: 'WorkOrderType' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DisplayField: 'TypeName' |
| | | Label: 'å·¥åç±»å' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Edit ( |
| | | structured[MasterPlanReleaseWorkOrderTabulation] selection |
| | | ) id:Method_DialogCreateEditIssueWorkOrder_Edit |
| | | { |
| | | #keys: '[414702.0.224998029]' |
| | | Body: |
| | | [* |
| | | if ( selection.Size() = 1 ) { |
| | | data := shadow( selection.Element( 0 ) ); |
| | | |
| | | DataHolderDialogData.Data( &data ); |
| | | } else { |
| | | DataHolderDialogDatas.Data( selection.Copy() ); |
| | | efProductModel.Enabled( false, "" ); |
| | | efMaterialDescription.Enabled( false, "" ); |
| | | dsStart.Enabled( false, "" ); |
| | | dsEnd.Enabled( false, "" ); |
| | | efPlannedQuantity.Enabled( false, "" ); |
| | | } |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[414702.0.223820979]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnOk |
| | | Response OnClick () id:Response_pnlActions_btnOk_OnClick |
| | | { |
| | | #keys: '[414702.0.223820978]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | |
| | | masterPlanReleaseWorkOrderTabulation := guard( DataHolderDialogData.Data().WrappedInstance(), null( MasterPlanReleaseWorkOrderTabulation ) ); |
| | | |
| | | //info( "æ¯å¦ä¸ºç©ºï¼", isnull( masterPlanReleaseWorkOrderTabulation ), " Datas个æ°ï¼", guard( DataHolderDialogDatas.Data().Size(), 0 ) ); |
| | | if ( not isnull( DataHolderDialogDatas.Data() ) and DataHolderDialogDatas.Data().Size() > 1 ) { |
| | | traverse ( DataHolderDialogDatas.Data(), Elements, mprwot ) { |
| | | mprwot.WorkOrderType( ddlWorkOrderType.Data().TypeName() ); |
| | | } |
| | | } else if ( not isnull( masterPlanReleaseWorkOrderTabulation ) ) { |
| | | masterPlanReleaseWorkOrderTabulation.PlannedQuantity( [Real]efPlannedQuantity.Text() ); |
| | | masterPlanReleaseWorkOrderTabulation.WorkOrderType( ddlWorkOrderType.Data().TypeName() ); |
| | | } |
| | | |
| | | Form.Close(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/ddlWorkOrderType |
| | | Response OnCreated () id:Response_pnlContent_ddlWorkOrderType_OnCreated |
| | | { |
| | | #keys: '[414702.0.228678429]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if ( not isnull( DataHolderDialogData.Data() ) ) { |
| | | targetWorkOrderType := select( GlobalOTDTable, WorkOrderType, tempWOT, tempWOT.TypeName() = DataHolderDialogData.Data().WorkOrderType() ); |
| | | if ( not isnull( targetWorkOrderType ) ) { |
| | | this.Data( targetWorkOrderType ); |
| | | } else { |
| | | this.Data( select( GlobalOTDTable, WorkOrderType, tempWOT, true ) ); |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogCreateEditIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.223820965]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: pnlContent |
| | | #child: pnlActions |
| | | Component DataHolderDialogData |
| | | { |
| | | #keys: '[414702.0.226291622]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'shadow[MasterPlanReleaseWorkOrderTabulation]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component DataHolderDialogDatas |
| | | { |
| | | #keys: '[414702.0.228162499]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[MasterPlanReleaseWorkOrderTabulation]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | Image: 'DOCUMENT_EDIT' |
| | | Padding: 'false' |
| | | ] |
| | | } |
| | |
| | | #keys: '[414702.0.215041677]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | Precondition: |
| | | [* |
| | | |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ListIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.222532118]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.222532119]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'MasterPlanReleaseWorkOrder.MasterPlanReleaseWorkOrderTabulation' |
| | | ] |
| | | } |
| | | #child: listActionBarPageIssueWorkOrder |
| | | Component DataSetLevelIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.222532124]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: MenuIssueEdit |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductionWorkOrderNumber","title":"ProductionWorkOrderNumber","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductionWorkOrderNumber"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductModel","title":"ProductModel","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductModel"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MaterialDescription","title":"MaterialDescription","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MaterialDescription"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"StartDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"EndDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PlannedQuantity","title":"PlannedQuantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PlannedQuantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WorkOrderType","title":"WorkOrderType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WorkOrderType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WorkOrderStatus","title":"WorkOrderStatus","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WorkOrderStatus"}}]' |
| | | ContextMenu: 'MenuIssueEdit' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | SelectionCheckboxes: true |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListIssueWorkOrder_WebMenu_OnClick |
| | | { |
| | | #keys: '[414702.0.224677542]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[495.0.82724420]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component MenuIssueEdit |
| | | { |
| | | #keys: '[414702.0.222532126]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuEdit |
| | | { |
| | | #keys: '[414702.0.223801146]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | BindOnDoubleClick: true |
| | | Image: 'DOCUMENT_EDIT' |
| | | Taborder: 3 |
| | | Title: 'ç¼è¾' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelButton |
| | | { |
| | | #keys: '[414702.0.222545713]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ButtonGeneratePlannedData id:ButtonGeneratePlannedData_167 |
| | | { |
| | | #keys: '[414702.0.222545840]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'WIND_ENGINE' |
| | | Label: 'çæä¸å订å' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonIDownload id:ButtonIDownload_779 |
| | | { |
| | | #keys: '[414702.0.222545904]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'DOWNLOAD' |
| | | Label: 'ä¸è½½' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonIPlannedRelease id:ButtonIPlannedRelease_848 |
| | | { |
| | | #keys: '[414702.0.222545967]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'PARASOL' |
| | | Label: '计ååå¸' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component ButtonStatusRefresh id:ButtonStatusRefresh_865 |
| | | { |
| | | #keys: '[414702.0.222546030]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'ARROW_CIRCLE2' |
| | | Label: 'ç¶æå·æ°' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.222532093]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: ListIssueWorkOrder |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPageIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.222532121]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListIssueWorkOrder |
| | | Response OnClick ( |
| | | structured[MasterPlanReleaseWorkOrderTabulation] selection |
| | | ) id:Response_ListIssueWorkOrder_MenuEdit_OnClick |
| | | { |
| | | #keys: '[414702.0.223821969]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListIssueWorkOrder/Responsedef_ListIssueWorkOrder_WebMenu_OnClick |
| | | Initiator: 'MenuEdit' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogCreateEditIssueWorkOrder ); |
| | | |
| | | dlg.Edit( selection ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListIssueWorkOrder |
| | | Response OnUserCheckedChanged () id:Response_ListIssueWorkOrder_OnUserCheckedChanged_567 |
| | | { |
| | | #keys: '[414702.0.224434023]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnUserCheckedChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderCheckedMasterPlanReleaseWorkOrderTabulation.Data().Flush(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListIssueWorkOrder |
| | | Response OnUserCheckedChanged ( |
| | | structured[MasterPlanReleaseWorkOrderTabulation] checkeditems |
| | | ) id:Response_ListIssueWorkOrder_OnUserCheckedChanged |
| | | { |
| | | #keys: '[414702.0.224433947]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnUserCheckedChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderCheckedMasterPlanReleaseWorkOrderTabulation.Data( checkeditems.Copy() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelButton/ButtonGeneratePlannedData_167 |
| | | Response OnClick () id:Response_FormIssueWorkOrder_ButtonGeneratePlannedData_OnClick_124 |
| | | { |
| | | #keys: '[414702.0.222545839]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | MasterPlanReleaseWorkOrder::GenerateAndDistributeWorkOrders( MacroPlan ); |
| | | |
| | | WebMessageBox::Success( "çææåï¼", true ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelButton/ButtonIDownload_779 |
| | | Response OnClick () id:Response_PanelButton_ButtonIDownload_OnClick |
| | | { |
| | | #keys: '[414702.0.229440598]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | tableBinaryData := MasterPlanReleaseWorkOrderTabulation::Export( DataHolderCheckedMasterPlanReleaseWorkOrderTabulation.Data() ).AsBinaryData(); |
| | | |
| | | fileNmae := "å·¥å导åº_"; |
| | | fileNmae := fileNmae + [String]Date::ActualDate().Year() + [String]Date::ActualDate().Month() + "æ.xlsx"; |
| | | |
| | | Application.Download( fileNmae, tableBinaryData ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormIssueWorkOrder |
| | | { |
| | | #keys: '[414702.0.223811074]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: PanelIssueWorkOrder |
| | | Component DataHolderCheckedMasterPlanReleaseWorkOrderTabulation |
| | | { |
| | | #keys: '[414702.0.222552279]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[MasterPlanReleaseWorkOrderTabulation]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | #child: PanelButton |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'ä¸åå·¥å' |
| | | Image: 'TREE' |
| | | Title: 'ä¸åå·¥å' |
| | | ] |
| | | } |